/* Unclock site. Colors mirror the app (app/src/main/java/.../ui/theme/Color.kt):
   light "Chai" (cream paper, terracotta, sage, dusty blue), dark "Lo-fi night". */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F8F2E9;
  --surface: #FCF8F2;
  --surface-lowest: #FFFDF9;
  --surface-low: #F6EEE4;
  --surface-mid: #F2E8DC;
  --surface-high: #EEE2D4;
  --ink: #3A2B22;
  --ink-2: #65503F;
  --line: #DDCDBD;
  --outline: #8C7565;
  --primary: #9A4F34;
  --on-primary: #FFFFFF;
  --primary-c: #EBCDBC;
  --on-primary-c: #3B1E11;
  --secondary: #4B6A55;
  --secondary-c: #D6E5D8;
  --on-secondary-c: #16301F;
  --tertiary: #4C6682;
  --tertiary-c: #DCE5EF;
  --on-tertiary-c: #1A2E43;
  --inverse: #3A2E27;
  --on-inverse: #F7EEE5;
  --error: #A3362B;
  --shadow: 0 1px 2px rgb(58 43 34 / .06), 0 12px 32px -12px rgb(58 43 34 / .18);
  --shadow-lg: 0 2px 4px rgb(58 43 34 / .05), 0 30px 60px -24px rgb(58 43 34 / .30);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-xl: 36px;

  /* Motion tokens, as in ui/theme/Motion.kt */
  --t-short: 200ms;
  --t-medium: 300ms;
  --t-long: 400ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.05, .7, .1, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1B1714;
    --surface: #201B18;
    --surface-lowest: #151210;
    --surface-low: #241E1B;
    --surface-mid: #2A2420;
    --surface-high: #352E29;
    --ink: #F2E7DD;
    --ink-2: #D6C5B8;
    --line: #52463E;
    --outline: #A0907F;
    --primary: #E8B093;
    --on-primary: #4A2414;
    --primary-c: #6B3B27;
    --on-primary-c: #FBDCCB;
    --secondary: #ABC8B2;
    --secondary-c: #34503D;
    --on-secondary-c: #D2E7D7;
    --tertiary: #B1C5DC;
    --tertiary-c: #384C64;
    --on-tertiary-c: #D9E5F3;
    --inverse: #F2E7DD;
    --on-inverse: #3A2B22;
    --error: #F2A497;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -24px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
.soft { font-style: italic; font-weight: 500; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.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; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.accent { color: var(--primary); }
.sage { color: var(--secondary); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px var(--secondary-c); }

/* Header ---------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 20; padding: 12px var(--gutter) 0; }
.header-bar {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background var(--t-short) var(--ease), color var(--t-short) var(--ease); }
.nav a:hover { background: var(--surface-high); color: var(--ink); }
.lang { font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--ink-2); padding: 8px 10px; border-radius: 999px; }
.lang:hover { background: var(--surface-high); color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .header .btn-sm span.long { display: none; } }

/* Buttons --------------------------------------------------------------- */
.btn {
  --bg-btn: var(--primary); --fg-btn: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em;
  border: 0; border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform var(--t-short) var(--ease), box-shadow var(--t-short) var(--ease), background var(--t-short) var(--ease);
  box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 8px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 14px 28px -12px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg-btn: transparent; --fg-btn: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { --bg-btn: var(--surface-high); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { min-height: 42px; padding: 0 1.1em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.hero h1 .soft { color: var(--primary); }
.hero .lede { margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.facts { margin: 1.4rem 0 0; font-size: .92rem; color: var(--ink-2); max-width: 32em; }

.stage { position: relative; }
.scene-card {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: var(--r-xl);
  background: var(--surface-high);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.scene-card img { width: 100%; height: 100%; object-fit: cover; }
.scene-card .scene-alt { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease); }
.scene-card .scene-alt.on { opacity: 1; }
.scene-time {
  position: absolute; right: 16px; bottom: 16px;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: rgb(20 14 10 / .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px;
}

/* Android-style notification, built from the app's real copy */
.notif {
  position: absolute; right: clamp(-8px, -1vw, 0px); top: -26px;
  width: min(330px, 78%);
  background: var(--surface-lowest);
  color: var(--ink);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-size: .86rem; line-height: 1.4;
  animation: notif-in 700ms var(--ease-out) 400ms both;
}
.notif-head { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--ink-2); margin-bottom: 6px; }
.notif-head .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; }
.notif-head .dot svg { width: 12px; height: 12px; }
.notif b { display: block; font-size: .95rem; margin-bottom: 2px; }
.notif .action { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--primary); font-size: .82rem; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .notif { position: relative; top: auto; right: auto; width: auto; margin: -28px 14px 0; } }

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-alt { background: var(--surface-low); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lede { margin-top: 1rem; }

/* Interactive day ------------------------------------------------------- */
.day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}
.day-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.times { display: flex; gap: 12px; flex-wrap: wrap; }
.time-pick {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface-lowest); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 10px 16px; min-width: 132px;
}
.time-pick label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.time-pick output { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 999px; background: var(--secondary); color: var(--surface-lowest); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #1B3424; } }

.track { position: relative; height: 64px; margin: 16px 15px 0; }
.track-bar { position: absolute; left: 0; right: 0; top: 18px; height: 14px; border-radius: 999px; background: var(--surface-high); overflow: hidden; }
.track-bar .win { position: absolute; top: 0; bottom: 0; background: var(--primary); transition: left var(--t-short) var(--ease), width var(--t-short) var(--ease); }
.track-hours { position: absolute; left: 0; right: 0; top: 42px; display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.track-hours span { width: 0; display: flex; justify-content: center; }
.mark { position: absolute; top: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 3px; background: var(--c); transition: opacity var(--t-medium) var(--ease), transform var(--t-medium) var(--ease); }
.mark.personal { border-radius: 50%; }
.mark.held { opacity: .25; transform: translateY(3px) scale(.8); }
.shade { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 26px; padding: 0; list-style: none; }
.note {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-m);
  background: var(--surface-lowest); border: 1px solid var(--line);
  transition: opacity var(--t-medium) var(--ease), background var(--t-medium) var(--ease), transform var(--t-medium) var(--ease);
}
.note .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.note.personal .ic { border-radius: 50%; }
.note .tx { min-width: 0; line-height: 1.3; }
.note .tx b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note .tx small { display: block; font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note .st { font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--secondary-c); color: var(--on-secondary-c); white-space: nowrap; }
.note.held { background: transparent; opacity: .55; }
.note.held .ic { filter: grayscale(1); opacity: .6; }
.note.held .tx b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.note.held .st { background: var(--primary-c); color: var(--on-primary-c); }
.ranges { position: relative; margin: -55px 0 0; height: 32px; }
.ranges + .range-labels { margin-top: 30px; }
.ranges { touch-action: none; cursor: pointer; }
.ranges input[type=range] {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; height: 32px;
}
.ranges input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; margin-top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-lowest); border: 3px solid var(--primary); box-shadow: var(--shadow); cursor: grab; }
.ranges input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-lowest); border: 3px solid var(--primary); box-shadow: var(--shadow); cursor: grab; }
.ranges input[type=range]::-webkit-slider-runnable-track { background: none; height: 32px; border: 0; }
.ranges input[type=range]::-moz-range-track { background: none; }
.ranges input[type=range]:focus-visible { outline: none; }
.ranges input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--primary-c); }
.range-labels { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: .8rem; color: var(--ink-2); }
.day-summary { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
@media (min-width: 760px) { .day-summary { grid-template-columns: 1fr 1fr; } }
.day-summary p { margin: 0; }
.day-summary strong { font-size: 1.15rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend i.round { border-radius: 50%; }

/* Story (an evening with Unclock) ------------------------------------------ */
.story { display: grid; gap: clamp(28px, 4vw, 40px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.story-step { display: flex; flex-direction: column; gap: 14px; }
.story-step .when { font-size: .85rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.story-step h3 { margin-top: -4px; }
.story-step p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.phone {
  position: relative;
  /* corners as a share of the width (x % / y %, the screen is 2.22 times taller): a fixed radius clipped the status bar clock on small phones */
  border-radius: 7% / 3.15%;
  padding: 8px;
  background: #241D19;
  box-shadow: var(--shadow-lg);
  box-sizing: content-box; /* the ratio is the screen's, the bezel padding comes on top: nothing is cropped */
  aspect-ratio: 1080 / 2400;
  max-width: 260px; /* capped by width, never by height: a capped height cropped the bottom of the screen */
  overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 5% / 2.25%; }

/* Cards / steps --------------------------------------------------------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; }
.card .num { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 18px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); margin: 0; }

/* FAQ ------------------------------------------------------------------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: rotate(45deg);
  transition: transform var(--t-medium) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }
.faq details > div p:last-child { margin: 0; }

/* Closing band ---------------------------------------------------------- */
.band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  min-height: 420px;
  display: flex; align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 14 10 / 0) 20%, rgb(20 14 10 / .72) 100%); }
.band-inner { padding: clamp(24px, 5vw, 56px); max-width: 40rem; }
.band h2 { color: #fff; }
.band p { color: rgb(255 255 255 / .86); margin: 1rem 0 1.6rem; font-size: 1.1rem; }
.band .btn { --bg-btn: #FCF8F2; --fg-btn: #3A2B22; box-shadow: none; }

/* Footer ---------------------------------------------------------------- */
.footer { padding: 56px 0 40px; color: var(--ink-2); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Tester page ----------------------------------------------------------- */
.join { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.join-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.join-grid { grid-template-areas: "intro" "form" "trust" "more"; }
.join-intro { grid-area: intro; } .join-trust { grid-area: trust; } .join-more { grid-area: more; } .join-side { grid-area: form; position: sticky; top: 96px; display: grid; gap: 14px; }
.join .form-card { position: static; }
@media (min-width: 960px) {
  .join-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); grid-template-areas: "intro form" "trust form" "more form"; row-gap: 0; }
  .join-trust { margin-top: 2.4rem; }
}
@media (max-width: 959px) { .join-side { position: static; } .join .scene-card { margin-top: 0; } }
.join h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); }
.hello { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.05rem; }
.hello img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.join-lede { margin: 14px 0 0; font-size: 1.05rem; line-height: 1.55; max-width: 36rem; color: var(--ink); }
.join-trust .channel-note { margin-top: 24px; max-width: 36rem; }
.join-trust .assure { margin-top: 0; }
@media (max-width: 959px) { .join h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); } .join .back { display: none; } .join { padding-top: 20px; } }
.assure { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.assure li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.assure svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--secondary-c); color: var(--on-secondary-c); }
.assure div { display: grid; gap: 2px; }
.assure strong { font-size: 1rem; }
.assure span { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.channel-note { padding: 16px 18px; border-radius: var(--r-l); background: var(--surface-high); display: grid; gap: 10px; justify-items: start; }
.channel-note p { margin: 0; font-size: .95rem; }
.steps-title { font-size: 1.3rem; margin-top: clamp(40px, 6vw, 72px); }
.join .steps { margin-top: 16px; }
.join h1 .soft { color: var(--secondary); display: block; }
.join .scene-card { margin-top: 2.2rem; aspect-ratio: 2.4 / 1; border-radius: var(--r-l); }
.form-card {
  background: var(--secondary-c);
  color: var(--on-secondary-c);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3.5vw, 36px);
  position: sticky; top: 96px;
}
.form-card h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.form-card .sub { margin: 0 0 22px; font-size: .95rem; opacity: .85; }
.form-card .btn { width: 100%; --bg-btn: var(--inverse); --fg-btn: var(--on-inverse); box-shadow: none; justify-content: space-between; padding: 0 22px; }
.fine { font-size: .82rem; margin: 14px 0 0; opacity: .85; }
.fine a { font-weight: 700; }
.done { text-align: left; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.steps { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step .n { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); padding-top: .4em; }
.step h3 { font-size: 1.55rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 0; max-width: 36rem; }

/* Prose (privacy) ------------------------------------------------------- */
.prose { max-width: 44rem; padding: clamp(40px, 7vw, 80px) 0; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .4em; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 2.2em 0 .6em; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose .updated { color: var(--ink-2); font-size: .92rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose a { color: var(--primary); font-weight: 600; }

/* Reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Hero phone over the scene */
.header .btn-sm { gap: 0; }
.phone-float { position: absolute; left: -36px; bottom: -72px; width: 150px; padding: 6px; animation: notif-in 800ms var(--ease-out) 200ms both; }
@media (min-width: 980px) { .stage { margin: 32px 0 72px 36px; } }
@media (max-width: 979px) { .phone-float { display: none; } }
@media (max-width: 560px) { .scene-time { display: none; } }
/* On phones the four screens become a horizontal carousel instead of a very long column */
@media (max-width: 700px) {
  .story {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 24px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .story::-webkit-scrollbar { display: none; }
  .story-step { scroll-snap-align: start; }
}
@media (min-width: 700px) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Phones: the four small cards two by two, so the section stays short */
@media (max-width: 700px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cards-4 .card { padding: 16px; } .cards-4 h3 { font-size: 1.02rem; } .cards-4 p { font-size: .88rem; } }

/* Phone next to text (the stats section) */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > .phone { width: min(260px, 56vw); justify-self: center; }
@media (min-width: 860px) { .split { grid-template-columns: auto minmax(0, 36rem); justify-content: center; } }
.split .lede { margin-top: 1rem; }

/* Phones ---------------------------------------------------------------- */
/* A solid strip behind the floating header, so text never shows through under the status bar */
.header::before { content: ""; position: absolute; inset: 0 0 auto; height: 40px; background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 0%, transparent)); z-index: -1; pointer-events: none; }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .hero { padding: 28px 0 40px; }
  .hero-grid { gap: 32px; }
  .cta-row { gap: 10px; margin-top: 1.6rem; }
  .cta-row .btn { flex: 1 1 auto; padding: 0 1.1em; min-height: 50px; font-size: .95rem; }
  .notif { margin: -32px auto 0; width: 86%; max-width: 340px; }
  .story { grid-auto-columns: 40%; gap: 16px; padding-bottom: 8px; }
  .story-step { gap: 10px; }
  .phone { padding: 6px; }
  .story-step h3 { font-size: 1.12rem; }
  .story-step p { font-size: .92rem; }
  .day { padding: 18px 14px; border-radius: var(--r-l); }
  .day-top { gap: 12px; margin-bottom: 12px; }
  .times { width: 100%; gap: 8px; }
  .time-pick { flex: 1; min-width: 0; padding: 8px 12px; }
  .time-pick output { font-size: 1.4rem; }
  .badge { font-size: .85rem; padding: 6px 12px; }
  .range-labels span + span { display: none; }
  .shade { gap: 6px; margin-top: 18px; }
  .note { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; border-radius: var(--r-s); }
  .note .ic { width: 30px; height: 30px; border-radius: 8px; }
  .note .ic svg { width: 15px; height: 15px; }
  .note .tx b { font-size: .85rem; }
  .note .tx small { font-size: .74rem; }
  .note .st { font-size: .68rem; padding: 3px 8px; }
  .day-summary { margin-top: 18px; padding-top: 16px; }
  .card { padding: 20px; border-radius: var(--r-m); }
  .faq summary { font-size: 1rem; padding: 18px 36px 18px 0; }
  .band { min-height: 360px; border-radius: var(--r-l); }
  .band p { font-size: 1rem; }
  .join { padding: 24px 0 48px; }
  .join-grid { gap: 28px; }
  .join .steps { margin-top: 28px; }
  .form-card { padding: 22px 18px; border-radius: var(--r-l); }
  .step { grid-template-columns: 2.6rem minmax(0, 1fr); padding: 22px 0; }
  .step h3 { font-size: 1.3rem; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Interactive day on phones: sample hours instead of dragging, summary first, the list behind a button */
.presets, .shade-toggle { display: none; }
@media (max-width: 700px) {
  .day { display: flex; flex-direction: column; }
  .presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
  .presets button { min-height: 44px; border: 0; border-radius: 999px; background: var(--surface-high); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; cursor: pointer; }
  .presets button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
  .ranges, .range-labels { display: none; }
  .track { margin-bottom: 4px; }
  .day-summary { order: 5; margin-top: 8px; }
  .shade-toggle { order: 6; display: block; margin-top: 16px; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
  .shade { order: 7; display: none; }
  .day.open .shade { display: grid; }
}

/* Back link on the inner pages (tester, privacy) */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 8px -4px; padding: 0 8px 0 4px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); background: var(--surface-high); }
.back svg { width: 18px; height: 18px; }
.done .btn { margin-top: 18px; width: auto; justify-content: center; gap: .5em; }
.done-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.done-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; align-items: start; }
.done-steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--secondary-c); color: var(--on-secondary-c); }
.done-steps p { margin: 4px 0 0; }
.done-steps .btn { margin-top: 6px; justify-self: start; }
.done .fine { margin-top: 18px; }

/* Touch screens: no hover state left stuck after a tap (iOS keeps :hover until the next tap) */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 8px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
  .btn-ghost:hover { --bg-btn: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
  .band .btn:hover, .form-card .btn:hover { box-shadow: none; }
  .nav a:hover, .lang:hover, .back:hover { background: none; color: var(--ink-2); }
  .footer a:hover { color: inherit; text-decoration: none; }
  .btn:active { transform: scale(.97); }
  .btn-ghost:active, .back:active, .lang:active { background: var(--surface-high); }
}
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
