/* Finn — one stylesheet for the whole site.
 *
 * Light and warm, with Finn's orange as the only accent and the app's own dark
 * screenshots as the contrast. The app is dark; the site is not. That is on
 * purpose: a phone full of dark cards reads as a product when it sits on
 * paper, and as wallpaper when it sits on more dark.
 *
 * Shared chrome (nav, footer, buttons) and the legal/support pages live here
 * alongside the home page, so Privacy can never drift away from the look of
 * the front door.
 */

:root {
  --paper:      #fbf7f0;
  --paper-2:    #f3ede2;
  --paper-3:    #ece4d6;
  --ink:        #15110e;
  --ink-soft:   #3a332c;
  --muted:      #6b6358;
  --night:      #0e0c0a;   /* the dark panels, matching the app */
  --night-2:    #171412;
  --cream:      #ebdec2;   /* the app's champagne, for text on night */
  --orange:     #f4762a;
  --orange-deep:#d9530f;
  --orange-wash:#fdeee2;
  --line:       rgba(21, 17, 14, .10);
  --line-2:     rgba(21, 17, 14, .16);
  --line-night: rgba(235, 222, 194, .14);
  --max:        1180px;
  --radius:     28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.04; font-weight: 760; }
p { margin: 0; }

.wrap { width: min(100% - 44px, var(--max)); margin-inline: auto; }

/* ─── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 780; letter-spacing: -.04em; }
.brand img, .brand .finn { width: 34px; height: 34px; border-radius: 50%; }
.brand img { border-radius: 10px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--muted); font-size: 15px; font-weight: 560; transition: color .2s ease; }
.nav-links > a:hover { color: var(--ink); }

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 640; letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff !important; box-shadow: 0 12px 30px rgba(244, 118, 42, .28); }
.btn-primary:hover { background: #ff8339; box-shadow: 0 18px 44px rgba(244, 118, 42, .34); }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(21, 17, 14, .04); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-large { padding: 15px 28px; font-size: 17px; }
.btn .apple { width: 19px; height: 23px; flex: none; background: currentColor;
  -webkit-mask: var(--apple) center/contain no-repeat; mask: var(--apple) center/contain no-repeat; }
:root { --apple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-36.8-2.8-77 21.3-91.7 21.3-15.6 0-51.2-20.3-79.2-20.3C60.6 141.6 0 184.6 0 272.2c0 26 4.8 52.9 14.3 80.6 12.7 36.4 60.6 123.9 110.6 122.4 26.1-.6 44.6-18.5 78.6-18.5 33 0 50.1 18.5 79.2 18.5 50.4-.7 93.8-80.2 105.9-116.7-67.5-31.8-69.9-85.6-69.9-89.8zm-61.5-168c25-29.7 22.7-56.7 22-66.4-22.1 1.3-47.7 15.1-62.3 32-16.1 18.3-25.6 40.9-23.6 66 23.9 1.8 45.7-10.5 63.9-31.6z'/%3E%3C/svg%3E"); }
.btn-large .stack { display: grid; text-align: left; line-height: 1.15; }
.btn-large .stack small { font-size: 10px; font-weight: 560; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.btn-large .stack b { font-size: 17px; font-weight: 680; }

.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-deep); font-weight: 620; }
.text-link:hover { gap: 11px; }
.text-link, .text-link span { transition: gap .2s ease, transform .2s ease; }

/* ─── Finn, drawn ──────────────────────────────────────────────────────── */
/*
 * The same character the app draws, in the same proportions: a 0.90 head on a
 * 200 canvas, oversized glasses taking three quarters of his face, lenses in
 * his own orange so the dark eyes sit on his face rather than in two white
 * holes. The circle crops his chin, which is what makes it a portrait.
 *
 * He moves the way he moves in the app, for the same reason — one loop reads
 * as a loop. The keyframe stops are deliberately uneven and the three
 * durations share no common multiple worth noticing, so the head, the eyes and
 * the blink are never back together.
 */

.finn { width: 100%; height: auto; }
.finn-head  { animation: finn-sway 13s ease-in-out infinite; }
.finn-look  { animation: finn-look 9.4s ease-in-out infinite; }
.finn-eye   { transform-box: fill-box; transform-origin: 50% 50%; animation: finn-blink 6.1s ease-in-out infinite; }

@keyframes finn-sway {
  0%   { transform: translate(0, 0); }
  18%  { transform: translate(5px, -2px); }
  37%  { transform: translate(-2px, 1.5px); }
  56%  { transform: translate(-5px, 2px); }
  72%  { transform: translate(1px, -1px); }
  88%  { transform: translate(3px, 1px); }
  100% { transform: translate(0, 0); }
}
/* Travel is capped at 6 across and 3 down. The eye is 27 x 32.4 inside glass
 * 45 x 41.4, so it has 9 of room either side and 4.5 above — any further and
 * it slides out from under the frame. */
@keyframes finn-look {
  0%   { transform: translate(0, 0); }
  14%  { transform: translate(6px, -2px); }
  31%  { transform: translate(-5px, 1.5px); }
  49%  { transform: translate(1.5px, 3px); }
  67%  { transform: translate(-6px, -1.5px); }
  85%  { transform: translate(4px, 1px); }
  100% { transform: translate(0, 0); }
}
@keyframes finn-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(.08); }
}

.name-pill {
  display: inline-block; padding: 5px 15px; border-radius: 999px;
  background: rgba(21, 17, 14, .07);
  font-size: 14px; font-weight: 640; letter-spacing: -.01em;
}

/* ─── Reveal ───────────────────────────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].visible { opacity: 1; transform: none; }

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 76px 0 96px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% 0 auto; height: 760px; pointer-events: none;
  background: radial-gradient(52% 50% at 50% 42%, rgba(244, 118, 42, .22), transparent 70%);
}
.hero .wrap { position: relative; }
.hero-finn { width: 184px; margin: 0 auto 16px; }
.hero h1 { margin: 20px 0 0; font-size: clamp(50px, 9vw, 96px); }
.hero h1 em { font-style: normal; color: var(--orange-deep); }
.hero-lead { max-width: 620px; margin: 22px auto 0; font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

/* ─── Section furniture ────────────────────────────────────────────────── */

section { padding: 96px 0; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--orange-deep); }
.intro { max-width: 680px; }
.intro.centered { margin-inline: auto; text-align: center; }
.intro h2 { font-size: clamp(34px, 4.6vw, 54px); }
.intro p { margin-top: 18px; font-size: 19px; color: var(--ink-soft); }

.band-alt { background: var(--paper-2); }
.band-night { background: var(--night); color: var(--cream); }
.band-night .eyebrow { color: #ffa264; }
.band-night .intro p, .band-night p { color: rgba(235, 222, 194, .72); }

/* ─── Insight cards ───────────────────────────────────────────────────── */

.cards { margin-top: 52px; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card-insight {
  padding: 26px; border-radius: 24px;
  background: var(--night-2); border: 1px solid var(--line-night);
  display: flex; flex-direction: column; gap: 12px;
}
.card-insight .kicker { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 680; letter-spacing: .11em; text-transform: uppercase; color: rgba(235, 222, 194, .55); }
.card-insight .kicker time { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 580; }
.card-insight h3 { font-size: 21px; color: var(--cream); }
.card-insight p { font-size: 15px; color: rgba(235, 222, 194, .66); }
.card-insight .answer { margin-top: 6px; display: flex; gap: 9px; }
.card-insight .answer span { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-size: 14px; font-weight: 640; }
.card-insight .answer .yes { background: var(--cream); color: var(--night); }
.card-insight .answer .no  { background: rgba(235, 222, 194, .10); color: var(--cream); }

/* ─── Panels: the app's surfaces, without the device ──────────────────── */
/*
 * No phone chassis, no status bar, no fixed aspect ratio. A device mockup
 * pins the design to one screen and dates the page the moment the hardware
 * changes, and a screenshot of one cannot reflow at all. These are the app's
 * own surfaces — its cards, its figures, its ring — rebuilt as ordinary page
 * elements that wrap and resize like everything else here.
 *
 * Which also means no container queries: with nothing to keep in proportion,
 * the type is just type.
 */

.panel {
  border-radius: 26px; padding: 22px;
  background: #0b0a09; color: var(--cream);
  text-align: left;
  display: grid; gap: 13px; align-content: start;
  box-shadow: 0 26px 60px -28px rgba(21, 17, 14, .4);
}
.panel-head { display: flex; align-items: center; gap: 11px; }
.panel-head .finn { width: 44px; flex: none; }
.panel-head .pill { padding: 3px 12px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 650; }
.panel-greet { font-size: 27px; font-weight: 780; letter-spacing: -.035em; line-height: 1.05; }
.panel-label { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(235,222,194,.55); }

.sub { padding: 17px; border-radius: 19px; background: rgba(255,255,255,.055); display: grid; gap: 9px; }
.sub .kick { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: rgba(235,222,194,.55); }
.sub .kick time { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 580; }
.sub h4 { margin: 0; font-size: 17px; font-weight: 720; letter-spacing: -.025em; line-height: 1.25; }
.sub .body { font-size: 14px; color: rgba(235,222,194,.6); }
.sub-btn { margin-top: 2px; padding: 11px; border-radius: 99px; background: #fff; color: #0b0a09; font-size: 14px; font-weight: 700; text-align: center; }
.sub-btns { display: flex; gap: 8px; }
.sub-btns span { flex: 1; padding: 11px; border-radius: 99px; text-align: center; font-size: 14px; font-weight: 700; }
.sub-btns .no  { background: rgba(235,222,194,.1); color: var(--cream); }
.sub-btns .yes { background: var(--cream); color: #0b0a09; }

.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sub-top span { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(235,222,194,.55); }
.figure { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.delta { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 650; color: #4af7a0; }
.delta.down { color: #ffa83d; }
.delta small { font-size: 14px; font-weight: 560; color: rgba(235,222,194,.5); }

.cats { display: grid; gap: 11px; }
.cat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; }
.cat em { font-style: normal; font-size: 17px; }
.cat b { font-size: 14px; font-weight: 650; }
.cat .amt { font-size: 14px; font-weight: 650; }
.cat .bar { grid-column: 2 / -1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.cat .bar i { display: block; height: 100%; border-radius: 99px; }

/* The ring is a conic gradient with a hole punched through it — one
 * declaration, and the three shares are the only numbers in it. */
.ring {
  width: 104px; aspect-ratio: 1; border-radius: 50%; flex: none;
  background: conic-gradient(#33b8ff 0 52%, #b983ff 52% 83%, #4af7a0 83% 100%);
  mask: radial-gradient(circle, transparent 57%, #000 58%);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%);
}
.alloc { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legend { display: grid; gap: 7px; font-size: 14px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.rows { display: grid; }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid rgba(235,222,194,.09); }
.row:last-child { border-bottom: 0; }
.row .tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(235,222,194,.35); flex: none; }
.row.done .tick { background: var(--cream); border-color: var(--cream); }
.row.done b { opacity: .45; text-decoration: line-through; }
.row .dot { width: 8px; height: 8px; border-radius: 50%; background: #4af7a0; flex: none; }
.row .dot.read { background: transparent; }
.row b { display: block; font-size: 14px; font-weight: 650; }
.row small { display: block; font-size: 13px; color: rgba(235,222,194,.5); }
.row .when { font-size: 13px; font-weight: 650; color: rgba(235,222,194,.5); white-space: nowrap; }
.row .when.due { color: #ffa83d; }

/* ─── Panel layouts ────────────────────────────────────────────────────── */

.panel-row { margin-top: 52px; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.panel-row figure { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.panel-row figcaption b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.panel-row figcaption span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

.showcase { margin-top: 56px; display: grid; gap: 48px; grid-template-columns: 1fr .9fr; align-items: center; }
.feature-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.feature-list b { display: block; font-weight: 700; }
.feature-list i { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--orange-wash); color: var(--orange-deep);
  display: grid; place-items: center; font: 700 12px/1 inherit; font-style: normal; }
.band-night .feature-list i { background: rgba(244,118,42,.18); color: #ffa264; }
.band-night .feature-list span { color: rgba(235,222,194,.72); }

/* ─── Ask Finn ─────────────────────────────────────────────────────────── */

.ask { display: grid; gap: 52px; grid-template-columns: 1fr 1fr; align-items: center; }
.prompt-list { margin-top: 28px; display: grid; gap: 10px; }
.prompt-list button {
  appearance: none; text-align: left; cursor: pointer;
  padding: 15px 19px; border-radius: 18px;
  border: 1px solid var(--line-2); background: transparent; color: inherit;
  font: inherit; font-weight: 560; transition: all .2s ease;
}
.prompt-list button:hover { border-color: var(--orange); }
.prompt-list button.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.conversation { padding: 22px; border-radius: 30px; background: var(--night); border: 1px solid var(--line-night); color: var(--cream); }
.conversation-top { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line-night); }
.conversation-top .finn { width: 40px; }
.conversation-top strong { display: block; font-size: 16px; }
.conversation-top span { font-size: 13px; color: rgba(235,222,194,.5); }
.message { margin-top: 16px; padding: 15px 18px; border-radius: 20px; font-size: 16px; }
.user-message { margin-left: auto; max-width: 86%; background: var(--orange); color: #fff; border-bottom-right-radius: 7px; }
.finn-message { background: rgba(235,222,194,.08); border-bottom-left-radius: 7px; }
.finn-message p { color: rgba(235,222,194,.86); }
.answer-metrics { margin-top: 15px; display: flex; gap: 10px; }
.answer-metrics span { flex: 1; padding: 12px; border-radius: 15px; background: rgba(235,222,194,.06); }
.answer-metrics small { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: rgba(235,222,194,.5); }
.answer-metrics b { font-size: 19px; font-weight: 720; }
.chat-input { margin-top: 18px; padding: 14px 18px; border-radius: 999px; background: rgba(235,222,194,.06); color: rgba(235,222,194,.45); display: flex; justify-content: space-between; font-size: 15px; }

/* ─── Privacy ──────────────────────────────────────────────────────────── */

.privacy { display: grid; gap: 52px; grid-template-columns: .9fr 1.1fr; align-items: start; }
.privacy-points { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.privacy-points article { padding: 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.band-alt .privacy-points article { background: #fff; }
.privacy-points h3 { font-size: 18px; }
.privacy-points p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ─── FAQ ──────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 52px; grid-template-columns: .8fr 1.2fr; align-items: start; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 650; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

/* ─── Closing ──────────────────────────────────────────────────────────── */

.closing { text-align: center; padding: 110px 0 120px; }
.closing .finn { width: 136px; margin: 0 auto 26px; }
.closing h2 { font-size: clamp(38px, 5.4vw, 66px); }
.closing p { max-width: 520px; margin: 20px auto 0; font-size: 19px; color: var(--ink-soft); }
.closing .btn { margin-top: 32px; }

/* ─── Footer ───────────────────────────────────────────────────────────── */

footer { padding: 54px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 34px; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer nav a:hover { color: var(--ink); }

/* ─── Legal and support pages ──────────────────────────────────────────── */

.doc { max-width: 760px; margin: 0 auto; padding: 72px 22px 96px; }
.doc h1 { font-size: clamp(42px, 6.4vw, 66px); margin-bottom: 10px; }
.doc .meta { margin-bottom: 38px; color: var(--muted); }
.doc h2 { margin: 46px 0 14px; font-size: 27px; }
.doc h3 { margin: 28px 0 9px; font-size: 19px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p { margin-bottom: 14px; }
.doc a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc .callout { margin: 28px 0; padding: 22px 24px; border: 1px solid rgba(244, 118, 42, .3); border-radius: 20px; background: var(--orange-wash); }
.doc .callout p { margin: 0; color: var(--ink); }
.kbd { display: inline-block; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; font: 650 13px/1.4 ui-monospace, monospace; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.card .ico { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 13px; background: var(--orange-wash); font-size: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ─── Narrow ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .cards, .privacy-points { grid-template-columns: 1fr 1fr; }
  .showcase, .ask, .privacy, .faq { grid-template-columns: 1fr; gap: 40px; }
  .panel-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  section { padding: 72px 0; }
  .cards, .privacy-points, .support-grid { grid-template-columns: 1fr; }
  .panel-row { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .figure { font-size: 30px; }
  .nav-links > a:not(.btn) { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-finn { width: 148px; }
  footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .finn-head, .finn-look, .finn-eye { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
