/*
 * The home page, in the store art's bright style (PLAN.md §3). Light only for
 * now (§3.0), so nothing here reads prefers-color-scheme.
 *
 * Contrast, by the WCAG formula. Ink (#14161a) sits only on a gradient's
 * three light stops (6.2:1 to 13.1:1), so each band's stops are placed for
 * its layout: the words on the light side, the app cards and stickers on the
 * deep side. Ink on cream 16.7:1; muted text 6.0:1 on cream; orange text
 * #b33a14 5.5:1 on cream; white on the orange fill #c13b17 5.4:1.
 *
 * The middleware cuts the page down for each visitor (their phone and the
 * store switch) and marks the root element with data-stores and, on a phone,
 * data-platform, which the rules below read.
 */

/* Self-hosted: loading the page tells nobody but us. The same files as pages.css. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-500-700-800-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-400-500-600-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #14161a;
  --muted: #5a5f66;
  --cream: #fff4ec;
  --card: #ffffff;
  --line: #f3e3d6;
  --ring: #ffd2bd;
  --wash: #ffe9dc;
  --fill: #c13b17;
  --fill-down: #a8320f;
  --orange: #ff6a35;
  --orange-text: #b33a14;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --top: 56px;
  --lift: 0 6px 22px rgba(20, 22, 26, 0.08), 0 1px 3px rgba(20, 22, 26, 0.06);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--top) + 12px);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
/* Google's mark, small and raised: Public Sans draws ™ on the line, where it reads as "TM". */
.tm { font-size: 0.6em; line-height: 0; vertical-align: 0.6em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- sections ---------- */
.sec { padding-block: 44px; }
.band {
  position: relative;
  overflow: hidden;
  padding-block: 40px 44px;
  border-radius: 28px;
  background: linear-gradient(var(--angle, 180deg), var(--g1) 0%, var(--g2) var(--at2, 20%), var(--g3) var(--at3, 50%), var(--g4) var(--at4, 80%), var(--g5) 100%);
}
.band + .band { margin-top: 12px; }
/* The store kit's five gradients, light stop first. */
.sunset   { --g1: #ffc59a; --g2: #ffb07a; --g3: #ff8a4c; --g4: #e5552a; --g5: #b5303f; }
.berry    { --g1: #ffb8cd; --g2: #ff96b5; --g3: #ff5c8a; --g4: #d81b60; --g5: #7b1fa2; }
.ocean    { --g1: #a8dcff; --g2: #7cc8ff; --g3: #2ea4f2; --g4: #3d5afe; --g5: #6a1b9a; }
.marigold { --g1: #ffd36e; --g2: #ffbd45; --g3: #ff9800; --g4: #f4511e; --g5: #c2185b; }
.lagoon   { --g1: #9cebcf; --g2: #6ddcb6; --g3: #16b98f; --g4: #00897b; --g5: #1e5aa8; }

h2 { font-size: 2rem; line-height: 1.06; }
.sub { margin-top: 10px; font-size: 1.125rem; font-weight: 600; line-height: 1.38; max-width: 34rem; }

/* The cream brush under a heading's last words, and an ink sparkle after them, as in every store caption. */
h1, .band h2 { isolation: isolate; }
.mark { position: relative; white-space: nowrap; }
.mark::before {
  content: ""; position: absolute; z-index: -1; left: -0.05em; width: calc(100% + 0.07em); top: 0.84em; height: 0.3em;
  background: url("/assets/launch/deco/underline-cream.svg") center / 100% 100% no-repeat;
}
.mark::after {
  content: ""; position: absolute; right: -0.55em; top: -0.1em; width: 0.42em; height: 0.42em;
  background: url("/assets/launch/deco/sparkle-ink.svg") center / contain no-repeat;
}

/* Short lines, each led by an emoji in a soft orange circle (the owner's rule). */
.em {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); box-shadow: inset 0 0 0 2px var(--ring);
  font-size: 1.2rem; line-height: 1; font-style: normal;
}
.lines { display: grid; gap: 10px; margin-top: 18px; max-width: 34rem; }
.lines li { display: flex; align-items: center; gap: 12px; line-height: 1.38; }
.fine { margin-top: 16px; font-size: 0.9375rem; line-height: 1.42; max-width: 34rem; }
.more { margin-top: 8px; }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration-thickness: 2px; }

/* ---------- buttons and badges ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px;
  border-radius: 999px; background: var(--fill); color: #fff; font-family: var(--display); font-weight: 700;
  font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.pill:hover, .pill:active { background: var(--fill-down); }
.pill-big { min-height: 52px; padding-inline: 28px; font-size: 1.125rem; }

/* Official artwork, 48 px tall, a quarter of that clear all round, never scaled or moved on hover. */
.badge { display: block; flex: none; border-radius: 8px; }
.badge img { display: block; height: 48px; width: auto; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(20, 22, 26, 0.06);
}
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--top); max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none;
}
.brand-icon { display: block; flex: none; border-radius: 8px; }
.brand span { font-weight: 500; }
.brand b { font-weight: 800; }
.top-nav { display: none; }

/* ---------- hero ---------- */
.hero { border-radius: 0 0 28px 28px; padding-block: 14px 36px; --at2: 18%; --at3: 50%; --at4: 80%; }
.eyebrow { display: none; margin-bottom: 8px; font-weight: 700; font-size: 1rem; }
h1 { font-size: 2.75rem; line-height: 1; }
.hero-sub { margin-top: 10px; font-size: 1.125rem; font-weight: 600; line-height: 1.38; max-width: 30rem; }
.hero-sub span { display: block; }

.get { margin-top: 14px; scroll-margin-top: calc(var(--top) + 24px); }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.also { display: inline-block; padding-block: 10px; font-weight: 700; line-height: 1.5; text-decoration-thickness: 2px; }
.soon { margin-top: 10px; font-weight: 600; max-width: 30rem; }
.qr {
  display: none; align-items: center; gap: 16px; margin-top: 16px; padding: 10px 18px 10px 10px; max-width: 24rem;
  border-radius: 20px; background: var(--card); box-shadow: var(--lift);
}
.qr img { display: block; width: 132px; height: 132px; flex: none; }
.qr p { font-weight: 600; line-height: 1.35; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips li {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 14px 5px 7px;
  border-radius: 999px; background: var(--card); font-size: 0.9375rem; font-weight: 600; line-height: 1.25;
  box-shadow: 0 3px 10px rgba(42, 10, 24, 0.12), 0 1px 2px rgba(42, 10, 24, 0.1);
}
/* A round orange tick, drawn: a circle, and a check from two borders. */
.chips li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); }
.chips li::after {
  content: ""; position: absolute; left: 15px; top: 50%; width: 5px; height: 10px; margin-top: -6.5px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.adds-link { margin-top: 12px; font-size: 0.875rem; line-height: 1.4; }
/* 44 px to tap, without taking 44 px of the first screen: the padding is given back by the margin. */
.adds-link a { display: inline-block; padding-block: 12px; margin-block: -12px; font-weight: 600; text-decoration-thickness: 1.5px; }

/* ---------- app cards ---------- */
/* A real screen, cut to one of the app's cards: rounded with its own radius ratio
   (--r, from MANIFEST.md), the store kit's two-layer shadow, turned a little.
   A tape or sticker inside a card rides on its corner and turns with it. */
.scene { position: relative; }
.card { position: relative; container-type: inline-size; }
.card picture, .card > picture img { display: block; width: 100%; height: auto; }
.card > picture img {
  border-radius: calc(var(--r) * 100cqi);
  box-shadow: 0 4.6cqi 11cqi rgba(20, 22, 26, 0.3), 0 1.1cqi 2.6cqi rgba(20, 22, 26, 0.18);
}
.ios-pledge { --r: 0.0900; }
.ios-whos-in { --r: 0.0925; }
.ios-moment { --r: 0.1324; }
.ios-how-it-works { --r: 0.0950; }
.ios-minutes { --r: 0.0908; }
.ios-ask { --r: 0.0925; }
.ios-name { --r: 0.0758; }
.ios-your-pledge { --r: 0.0925; }
.ios-we-made-it { --r: 0.1275; }
.android-pledge { --r: 0.0686; }
.android-whos-in { --r: 0.0610; }
.android-moment { --r: 0.0826; }
.android-ask { --r: 0.0610; }
.android-name { --r: 0.0694; }
.android-your-pledge { --r: 0.0610; }
.android-we-made-it { --r: 0.0949; }
.android-block { --r: 0.1042; }

/* Stickers and doodles from the store kit: decoration at the edges, never over words or controls. */
.sticker, .doodle, .tape { position: absolute; z-index: 5; display: block; height: auto; pointer-events: none; }
.sticker { width: 52px; }
.doodle { width: 34px; }
/* Tape across a card's corner, centred on it and square to its diagonal, so it
   covers only a small triangle of the card's empty margin. */
.tape { width: 74px; filter: drop-shadow(0 2px 3px rgba(40, 8, 24, 0.22)); }
.card .tape { top: 0; right: 0; transform: translate(50%, -50%) rotate(45deg); }

.hero-scene { margin-top: 12px; padding-bottom: 6px; }
.hero-scene .c1 { z-index: 3; width: 92%; max-width: 420px; transform: rotate(-2.2deg); }
.hero-scene .c2 { z-index: 2; width: 88%; max-width: 400px; margin: -9% 0 0 auto; transform: rotate(1.6deg); }
.hero-scene .c3 { z-index: 1; width: 58%; max-width: 270px; margin: -8% 0 0 8%; transform: rotate(2.6deg); }
/* On a phone the pledge card sits right under the Screen Time link, so its tape waits for wider screens. */
.hero-scene .tape { display: none; }
.hero-scene .s-heart { right: 6%; bottom: 7%; transform: rotate(-10deg); }
.hero-scene .d-rays { right: 21%; bottom: 13%; transform: rotate(-10deg); }
.hero-scene .d-star { right: 2%; bottom: 30%; width: 22px; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 10px; margin-top: 20px; }
/* align-content: start keeps the three headings in line when the cards stretch to one height. */
.steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: start; align-content: start;
  padding: 16px; border-radius: 22px; background: var(--card); box-shadow: var(--lift);
}
.steps .em { grid-row: span 2; }
.steps h3 { font-size: 1.125rem; line-height: 1.25; padding-top: 2px; }
.steps p { color: var(--muted); line-height: 1.42; }

/* The pledge filling up, as on the invite page: two in, everyone in, Day 1. */
.fill {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 6px;
  margin-top: 10px; padding: 14px 10px; border-radius: 22px; background: var(--card); box-shadow: var(--lift);
}
.fill-step { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; }
.fill-seats { display: flex; gap: 4px; }
.seat { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px dashed #d0602f; }
.seat.in { border: 0; background: linear-gradient(160deg, #ff8a4c, #e5552a); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.fill-say { font-size: 0.8125rem; font-weight: 700; line-height: 1.2; }
.fill-big { font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 1; color: var(--orange-text); white-space: nowrap; }
.fill-arrow { align-self: center; width: 10px; height: 10px; margin-right: 4px; border: solid var(--ring); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.solo { margin-top: 14px; font-weight: 600; }

/* ---------- your feed can wait (berry) ---------- */
.feed { --at2: 20%; --at3: 46%; --at4: 78%; }
.feed-scene { margin-top: 26px; padding-bottom: 52px; }
.feed-scene .c1 { z-index: 2; width: 90%; max-width: 420px; transform: rotate(-1.8deg); }
.feed-scene .c2 { z-index: 3; width: 88%; max-width: 400px; margin: 2% 0 0 auto; transform: rotate(2deg); }
.feed-scene .s-sun { top: -24px; right: -4px; width: 54px; transform: rotate(10deg); }
.feed-scene .s-shoe { left: 2%; bottom: -2px; width: 52px; transform: rotate(-12deg); }
.feed-scene .s-tree { right: 3%; bottom: -6px; width: 54px; transform: rotate(8deg); }
.feed-scene .d-trail { left: 20%; bottom: 6px; width: 58%; height: 30px; }
.block-scene .c1 { width: 72%; max-width: 300px; margin-inline: auto; transform: rotate(-1.5deg); }

/* ---------- out of minutes? (ocean) ---------- */
.ask { --at2: 20%; --at3: 50%; --at4: 80%; }
.ask-scene { margin-top: 26px; padding-bottom: 34px; }
.ask-scene .c1 { z-index: 3; width: 94%; max-width: 430px; transform: rotate(-1.5deg); }
.ask-scene .c2 { z-index: 2; width: 86%; max-width: 390px; margin: -8% 0 0 auto; transform: rotate(1.2deg); }
.ask-scene .s-corner { z-index: 6; top: 2px; right: 3px; width: 13%; transform: translate(30%, -45%) rotate(12deg); }
.ask-scene .s-ticket { left: 1%; bottom: 0; width: 58px; transform: rotate(-10deg); }
.ask-scene .d-heart { right: 6%; bottom: 4px; width: 26px; transform: rotate(12deg); }
.ask-scene .d-squiggle { left: 30%; bottom: 6px; width: 90px; height: 22px; }

/* ---------- changing your mind takes a day (cream) ---------- */
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.day-badge { flex: none; }
/* The app's minutes ring, in sunset, on a white sticker. */
.day-badge .ring {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--card) 79%, transparent 80%),
    conic-gradient(from 200deg, #ffc59a, #ff8a4c, #e5552a, #b5303f, #ffc59a);
  box-shadow: 0 0 0 5px var(--card), 0 8px 20px rgba(20, 22, 26, 0.16);
  transform: rotate(-6deg);
}
.hours { font-family: var(--display); font-weight: 800; font-size: 1.125rem; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.hours b { font-size: 2.75rem; letter-spacing: -0.04em; }
.day-b .lines .em { background: var(--card); }

/* A line from the research, with its source. */
.note {
  margin-top: 16px; padding: 14px 16px; max-width: 34rem; border-radius: 20px;
  background: var(--card); box-shadow: var(--lift); font-weight: 600; line-height: 1.42;
}
.note .src { margin-top: 6px; font-size: 0.875rem; font-weight: 500; }
/* 44 px to tap, without moving the line: the padding is given back by the margin. */
.note .src a, .study .src a { display: inline-block; padding-block: 13px; margin-block: -13px; color: var(--orange-text); }

/* ---------- celebrate the finish (marigold) ---------- */
/* The phone bunting is 72/390 of the width tall, so the heading starts 10 px under its flags at any phone width. */
.finish { padding-top: calc(18.5% + 10px); --at2: 20%; --at3: 50%; --at4: 82%; }
.bunting { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; }
.b-wide { display: none; }
.closing { margin-top: 16px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.finish-scene { margin-top: 30px; padding-bottom: 56px; }
.finish-scene .c1 { z-index: 3; width: 74%; max-width: 320px; margin-inline: auto; transform: rotate(-2deg); }
/* On a computer the finish also shows the road to it (plan §3.7): the pledge running, then a week all kept. */
.finish-scene .c2, .finish-scene .c3 { display: none; }
.finish-scene .s-party1 { left: 2%; bottom: 4px; width: 56px; transform: rotate(-12deg); }
.finish-scene .s-heart { left: 50%; bottom: -2px; width: 48px; margin-left: -24px; transform: rotate(4deg); }
.finish-scene .s-party2 { right: 2%; bottom: 4px; width: 56px; transform: rotate(12deg) scaleX(-1); }
.confetti { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.confetti i { position: absolute; display: block; width: 10px; height: 4px; border-radius: 2px; background: var(--c, #fff4ec); transform: rotate(var(--t, 20deg)); }
.confetti i:nth-child(1) { --c: #fff4ec; left: 4%; top: 8%; --t: 30deg; }
.confetti i:nth-child(2) { --c: #d81b60; left: 10%; top: 30%; --t: -20deg; }
.confetti i:nth-child(3) { --c: #3fd1a8; left: 3%; top: 55%; --t: 60deg; }
.confetti i:nth-child(4) { --c: #5bb8ff; left: 12%; top: 76%; --t: 10deg; }
.confetti i:nth-child(5) { --c: #7b1fa2; right: 5%; top: 12%; --t: -40deg; }
.confetti i:nth-child(6) { --c: #ff5c8a; right: 11%; top: 34%; --t: 25deg; }
.confetti i:nth-child(7) { --c: #fff4ec; right: 3%; top: 58%; --t: 80deg; }
.confetti i:nth-child(8) { --c: #3fd1a8; right: 14%; top: 80%; --t: -15deg; }
.confetti i:nth-child(9) { --c: #5bb8ff; left: 22%; top: 2%; --t: 50deg; }
.confetti i:nth-child(10) { --c: #ff5c8a; right: 24%; top: 3%; --t: -60deg; }
.confetti i:nth-child(11) { --c: #fff; left: 30%; bottom: 14%; --t: 35deg; }
.confetti i:nth-child(12) { --c: #d81b60; right: 30%; bottom: 16%; --t: -30deg; }

/* ---------- friends never see your screen time (lagoon) ---------- */
.privacy { --at2: 16%; --at3: 54%; --at4: 84%; }
.see-card { margin-top: 18px; padding: 18px; border-radius: 24px; background: var(--card); box-shadow: var(--lift); max-width: 40rem; }
.see { display: grid; gap: 16px; }
.see h3 { font-size: 1.0625rem; }
.see ul { display: grid; gap: 7px; margin-top: 8px; }
.see li { position: relative; padding-left: 30px; line-height: 1.35; }
/* Round marks, as the app draws them: a green tick for what friends see, a grey cross for never. */
.see li::before { content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; }
.ticks li::before { background: #16a37f; }
.ticks li::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.crosses li::before { background: #e9eaec; }
.crosses li::after {
  content: ""; position: absolute; left: 5px; top: 4px; width: 12px; height: 12px;
  background:
    linear-gradient(45deg, transparent 42%, #4a4f57 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #4a4f57 42% 58%, transparent 58%);
}
.see-notes { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; line-height: 1.42; }
.see-card .more { margin-top: 4px; }
.see-card .more a { color: var(--orange-text); }
.privacy-scene { margin-top: 30px; padding-bottom: 30px; }
.privacy-scene .c1 { z-index: 3; width: 92%; max-width: 430px; transform: rotate(1.2deg); }
.privacy-scene .c2 { z-index: 2; width: 78%; max-width: 360px; margin: -2% auto 0 5%; transform: rotate(-1.6deg); }
.privacy-scene .s-letter { z-index: 6; top: 0; right: 0; width: 15%; transform: translate(22%, -42%) rotate(10deg); }
/* The Android title runs to the card's right edge, so its letter sits off the other corner, as on the Play frame. */
.privacy-scene .android-name .s-letter { right: auto; left: 0; transform: translate(-28%, -72%) rotate(-10deg); }
.privacy-scene .tape { top: auto; bottom: 0; transform: translate(50%, 50%) rotate(-45deg); }

/* ---------- phones and price ---------- */
.proof { padding-bottom: 6px; }
.proof-cards { display: grid; gap: 12px; }
.proof-card { padding: 20px 18px; border-radius: 24px; background: var(--card); box-shadow: var(--lift); }
.proof-card .em { margin-bottom: 10px; }
.proof-card h3 { font-size: 1.3125rem; line-height: 1.15; }
.proof-card p { margin-top: 6px; line-height: 1.42; }
.proof-card .more { margin-top: 2px; }
.proof-card .more a { color: var(--orange-text); }
.phones { background: linear-gradient(160deg, #ffffff 40%, #e4f3ff); }
.price { background: linear-gradient(160deg, #ffffff 40%, #fff1cc); }

/* ---------- what a pledge adds ---------- */
/* The white card on ocean's two light stops, as the store frames set their cards on colour; ink stays on the white. */
.adds {
  margin-top: 12px; padding-block: 28px; border-radius: 28px;
  background: linear-gradient(180deg, #a8dcff 0%, #7cc8ff 100%);
}
.adds-card { padding: 22px 18px; border-radius: 28px; background: var(--card); box-shadow: var(--lift); max-width: 46rem; margin-inline: auto; }
.adds-intro { margin-top: 10px; line-height: 1.45; }
.adds-rows { display: grid; gap: 14px; margin-top: 18px; }
.adds-rows li { display: flex; gap: 12px; align-items: flex-start; }
.adds-rows h3 { font-size: 1.125rem; line-height: 1.25; padding-top: 8px; }
.adds-rows p { margin-top: 3px; color: var(--muted); line-height: 1.42; }
.adds-close { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.45; }
.adds-android { margin-top: 8px; font-weight: 600; line-height: 1.42; }

/* ---------- research ---------- */
.studies { display: grid; gap: 10px; margin-top: 20px; }
.study { padding: 18px; border-radius: 22px; background: var(--card); box-shadow: var(--lift); }
.study h3 {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-family: var(--body); font-size: 0.875rem;
  font-weight: 700; letter-spacing: 0; line-height: 1.4; background: var(--tint, var(--wash));
}
.s-limits { --tint: #ffe2cc; }
.s-check { --tint: #d6f5ea; }
.s-out { --tint: #ffe0ea; }
.s-slack { --tint: #dcefff; }
.study p { margin-top: 10px; line-height: 1.45; }
.study .src { margin-top: 8px; font-size: 0.875rem; }
.study .src a { font-weight: 600; }
.caveat { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; max-width: 40rem; }

/* ---------- questions ---------- */
.faq { padding-top: 12px; }
.faq-cols { display: grid; gap: 8px; margin-top: 20px; }
.faq-col { display: grid; gap: 8px; align-content: start; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: var(--lift); }
.faq summary {
  position: relative; display: block; min-height: 52px; padding: 14px 58px 14px 16px; cursor: pointer;
  font-weight: 700; line-height: 1.35; list-style: none; border-radius: 18px; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
/* A round orange plus that turns into a cross as the row opens. */
.faq summary::before {
  content: ""; position: absolute; right: 12px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; background: var(--wash); box-shadow: inset 0 0 0 2px var(--ring);
}
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--orange-text), var(--orange-text)) center / 14px 2.5px no-repeat,
              linear-gradient(var(--orange-text), var(--orange-text)) center / 2.5px 14px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.answer { padding: 0 16px 16px; line-height: 1.5; }
.answer a { color: var(--orange-text); }

/* ---------- start a pledge tonight: sunset's light stops only, under words ---------- */
/* Light behind the words in the middle, deeper at the edges where only stickers sit. */
.final { background: radial-gradient(ellipse 90% 75% at 50% 42%, #ffc59a 0%, #ffb07a 42%, #ff8a4c 74%, #e5552a 100%); }
.final-in { position: relative; text-align: center; }
.final h2 { font-size: 2.25rem; }
.final .sub { margin-inline: auto; max-width: 40rem; }
.final-get { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 22px; }
.final-get .qr { margin-top: 0; text-align: left; }
.final-free { margin-top: 14px; font-weight: 700; }
.maker { margin: 24px auto 0; max-width: 30rem; padding-top: 18px; border-top: 2px solid rgba(20, 22, 26, 0.12); }
.maker a, .answer a { display: inline-block; padding-block: 10px; margin-block: -10px; font-weight: 700; }
.final .s-heart { left: 2px; top: -8px; width: 42px; transform: rotate(-10deg); }
.final .s-party { right: 2px; top: -12px; width: 44px; transform: rotate(10deg); }

/* ---------- footer ---------- */
.foot { padding-block: 18px 36px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a, .link-button { display: inline-block; padding-block: 12px; color: var(--ink); font-weight: 600; }
.link-button { font: inherit; font-weight: 600; background: none; border: 0; padding-inline: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot p { margin-top: 6px; }
.foot .credits { margin-top: 8px; font-size: 0.75rem; }

/* ---------- the cookie question, as an app sheet ---------- */
/* Both answers look exactly the same: saying no is as easy as saying yes. */
.consent {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 30rem; margin-inline: auto; padding: 18px; border-radius: 24px; background: var(--card);
  box-shadow: 0 18px 48px rgba(20, 22, 26, 0.28), 0 2px 6px rgba(20, 22, 26, 0.12);
}
.consent p a { font-weight: 600; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.consent button {
  min-height: 48px; padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ring);
  font-family: var(--display); font-size: 1rem; font-weight: 700;
}
.consent button:hover { background: var(--wash); }

/* ---------- the narrowest phones: the brand and the button share 288 px ---------- */
@media (max-width: 359px) {
  .top-in { gap: 10px; }
  .brand { gap: 8px; font-size: 1.125rem; }
  .brand-icon { width: 28px; height: 28px; }
  .top .pill { padding-inline: 14px; font-size: 0.9375rem; }
  .fill { padding-inline: 8px; gap: 4px; }
  .fill-seats { gap: 3px; }
  .seat { width: 15px; height: 15px; }
  .fill-arrow { width: 8px; height: 8px; margin-right: 2px; }
  /* "Friends never see your screen time" stays on one line in its pill. */
  .chips li { font-size: 0.875rem; }
}

/* ---------- phones: the chips in two rows, so the pledge card's faces stay in the first screen (plan §3.2) ---------- */
@media (max-width: 639px) {
  .chip-more { display: none; }
}

/* ---------- phones and tablets: the final band's stickers sit above its heading, never on it ---------- */
@media (max-width: 899px) {
  .final { padding-top: 72px; }
  .final .s-heart { top: -58px; }
  .final .s-party { top: -62px; }
}

/* ---------- wider phones ---------- */
@media (min-width: 400px) {
  .eyebrow { display: block; }
}

/* ---------- large phones and up: the wide bunting, which stays short, so the heading keeps its place ---------- */
@media (min-width: 480px) {
  .b-narrow { display: none; }
  .b-wide { display: block; }
  .finish { padding-top: 88px; }
}

/* ---------- tablets: each scene keeps the phone's layout, centred, at a width the cards' larger files fill sharply ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  .scene { max-width: 460px; margin-inline: auto; }
}

/* ---------- tablets ---------- */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .steps .em { grid-row: auto; margin-bottom: 8px; }
  .fill { max-width: 34rem; }
  .see { grid-template-columns: 1.4fr 1fr; gap: 24px; }
  .proof-cards { grid-template-columns: 1fr 1fr; }
  /* With one store, the phones card goes and the price card stands alone. */
  html:not([data-stores="both"]) .proof-cards { grid-template-columns: minmax(0, 34rem); justify-content: center; }
  .studies { grid-template-columns: 1fr 1fr; }
}

/* ---------- computers ---------- */
@media (min-width: 900px) {
  :root { --gutter: 32px; --top: 64px; }
  body { font-size: 1.125rem; }
  .sec { padding-block: 88px; }
  /* The cream sections that follow each other join closely, as on phones. */
  .proof { padding-bottom: 16px; }
  .faq { padding-top: 32px; }
  .band { margin-inline: 16px; border-radius: 40px; padding-block: 80px; }
  .band + .band { margin-top: 16px; }
  h2 { font-size: 3rem; }
  .sub { font-size: 1.25rem; }
  .lines { gap: 14px; margin-top: 24px; }
  .em { width: 44px; height: 44px; font-size: 1.3rem; }
  .top-nav { display: flex; gap: 4px; margin-left: auto; }
  .top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; font-weight: 600; text-decoration: none; border-radius: 999px; }
  .top-nav a:hover { background: var(--wash); }
  .brand { font-size: 1.375rem; }

  .hero { margin-top: 12px; padding-block: 64px 72px; --angle: 100deg; --at2: 24%; --at3: 50%; --at4: 80%; }
  /* Halves, not 5 and 7 of 12: at 72 px the headline needs about 500 px to sit on two lines. */
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  h1 { font-size: clamp(3.25rem, 1rem + 4.2vw, 4.5rem); line-height: 0.98; }
  .eyebrow { font-size: 1.0625rem; margin-bottom: 12px; }
  .hero-sub { margin-top: 18px; font-size: 1.3125rem; max-width: 36rem; }
  .get { margin-top: 24px; }
  /* A computer gets both badges, with a small QR card under them: 96 px still gives the code's 33 modules about 3 px each. */
  html:not([data-platform]) .qr { display: flex; }
  .qr { gap: 12px; padding: 8px 16px 8px 8px; max-width: 19rem; border-radius: 16px; }
  .qr img { width: 96px; height: 96px; }
  .qr p { font-size: 0.9375rem; }
  .chips { margin-top: 20px; gap: 8px; }
  .chips li { min-height: 38px; font-size: 1rem; }
  .adds-link { margin-top: 16px; font-size: 1rem; }
  /* The App Store search art's scene: the pledge and Who's in side by side, the moment below. */
  .hero-scene { margin: 0 -12px 0 0; aspect-ratio: 1 / 0.9; }
  .hero-scene .card { position: absolute; max-width: none; margin: 0; }
  .hero-scene .c1 { left: 0; top: 16%; width: 56%; }
  .hero-scene .c2 { left: 48%; top: 3%; width: 52%; }
  .hero-scene .c3 { left: 30%; top: 60%; width: 42%; }
  .hero-scene .s-heart { right: 6%; bottom: 8%; width: 84px; }
  .hero-scene .d-rays { right: 19%; bottom: 17%; width: 44px; }
  .hero-scene .d-star { right: 1%; bottom: 40%; width: 28px; }
  .tape { width: 92px; }
  .hero-scene .tape { display: block; right: auto; left: 0; transform: translate(-50%, -50%) rotate(-45deg); }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .split.flip > .copy { order: 2; }
  .feed { --angle: 270deg; --at2: 22%; --at3: 50%; --at4: 80%; }
  .ask { --angle: 90deg; --at2: 22%; --at3: 50%; --at4: 80%; }
  .finish { --angle: 270deg; --at2: 22%; --at3: 50%; --at4: 82%; padding-top: 128px; }
  .privacy { --angle: 90deg; --at2: 24%; --at3: 56%; --at4: 86%; }
  .feed-scene, .ask-scene, .finish-scene, .privacy-scene { margin-top: 0; }
  .sticker { width: 80px; }
  .feed-scene { padding-bottom: 96px; }
  .feed-scene .s-sun { top: -40px; right: -10px; width: 84px; }
  .feed-scene .s-shoe { width: 76px; }
  .feed-scene .s-tree { width: 80px; }
  .ask-scene .s-ticket { width: 84px; }
  .finish-scene { padding-bottom: 104px; aspect-ratio: 1 / 0.86; }
  .finish-scene .card { position: absolute; margin: 0; max-width: none; }
  .finish-scene .c1 { left: 40%; top: 0; width: 58%; }
  .finish-scene .c2 { display: block; z-index: 1; left: 0; top: 4%; width: 44%; transform: rotate(-5deg); }
  .finish-scene .c3 { display: block; z-index: 2; left: 5%; top: 42%; width: 32%; transform: rotate(4deg); }
  .finish-scene .s-party1, .finish-scene .s-party2 { width: 80px; }
  .finish-scene .s-heart { width: 70px; margin-left: -35px; }

  /* The heading first, beside its ring, level with the list on the right. */
  .day-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .day-head { flex-direction: row; align-items: center; gap: 28px; }
  .day-badge .ring { width: 150px; height: 150px; }
  .hours { font-size: 1.75rem; }
  .hours b { font-size: 3.5rem; }
  .day-b .lines { margin-top: 6px; }

  .steps h3, .adds-rows h3 { font-size: 1.3125rem; }
  .fill { margin-inline: auto; }
  .how .solo { text-align: center; }
  .proof-cards { gap: 20px; max-width: 60rem; margin-inline: auto; }
  .proof-card { padding: 30px 32px; }
  .proof-card h3 { font-size: 1.75rem; }
  .adds { margin-inline: 16px; border-radius: 40px; padding-block: 64px; }
  .adds-card { padding: 40px 44px; }
  .adds-rows { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
  .studies { gap: 20px; }
  .study { padding: 26px 28px; }
  .faq-cols { grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .faq-col { gap: 12px; }
  .faq summary { padding-block: 16px; }
  .final h2 { font-size: 3.5rem; }
  .final .s-heart { left: 6%; top: 10px; width: 84px; }
  .final .s-party { right: 6%; top: 0; width: 88px; }
}

/* Small laptops: the copy column is about 440 px, so the chips keep the phone size and fit two rows. */
@media (min-width: 900px) and (max-width: 1199px) {
  .chips li { font-size: 0.9375rem; }
}

@media (min-width: 1200px) {
  .hero-grid { gap: 64px; }
}

/* ---------- motion, only with the visitor's blessing ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .faq summary::after { transition: transform 160ms ease; }
  .fill.ready .pop { transform: scale(0); }
  .fill.ready .fill-day { opacity: 0; transform: scale(0.8); }
  .fill.play .pop { animation: seat-in 420ms cubic-bezier(0.3, 1.5, 0.6, 1) both; }
  .fill.play .pop:nth-child(3) { animation-delay: 500ms; }
  .fill.play .pop:nth-child(4) { animation-delay: 850ms; }
  .fill.play .fill-day { animation: day-in 480ms cubic-bezier(0.3, 1.4, 0.6, 1) 1300ms both; }
  .finish-scene.ready .confetti i { opacity: 0; }
  .finish-scene.play .confetti i { animation: confetti-in 700ms ease-out both; }
  .finish-scene.play .confetti i:nth-child(3n + 2) { animation-delay: 120ms; }
  .finish-scene.play .confetti i:nth-child(3n) { animation-delay: 240ms; }
}
@keyframes seat-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes day-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes confetti-in { from { opacity: 0; translate: 0 -24px; } to { opacity: 1; translate: 0 0; } }
