/* heyrafe.com front door. Scenes get --p from 0 to 1 from home.js (eased); elements read their own
   start (--at) and length (--d) from it. Only transform and opacity move. */

.home { --ease-in: .09; overflow-x: clip; }
.home section h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -0.016em; text-wrap: balance; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.home .split > div > p:not(.kicker) { color: var(--muted); font-size: 18px; }

.k { --k: clamp(0, calc((var(--p, 1) - var(--at, 0)) / var(--d, .09)), 1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 550; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: transform .2s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { max-width: 1040px; margin: 0 auto; padding: clamp(64px, 13vh, 150px) var(--pad) clamp(48px, 9vh, 96px); text-align: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.024em; font-weight: 360; text-wrap: balance; animation: rise 1.1s cubic-bezier(.16, .84, .24, 1) both; }
.hero .lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; color: var(--muted); max-width: 40em; margin: 30px auto 0; text-wrap: pretty; animation: rise 1.1s .12s cubic-bezier(.16, .84, .24, 1) both; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; animation: rise 1.1s .22s cubic-bezier(.16, .84, .24, 1) both; }
.hero-note { margin-top: 20px; font-size: 14.5px; color: var(--muted); animation: rise 1.1s .3s cubic-bezier(.16, .84, .24, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* The room: pinned, the page goes dark as Rafe speaks */
.room { position: relative; height: 330vh; --p: 0; }
.room-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.room-night { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 45%, #1a1713 0%, var(--night) 55%); opacity: clamp(0, calc((var(--p) - .39) / .07), 1); pointer-events: none; }
.room-grid { position: relative; height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 110px); align-items: center; }
.room-copy { position: relative; min-height: 15em; }
.beat { position: absolute; inset: 0 auto auto 0; margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); line-height: 1.16; letter-spacing: -0.015em; max-width: 13em; text-wrap: balance;
  --in: clamp(0, calc((var(--p) - var(--s)) / .06), 1); --out: clamp(0, calc((var(--e) - var(--p)) / .06), 1);
  opacity: calc(var(--in) * var(--out)); transform: translateY(calc((1 - var(--in)) * 22px - (1 - var(--out)) * 22px)); }
.beat .step { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.b1 { --s: -1; --e: .43; color: var(--ink); }
.b2 { --s: .45; --e: .73; color: #f4f0e8; }
.b3 { --s: .74; --e: 2; color: #f4f0e8; }
.b2 .step, .b3 .step { color: var(--night-accent); }

.phone { position: relative; container-type: inline-size; margin: 0; width: min(350px, 74vw, calc((100svh - 190px) * .462)); aspect-ratio: 9 / 19.5; border-radius: 54px; padding: 11px; background: #121316; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 50px 90px -40px rgba(20, 16, 8, .55), 0 20px 40px -24px rgba(20, 16, 8, .4); }
/* Everything inside the phone is sized in em from one base that follows the phone's width, so a shorter window shows the same screen, smaller, instead of cutting it off. */
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; padding: .97em 1.38em 1.52em; display: flex; flex-direction: column; font-size: clamp(10.5px, 4.42cqi, 14.5px); }
.screen.dark { background: #101114; color: #ebe8e1; }
.status { flex: none; display: flex; justify-content: space-between; align-items: center; font-size: .966em; font-weight: 600; height: 2.14em; padding: .14em .71em 0; }
.island { width: 6.86em; height: 2em; border-radius: 1.43em; background: #000; }
.sig { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.sig i { width: 3px; background: currentColor; border-radius: 1px; }
.sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 8px; } .sig i:nth-child(3) { height: 11px; }
.sh-head { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: .7em; margin: 1.79em .14em 1.38em; }
.sh-title { font-family: var(--serif); font-size: 1.93em; letter-spacing: -.01em; }
.sh-live { flex: none; font-size: .862em; color: #a6a39c; display: inline-flex; align-items: center; gap: .56em; white-space: nowrap; }
.sh-live i { width: .56em; height: .56em; border-radius: 50%; background: #e25b4a; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
/* The transcript has its own clipped area, and it scrolls up as lines arrive (--d1 to --d5 are set by home.js from the layout), so the newest line and the whisper are always in view. */
.sh-clip { flex: 1 1 auto; min-height: 0; overflow: hidden; margin-bottom: .83em; }
.sh-lines { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: .966em; transform: translateY(calc(-1px * (var(--d1, 0) * clamp(0, calc((var(--p) - .03) / .07), 1) + var(--d2, 0) * clamp(0, calc((var(--p) - .11) / .07), 1) + var(--d3, 0) * clamp(0, calc((var(--p) - .19) / .07), 1) + var(--d4, 0) * clamp(0, calc((var(--p) - .27) / .07), 1) + var(--d5, 0) * clamp(0, calc((var(--p) - .36) / .07), 1)))); --dim: clamp(0, calc((var(--p) - .46) / .08), 1); }
.sh-lines li { line-height: 1.42; color: #dcd9d2; --k: clamp(0, calc((var(--p) - var(--at)) / .07), 1); opacity: calc(var(--k) * (1 - .62 * var(--dim))); transform: translateY(calc((1 - var(--k)) * 14px)); }
.sh-lines b { display: block; font-size: .759em; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8f8c86; margin-bottom: 2px; }
.sh-lines li.you b { color: #b9c4d4; }
.whisper { flex: none; margin-top: auto; border-radius: 1.38em; padding: 1.03em 1.1em 1.1em; background: #1f1a13; border: 1px solid #3a2e1e;
  --k: clamp(0, calc((var(--p) - var(--at)) / .09), 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 46px)) scale(calc(.95 + .05 * var(--k))); transform-origin: 50% 100%; }
.ear { font-size: .759em; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--night-accent); }
.whisper p { margin: .27em 0 0; font-family: var(--serif); font-size: 1.276em; line-height: 1.34; color: #f3e6d3; }
.sh-foot { flex: none; margin-top: .83em; text-align: center; font-size: .862em; color: #8f8c86; border: 1px solid #2a2d33; border-radius: 999px; padding: .8em; }
.phone-wrap { position: relative; isolation: isolate; justify-self: center; }
.glow { position: absolute; z-index: -1; left: 50%; bottom: 8%; width: 160%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(234, 174, 102, .34), rgba(234, 174, 102, 0)); --k: clamp(0, calc((var(--p) - .5) / .12), 1); opacity: var(--k); transform: translate(-50%, 30%) scale(calc(.7 + .3 * var(--k))); pointer-events: none; }

/* After: the record, then the follow-up cards */
.after { position: relative; height: 300vh; --p: 0; }
.after-sticky { position: sticky; top: 0; height: 100vh; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.after-copy h2 { font-size: clamp(28px, 3vw, 44px); }
.after-copy p:not(.kicker) { color: var(--muted); font-size: 17.5px; margin-top: 22px; }
.after-stage { position: relative; height: 470px; }
.card { position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; max-width: 470px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px 24px; box-shadow: 0 34px 70px -44px rgba(40, 30, 10, .5), 0 2px 6px -2px rgba(40, 30, 10, .06); transform-origin: 50% 0;
  --k: clamp(0, calc((var(--p) - var(--at)) / .1), 1); opacity: clamp(0, calc(var(--k) * 24), 1); }
/* The card's paper turns solid at once, so the card beneath never shows through it; its words fade in as it rises. */
.card > * { opacity: clamp(0, calc(var(--k) * 2.5), 1); }
.card.note { --under: clamp(0, calc((var(--p) - .3) / .1), 1); --under2: clamp(0, calc((var(--p) - .62) / .1), 1); transform: translateY(calc((1 - var(--k)) * 40px)) scale(calc(1 - .045 * var(--under) - .04 * var(--under2))); }
.card.mail { --under: clamp(0, calc((var(--p) - .62) / .1), 1); transform: translateY(calc(72px + (1 - var(--k)) * 150px)) scale(calc(1 - .045 * var(--under))); }
.card.invite { transform: translateY(calc(144px + (1 - var(--k)) * 150px)); }
.c-kind { text-wrap: balance; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.card h3 { font-size: 26px; line-height: 1.15; }
.c-sum { font-family: var(--serif); font-size: 17.5px; line-height: 1.5; margin: 12px 0 14px; }
.c-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.c-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; }
.c-items span { font-size: 12px; font-weight: 600; color: var(--muted); }
.c-to { font-size: 14.5px; margin: 0; color: var(--muted); }
.c-to span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.c-subj { font-family: var(--serif); font-size: 21px; margin: 6px 0 8px; }
.c-body { font-size: 15.5px; line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
.c-buttons { display: flex; gap: 8px; font-size: 14.5px; font-weight: 550; }
.c-buttons span { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); }
.c-buttons .b-send { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mail { --sent: clamp(0, calc((var(--p) - .48) / .06), 1); }
.mail .c-buttons { opacity: calc(1 - var(--sent)); }
.c-sign { display: block; margin-top: 8px; }
.mail .c-kind { position: relative; }
/* One label leaves before the other arrives, so the two never overlap half-visible. */
.mail .k-wait { opacity: clamp(0, calc(1 - var(--sent) * 2), 1); }
.mail .k-sent { position: absolute; left: 0; top: 0; color: #2f7d4a; opacity: clamp(0, calc(var(--sent) * 2 - 1), 1); }
.mail .k-sent::before { content: ""; display: inline-block; width: 10px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(-45deg); margin-right: 9px; }
@media (prefers-color-scheme: dark) { .mail .k-sent { color: #7fd19b; } }

/* Any language */
.language { padding: clamp(110px, 18vh, 190px) var(--pad); background: var(--paper-2); --p: 0; }
.lang-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.lang-lede { color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 34em; margin: 26px auto 0; text-wrap: pretty; }
.interp { max-width: 720px; margin: clamp(50px, 8vh, 80px) auto 0; text-align: left; }
.turn { padding: 30px 0 32px; border-top: 1px solid var(--line); }
.t-them { --r: clamp(0, calc((var(--p) - .22) / .08), 1); }
.t-you { --r: clamp(0, calc((var(--p) - .31) / .08), 1); border-bottom: 1px solid var(--line); }
.turn { opacity: var(--r); transform: translateY(calc((1 - var(--r)) * 18px)); }
.t-who { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.t-mine { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.22; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; transition: opacity .35s ease; }
.t-theirs { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; color: var(--muted); transition: opacity .35s ease, color .35s ease; }
.t-how { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14.5px; color: var(--accent); }
.t-how .ico { flex: none; width: 20px; height: 20px; }
.interp.playing .t-mine, .interp.playing .t-theirs { opacity: .32; }
.interp.playing .on { opacity: 1; }
.interp.playing .t-theirs.on { color: var(--ink); }
.interp-play { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.ip-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 550 15.5px/1 var(--sans); cursor: pointer; transition: transform .2s ease; }
.ip-btn:active { transform: scale(.97); }
.ip-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.interp.playing .ip-icon { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; margin-left: 0; }
.ip-note { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); max-width: 30em; }
.lang-note { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 38em; margin: 48px auto 0; text-wrap: pretty; }

/* Everywhere: a horizontal track */
.everywhere { position: relative; height: 300vh; --p: 0; --dist: 0; }
.ev-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 56px; box-sizing: border-box; }
.ev-head { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--pad); }
.ev-head h2 { max-width: 17em; }
@media (max-height: 760px) { .ev-lede { display: none; } .ev-sticky { padding-top: 0; } }
.ev-lede { max-width: 40em; margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.ev-track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: clamp(36px, 6vh, 64px) var(--pad) 0 max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); transform: translate3d(calc(var(--p) * var(--dist) * -1px), 0, 0); will-change: transform; }
.ev-card { flex: none; width: clamp(280px, 30vw, 380px); background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px 26px 28px; box-shadow: 0 30px 60px -46px rgba(40, 30, 10, .45); }
.ev-card h3 { font-size: 26px; margin: 22px 0 10px; }
.ev-card p { margin: 0; color: var(--muted); font-size: 16px; }
.dev { height: 190px; display: grid; place-items: center; background: var(--paper-2); border-radius: 20px; }
.dev-screen { display: block; position: relative; }
.iphone .dev-screen { width: 78px; height: 160px; border-radius: 18px; border: 5px solid #17181b; background: var(--paper); display: grid; place-items: end center; padding-bottom: 22px; }
.orb { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fde7b8, #f3c983 55%, rgba(243, 201, 131, 0) 72%); box-shadow: 0 0 30px 8px rgba(243, 201, 131, .45); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .85; } }
.watch .dev-screen { width: 104px; height: 124px; border-radius: 32px; border: 6px solid #17181b; background: #0d0e10; display: grid; place-items: center; align-content: center; gap: 8px; }
.w-dot { width: 12px; height: 12px; border-radius: 50%; background: #e25b4a; animation: pulse 2.2s ease-in-out infinite; }
.w-text { font-family: var(--serif); font-size: 18px; color: #ebe8e1; }
.mac .dev-screen { width: 220px; height: 138px; border-radius: 10px; border: 6px solid #17181b; border-bottom-width: 10px; background: var(--paper); display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; padding: 8px; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.m-grid i { border-radius: 4px; background: #2b2d33; }
.m-grid i:nth-child(2) { background: #3a3d45; } .m-grid i:nth-child(3) { background: #33363d; }
.m-panel { display: grid; gap: 5px; align-content: start; padding: 4px; border-radius: 5px; background: var(--card); border: 1px solid var(--line); }
.m-panel i { height: 6px; border-radius: 3px; background: var(--line); }
.m-panel i:nth-child(2) { width: 70%; background: var(--accent-soft); }
.web .dev-screen { width: 220px; height: 138px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 0 10px; display: grid; gap: 8px; align-content: start; overflow: hidden; }
.b-bar { height: 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.b-row { height: 18px; margin: 0 12px; border-radius: 6px; background: var(--paper-2); }
.b-row.short { width: 50%; }

/* The follow-up */
.errands { max-width: var(--wrap); margin: 0 auto; padding: clamp(100px, 16vh, 170px) var(--pad) clamp(60px, 10vh, 110px); }
.er-head h2 { max-width: 18em; }
.er-lede { max-width: 40em; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.er-grid { list-style: none; margin: clamp(44px, 7vh, 70px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(22px, 2.6vw, 40px); }
.er-grid h3 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.er-grid p { margin: 0; color: var(--muted); font-size: 15.5px; }
.er-soon { margin-top: clamp(50px, 8vh, 80px); padding: 22px 26px; border-radius: 20px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; align-items: baseline; }
.er-soon p { margin: 0; }
.er-soon p:not(.soon-tag) { grid-column: 2; color: var(--muted); }
.soon-tag { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

/* Gets to know you */
.knows { padding: clamp(70px, 12vh, 130px) var(--pad); --p: 0; }
.knows .split { align-items: center; }
.knows .aside { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px !important; }
.knows-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 34px); box-shadow: 0 34px 70px -48px rgba(40, 30, 10, .5); }
.k-title { font-family: var(--serif); font-size: 26px; margin: 0 0 16px; }
.knows-card ul { list-style: none; margin: 0; padding: 0; display: grid; }
.knows-card li { padding: 16px 0; border-top: 1px solid var(--line); --k: clamp(0, calc((var(--p) - var(--at)) / .1), 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 16px)); }
.knows-card li p { margin: 0 0 8px; font-family: var(--serif); font-size: 18.5px; line-height: 1.42; }
.knows-card li span { font-size: 13.5px; color: var(--accent); }

/* The kind of help, and the short comparison */
.help { padding: clamp(90px, 15vh, 170px) var(--pad) clamp(60px, 10vh, 110px); background: var(--paper-2); }
.help-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.help-inner h2 { font-size: clamp(32px, 4vw, 58px); }
.help-inner p { color: var(--muted); font-size: clamp(18px, 1.4vw, 20.5px); line-height: 1.6; margin-top: 26px; }
.compare-link { text-align: center; margin-top: 26px; font-weight: 500; }

/* Price */
.home .price { padding: clamp(80px, 13vh, 140px) var(--pad); }
.home .price-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: clamp(34px, 5vw, 60px); box-shadow: 0 34px 80px -50px rgba(40, 30, 10, .45); }
.home .price-card h2 { font-size: clamp(28px, 3vw, 42px); }
.home .amount { font-family: var(--serif); font-size: 22px; margin: 28px 0 6px; color: var(--muted); }
.home .amount span { font-size: clamp(60px, 7.5vw, 84px); color: var(--ink); letter-spacing: -0.025em; vertical-align: -0.08em; margin-right: 6px; }
.home .alt { color: var(--muted); max-width: 26em; margin: 0 auto; }
.home .price-card ul { text-align: left; max-width: 450px; margin: 30px auto 26px; padding: 0; list-style: none; display: grid; gap: 12px; }
.home .price-card li { padding-left: 28px; position: relative; }
.home .price-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-50%) rotate(-45deg); }
.home .fine { font-size: 13.5px; color: var(--muted); margin: 0; }
.home .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 18px; }
.home .plan { margin: 0; padding: 22px 12px 20px; border: 1px solid var(--line); border-radius: 22px; font-family: var(--serif); font-size: 19px; color: var(--muted); }
.home .plan:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.home .plan-amount { display: block; font-size: clamp(44px, 5.4vw, 60px); line-height: 1.05; color: var(--ink); letter-spacing: -0.025em; }
.home .plan-per { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; }
.home .founding { margin: 28px 0 0; padding: 22px 24px; border-radius: 22px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); text-align: left; }
.home .founding[hidden], .hero-note [data-founding][hidden] { display: none; }
.home .founding h3 { margin: 0 0 6px; font-size: 18px; }
.home .founding p { margin: 0; text-wrap: pretty; }
.home .founding-count { margin-top: 14px !important; font-family: var(--serif); font-size: 20px; }
.home .founding-count strong { font-weight: 500; font-size: 28px; letter-spacing: -0.02em; color: var(--ink); }
.home .founding-how { margin-top: 4px !important; font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) { .home .plans { gap: 10px; margin-top: 24px; } .home .plan { padding: 18px 6px 16px; font-size: 16px; } .home .plan-amount { font-size: clamp(30px, 10vw, 40px); } .home .plan-per { font-size: 12.5px; } .home .founding { padding: 18px 18px; } }
@media (max-width: 330px) { .home .plans { grid-template-columns: 1fr; } }

/* Trust */
.home .trust { padding: clamp(70px, 12vh, 130px) var(--pad); border-top: 1px solid var(--line); }
.home .trust h2 { font-size: clamp(26px, 2.6vw, 38px); }
.home .trust .split p { margin-top: 20px; }

/* Name */
.name { padding: clamp(110px, 18vh, 200px) var(--pad); background: var(--night); color: var(--night-ink); --p: 0; }
.name-inner { max-width: 760px; margin: 0 auto; text-align: center; --k: clamp(0, calc((var(--p) - .2) / .2), 1); }
.name-mark { width: 112px; height: 112px; border-radius: 26px; opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 24px)) scale(calc(.9 + .1 * var(--k))); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.name h2 { color: #f4f1ea; margin-top: 34px; }
.name p { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.6; color: #cfcbc3; margin-top: 24px; }

/* FAQ, get */
.home .faq { max-width: 860px; margin: 0 auto; padding: clamp(80px, 13vh, 140px) var(--pad) 30px; }
.home .faq h2 { margin-bottom: 28px; }
.get { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 13vh, 140px) var(--pad); text-align: center; }
.get-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 46px; text-align: left; }
.get-card { flex: 1 1 340px; max-width: 500px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.get-card h3 { font-size: 26px; margin-bottom: 10px; }
.get-card p { color: var(--muted); }
.get-card .btn { margin-top: 8px; }
.get-card .small { font-size: 14px; margin: 16px 0 0; }
.get .join { margin-top: 18px; }

/* Bar over the dark room */
.bar.over-night { background: rgba(13, 15, 19, .72); border-bottom-color: rgba(255, 255, 255, .06); }
.bar.over-night .wordmark { color: #f2efe8; }
.bar.over-night nav a { color: #a9a6a0; }
.bar.over-night nav a:hover { color: #f2efe8; }
.bar.over-night nav a.pill { background: #f2efe8; color: #121314; }

@media (prefers-color-scheme: dark) {
  .b1 { color: var(--ink); }
  .phone { background: #1b1c1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -30px rgba(0, 0, 0, .85); }
  .iphone .dev-screen, .watch .dev-screen, .mac .dev-screen { border-color: #3a3c42; }
}

/* Narrow screens: the same scenes, stacked */
@media (max-width: 880px) {
  .bar nav a:not(.pill):not(.quiet) { display: none; }
  .hero { text-align: left; padding-top: 52px; }
  .hero h1 { font-size: clamp(38px, 10.4vw, 54px); }
  .hero .lede { margin-left: 0; }
  .ctas { justify-content: flex-start; }
  .ctas .btn { flex: 1 1 100%; }
  .room-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 18px; padding-top: 76px; padding-bottom: 20px; }
  .room-copy { min-height: 7.6em; }
  .beat { font-size: clamp(22px, 6vw, 28px); max-width: none; }
  .beat .step { margin-bottom: 8px; }
  .phone-wrap { justify-self: center; }
  .phone.big { width: min(300px, 70vw, calc((100svh - 250px) * .462)); border-radius: 46px; padding: 9px; }
  .phone.big .screen { border-radius: 38px; padding: .77em 1.15em 1.23em; font-size: clamp(10.5px, 4.61cqi, 13px); }
  .phone.big .sh-head { margin: 1.23em .15em 1.08em; }
  .phone.big .sh-title { font-size: 1.77em; }
  .phone.big .sh-lines { gap: .77em; }
  .phone.big .whisper p { font-size: 1.23em; }
  .after-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 18px; padding-top: 80px; }
  .after-copy p:not(.kicker) { display: none; }
  .after-copy h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .after-stage { height: 420px; }
  .card { padding: 18px 20px; border-radius: 20px; }
  .card h3 { font-size: 22px; }
  .c-sum { font-size: 15.5px; margin: 8px 0 10px; }
  .c-body { font-size: 14.5px; margin-bottom: 12px; }
  .after-more { display: block !important; }
  .ev-card { width: 78vw; }
  .ev-head h2 { font-size: clamp(26px, 7vw, 34px); }
  .ev-lede { font-size: 15px; margin-top: 12px; }
  .ev-track { padding-top: 26px; }
  .everywhere .dev { height: 120px; }
  .ev-sticky { padding-top: 64px; }
  .er-grid { grid-template-columns: 1fr 1fr; }
  .er-soon { grid-template-columns: 1fr; }
  .er-soon p:not(.soon-tag) { grid-column: 1; }
  .knows .split, .home .trust .split { grid-template-columns: 1fr; gap: 50px; }
  .interp-play { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  .er-grid { grid-template-columns: 1fr; }
  .bar nav a.quiet { display: none; }
  .get-card { padding: 24px; }
}
.after-more { display: none; max-width: var(--wrap); margin: 0 auto; padding: 10px var(--pad) 70px; color: var(--muted); font-size: 17px; }

/* Reduced motion: every scene shows its finished state, and nothing is pinned */
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lede, .ctas, .hero-note { animation: none; }
  .room, .after, .everywhere { height: auto; --p: 1 !important; }
  .room-sticky, .after-sticky, .ev-sticky { position: relative; height: auto; padding-top: 100px; padding-bottom: 100px; }
  .room-grid { height: auto; }
  .room-night { opacity: 1; }
  .b1 { display: none; }
  .beat { position: relative; opacity: 1; transform: none; margin-bottom: 22px; }
  .after-stage { height: auto; display: grid; gap: 16px; }
  .card { position: relative; top: auto !important; opacity: 1; transform: none !important; }
  .ev-track { transform: none; flex-wrap: wrap; }
  .language, .knows, .name { --p: 1 !important; }
  .sh-live i, .orb, .w-dot { animation: none; }
}

/* Timings (kept here because the site's security policy refuses inline styles) */
.sh-lines li:nth-child(1) { --at: .03; } .sh-lines li:nth-child(2) { --at: .11; } .sh-lines li:nth-child(3) { --at: .19; } .sh-lines li:nth-child(4) { --at: .27; } .sh-lines li:nth-child(5) { --at: .36; }
.whisper { --at: .5; }
.card.note { --at: .02; } .card.mail { --at: .3; } .card.invite { --at: .6; }
.knows-card li:nth-child(1) { --at: .18; } .knows-card li:nth-child(2) { --at: .3; } .knows-card li:nth-child(3) { --at: .42; }

/* The Mac page */
.mac-page .hero .kicker { margin-bottom: 22px; }
.call { position: relative; height: 300vh; --p: 0; }
.call-sticky { position: sticky; top: 0; height: 100vh; max-width: var(--wrap); margin: 0 auto; padding: 70px var(--pad) 30px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.mac-window { margin: 0; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(30, 22, 8, .55), 0 10px 30px -20px rgba(30, 22, 8, .3); overflow: hidden; }
.mw-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mw-bar i { width: 12px; height: 12px; border-radius: 50%; background: #e4675f; }
.mw-bar i:nth-child(2) { background: #e9b949; } .mw-bar i:nth-child(3) { background: #63c556; }
.mw-bar span { margin-left: 10px; }
.mw-body { display: grid; grid-template-columns: 1.35fr 1fr; min-height: clamp(320px, 52vh, 470px); }
.mw-call { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; background: #15161a; }
.tile { position: relative; border-radius: 10px; background: linear-gradient(160deg, #2d3038, #1f2127); display: grid; place-items: center; }
.tile b { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #3b3f49; color: #e6e3dc; font-size: 15px; font-weight: 600; }
.tile em { position: absolute; left: 10px; bottom: 8px; font-style: normal; font-size: 12px; color: #bdb9b1; }
.tile.me { outline: 2px solid color-mix(in srgb, var(--night-accent) 70%, transparent); outline-offset: -2px; }
.mw-notes { position: relative; padding: 16px 18px; border-left: 1px solid var(--line); font-size: 14px; }
.mw-head { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.mw-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.mw-live i { width: 7px; height: 7px; border-radius: 50%; background: #e25b4a; animation: pulse 2.2s ease-in-out infinite; }
.mw-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; --gone: clamp(0, calc((var(--p) - .64) / .08), 1); opacity: calc(1 - var(--gone)); }
.mw-lines li { line-height: 1.42; --k: clamp(0, calc((var(--p) - var(--at)) / .07), 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 12px)); }
.mw-lines li:nth-child(1) { --at: .16; } .mw-lines li:nth-child(2) { --at: .26; } .mw-lines li:nth-child(3) { --at: .36; } .mw-lines li:nth-child(4) { --at: .46; }
.mw-lines b { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mw-lines .you b { color: var(--accent); }
.mw-done { position: absolute; inset: 48px 18px 16px; --k: clamp(0, calc((var(--p) - .7) / .09), 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 16px)); }
.mw-title { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; }
.mw-sum { font-family: var(--serif); font-size: 15.5px; line-height: 1.45; margin: 0 0 12px; }
.mw-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.mw-items span { display: inline-block; width: 44px; font-weight: 600; color: var(--muted); font-size: 12px; }
.mw-mail { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; }
.call-copy { position: relative; min-height: 13em; }
.call-copy .beat { color: var(--ink); font-size: clamp(22px, 2.2vw, 32px); }
.c1 { --s: -1; --e: .3; } .c2 { --s: .28; --e: .66; } .c3 { --s: .64; --e: 2; }
.mac-more { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 13vh, 140px) var(--pad); }
.mac-more h2 { max-width: 16em; }
.mac-trust { padding: clamp(70px, 12vh, 130px) var(--pad); background: var(--paper-2); }
.perms { margin: 0; display: grid; gap: 18px; }
.perms dt { font-family: var(--serif); font-size: 21px; }
.perms dd { margin: 4px 0 0; color: var(--muted); }
.mac-why { max-width: var(--wrap); margin: 50px auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 880px) {
  .call-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 22px; padding-top: 80px; }
  .call-copy { order: -1; min-height: 8.4em; }
  .call-copy .beat { font-size: clamp(19px, 5.2vw, 24px); }
  .mw-body { grid-template-columns: 1fr; min-height: 0; }
  .mw-call { grid-template-columns: repeat(4, 1fr); height: 74px; }
  .tile b { width: 34px; height: 34px; font-size: 11px; }
  .tile em { display: none; }
  .mw-notes { min-height: 300px; border-left: 0; border-top: 1px solid var(--line); }
  .mac-more .er-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .mac-more .er-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .call { height: auto; --p: 1 !important; }
  .call-sticky { position: relative; height: auto; }
  .mw-lines { display: none; }
  .mw-done { position: static; }
  .call-copy .beat { position: relative; opacity: 1; transform: none; margin-bottom: 16px; }
}

/* The comparison page */
.cmp-hero { padding-bottom: 30px; }
.cmp-notes { padding: clamp(60px, 10vh, 110px) var(--pad); background: var(--paper-2); }
.cmp-notes h2 { font-size: clamp(26px, 2.6vw, 38px); }
.cmp-notes p { margin-top: 18px; }
.cmp-sources { max-width: 860px; margin: 0 auto; padding: clamp(60px, 10vh, 100px) var(--pad) 0; }
.cmp-sources h2 { font-size: 26px; }
.cmp-sources p, .cmp-sources li { color: var(--muted); font-size: 15.5px; }
.cmp-sources ul { padding-left: 20px; display: grid; gap: 8px; }
.compare-page .get .ctas { justify-content: center; }
.compare-page .made { flex-basis: 100%; margin-left: 0; font-size: 13px; }
@media (max-width: 880px) { .compare-page .hero { text-align: left; } }
/* Films */
.film-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.film-link:hover { text-decoration-color: currentColor; }
.play-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.play-dot::after { content: ""; position: absolute; left: 7px; top: 5px; border-left: 6px solid var(--paper); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.night-link { color: #f2efe8; font-size: 16px; }
.night-link .play-dot { background: #f2efe8; }
.night-link .play-dot::after { border-left-color: var(--night); }
.name-film { margin-top: 18px !important; font-family: var(--sans) !important; }
.film-dialog { width: min(1200px, 94vw, calc((100dvh - 110px) * 16 / 9)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; color: #f2efe8; }
.film-dialog::backdrop { background: rgba(10, 10, 12, .82); backdrop-filter: blur(6px); }
/* Close sits in its own bar above the film, never over it: Safari puts its own mute and full-screen buttons in the film's top corners. */
.film-dialog form { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.film-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 20px; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7); }
.film-close { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: inherit; font-size: 15px; font-weight: 550; line-height: 1; color: #f2efe8; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 0 16px 0 13px; cursor: pointer; }
.film-close::before { content: ""; width: 12px; height: 12px; background: linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.film-close:hover { background: rgba(255, 255, 255, .18); }
.film-close:focus-visible { outline: 2px solid #f2efe8; outline-offset: 2px; }
.hero-film { margin: clamp(40px, 7vh, 70px) auto 0; max-width: 1100px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 100px -60px rgba(30, 22, 8, .6); }
.hero-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--paper-2); }

/* The renewal-call film, at the end of the room's night */
.night-film { background: var(--night); color: #ebe8e1; padding: clamp(30px, 6vh, 70px) var(--pad) clamp(90px, 14vh, 150px); }
.film-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.night-film h2 { color: #f4f1ea; font-size: clamp(28px, 3vw, 44px); }
.night-film .film-copy p { color: #9c9a94; font-size: 17.5px; margin-top: 22px; }
.film { max-width: var(--wrap); margin: clamp(36px, 6vh, 60px) auto 0; }
.film video { display: block; width: 100%; height: auto; border-radius: 18px; background: #0d0f13; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px rgba(0, 0, 0, .5); }
.film video.tall { display: none; }
@media (max-width: 700px) { .film video.wide { display: none; } .film video.tall { display: block; } }
/* On a phone the film link takes its own line, so the note under it does not break mid-sentence. */
@media (max-width: 700px) { .hero-note .film-link { display: flex; margin-bottom: 6px; } .hero-note .sep { display: none; } }
