@font-face { font-family: "Open Sauce Two"; font-weight: 400; font-display: swap; src: url("../assets/fonts/open-sauce-two-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Two"; font-weight: 500; font-display: swap; src: url("../assets/fonts/open-sauce-two-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Two"; font-weight: 600; font-display: swap; src: url("../assets/fonts/open-sauce-two-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Two"; font-weight: 700; font-display: swap; src: url("../assets/fonts/open-sauce-two-latin-700-normal.woff2") format("woff2"); }

/* Freesy's own palette (BadHabit/DesignSystem/Tokens.swift). */
:root {
  --ink: #0A0C11;
  --text-2: #5B616D;
  --text-3: #8C929C;
  --pink: #F9699F;
  --pink-hot: #EC4F8A;
  --wine: #54011B;
  --bg: #FFFFFF;
  --card: #F2F2F4;
  --line: rgba(10, 12, 17, 0.08);
  --font: "Open Sauce Two", -apple-system, "SF Pro Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* nothing may push the page sideways on a phone */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Nav: one white glass pill, centred (Verdant). */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 22px 8px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(10, 12, 17, 0.06), 0 6px 24px rgba(10, 12, 17, 0.05);
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--ink); }

/* Hero (Verdant): quiet field, two lines with tinted word chips, one CTA, the scene underneath. */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }

.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10, 12, 17, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 70%);
}
.hero-copy { position: relative; z-index: 2; margin-top: clamp(120px, 16vh, 190px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.hero-title { margin: 0; font-weight: 400; font-size: clamp(40px, 6.2vw, 92px); line-height: 1.08; letter-spacing: -0.035em; }
.hero-title .line { display: block; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 0.18em; vertical-align: middle;
  padding: 0.08em 0.26em 0.08em 0.18em; margin: 0 0.06em; border-radius: 0.24em;
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.24; /* room for g and y below, the same padding above and below */
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7), 0 10px 30px rgba(10, 12, 17, 0.06);
}
.chip img { width: 0.74em; height: 0.74em; object-fit: contain; flex: none; }
/* The rotating chip (Vaping, Smoking, Drinking): words and icons stack in one cell and cross-fade; the word box's width
   follows the new word on Apple's spring curve, so the words around the chip slide over instead of jumping. */
.chip-icons, .chip-words { display: inline-grid; vertical-align: middle; }
.chip-icons > *, .chip-words > * { grid-area: 1 / 1; }
.chip-icons { width: 0.8em; height: 0.8em; flex: none; grid-template: 100% / 100%; }
.chip-words { transition: width 0.6s cubic-bezier(0.32, 0.72, 0, 1); white-space: nowrap; }
.chip-word { display: inline-block; justify-self: start; }
.chip-word i { display: inline-block; font-style: normal; will-change: transform, filter, opacity;
  /* each letter's box reaches the descenders, or a blurred g lost its tail until the blur ended */
  padding: 0.12em 0 0.22em; margin: -0.12em 0 -0.22em; }
.chip-icons img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.chip-lilac { background: #E9E3FF; color: #6A4FD8; transform: rotate(-1.2deg); }
.chip-peach { background: #FFE6EF; color: var(--pink-hot); transform: rotate(1.4deg); }
.hero-sub { margin: 14px 0 0; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; color: var(--text-2); }
.cta {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 16px; font-size: 18px; font-weight: 600; color: #fff;
  background: linear-gradient(#FF86B3, var(--pink) 55%, var(--pink-hot));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(160, 10, 70, 0.35), 0 10px 24px rgba(249, 105, 159, 0.4);
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1.2);
}
/* Until the App Store link exists the button is a label, not a link: it pointed at itself, so a click scrolled the
   page down to it and left a focus ring. */
span.cta { cursor: default; }
.cta:focus-visible, .key-link:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.cta svg { width: 20px; height: 20px; fill: currentColor; }
.cta:hover { transform: translateY(-1px) scale(1.02); }
.cta:active { transform: scale(0.98); }

/* The phone with floating cards (Tripsy), Jemi peeking over its top edge (js/jemi.js: eyes follow the pointer). */
.hero { min-height: 0; padding-bottom: 0; }
.hero-device { position: relative; z-index: 1; margin-top: 150px; width: 360px; height: 560px; }
/* A real iPhone 17 (Apple-style mockup "01 - iPhone 17 - Front", the one in the App Store frames in Figma): the
   body with its titanium band and buttons, the app screen in its 1631 × 3546 opening at 72 / 60, the island on top. */
.iphone { position: relative; aspect-ratio: 1774 / 3666; background: url("../assets/device/iphone17-frame.webp") center / 100% 100% no-repeat; }
.iphone::after { content: ""; position: absolute; inset: 0; background: url("../assets/device/iphone17-island.webp") center / 100% 100% no-repeat; pointer-events: none; }
.iphone-screen {
  position: absolute; left: 4.059%; top: 1.637%; width: 91.94%; height: 96.73%;
  object-fit: cover; object-position: top; border-radius: 13.67% / 6.29%;
}
.hero-device .iphone { position: absolute; inset: 0 0 auto 0; z-index: 2; filter: drop-shadow(0 40px 60px rgba(10, 12, 17, 0.16)); }
.hero-device::after { /* the phone runs into the next section, like Tripsy's */
  content: ""; position: absolute; left: -400px; right: -400px; bottom: -1px; height: 160px; z-index: 4;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
}
.hero-jemi { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); width: 190px; z-index: 1; }
.jemi svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 20px rgba(84, 1, 27, 0.16)); }

/* The cards around the phone are cut from the app's own screens (simulator shots): the habit row from Home, the
   wishlist, the habit page's level and recovery, and Jemi's pill. */
/* Each image carries its own shadow (baked in, 110 px of 720 around the card): CSS filters on these images painted
   blank white boxes in some browsers. --w is the card's width; the image is wider by the shadow and pulled back over it. */
.float { position: absolute; z-index: 3; height: auto; width: calc(var(--w) * 1.30556); margin: calc(var(--w) * -0.15278) 0 0 calc(var(--w) * -0.15278); }
.card-money, .card-jemi { margin: calc(var(--w) * -0.15278) calc(var(--w) * -0.15278) 0 0; } /* anchored on the right: the shadow spills that way */
.card-streak { left: -330px; top: 56px; --w: 348px; } /* wider than the card: the image keeps the whole pulsing dot past its corner */
.card-recovery { left: -300px; top: 210px; --w: 290px; }
.card-money { right: -300px; top: 40px; --w: 300px; }
.card-jemi { right: -330px; top: 236px; --w: 330px; }

/* The ribbon (the "Anything app" video): a row of phones rises from below as the page scrolls, in a soft wave. */
.ribbon { position: relative; padding: 140px 0 120px; overflow: hidden; }
.ribbon-copy { text-align: center; padding: 0 16px; }
.ribbon h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; }
.ribbon-copy p { margin: 10px auto 0; max-width: 520px; font-size: 18px; line-height: 1.3; color: var(--text-2); }
.ribbon-row { margin-top: 72px; display: flex; justify-content: center; gap: 28px; padding: 0 40px; }
.ribbon-phone { flex: none; width: clamp(150px, 15vw, 230px); will-change: transform; filter: drop-shadow(0 24px 40px rgba(10, 12, 17, 0.14)); }

/* Medals (Neura): a grid of quiet glass tiles fading out at the edges; the medals light up one by one. */
.medals { overflow: hidden; padding: 60px 16px 120px; display: flex; flex-direction: column; align-items: center; }
.medal-grid {
  display: grid; grid-template-columns: repeat(7, 120px); gap: 14px;
  mask-image: radial-gradient(ellipse 52% 60% at 50% 50%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 50%, #000 45%, transparent 100%);
}
.tile {
  width: 120px; height: 120px; border-radius: 22px; display: grid; place-items: center;
  background: #FAFAFB; box-shadow: inset 0 0 0 1px rgba(10, 12, 17, 0.06), 0 1px 2px rgba(10, 12, 17, 0.04);
}
.tile img { width: 72px; height: 72px; object-fit: contain; filter: grayscale(1) contrast(0.9); opacity: 0.45; transition: filter 0.7s ease, opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.9,.2,1.25); }
.tile.lit img { filter: none; opacity: 1; transform: scale(1.06); }
.medals-copy { margin-top: 56px; text-align: center; }
.medals h2 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; font-weight: 400; letter-spacing: -0.035em; color: #3B3F48; }
.medals h2 .hl { color: var(--pink); }
.medals-copy p { margin: 10px auto 0; max-width: 440px; font-size: 18px; line-height: 1.3; color: var(--text-3); }
.cta-soft { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.built-on { margin-top: 72px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #A3A8B1; }
/* our own filled glyphs (Material icon shapes, Apache 2.0), not Apple's artwork: Apple doesn't license its feature icons or SF Symbols for websites */
.built-on span { display: inline-flex; align-items: center; gap: 8px; }
.built-on svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* Personalities and chat (Bevel Intelligence): a dark band, the five Jemis in a row, the chosen one lit, and a phone
   whose chat answers the same message in that voice. */
.personas { background: #2A000E; color: #fff; padding: 120px 16px 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.persona-row { display: flex; align-items: flex-end; gap: clamp(16px, 4vw, 56px); }
.persona { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 14px; color: inherit; font: inherit; }
.persona img, .persona .jemi { width: clamp(64px, 8vw, 104px); transition: transform 0.45s cubic-bezier(.2,.9,.2,1.2), opacity 0.3s; opacity: 0.4; }
/* no filters here: Safari drew the blurred images' edges as lines and boxes */
.persona span { font-size: 15px; font-weight: 500; padding: 6px 14px; border-radius: 999px; color: rgba(255,255,255,0.45); transition: background 0.3s, color 0.3s; }
.persona:hover img, .persona:hover .jemi { opacity: 0.75; }
.persona.is-on img, .persona.is-on .jemi { opacity: 1; transform: scale(1.18) translateY(-6px); }
.persona.is-on span { background: rgba(255,255,255,0.12); color: #fff; }
.personas h2 { margin: 56px 0 0; text-align: center; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; color: rgba(255,255,255,0.55); }
.personas h2 .hl { color: #fff; }
.personas-sub { margin: 10px 0 0; max-width: 500px; text-align: center; font-size: 18px; line-height: 1.3; color: rgba(255,255,255,0.6); }
.chat-phone { width: clamp(280px, 26vw, 360px); margin: 64px 0 -200px; filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5)); }
/* The chat is the app's own screen, untouched (a simulator shot of ChatView: header, greeting, input bar); the page
   draws only the message and Jemi's answer, in the app's sizes, and replays them when a personality is picked. --pt is one iOS point of the 402 pt wide screen. */
.chat-phone { container-type: inline-size; }
.chat { --pt: calc(100cqw * 0.9194 / 402); /* the screen is 91.94 % of the phone (.iphone-screen); an element can't measure itself */ background: #4B0019 url("../assets/screens/chat-bg.webp") top / 100% auto no-repeat; color: #fff; font-size: calc(var(--pt) * 17); line-height: 1.4; overflow: hidden; }
.chat > * { position: absolute; }
.chat-me { right: calc(var(--pt) * 17); top: calc(var(--pt) * 225); padding: calc(var(--pt) * 7) calc(var(--pt) * 12); border-radius: 999px; white-space: nowrap;
  background: linear-gradient(#AB6673, #9F5262); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(90, 25, 40, 0.7); }
.chat-thought { left: calc(var(--pt) * 16); top: calc(var(--pt) * 283); color: rgba(255,255,255,0.6); }
.chat-thought::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-0.2em) rotate(45deg); }
.chat-reply { left: calc(var(--pt) * 16); right: calc(var(--pt) * 70); top: calc(var(--pt) * 312); line-height: 1.42; }
.chat-reply.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: rgba(255,255,255,0.7); animation: caret 0.9s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Key features (the "Get paid upfront" reference): a big rounded box, a tag, three cards with art, title, text, link. */
.keys { padding: 140px 24px 120px; }
.keys-box { max-width: 1240px; margin: 0 auto; padding: 96px clamp(20px, 5vw, 70px) 80px; border-radius: 40px; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.keys-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10,12,17,0.05); }
.keys-tag img { width: 16px; height: 16px; }
.keys h2 { margin: 22px 0 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.keys-sub { margin: 10px auto 0; max-width: 540px; font-size: 18px; line-height: 1.3; color: var(--text-2); }
.keys-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.key h3 { margin: 22px 0 0; line-height: 1.2; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.key p { margin: 4px 0 0; font-size: 16px; line-height: 1.3; color: var(--text-2); }
.key-art { position: relative; aspect-ratio: 1.09; border-radius: 26px; overflow: hidden; background: #F4F4F6; isolation: isolate; }
.key-art-money { background: radial-gradient(120% 90% at 50% 0%, #FFE3EE, #F9699F 75%); }
.key-art-slip { background: radial-gradient(120% 90% at 50% 0%, #F1EEFF, #9E8CF5 80%); }
.glass {
  position: absolute; left: 7%; right: 7%; bottom: 7%; padding: 14px 16px; border-radius: 18px; font-size: 14px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 1px rgba(255,255,255,0.5), 0 16px 40px rgba(60, 10, 40, 0.16);
}
.glass b { font-weight: 600; }

/* Money: the goal floats in a burst of light while its bar fills and the sum counts up to "Paid for". */
.rays { position: absolute; inset: -40%; z-index: -1; opacity: 0.55;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.5) 0deg 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 55%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 55%);
  animation: spin 60s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.goal-img { position: absolute; left: 50%; top: 11%; width: 33%; margin-left: -16.5%; filter: drop-shadow(0 24px 30px rgba(120, 10, 60, 0.35)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.goal-row { display: flex; justify-content: space-between; align-items: baseline; }
.goal-sum { color: var(--text-2); font-variant-numeric: tabular-nums; }
.goal-sum span { color: var(--ink); font-weight: 600; }
.goal-bar { margin-top: 10px; height: 8px; border-radius: 4px; background: rgba(10,12,17,0.08); overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #FF9EC4, #F55C94); transition: width 2.2s cubic-bezier(0.32, 0.72, 0, 1) 0.4s; }
.goal-done { position: absolute; right: 14px; top: -14px; padding: 5px 10px; border-radius: 999px; background: #15CB9A; color: #fff; font-size: 12px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(21, 203, 154, 0.4); opacity: 0; transform: scale(0.6); transition: opacity 0.3s 2.4s, transform 0.6s cubic-bezier(0.34, 1.6, 0.5, 1) 2.4s; }
.key.in .goal-bar i { width: 100%; }
.key.in .goal-done { opacity: 1; transform: none; }

/* Any habit (the reference's "Reseller partners", 1:1): Freesy in the middle, quiet rings, four habits at the compass points. */
.key-art-orbit { background: #F7F7F8; container-type: inline-size; }
.orbit-ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: inset 0 0 0 1px rgba(10,12,17,0.06); }
.orbit-ring.r1 { width: 30%; } .orbit-ring.r2 { width: 53%; } .orbit-ring.r3 { width: 76%; } .orbit-ring.r4 { width: 99%; box-shadow: inset 0 0 0 1px rgba(10,12,17,0.035); }
.orbit-dot { position: absolute; width: 15cqw; height: 15cqw; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(10,12,17,0.04), 0 6px 16px rgba(10,12,17,0.05); }
.orbit-dot img { width: 8cqw; height: 8cqw; object-fit: contain; }
.orbit-dot.s img { height: 9cqw; } /* the bottle is tall and thin: a little more height so it reads at the same weight */
.orbit-dot.n { left: 50%; top: 15%; } .orbit-dot.e { left: 82%; top: 50%; } .orbit-dot.s { left: 50%; top: 85%; } .orbit-dot.w { left: 18%; top: 50%; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 20cqw; height: 20cqw; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(10,12,17,0.025), 0 8px 20px rgba(10,12,17,0.08); }
.orbit-core img { width: 76%; border-radius: 50%; }

/* Slip (the reference's "Customers to optimize", 1:1): a photo, a white stat card at the bottom with a ring. */
.key-photo { position: absolute; inset: -6% 0 auto; width: 100%; height: 112%; object-fit: cover; }
.stat { position: absolute; left: 3%; right: 3%; bottom: 3.5%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 8px 24px rgba(10,12,17,0.12); }
.stat-ring { width: 40px; height: 40px; flex: none; rotate: -90deg; }
.stat-ring circle { fill: none; stroke: #F1F1F3; stroke-width: 4.5; }
.stat-ring .arc { stroke: var(--pink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(0.32, 0.72, 0, 1) 0.5s; }
.key.in .stat-ring .arc { stroke-dashoffset: 0; }
.stat span { display: block; font-size: 13px; color: var(--text-2); }
.stat-v { margin: 2px 0 0; display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.stat-v b { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-v em { font-style: normal; color: #15A97F; }
.stat-v small { font-size: 14px; color: var(--text-2); }
.key .stat-v { margin: 2px 0 0; color: var(--ink); line-height: 1.2; font-size: 14px; text-wrap: nowrap; }
.stat-more { margin-left: auto; width: 4px; height: 16px; background: radial-gradient(circle, #8C929C 1.5px, transparent 2px) 0 0 / 4px 6px repeat-y; }
.key-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(10,12,17,0.14); }
.key-link::after { content: "→"; }
.key-link-dark { background: var(--ink); color: #fff; box-shadow: none; }
.key p, .hero-sub, .ribbon-copy p, .medals-copy p, .personas-sub, .keys-sub { text-wrap: balance; }

/* Questions: plain answers people (and AI assistants) can quote; the same text is in the page's FAQPage data. */
.faq { padding: 40px 24px 120px; max-width: 760px; margin: 0 auto; }
.faq h2 { margin: 0 0 20px; text-align: center; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border: solid var(--text-3); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
.qa[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa p { margin: -6px 0 20px; max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--text-2); }

/* Finale: the green valley, a calm last word, the button. */
.finale { position: relative; min-height: 92svh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.finale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 22%, rgba(0,0,0,0) 55%, rgba(20,30,10,0.35) 100%); }
.finale { place-items: start center; }
.finale-copy { position: relative; z-index: 2; padding: 0 16px; margin-top: clamp(80px, 14vh, 160px); } /* the copy sits in the sky, above the trees */
.finale h2 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.finale p { margin: 10px 0 0; font-size: 19px; line-height: 1.3; color: var(--text-2); }

.footer { padding: 56px 24px 64px; display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; max-width: 1240px; margin: 0 auto; color: var(--text-2); font-size: 15px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.footer-brand img { border-radius: 6px; }
.footer-note { margin: 0; grid-column: 1; }
.footer-links { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 24px; align-items: center; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { margin: 0; grid-column: 1; color: var(--text-3); font-size: 13px; }

/* Tablets: smaller cards, tucked in so they overlap the phone a little instead of running off the screen. */
@media (min-width: 641px) and (max-width: 1180px) {
  .card-streak { left: -200px; top: 40px; --w: 262px; }
  .card-recovery { left: -190px; top: 170px; --w: 220px; }
  .card-money { right: -195px; top: 30px; --w: 230px; }
  .card-jemi { right: -205px; top: 190px; --w: 250px; }
}
@media (max-width: 640px) {
  .keys-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { grid-column: 1; grid-row: auto; }
  .medal-grid { grid-template-columns: repeat(5, 72px); gap: 10px; }
  .tile { width: 72px; height: 72px; border-radius: 16px; }
  .tile img { width: 44px; height: 44px; }
  .float { display: none; }
  .hero-device { width: 300px; height: 470px; }
  .nav { padding-right: 16px; }
  .nav-links { display: none; }
  /* each line stays whole: "a friend, not a lecture" is 10.25 em wide, so 8.6vw fits it with the 16 px gutters */
  .hero-title { font-size: 8.6vw; }
  .persona-row { gap: 10px; }
  .ribbon { padding: 100px 0 80px; }
  /* the phones are a strip you can swipe; it drifts on its own (js/ribbon.js) */
  .ribbon-row { justify-content: flex-start; gap: 12px; padding: 0 16px 40px; margin-top: 40px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .ribbon-row::-webkit-scrollbar { display: none; }
  .ribbon-phone { width: 42vw; filter: none; } /* a shadow inside a scrolling strip is cut into a grey box */
  .keys { padding: 80px 12px; }
  .keys-box { padding: 56px 16px 40px; border-radius: 28px; }
  .built-on { justify-content: center; gap: 14px 24px; font-size: 17px; margin-top: 56px; padding: 0 8px; }
  .persona img, .persona .jemi { width: 54px; }
  .persona span { padding: 5px 10px; font-size: 14px; }
}

/* Motion (js/motion.js). Without JS or with reduced motion none of this applies and everything is simply there. */
:root { --ios: cubic-bezier(0.32, 0.72, 0, 1); --out: cubic-bezier(0.16, 1, 0.3, 1); }
.motion [data-reveal=""] { opacity: 0; transform: translateY(40px); filter: blur(10px);
  transition: opacity 0.9s var(--out), transform 1.2s var(--out), filter 0.9s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal=""].in { opacity: 1; transform: none; filter: none; }
.motion .persona[data-reveal=""] { transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
/* a heading's lines rise out of their own masks; the padding keeps descenders inside the mask */
.ln { display: block; overflow: hidden; padding: 0.1em 0 0.26em; margin: -0.1em 0 -0.26em; }
.ln > span { display: inline-block; }
.motion [data-reveal="lines"] .ln > span { transform: translateY(115%) rotate(2deg); transform-origin: 0 100%;
  transition: transform 1.2s var(--out); transition-delay: calc(var(--i, 0) * 110ms); }
.motion [data-reveal="lines"].in .ln > span { transform: none; }

/* The hero on load. */
.motion .hero-title .line, .motion .hero-sub, .motion .hero .cta { opacity: 0; transform: translateY(36px); filter: blur(12px); }
.motion.loaded .hero-title .line, .motion.loaded .hero-sub, .motion.loaded .hero .cta { opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--out), transform 1.3s var(--out), filter 1s var(--out), scale 0.2s; transition-delay: calc(var(--i, 0) * 120ms + 100ms); }
.motion .hero-device .iphone { opacity: 0; transform: translateY(160px); }
.motion.loaded .hero-device .iphone { opacity: 1; transform: none; transition: opacity 1s var(--out) 0.45s, transform 1.6s var(--out) 0.45s; }
.motion .hero-jemi .jemi { opacity: 0; transform: translateY(80px) scale(0.8); }
.motion.loaded .hero-jemi .jemi { opacity: 1; transform: none; transition: opacity 0.8s var(--out) 1s, transform 1.2s cubic-bezier(0.34, 1.5, 0.5, 1) 1s; }
.motion .hero-device .float { opacity: 0; transform: translateY(50px) scale(0.92); }
.motion.loaded .hero-device .float { opacity: 1; transform: none;
  transition: opacity 0.9s var(--out), transform 1.3s var(--out); transition-delay: calc(var(--i, 0) * 140ms + 0.9s); }
.motion .hero-copy, .motion .hero-device .iphone, .motion .medal-grid, .motion .chat-phone { will-change: transform; }
.medal-grid { transform-origin: 50% 100%; }
.ribbon-row { transform-origin: 50% 100%; }
.motion.loaded .hero .cta:hover { transform: translateY(-1px) scale(1.02); transition-delay: 0s; }
