/* ==========================================================================
   Free Social — static product site

   The site wears the app's own Material 3 dark theme: the same surfaces,
   the same amber accent, the same Roboto scale and the same component
   shapes (20dp cards, 999dp pills, 26dp buttons, 24dp step badges).

   Sources of truth:
     app/src/main/java/dev/k3vinb5/freesocial/ui/theme/Theme.kt            [T]
     app/src/main/java/dev/k3vinb5/freesocial/ui/components/Components.kt  [C]

   COLOUR PROVENANCE — every colour below is one of [T], [C] or a
   documented [D] alpha/neutral derivation. No new hue is introduced.

     [T] --bg          #131218   Background           page background
     [T] --surface     #1E1C24   Surface              panels, header scrim
     [T] --card        #26232E   Card/surfaceVariant  section cards
     [C] --chip        #2E2B38   ChipBackground       chips, small pills
     [T] --outline     #453F4E   Outline              hairlines, borders
     [T] --text        #ECEAF2   TextPrimary          headings, body
     [T] --text-2      #B3AEC0   TextSecondary        secondary body
     [T] --text-3      #8E8899   TextTertiary         captions, meta
     [T] --accent      #FFB25C   Primary              amber accent
     [T] --on-accent   #2B1B00   OnPrimary            text on amber
     [T] --accent-dim  #3A2A14   PrimaryContainer     tinted buttons, badges
     [T] --success     #86D9A0   Success              "Filtering" state
     [T] --warning     #FFD166   Warning              stale-rule banner
     [T] --danger      #FF7A7A   Danger               "Blocked" state

     [D] rgba() derivations — each is one theme token at an alpha, or
         neutral black for depth shadows. Alphas in use:
           rgba(19,18,24,a)     --bg       header scrim, permission pill
           rgba(69,63,78,a)     --outline  hairlines, borders, code outline
           rgba(255,178,92,a)   --accent   tints, glows, hover fill
           rgba(134,217,160,a)  --success  status-pill fill
           rgba(255,209,102,a)  --warning  banner + pill fill
           rgba(255,122,122,a)  --danger   status-pill fill
           rgba(43,27,0,a)      --on-accent divider inside the amber button
           rgba(0,0,0,a)        neutral black, depth shadows only
           rgba(236,234,242,a)  --text     budget-ring track in index.html

   No frameworks, no trackers, no external requests.
   ========================================================================== */

/* ---------- type: Roboto, on Theme.kt's scale ---------- */
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("assets/fonts/roboto-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #131218;
  --surface: #1E1C24;
  --card: #26232E;
  --chip: #2E2B38;
  --outline: #453F4E;

  --text: #ECEAF2;
  --text-2: #B3AEC0;
  --text-3: #8E8899;

  --accent: #FFB25C;
  --on-accent: #2B1B00;
  --accent-dim: #3A2A14;
  --success: #86D9A0;
  --warning: #FFD166;
  --danger: #FF7A7A;

  --hairline: rgba(69, 63, 78, 0.6);
  --hairline-soft: rgba(69, 63, 78, 0.38);

  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1080px;
  --pad: clamp(16px, 4.5vw, 40px);
  --r-card: 20px;
  --r-btn: 26px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code, pre, kbd, samp { font-family: var(--mono); }

::selection { background: rgba(255, 178, 92, 0.28); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- shared furniture ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* The app is flat; the paper grain of the old site would fight it. */
.grain { display: none; }

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 90;
  padding: 11px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
}
.skip:focus { top: 12px; }

/* Status dot — the 6dp StateChip dot, reused everywhere. */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 18, 24, 0.82);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--hairline);
  background: rgba(19, 18, 24, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  margin-right: auto;
}
.brand img { width: 22px; height: 22px; flex: 0 0 auto; }
.brand span { line-height: 1; white-space: nowrap; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--accent); }

/* SmallTintedButton: PrimaryContainer fill, Primary label, pill. */
.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 16px;
  border-radius: var(--r-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.nav__cta:hover { background: rgba(255, 178, 92, 0.2); }

/* ---------- buttons & links ---------- */
/* PrimaryButton: 52dp tall, 26dp radius, Primary fill, OnPrimary label. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding-inline: 24px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: box-shadow 0.25s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -18px rgba(255, 178, 92, 0.8);
}
.btn:active { transform: translateY(0); }

.btn__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  padding-left: 12px;
  border-left: 1px solid rgba(43, 27, 0, 0.3);
  opacity: 0.72;
  white-space: nowrap;
}
.btn--lg { height: 56px; padding-inline: 28px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding-block: 8px;
  transition: color 0.2s var(--ease);
}
.link-arrow span {
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover { color: var(--text); }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(36px, 6.5vw, 76px);
  padding-bottom: clamp(22px, 3.4vw, 44px);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 110%;
  z-index: -1;
  background:
    radial-gradient(48% 46% at 70% 34%, rgba(255, 178, 92, 0.1), transparent 72%),
    radial-gradient(34% 34% at 16% 6%, rgba(255, 178, 92, 0.05), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

/* StateChip: chip fill, status dot, LabelLarge. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--chip);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-2);
  margin-bottom: clamp(18px, 2.6vw, 26px);
}
.eyebrow .dot { background: var(--success); width: 6px; height: 6px; }

h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
h1 .line { display: block; }

.hero__sub {
  margin-top: clamp(18px, 2.4vw, 24px);
  max-width: 46ch;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(24px, 3.2vw, 32px);
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 18px;
}
.specs li { min-width: 0; }
.specs b {
  display: block;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.specs span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  text-wrap: pretty;
}

/* ---------- phone frames ---------- */
.phone {
  position: relative;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}
.phone img {
  width: 100%;
  border-radius: 18px;
  background: var(--bg);
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1.16;
  max-width: 490px;
  margin-inline: auto;
}
.stage .phone {
  position: absolute;
  transition: transform 0.5s var(--ease);
}
.stage .phone--main {
  width: 46%;
  left: 27%;
  top: 2%;
  z-index: 3;
}
.stage .phone--l {
  width: 36%;
  left: 0;
  top: 15%;
  z-index: 2;
  transform: rotate(-6deg);
}
.stage .phone--r {
  width: 36%;
  right: 0;
  top: 20%;
  z-index: 1;
  transform: rotate(6deg);
}
.stage:hover .phone--l { transform: rotate(-7.5deg) translateY(-4px); }
.stage:hover .phone--r { transform: rotate(7deg) translateY(-4px); }
.stage:hover .phone--main { transform: translateY(-5px); }

/* Permission pill, mono because it is a literal manifest string. */
.stage__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(19, 18, 24, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.stage__tag .dot { background: var(--success); }

/* ---------- section heads ---------- */
.section {
  position: relative;
  padding-block: clamp(46px, 6.4vw, 84px);
}

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 24px;
  align-items: end;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 22px;
  margin-bottom: clamp(26px, 4vw, 44px);
}
/* SectionLabel: LabelLarge, secondary. */
.sec-index {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.sec-index::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
h2 {
  grid-column: 1 / 8;
  font-size: clamp(1.55rem, 3.8vw, 2.45rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h2 em {
  font-style: normal;
  color: var(--accent);
}
.sec-note {
  grid-column: 9 / 13;
  padding-bottom: 2px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  text-wrap: pretty;
}

/* ---------- how it works ---------- */
.how {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.how__shot {
  grid-column: 1 / 6;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.how__shot::before {
  content: "";
  position: absolute;
  inset: 10% 8% 26%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 178, 92, 0.12), transparent 72%);
  z-index: -1;
}
.how__shot .phone { width: 100%; max-width: 288px; }
.shot-cap {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  text-wrap: pretty;
}

/* SectionCard, one per step: 20dp radius, 16dp padding. */
.steps { grid-column: 7 / 13; display: grid; gap: 10px; }
.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 14px;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--surface);
}
/* StepBadge: 24dp circle, PrimaryContainer fill, Primary number. */
.step__n {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}
.steps h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.006em;
}
.steps p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.steps code {
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 6px;
}

/* ---------- feature bento ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.card {
  grid-column: span 6;
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-card);
  background: var(--card);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}
.card:hover {
  background: var(--chip);
  transform: translateY(-2px);
}
.card--7 { grid-column: span 7; }
.card--5 { grid-column: span 5; }

/* Kicker as a chip: chip fill, 6dp dot, LabelLarge. */
.card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--chip);
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-2);
}
.card__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.006em;
  margin-bottom: 8px;
  text-wrap: balance;
}
.card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.58;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.card p + p { margin-top: 10px; }

.card__split {
  display: flex;
  gap: clamp(14px, 2.2vw, 22px);
  align-items: flex-start;
}
.card__split .card__txt {
  flex: 1 1 auto;
  min-width: 0;
}
.phone.mini {
  width: clamp(88px, 26%, 128px);
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 16px;
}
.phone.mini img { border-radius: 12px; }

/* machine trace — mono on a recessed surface */
.trace {
  margin-top: 18px;
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.trace__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
}
.trace__row:first-child { border-top: 0; }
.trace__row.is-live {
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(255, 178, 92, 0.1), transparent 78%);
  color: var(--text);
}
.trace__t {
  font-size: 11px;
  color: var(--text-3);
}
.trace__row.is-live .trace__t { color: var(--accent); }
.trace__s {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}
.trace__row.is-live .trace__s { color: var(--accent); }

/* budget ring */
.ringwrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.ring {
  position: relative;
  width: 118px;
  flex: 0 0 auto;
}
.ring svg { transform: rotate(-90deg); }
.ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring__num {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.ring__unit {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-3);
}
.ring__legend {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}
.ring__legend b {
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}

/* pills + code */
.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--chip);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-2);
}
.pill i {
  font-style: normal;
  font-size: 12px;
  color: var(--accent);
}

.code {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.code .k { color: var(--accent); }
.code .s { color: var(--success); }
.code .c { color: var(--text-3); }
.code .no { color: var(--danger); }
.code__cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

/* ---------- rules panels ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.panel {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: var(--r-card);
  background: var(--surface);
}
.panel--7 { grid-column: span 7; }
.panel--5 { grid-column: span 5; }
.panel--12 { grid-column: 1 / -1; }
.panel h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.006em;
  margin-bottom: 10px;
  text-wrap: balance;
}
.panel p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.58;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.panel p + p { margin-top: 10px; }
.panel strong {
  color: var(--text);
  font-weight: 500;
}

.anchors {
  margin-top: 18px;
  border-top: 1px solid var(--hairline-soft);
}
.anchors div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
}
.anchors code {
  font-family: inherit;
  color: var(--text);
  overflow-wrap: anywhere;
}
/* status pill */
.anchors .tag {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--chip);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  color: var(--text-3);
  white-space: nowrap;
}
.anchors .tag.yes {
  background: rgba(134, 217, 160, 0.16);
  color: var(--success);
}
.anchors .tag.no {
  background: rgba(255, 122, 122, 0.14);
  color: var(--danger);
}

.born {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}
.born li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.born span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.stale {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3.2vw, 40px);
  align-items: center;
  margin-top: 4px;
}
/* InfoBanner: warning at 12% fill, 20dp radius, coloured dot. */
.warn {
  min-width: 0;
  padding: 16px;
  border-radius: var(--r-card);
  background: rgba(255, 209, 102, 0.12);
}
.warn__head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 209, 102, 0.18);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--warning);
}
.warn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  flex: 0 0 auto;
}
.warn__t {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}
.warn__s {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.warn__btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-top: 10px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

/* ---------- privacy ---------- */
.privacy {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
}
.privacy__side { grid-column: 1 / 7; min-width: 0; }
.privacy__ledger { grid-column: 8 / 13; min-width: 0; }

.lede {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: var(--text);
  text-wrap: pretty;
}
.lede em { font-style: normal; color: var(--accent); }
.privacy__side p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 48ch;
  text-wrap: pretty;
}
.privacy__side p strong { color: var(--text); font-weight: 500; }

.ledger { border-top: 1px solid var(--hairline-soft); }
.ledger__row {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.ledger__k {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}
.ledger__v {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
  text-wrap: pretty;
}
.badge {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--chip);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  color: var(--text-2);
  white-space: nowrap;
}
/* "absent" is the good news on this page, so it reads as success. */
.badge--amber {
  background: rgba(134, 217, 160, 0.16);
  color: var(--success);
}
.ledger__row--absent .ledger__k { color: var(--success); }
.privacy__foot {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

/* ---------- limitations ---------- */
.limits { border-top: 1px solid var(--hairline-soft); }
.limits li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px clamp(18px, 4vw, 48px);
  padding: clamp(16px, 2.4vw, 24px) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.limit__h {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.limit__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  flex: 0 0 auto;
}
.limits h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.006em;
  text-wrap: balance;
}
.limits p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.58;
  max-width: 60ch;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

/* ---------- download ---------- */
.download { padding-bottom: clamp(36px, 5vw, 64px); }
.download__card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4.4vw, 52px);
  border-radius: 24px;
  background:
    radial-gradient(120% 130% at 8% 0%, rgba(255, 178, 92, 0.14), transparent 62%),
    var(--surface);
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 0.9);
}
.download__card .sec-index { margin-bottom: 12px; }
/* Zero-stats, top-right: big accent numerals over LabelSmall caps. */
.download__stats {
  position: absolute;
  top: clamp(24px, 4.4vw, 52px);
  right: clamp(24px, 4.4vw, 52px);
  display: grid;
  gap: 14px;
  text-align: right;
}
.download__stats li {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
}
.download__stats b {
  display: block;
  margin-bottom: 2px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.download__ring {
  position: absolute;
  right: clamp(-130px, -8vw, -70px);
  bottom: clamp(-140px, -10vw, -90px);
  width: clamp(220px, 32vw, 360px);
  opacity: 0.55;
  pointer-events: none;
}
.download h2 {
  grid-column: auto;
  max-width: 18ch;
  margin-bottom: 14px;
}
.download__p {
  max-width: 52ch;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}
.download .btn { margin-top: clamp(20px, 3vw, 28px); max-width: 100%; }
.download__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.download__meta code {
  font-family: inherit;
  overflow-wrap: anywhere;
  color: var(--text-2);
}

.install {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 3.6vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
}
.install li { min-width: 0; }
.install span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}
.install b {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.install small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding-block: clamp(28px, 4vw, 40px) 32px;
}
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 24px;
}
.foot__brand-col { min-width: 0; }
.foot__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 15px;
}
.foot__brand img { width: 20px; height: 20px; flex: 0 0 auto; }
.foot__tag {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
  text-wrap: pretty;
}
.foot h4 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-2);
}
.foot li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-2);
}
.foot a { transition: color 0.2s var(--ease); }
.foot a:hover { color: var(--accent); }
.foot__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
}
.foot__legal > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { margin-top: 4px; }
  .stage { max-width: 460px; }
  .hero__sub { max-width: 54ch; }
  .card--7, .card--5 { grid-column: span 6; }
  .how__shot { grid-column: 1 / 6; }
  .steps { grid-column: 6 / 13; }
}

@media (max-width: 900px) {
  h2 { grid-column: 1 / -1; }
  .sec-note { grid-column: 1 / -1; padding-bottom: 0; }

  .how { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps { order: 1; grid-column: 1 / -1; }
  .how__shot { order: 2; grid-column: 1 / -1; margin-top: 4px; }
  .how__shot .phone { max-width: 228px; }
  .shot-cap { text-align: center; margin-inline: auto; }

  .stage {
    display: flex;
    gap: 12px;
    max-width: none;
    aspect-ratio: auto;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stage::-webkit-scrollbar { display: none; }
  .stage .phone {
    position: static;
    flex: 0 0 auto;
    width: 56vw;
    max-width: 210px;
    scroll-snap-align: center;
    transform: none;
  }
  .stage .phone--l, .stage .phone--r { margin-top: 20px; }
  .stage:hover .phone, .stage:hover .phone--l, .stage:hover .phone--r { transform: none; }
  .stage__tag { display: none; }

  .panel--7, .panel--5 { grid-column: 1 / -1; }
  .stale { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .privacy__side, .privacy__ledger { grid-column: 1 / -1; }
  .ledger { margin-top: 2px; }
  .limits li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lede { font-size: clamp(1.3rem, 4.2vw, 1.7rem); }
  .download__stats { display: none; }
}

@media (max-width: 860px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .card, .card--7, .card--5 { grid-column: 1 / -1; }
  .install { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .install li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
  .install span { grid-row: span 2; margin: 0; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { height: 58px; gap: 12px; }
  html { scroll-padding-top: 72px; }
  .download__ring { opacity: 0.34; }
}

@media (max-width: 620px) {
  .card__split { flex-direction: column; gap: 16px; }
  .phone.mini { width: 104px; margin-inline: 0; }
  .born-shot .phone.mini { width: 104px; }
  .lede { font-size: 1.3rem; }
}

@media (max-width: 560px) {
  .specs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .specs li { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
  .specs li:last-child { border-bottom: 0; }
  .trace__row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 2px; }
  .trace__s { grid-column: 2; grid-row: 2; justify-self: start; }
  .eyebrow { font-size: 11.5px; }
  .code { font-size: 11px; padding: 12px; }
  .ringwrap { gap: 14px; }
  .ring { width: 100px; }
  .ring__num { font-size: 26px; }
  .steps li { padding: 14px; }
  .limits p, .panel p, .card p, .steps p { font-size: 14px; }
  .anchors div { font-size: 10.5px; }
  .anchors .tag { font-size: 10px; padding: 3px 8px; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .foot__legal { flex-direction: column; gap: 4px; }
  .download__card { border-radius: 20px; padding: 20px 18px; }
  .warn { padding: 14px; }
}

@media (max-width: 440px) {
  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .download .btn { width: 100%; }
  .download .btn__meta { display: none; }
  .btn--lg { font-size: 15px; padding-inline: 18px; }
  .download__meta { font-size: 10.5px; }
}

@media (max-width: 400px) {
  .btn__meta { display: none; }
  h1 { font-size: 2rem; }
  .card__split .phone.mini { width: 88px; }
}

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