/* couchtab.com — the product site. One stylesheet for every page; nothing loads from another host
   (the font is ours too: a privacy page shouldn't hand visitors' addresses to a font service).
   Layout: a night-time "living room" band for the hero (a TV and the phone that drives it), then
   plain reading sections on the page's own ground. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #f5f6f8;
  --surface: #ffffff;
  --ink: #161a22;
  --muted: #586070;
  --line: #dfe2e8;
  --accent: #a35a00;          /* links and marks on the light ground */
  --amber: #ffb347;           /* the icon's colour */
  --night: #10141f;           /* the hero band, in both themes */
  --night-ink: #eef0f4;
  --night-muted: #a3aabb;
  --glow: rgb(255 179 71 / .18);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d1016; --surface: #151a23; --ink: #e8eaef; --muted: #9aa1b0; --line: #262c38;
    --accent: #ffb347; --night: #0a0d14; --glow: rgb(255 179 71 / .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0d1016; --surface: #151a23; --ink: #e8eaef; --muted: #9aa1b0; --line: #262c38;
  --accent: #ffb347; --night: #0a0d14; --glow: rgb(255 179 71 / .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 20px; }
.prose { max-width: 40rem; }

/* ── Header ─────────────────────────────────────────── */
.top { background: var(--night); color: var(--night-ink); }
.top nav { display: flex; align-items: center; gap: 24px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 1.25rem/1 var(--display); letter-spacing: -.01em; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav a:not(.brand) { color: var(--night-muted); text-decoration: none; font-size: 15px; }
.top nav a:not(.brand):hover { color: var(--night-ink); }

/* ── Hero ───────────────────────────────────────────── */
.hero { background: var(--night); color: var(--night-ink); padding-block: 40px 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font: 800 clamp(2.5rem, 6vw, 4.3rem)/1 var(--display); letter-spacing: -.025em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lede { font-size: 1.2rem; line-height: 1.5; color: var(--night-muted); margin: 0 0 28px; max-width: 30rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--amber); color: #1b1305; }
.button.primary[aria-disabled="true"] { cursor: default; }
.button.ghost { color: var(--night-ink); border-color: rgb(255 255 255 / .22); }
.button.ghost:hover { border-color: rgb(255 255 255 / .5); }
.button svg { width: 20px; height: 20px; flex: none; }
.soon { font-size: 14px; color: var(--night-muted); margin: 14px 0 0; }

/* The scene: a laptop showing a page, and beside it the phone with that tab's card as the app draws it
   (no picture of the page: the tab's icon, its title and host, bands one desktop screen each, the
   rail and the "Screen n / m" readout). A finger drags the card up and back; the page on the
   laptop follows. One 9 s loop, still under reduced motion. */
.scene { position: relative; aspect-ratio: 16 / 10; max-width: 100%; }
.scene::before { content: ""; position: absolute; inset: 8% 36% 20% 0; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); }
.laptop { position: absolute; left: 4%; width: 54%; top: 16%; }
.laptop > .lid { aspect-ratio: 16 / 10.4; background: #05070b; border-radius: 10px 10px 4px 4px; padding: 2.4% 2.4% 3.2%; box-shadow: 0 30px 60px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .08); }
.laptop > .base { position: relative; margin: 0 -7%; height: 0; padding-bottom: 3.4%; background: linear-gradient(#3a4152, #222734); border-radius: 2px 2px 14px 14px / 2px 2px 60% 60%; box-shadow: 0 18px 30px rgb(0 0 0 / .5); }
.laptop > .base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 35%; background: #171b25; border-radius: 0 0 6px 6px; }
.screen { position: relative; height: 100%; border-radius: 3px; overflow: hidden; background: #f4f5f7; }
.page { position: absolute; inset: 0 0 auto 0; padding: 7% 12%; animation: page 9s ease-in-out infinite; }
.page .h { height: 1.2em; width: 62%; background: #1d2230; border-radius: 4px; margin-bottom: 1em; font-size: clamp(7px, 1.3vw, 13px); }
.page .l { height: .55em; background: #c8ccd6; border-radius: 3px; margin: .55em 0; font-size: clamp(7px, 1.3vw, 13px); }
.page .l:nth-child(3n) { width: 86%; }
.page .l:nth-child(4n) { width: 93%; }
.page .img { height: 4.5em; background: linear-gradient(135deg, #f0a64a, #c4643c); border-radius: 6px; margin: 1.2em 0; font-size: clamp(7px, 1.3vw, 13px); }

/* An iPhone's proportions: 71.6 × 147.6 mm, thin bezels, its corner radius and the Dynamic Island. */
.phone { container-type: inline-size; position: absolute; right: 2%; bottom: 0; width: 30%; aspect-ratio: 71.6 / 147.6; background: #0b0d12; border-radius: 16% / 7.8%; padding: 3.2%; box-shadow: 0 24px 50px rgb(0 0 0 / .55), inset 0 0 0 1.5px rgb(255 255 255 / .12); }
.app { position: relative; height: 100%; border-radius: 13cqi; background: #0f1115; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; font-size: 3.7cqi; /* the app's 15 px on a 375 px screen, at this phone's size */ color: #e6e8ee; font-family: var(--body); }
.app::before { content: ""; position: absolute; left: 50%; top: 3cqi; width: 31cqi; height: 9cqi; transform: translateX(-50%); border-radius: 9cqi; background: #000; z-index: 2; }
.app .bar { display: flex; align-items: center; gap: .6em; padding: 3.6em 1.4em .8em; color: #9aa1b0; white-space: nowrap; overflow: hidden; }
.app .bar i { flex: none; width: .8em; height: .8em; border-radius: 50%; background: #22c55e; }
.card { position: relative; margin: 0 .9em; border-radius: 2.2em; background: #181b22; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(255 179 71 / .35); }
.card .bands { position: absolute; inset: 0 0 auto 0; height: 600%; background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .045) 0 16.66%, transparent 16.66% 33.33%); animation: bands 9s ease-in-out infinite; }
.card .badge { position: absolute; inset: 0; display: grid; place-items: center; }
.card .badge b { width: 2.1em; height: 2.1em; border-radius: .55em; background: var(--amber); opacity: .14; display: grid; place-items: center; font: 800 3em/1 var(--display); color: #15171c; }
.card .head { position: absolute; inset: 0 0 auto 0; display: flex; gap: 1.1em; align-items: center; padding: 1.6em 1.7em 2.6em; background: linear-gradient(#181b22 55%, transparent); }
.card .head b { flex: none; width: 2.8em; height: 2.8em; border-radius: .8em; background: var(--amber); color: #15171c; display: grid; place-items: center; font-weight: 700; }
.card .head div { min-width: 0; display: grid; gap: .25em; }
.card .head strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .head small { color: #9aa1b0; font-size: .9em; }
.card .rail { position: absolute; right: .7em; top: 7em; bottom: 1.8em; width: .4em; border-radius: .2em; background: rgb(255 255 255 / .06); }
.card .rail i { position: absolute; left: 0; right: 0; top: 0; height: 17%; border-radius: .2em; background: var(--amber); animation: rail 9s ease-in-out infinite; }
.card .readout { position: absolute; left: 50%; bottom: 2.2em; transform: translateX(-50%); padding: .6em 1.3em; border-radius: 99em; background: rgb(0 0 0 / .55); white-space: nowrap; font-variant-numeric: tabular-nums; animation: readout 9s ease-in-out infinite; }
.app .tools { display: flex; justify-content: space-around; padding: 1.1em .8em 2em; }
.app .tools i { width: 1.5em; height: 1.5em; border-radius: .45em; border: .2em solid #6b7385; }

/* A pointing hand, drawn like the browser's hand pointer: its fingertip on the card, the touch
   mark under it. */
.finger { position: absolute; left: 47%; width: 46%; top: 64%; pointer-events: none; animation: finger 9s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .5)); }
.finger svg { display: block; width: 100%; height: auto; overflow: visible; }
.touch { position: absolute; left: 46%; top: 6%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 179 71 / .35); transform: translate(-50%, -50%) scale(0); animation: touch 9s ease-in-out infinite; }

/* 0–10 % the finger comes in · 10–42 % drag up, the page goes down · 42–60 % lift, touch again ·
   60–88 % drag down, the page comes back · 88–100 % the finger leaves. */
@keyframes page { 0%, 10% { transform: translateY(0); } 42%, 60% { transform: translateY(-40%); } 88%, 100% { transform: translateY(0); } }
@keyframes bands { 0%, 10% { transform: translateY(0); } 42%, 60% { transform: translateY(-14%); } 88%, 100% { transform: translateY(0); } }
@keyframes rail { 0%, 10% { transform: translateY(0); } 42%, 60% { transform: translateY(240%); } 88%, 100% { transform: translateY(0); } }
@keyframes readout { 0%, 10% { opacity: 0; } 14%, 46% { opacity: 1; } 52%, 62% { opacity: 0; } 66%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes finger {
  0% { transform: translate(14%, 50%); opacity: 0; }
  6%, 10% { transform: translate(0, 0) scale(1); opacity: 1; }
  42% { transform: translate(0, -95%) scale(1); }
  48%, 56% { transform: translate(4%, -100%) scale(1.08); }
  60% { transform: translate(0, -95%) scale(1); }
  88% { transform: translate(0, 0) scale(1); opacity: 1; }
  94% { transform: translate(8%, 25%); opacity: 1; }
  100% { transform: translate(14%, 50%); opacity: 0; }
}
@keyframes touch { 0%, 7% { transform: translate(-50%, -50%) scale(0); } 10%, 42% { transform: translate(-50%, -50%) scale(1); } 46%, 58% { transform: translate(-50%, -50%) scale(0); } 61%, 88% { transform: translate(-50%, -50%) scale(1); } 92%, 100% { transform: translate(-50%, -50%) scale(0); } }
@media (prefers-reduced-motion: reduce) {
  .page, .card .bands, .card .rail i, .card .readout, .finger, .touch { animation: none; }
  .card .readout { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ── Sections ───────────────────────────────────────── */
section { padding-block: 72px; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h2 { font: 750 clamp(1.8rem, 3.6vw, 2.6rem)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
h3 { font: 700 1.2rem/1.25 var(--display); margin: 0 0 6px; text-wrap: balance; }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 38rem; margin: 0 0 36px; }

/* Casting vs Couchtab: two columns that say what each does. */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.versus div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.versus div.us { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.versus h3 { margin-bottom: 10px; }
.versus ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.versus li { margin: 6px 0; }
.versus li strong { color: var(--ink); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.feature svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.steps li::before { content: counter(step); display: block; font: 800 2.4rem/1 var(--display); color: var(--amber); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }

.privacy-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
.privacy-points p { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 0; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding-block: 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 14px; font: 650 1.1rem/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────── */
footer { padding-block: 32px 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

/* ── A reading page (the privacy policy) ────────────── */
.doc { padding-block: 48px 72px; }
.doc h1 { font: 800 clamp(2rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.doc .date { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.doc li { margin: 6px 0; }
.doc code { font: .9em var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

/* ── Narrow screens ─────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features, .versus, .steps, .privacy-points { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 56px; }
}
@media (max-width: 520px) {
  .top nav a.hide-narrow { display: none; }
}
