/* The Linear-style page: quiet dark, left-aligned type, the app shown large, and the mascot
   in six poses doing the illustrating. Sits on style.css for the tokens, buttons, the app
   window and the app pieces ("wells"). */

body.l { background: var(--night); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 9px; background: var(--snow); color: var(--night); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* --- Nav: thin, sticky, see-through ----------------------------------------------------- */

.l-nav { position: sticky; top: 0; z-index: 10; background: rgb(10 10 10 / 72%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.l-nav nav { display: flex; align-items: center; gap: 32px; height: 64px; }
.l-nav .mark { font-size: 20px; }
.l-nav .mark svg { width: 30px; height: 27px; }
.l-links { display: flex; gap: 28px; margin-left: auto; }
.l-links a { text-decoration: none; color: var(--fog); font-size: 14px; font-weight: 500; }
.l-links a:hover { color: var(--snow); }

/* --- Hero: the line, huge, then the painting edge to edge ------------------------------- */

/* The painting starts right under the nav; the headline, the line and the download sit on
   its dark left side, so the whole pitch is above the fold. */
.l-hero { position: relative; }
.l-hero-art { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 55%) 0%, #000 30%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 55%) 0%, #000 30%, #000 86%, transparent 100%); }
.l-hero-copy { position: absolute; inset: 0; z-index: 1; padding-top: clamp(48px, 5.6vw, 88px); }
.l-hero h1 { max-width: 9em; font-size: clamp(48px, 6.4vw, 108px); line-height: 0.92; letter-spacing: -0.04em; text-shadow: 0 2px 30px rgb(0 0 0 / 55%); }
.l-lede { max-width: 25em; margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--snow); text-shadow: 0 1px 14px rgb(0 0 0 / 80%); text-wrap: pretty; }
.l-actions { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.l-fine { font-size: 13px; color: var(--plate); text-shadow: 0 1px 10px rgb(0 0 0 / 80%); }

.l-product { position: relative; margin-top: clamp(120px, 14vw, 190px); }
.l-product .app { box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 30px 80px rgb(0 0 0 / 60%); }

/* #general scrolls like the real one; new messages land at the bottom. */
.messages[data-live] { overflow-y: auto; justify-content: flex-start; scrollbar-width: thin; scrollbar-color: #2c2c32 transparent; }
.messages[data-live] > :first-child { margin-top: auto; }
.messages .arrive { animation: arrive 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .messages .arrive { animation: none; } }

/* --- The mascot -------------------------------------------------------------------------- */

.pose { display: block; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 18px 24px rgb(0 0 0 / 55%)); }

/* Waving from the top edge of the window, feet on its frame. */
.pose.on-window { position: absolute; z-index: 2; right: calc(var(--gutter) + 5%); bottom: calc(100% - 10px); width: clamp(120px, 15vw, 210px); filter: drop-shadow(0 6px 10px rgb(0 0 0 / 60%)); }

/* --- Features --------------------------------------------------------------------------- */

.l-features { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(120px, 14vw, 200px); padding-top: clamp(140px, 16vw, 220px); }
.l-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 48px; }
.l-feature h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.l-head p { padding-top: 6px; max-width: 30em; font-size: 17px; color: var(--fog); text-wrap: pretty; }

/* A panel: flat and a step lighter than the page, so the dark hood reads against it. */
.l-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; background: #161617; box-shadow: inset 0 0 0 1px var(--line); }

/* Every app piece is a real surface from the app: the app's own near-black, a hairline,
   one plain shadow to lift it off the panel. */
.sn { background: var(--panel); border-radius: 14px; box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 20px 50px rgb(0 0 0 / 45%); color: #e9e9ee; font-size: 14px; line-height: 1.45; }

/* Avatars: a picture the person chose, or the mark for an anonymous name. */
img.face { object-fit: cover; background: var(--lift); }
.face.anon { display: grid; place-items: center; background: #26262b; }
.face.anon svg { width: 66%; height: 66%; opacity: 0.9; }

/* --- 1. Spaces: one person, three cards, three names ---------------------------------- */

.l-spaces { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; min-height: 480px; padding: 64px 56px 0 64px; }
.sn-selves { align-self: center; position: relative; display: flex; margin-bottom: 64px; }
.idcard { width: 232px; flex: none; overflow: hidden; padding-bottom: 20px; transition: transform 700ms cubic-bezier(.2, .8, .2, 1); }
.idcard + .idcard { margin-left: -10px; }
.idcard-banner { position: relative; height: 84px; }
.idcard-banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.idcard-banner b { position: absolute; left: 14px; top: 12px; font: 600 15px/1 var(--display); color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 60%); }
.idcard .face { width: 64px; height: 64px; margin: -32px 0 0 16px; position: relative; box-shadow: 0 0 0 4px var(--panel); }
.idcard-label { margin: 14px 16px 0; font-size: 12px; color: var(--fog); }
.idcard-name { display: flex; align-items: baseline; gap: 8px; margin: 2px 16px 0; }
.idcard-name b { font: 600 20px/1.2 var(--text); letter-spacing: -0.01em; }
.idcard-name small { font: 12px var(--mono); color: var(--fog); }
/* Fanned like three cards in a hand. */
.idcard:nth-child(1) { transform: rotate(-5deg) translateY(14px); }
.idcard:nth-child(2) { position: relative; z-index: 1; transform: translateY(-8px); }
.idcard:nth-child(3) { transform: rotate(5deg) translateY(14px); }
/* Before they're seen: one card, the other two tucked behind it. */
.sn-selves:not(.shown) .idcard:nth-child(1) { transform: translateX(222px) rotate(0); }
.sn-selves:not(.shown) .idcard:nth-child(3) { transform: translateX(-222px) rotate(0); }
.l-spaces .pose { width: clamp(220px, 24vw, 310px); margin-bottom: -4px; }

/* --- 2. Keys: the key being made, and the devices that hold it ---------------------------- */

.l-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.l-pair .l-panel { min-height: 520px; padding: 40px 40px 150px; margin-bottom: 36px; }
.l-pair .l-feature h2 { font-size: clamp(26px, 2.4vw, 32px); }
.l-pair .l-feature > p { margin-top: 14px; max-width: 30em; font-size: 16px; color: var(--fog); text-wrap: pretty; }
.pose.peek { position: absolute; width: clamp(200px, 19vw, 250px); }

.sn-key { position: relative; z-index: 2; max-width: 440px; }
.sn-key-made { display: flex; gap: 16px; padding: 22px 22px 20px; }
.sn-key-tile { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--lift); color: var(--coral); font-size: 24px; }
.sn-key-title { font: 600 22px/1.15 var(--display); color: var(--snow); letter-spacing: -0.01em; }
.sn-key-body { margin-top: 8px; color: var(--plate); text-wrap: pretty; }
.sn-key-devices { border-top: 1px solid var(--line); padding: 14px 22px 18px; }
.sn-key-head { font-size: 12px; font-weight: 500; color: var(--fog); }
.sn-key-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.sn-key-row + .sn-key-row { border-top: 1px solid var(--line); }
.sn-dev { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--lift); color: var(--plate); font-size: 15px; }
.sn-key-row b { font-weight: 600; }
.sn-key-row small { margin-left: auto; color: var(--fog); font-size: 12.5px; }
.sn-key-add { display: inline-flex; margin-top: 8px; height: 30px; align-items: center; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--snow); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%); }
.l-keys .pose { right: 5%; bottom: -70px; }

/* --- 3. Private: the room as its members read it, and as the server keeps it ------------- */

.l-pair .l-panel.l-private { display: grid; place-items: center; padding: 40px; }
.sn-sealed { position: relative; z-index: 2; width: 100%; max-width: 480px; }
.sn-switch { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 11px; background: var(--panel); box-shadow: 0 0 0 1px rgb(255 255 255 / 8%); }
.sn-switch button { flex: 1; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--fog); font: 500 13px/1 var(--text); cursor: pointer; }
.sn-switch button:hover { color: var(--snow); }
.sn-switch button[aria-pressed="true"] { background: var(--lift); color: var(--snow); }
.sn-room { padding-bottom: 10px; }
.sn-room-head { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--snow); }
.sn-room-head .icon { color: var(--fog); }
.sn-room .msg { padding: 12px 18px 2px; }
.sn-room .plain { transition: color 200ms; }
.sn-sealed.cipher .plain { overflow-wrap: anywhere; color: var(--fog); font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }

/* --- 4. Voice: who's in each room, then the call you're in --------------------------------- */

.l-voice { display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 56px); min-height: 520px; padding: 56px 56px 0 24px; }
.l-voice .pose { width: clamp(220px, 24vw, 320px); margin-bottom: -6px; flex: none; }
.sn-voice { flex: 1; max-width: 760px; margin: 0 0 56px auto; align-self: center; display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; }
.sn-rooms { padding: 14px 10px; background: var(--chrome); border-right: 1px solid var(--line); }
.sn-cat { padding: 2px 8px 8px; font-size: 12px; font-weight: 500; color: var(--fog); }
.sn-vroom { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 8px; color: var(--fog); }
.sn-vroom.on { background: var(--lift); color: var(--snow); }
.sn-who { display: flex; align-items: center; gap: 8px; height: 28px; padding-left: 32px; font-size: 13px; }
.sn-who .face { width: 18px; height: 18px; }
.sn-stage { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--sheet); }
.sn-stage-head { display: flex; align-items: center; gap: 4px; color: var(--snow); }
.sn-count { margin-left: auto; font-size: 12.5px; color: var(--fog); }
.sn-screen { border-radius: 12px; overflow: hidden; background: #000; }
.sn-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sn-screen p { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 12.5px; color: var(--plate); background: var(--chrome); }
.sn-stop { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 7px; background: var(--lift); color: var(--snow); font-weight: 500; }
/* Watching: the people shrink into a strip under the screen, as in the app. */
.sn-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sn-tile { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--lift); font-size: 12.5px; }
.sn-tile .face { width: 26px; height: 26px; }
.sn-tile.talking .face { box-shadow: 0 0 0 2px var(--lift), 0 0 0 4px var(--live); }
.sn-tile b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-tile small { display: none; }
.sn-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-controls i { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--lift); color: var(--snow); font: normal 500 12.5px/1 var(--text); }
.sn-controls i.leave { margin-left: auto; background: var(--danger); color: #fff; }

@media (prefers-reduced-motion: reduce) { .idcard { transition: none; } }

/* --- What's new: a changelog ------------------------------------------------------------- */

.l-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; margin-top: clamp(140px, 16vw, 220px); padding-top: 48px; border-top: 1px solid var(--line); }
.l-side { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
.l-entry h3 { margin: 12px 0 0; font: 600 clamp(24px, 2.4vw, 30px)/1.1 var(--display); color: var(--snow); letter-spacing: -0.015em; }
.l-entry ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 40em; font-size: 16px; color: var(--plate); }
.l-entry ul b { color: var(--snow); font-weight: 600; }

/* --- The last word: walking off with the download ---------------------------------------- */

.l-last { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(160px, 18vw, 260px); padding-bottom: 72px; }
.l-last-words { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 40px; }
.l-last h2 { max-width: 12em; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.l-last .pose { width: clamp(240px, 30vw, 400px); flex: none; }

.l .foot { border-top: 1px solid var(--line); }

/* --- Narrow ------------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .l-hero { overflow: hidden; }
  .l-hero-art { width: 150%; max-width: none; margin-left: -46%; }
  .l-actions { flex-wrap: wrap; }
  .l-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .l-pair { grid-template-columns: 1fr; gap: 96px; }
  .l-spaces { flex-direction: column; align-items: stretch; padding: 32px 20px 0; }
  .sn-selves { align-self: center; margin-bottom: 0; flex-direction: column; align-items: center; }
  .idcard { width: min(280px, 100%); }
  .idcard + .idcard { margin: -36px 0 0; }
  .idcard:nth-child(1) { transform: rotate(-3deg); }
  .idcard:nth-child(2) { transform: none; }
  .idcard:nth-child(3) { transform: rotate(3deg); }
  .sn-selves:not(.shown) .idcard:nth-child(1), .sn-selves:not(.shown) .idcard:nth-child(3) { transform: none; }
  .l-spaces .pose { align-self: center; margin: 24px 0 -4px; width: min(240px, 60vw); }
  .l-pair .l-panel { min-height: 0; padding: 24px 16px 0; }
  .sn-key, .sn-sealed { max-width: none; }
  .pose.peek { position: relative; left: auto; right: auto; bottom: auto; width: min(220px, 56vw); margin: 24px auto -40px; }
  .l-voice { flex-direction: column-reverse; align-items: stretch; padding: 24px 16px 0; }
  .sn-voice { margin: 0; max-width: none; grid-template-columns: 1fr; }
  .sn-rooms { border-right: 0; border-bottom: 1px solid var(--line); }
  .l-voice .pose { align-self: center; width: min(240px, 60vw); margin-top: 24px; }
  .l-new { grid-template-columns: 1fr; gap: 24px; }
  .l-last { flex-direction: column; align-items: flex-start; }
  .l-last-words { padding-bottom: 0; }
  .l-last .pose { align-self: flex-end; width: min(300px, 70vw); }
}
@media (max-width: 640px) {
  .l-links { display: none; }
  .l-nav nav { justify-content: space-between; }
  .sn-controls i { padding: 0 10px; }
}
