@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 400 650; font-style: normal; font-display: swap; }

:root {
  --paper: #faf8f4;
  --paper-2: #f2efe8;
  --card: #ffffff;
  --ink: #1c1b18;
  --muted: #5e5a52;
  --line: #e4dfd4;
  --accent: #9a5a17;
  --accent-soft: #f6ead9;
  --night: #0d0f13;
  --night-2: #161a21;
  --night-ink: #ebe8e1;
  --night-muted: #9c9a94;
  --night-accent: #eaae66;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121314;
    --paper-2: #18191b;
    --card: #1d1e21;
    --ink: #ecebe6;
    --muted: #a5a29b;
    --line: #2c2d30;
    --accent: #e3a560;
    --accent-soft: #2b2218;
    --night: #08090b;
    --night-2: #12151a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--pad); background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.wordmark { font-family: var(--serif); font-size: 27px; font-weight: 450; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.bar nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--ink); }
.bar nav a.pill { color: var(--paper); background: var(--ink); padding: 8px 15px; border-radius: 999px; font-weight: 500; }
.bar nav a.pill:hover { color: var(--paper); opacity: .9; }
.bar { transition: background-color .3s ease, border-color .3s ease; }
.bar.over-night { background: rgba(13, 15, 19, .74); border-bottom-color: rgba(255, 255, 255, .07); }
.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; }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(34px, 5.5vh, 72px) var(--pad) clamp(56px, 9vh, 110px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.08; font-weight: 380; max-width: 16em; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.35vw, 19.5px); color: var(--muted); margin-top: 26px; max-width: 34em; }

.join { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; max-width: 520px; }
.join input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.join input[type=email]::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.join input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.join button { font: inherit; font-size: 15.5px; font-weight: 550; padding: 13px 20px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); cursor: pointer; }
.join button:hover { opacity: .9; }
.join button[disabled] { opacity: .55; cursor: progress; }
.join-note { flex-basis: 100%; font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.join-note.ok { color: var(--ink); font-weight: 500; }
.join-note.err { color: #b3261e; font-weight: 500; }
@media (prefers-color-scheme: dark) { .join-note.err { color: #ff8a80; } }

.name-story { margin-top: clamp(34px, 5vh, 54px); padding-top: 22px; border-top: 1px solid var(--line); max-width: 36em; }
.name-story h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.name-story p { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink); margin: 0; }

/* Phone */
.hero-phone { margin: 0; display: flex; justify-content: center; }
.phone { width: min(330px, 100%); aspect-ratio: 9 / 19; border-radius: 52px; padding: 11px; background: #111214; box-shadow: 0 1px 0 1px #2a2b2e inset, 0 40px 80px -30px rgba(30, 24, 10, .35), 0 18px 36px -18px rgba(30, 24, 10, .25); }
.screen { height: 100%; border-radius: 42px; background: #0f1115; color: #ebe8e1; padding: 14px 18px 22px; display: flex; flex-direction: column; overflow: hidden; font-size: 14px; }
.status { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; padding: 2px 8px 0; height: 30px; }
.island { width: 92px; height: 26px; border-radius: 20px; background: #000; }
.sig { letter-spacing: -1px; font-size: 9px; }
.sit-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 16px; }
.mode { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
.live { font-size: 12px; color: #a6a39c; display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #e25b4a; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lines li { line-height: 1.42; color: #d9d6cf; }
.lines b, .room b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8f8c86; margin-bottom: 2px; }
.lines li.you b { color: #b9c4d4; }
.whisper { margin-top: auto; background: #1f1a13; border: 1px solid #3a2e1e; border-radius: 18px; padding: 13px 15px 14px; }
.ear { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--night-accent); }
.whisper p { margin: 4px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.35; color: #f3e6d3; }
.tap { margin-top: 12px; text-align: center; font-size: 12.5px; color: #8f8c86; border: 1px solid #2a2d33; border-radius: 999px; padding: 9px; }

@media (prefers-color-scheme: dark) {
  .phone { background: #1a1b1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 1px 0 1px #2e3034 inset, 0 50px 100px -30px rgba(0, 0, 0, .85); }
}
.hero-phone .lines li, .hero-phone .whisper { animation: arrive .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-phone .lines li:nth-child(1) { animation-delay: .35s; }
.hero-phone .lines li:nth-child(2) { animation-delay: 1.05s; }
.hero-phone .lines li:nth-child(3) { animation-delay: 1.75s; }
.hero-phone .lines li:nth-child(4) { animation-delay: 2.45s; }
.hero-phone .whisper { animation-delay: 3.4s; animation-duration: .9s; }
.hero-phone.wait .lines li, .hero-phone.wait .whisper { animation-play-state: paused; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }

/* Shared section rhythm */
.kicker, .split .kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
section h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; text-wrap: balance; }
section h2 + p { margin-top: 22px; }
.split { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.split p { color: var(--muted); font-size: 17.5px; }
.split h2 { font-size: clamp(27px, 2.6vw, 38px); }

/* Shadow, the one night chapter */
.night { background: var(--night); color: var(--night-ink); height: 280vh; position: relative; --p: 0; }
.night-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, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.night .kicker { color: var(--night-accent); }
.night h2 { color: #f4f1ea; }
.night-copy p:not(.kicker) { color: var(--night-muted); font-size: 17.5px; }
.room { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; font-size: 17px; }
.room li { line-height: 1.45; color: #d8d5ce; opacity: clamp(0, calc((var(--p) - var(--at)) * 9), 1); transform: translateY(calc(clamp(0, calc((var(--at) - var(--p)) * 9 + 1), 1) * 14px)); }
.room li.you b { color: #b9c4d4; }
.room li.rafe { background: #1f1a13; border: 1px solid #3a2e1e; border-radius: 16px; padding: 12px 16px; }
.room li.rafe b { color: var(--night-accent); }
.room li.rafe { font-family: var(--serif); font-size: 19px; color: #f3e6d3; }
.room li.tapped b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--night-accent); margin-left: 8px; vertical-align: middle; }
.room li:nth-child(1) { --at: .04; } .room li:nth-child(2) { --at: .13; } .room li:nth-child(3) { --at: .22; } .room li:nth-child(4) { --at: .36; }
.room li:nth-child(5) { --at: .50; } .room li:nth-child(6) { --at: .59; } .room li:nth-child(7) { --at: .74; } .room li:nth-child(8) { --at: .84; }

/* Talk and errands */
.talk { padding: clamp(90px, 14vh, 150px) var(--pad) clamp(60px, 10vh, 110px); }
.errand { max-width: 760px; margin: clamp(56px, 8vh, 90px) auto 0; padding: 0; display: grid; gap: 14px; }
.errand p { margin: 0; padding: 16px 20px; border-radius: 20px; font-size: 17px; line-height: 1.5; max-width: 85%; }
.errand span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; opacity: .65; }
.errand .ask { background: var(--paper-2); justify-self: end; border-bottom-right-radius: 6px; }
.errand .done { background: var(--accent-soft); font-family: var(--serif); font-size: 19px; border-bottom-left-radius: 6px; }
.errand .done span { font-family: var(--sans); color: var(--accent); opacity: 1; }

/* Sittings */
.sittings { max-width: var(--wrap); margin: 0 auto; padding: clamp(60px, 10vh, 110px) var(--pad); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sittings-copy p:not(.kicker) { color: var(--muted); font-size: 17.5px; }
.record { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -40px rgba(40, 30, 10, .35); }
.rec-kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.record h3 { font-size: 28px; line-height: 1.15; }
.rec-meta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.player { display: flex; align-items: center; gap: 14px; margin: 20px 0 22px; padding: 10px 14px; background: var(--paper-2); border-radius: 14px; }
.play { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 11px; top: 9px; border-left: 10px solid var(--paper); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.wave { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.wave i { flex: 1; min-width: 1px; border-radius: 2px; background: var(--ink); height: 30%; opacity: .85; }
.wave i:nth-child(n+20) { opacity: .28; }
.wave i:nth-child(3n) { height: 62%; } .wave i:nth-child(4n+1) { height: 88%; } .wave i:nth-child(5n+2) { height: 44%; } .wave i:nth-child(7n) { height: 100%; } .wave i:nth-child(11n+3) { height: 20%; }
.time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.record h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.record > p { font-family: var(--serif); font-size: 18px; line-height: 1.5; margin: 0 0 22px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.items li { display: flex; gap: 12px; font-size: 15.5px; align-items: baseline; }
.items span { flex: none; width: 52px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Comparison */
.compare { max-width: var(--wrap); margin: 0 auto; padding: clamp(60px, 10vh, 110px) var(--pad); border-top: 1px solid var(--line); }
.compare-lede { color: var(--muted); font-size: 18.5px; max-width: 40em; }
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin: 46px 0 0; }
.pairs dt { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.pairs dd { margin: 0; color: var(--muted); }

/* Price */
.price { padding: clamp(40px, 8vh, 90px) var(--pad); }
.price-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: clamp(32px, 5vw, 56px); box-shadow: 0 30px 70px -45px rgba(40, 30, 10, .4); }
.price-card h2 { font-size: clamp(28px, 3vw, 40px); }
.amount { font-family: var(--serif); font-size: 22px; margin: 26px 0 4px; color: var(--muted); }
.amount span { font-size: clamp(56px, 7vw, 76px); color: var(--ink); letter-spacing: -0.02em; vertical-align: -0.08em; margin-right: 6px; }
.alt { color: var(--muted); }
.price-card ul { text-align: left; max-width: 430px; margin: 28px auto 24px; padding: 0; list-style: none; display: grid; gap: 11px; }
.price-card li { padding-left: 26px; position: relative; }
.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); }
.fine { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Trust */
.trust { padding: clamp(60px, 10vh, 110px) var(--pad); background: var(--paper-2); }
.clinician { margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink) !important; font-size: 16px !important; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) var(--pad) 20px; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 21px; line-height: 1.3; padding: 16px 36px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 40em; }

/* Close */
.close { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(70px, 12vh, 130px) var(--pad); }
.close > p { color: var(--muted); font-size: 18.5px; }
.close .join { margin: 30px auto 0; justify-content: center; }

/* Footer */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--pad) 46px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; font-size: 14.5px; color: var(--muted); }
.wordmark.small { font-size: 22px; color: var(--ink); margin: 0; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.made { margin: 0 0 0 auto; }

/* Inner pages */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vh, 80px) var(--pad) 80px; }
.doc h1 { font-size: clamp(36px, 4.5vw, 52px); line-height: 1.1; }
.doc .updated { color: var(--muted); margin: 12px 0 34px; font-size: 15px; }
.doc h2 { font-size: 26px; margin: 42px 0 12px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .summary { font-family: var(--serif); font-size: 20px; line-height: 1.5; padding: 20px 24px; border-radius: 18px; background: var(--paper-2); }
.soon { max-width: 620px; margin: 0 auto; padding: clamp(70px, 16vh, 160px) var(--pad); text-align: center; }
.soon h1 { font-size: clamp(34px, 4.5vw, 50px); line-height: 1.1; }
.soon p { color: var(--muted); font-size: 18px; margin-top: 20px; }
.soon .back { display: inline-block; margin-top: 18px; font-weight: 500; }

/* Narrow screens */
@media (max-width: 880px) {
  .bar nav a:not(.pill):not(.quiet) { display: none; }
  .bar nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 34px; }
  .hero h1 { font-size: clamp(33px, 8.6vw, 46px); }
  .phone { width: min(300px, 82vw); }
  .night { height: auto; }
  .night-sticky { position: static; height: auto; grid-template-columns: 1fr; padding-top: 90px; padding-bottom: 90px; gap: 44px; }
  .room li { opacity: 1; transform: none; }
  .room.reveal li { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .room.reveal li.in { opacity: 1; transform: none; }
  .split, .sittings { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .pairs { grid-template-columns: 1fr; gap: 30px; }
  .errand p { max-width: 94%; }
  .made { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 420px) {
  .bar nav a.quiet { display: none; }
  .join button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .night { height: auto; }
  .night-sticky { position: static; height: auto; padding-top: 100px; padding-bottom: 100px; }
  .room li, .room.reveal li { opacity: 1 !important; transform: none !important; transition: none; }
  .live i, .hero-phone .lines li, .hero-phone .whisper { animation: none; }
}
