/* ==========================================================================
   Cold Streak — shared stylesheet
   Quit-sports-betting recovery app · marketing + legal site

   Design intent (docs/CONCEPT.md): the ANTI-SPORTSBOOK.
   Sportsbooks are loud, orange, urgent, cluttered, and lie with motion.
   This is quiet, dark, spacious, and only moves where a real number moves.
   Money-green is the single accent and it is reserved for money and progress.

   No build step. No external assets except Google Fonts.
   Dark theme only, on purpose — this is a committed single-look design.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — near-black with a green undertone, never pure #000 */
  --bg:            #070A08;
  --bg-deep:       #050706;
  --surface:       #0E1512;
  --surface-2:     #131C17;
  --surface-3:     #18231D;

  /* Lines */
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.14);

  /* Ink */
  --ink:           #E9F1EB;
  --ink-2:         #9BAFA3;
  /* ink-3 is the quietest tier (fine print, source links, labels). Held at this
     value deliberately: anything darker drops the citation links under the 4.5:1
     AA threshold on --surface-2, and the sourcing is load-bearing on this site.
     Measured: 5.66:1 on --bg, 4.96:1 on --surface-2. */
  --ink-3:         #7C8D82;

  /* Money green — the only accent */
  --green:         #3FE08D;
  --green-2:       #17C46B;
  --green-deep:    #0B6E3C;
  --green-soft:    rgba(63, 224, 141, 0.12);
  --green-line:    rgba(63, 224, 141, 0.28);
  --green-glow:    rgba(63, 224, 141, 0.16);

  /* Secondary signals — used sparingly, never for pressure */
  --amber:         #E8A93D;
  --amber-soft:    rgba(232, 169, 61, 0.11);
  --clay:          #E0705E;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Geometry */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-3: 0 40px 90px -40px rgba(0, 0, 0, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `clip` not `hidden`: kills horizontal scroll without breaking sticky */
  overflow-x: clip;
}

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Ambient light. Contained so it can never create horizontal overflow. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 78% -10%, rgba(63, 224, 141, 0.10), transparent 62%),
    radial-gradient(46rem 34rem at 4% 6%, rgba(63, 224, 141, 0.045), transparent 60%);
}

body > * { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection {
  background: var(--green);
  color: #04120A;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(1160px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.wrap--narrow { width: min(760px, 100% - var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #04120A;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.5rem, 1.4rem + 5.1vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.h-1 {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.036em;
}

.h-2 {
  font-size: clamp(1.4rem, 1.2rem + 0.95vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}

.h-3 {
  font-size: clamp(1.1rem, 1.03rem + 0.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
  display: block;
}

.eyebrow--quiet { color: var(--ink-3); }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.42vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
  text-wrap: pretty;
}

.lede--wide { max-width: 56ch; }

.muted { color: var(--ink-2); }
.dim   { color: var(--ink-3); }
.green { color: var(--green); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.tnum { font-variant-numeric: tabular-nums; }

.fine {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   5. Buttons, badges, links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #04140B;
  box-shadow: 0 10px 30px -12px rgba(63, 224, 141, 0.55);
}
.btn--primary:hover { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--green-line);
  color: var(--green);
}

.btn--small { padding: 0.62rem 1.05rem; font-size: 0.86rem; }

/* App Store badge — PLACEHOLDER, drawn in CSS. See FOUNDER-TODO in index.html */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1.35rem 0.72rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
a.badge:hover {
  border-color: var(--green-line);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.badge__glyph {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--ink);
}

.badge__text { display: flex; flex-direction: column; line-height: 1.15; }

.badge__text small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.badge__text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge--static { opacity: 0.92; }

.link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--green-line);
  transition: text-decoration-color 0.18s ease;
}
.link:hover { text-decoration-color: var(--green); }

.cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.16);
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.cite:hover { color: var(--green); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.card--glass {
  background: rgba(19, 28, 23, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card--dashed {
  background: rgba(19, 28, 23, 0.35);
  border: 1px dashed var(--line-strong);
}

/* --------------------------------------------------------------------------
   7. Site header
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.035em;
}

.brand__mark { width: 24px; height: 24px; flex: none; color: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 780px) {
  .site-nav { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__copy { min-width: 0; }

.hero__sub { margin-top: 1.6rem; }

.hero__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  line-height: 1.75;
}

.hero__note a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.hero__note a:hover { color: var(--green); border-color: var(--green-line); }

/* Single column: the headline leads, not the mockup. On a phone the first thing
   on screen should be the promise and the helpline note, not a picture of a UI. */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { margin-top: 1rem; }
}

/* Trust strip ---------------------------------------------------------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust__item {
  background: var(--bg);
  padding: 1.15rem clamp(0.9rem, 2vw, 1.5rem);
}

.trust__k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.35rem;
}

.trust__v { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }

@media (max-width: 700px) {
  .trust { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. Phone mockup — pure CSS, no images
   -------------------------------------------------------------------------- */

.hero__art {
  display: flex;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.phone {
  position: relative;
  width: min(330px, 82vw);
  isolation: isolate;
}

.phone::before {
  content: "";
  position: absolute;
  inset: -14% -22%;
  background: radial-gradient(closest-side, var(--green-glow), transparent 72%);
  z-index: -1;
  filter: blur(6px);
}

.phone__body {
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #2A332D, #101613 42%, #232B26);
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone__screen {
  position: relative;
  border-radius: 34px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(63, 224, 141, 0.10), transparent 60%),
    linear-gradient(180deg, #0B120E, #070B09);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.15rem 1.15rem;
  overflow: hidden;
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #050807;
  z-index: 3;
}

.mock__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  margin-bottom: 1.9rem;
}

.mock__dots { display: inline-flex; gap: 3px; }
.mock__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

.mock__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.mock__hero {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: flex;
  align-items: baseline;
  color: var(--ink);
}

.mock__dollars { font-size: clamp(2.1rem, 9vw, 2.7rem); }
.mock__cents   { font-size: 1.15rem; color: var(--ink-2); }

.mock__sub {
  font-size: 0.75rem;
  color: var(--ink-2);
  margin-top: 0.5rem;
}

.mock__track {
  height: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  margin-top: 1.35rem;
  overflow: hidden;
}

.mock__fill {
  height: 100%;
  width: 71%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--green-2), var(--green));
}

.mock__milestone {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.68rem;
  color: var(--ink-3);
  margin-top: 0.55rem;
  font-family: var(--font-mono);
}

.mock__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.mock__card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.7rem 0.75rem;
}

.mock__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mock__v {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.mock__panic {
  margin-top: 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85rem;
}

.mock__helpline {
  margin-top: 0.7rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* Floating chips around the phone */
.float {
  position: absolute;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(16, 23, 19, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-2);
  font-size: 0.72rem;
  line-height: 1.35;
  max-width: 60vw;
}

.float__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.float--shield { top: 12%; left: -8%; }
.float--toast  { bottom: 11%; right: -9%; }

/* Below ~600px the chips can only sit on top of the screen they annotate —
   and one of the things they cover is the in-app helpline. Drop them. */
@media (max-width: 600px) {
  .float { display: none; }
}

/* --------------------------------------------------------------------------
   10. Stats + mechanics (the problem section)
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.stat {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stat__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.stat__t { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }

.stat__c { margin-top: auto; padding-top: 0.5rem; }

.mechs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 1rem;
}

.mech {
  background: var(--surface);
  padding: 1.5rem 1.4rem;
}

.mech__n {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75rem;
}

.mech h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }

.mech p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.55; }

.pull {
  margin-top: 2.5rem;
  border-left: 2px solid var(--green);
  padding: 0.35rem 0 0.35rem 1.4rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 44ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   11. Features (bento)
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.f {
  grid-column: span 3;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  transition: border-color 0.25s ease;
}

.f:hover { border-color: var(--line-strong); }

.f--hero { grid-column: span 6; }
.f--third { grid-column: span 2; }

.f__no {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.f h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); }

.f p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }

.f__body { display: flex; flex-direction: column; gap: 0.55rem; }

.f--hero .f__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f, .f--third { grid-column: span 1; }
  .f--hero { grid-column: span 2; }
  .f--hero .f__inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .f, .f--hero, .f--third { grid-column: span 1; }
}

/* Feature mini-visuals -------------------------------------------------- */

.viz {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.15rem;
  min-width: 0;
}

/* money counter viz */
.viz__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem);
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.viz__amount span { font-size: 0.45em; color: var(--ink-2); }

.viz__ladder { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.4rem; }

.rung {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.rung__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
}

.rung--done { color: var(--ink-2); }
.rung--done .rung__dot { border-color: var(--green); background: var(--green); }
.rung--done .rung__dot::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #04140B;
}
.rung--next .rung__dot { border-color: var(--green-line); }
.rung--next { color: var(--green); }

/* breathing viz */
.breathe {
  display: grid;
  place-items: center;
  padding-block: 0.6rem;
}

.breathe__ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid var(--green-line);
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, var(--green-soft), transparent);
  animation: pulse 5.5s ease-in-out infinite;
}

.breathe__core {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--green-line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* week strip viz */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }

.week__d { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }

.week__l {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-align: center;
}

.week__bar {
  height: 54px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.week__bar span {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--green), var(--green-2));
}

/* program ring viz */
.ring-row { display: flex; align-items: center; gap: 1.1rem; }

.ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--green) 0turn 0.6667turn, rgba(255, 255, 255, 0.07) 0.6667turn 1turn);
  display: grid;
  place-items: center;
}

.ring::after {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0A0F0C;
}

.ring__n {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.ring-wrap { position: relative; display: grid; place-items: center; }

.tasks { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }

.task {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.79rem;
  color: var(--ink-3);
}

.task i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  flex: none;
}

.task--done { color: var(--ink-2); }
.task--done i { background: var(--green); border-color: var(--green); }

/* community viz */
.posts { display: flex; flex-direction: column; gap: 0.6rem; }

.post {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.post__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.4rem;
}

/* blocked-app chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.62rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
}

.chip--off {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--clay);
}

/* --------------------------------------------------------------------------
   12. Social proof (placeholders)
   -------------------------------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.quote {
  background: rgba(19, 28, 23, 0.4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 190px;
}

.quote__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green-line);
}

.quote__t {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}

.quote__by {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ph {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(232, 169, 61, 0.25);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.6rem;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   13. Bands (CTA + help)
   -------------------------------------------------------------------------- */

.band {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.75rem);
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(63, 224, 141, 0.11), transparent 58%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  text-align: center;
}

.band__inner { max-width: 44rem; margin-inline: auto; }

.band .cta-row { justify-content: center; }

.help {
  border: 1px solid var(--green-line);
  border-radius: var(--r-lg);
  background: var(--green-soft);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  display: grid;
  gap: 0.6rem;
}

.help__k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.help p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }

.help strong { color: var(--ink); font-weight: 700; }

.help a { color: var(--green); border-bottom: 1px solid var(--green-line); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: var(--bg-deep);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

.foot__about p {
  margin-top: 0.9rem;
  font-size: 0.87rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 32ch;
}

.foot__col h3 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.95rem;
}

.foot__col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }

.foot__col a {
  font-size: 0.89rem;
  color: var(--ink-2);
  transition: color 0.18s ease;
}
.foot__col a:hover { color: var(--green); }

.foot__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.foot__legal p { font-size: 0.78rem; color: var(--ink-3); line-height: 1.65; max-width: 62ch; }

@media (max-width: 820px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: span 2; }
}

@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__about { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   15. Document pages (privacy / terms / support)
   -------------------------------------------------------------------------- */

.doc-head {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.doc-head__meta {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.doc { padding-block: clamp(2.5rem, 5vw, 4rem); }

.prose { max-width: 68ch; }

.prose h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  margin-top: 3.25rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 90px;
}

.prose h2:first-child { margin-top: 0; }

.prose h2 .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--green);
  display: block;
  margin-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.03rem;
  margin-top: 1.9rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.prose p { margin-bottom: 1rem; }

.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.3rem; display: grid; gap: 0.5rem; }

.prose li::marker { color: var(--green-line); }

.prose strong { color: var(--ink); font-weight: 600; }

.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green-line); }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--ink);
}

.note {
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.5rem;
}

.note__k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.6rem;
}

.note p:last-child { margin-bottom: 0; }

.note--plain {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.note--plain .note__k { color: var(--ink-3); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}

th {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child td { border-bottom: 0; }

/* TOC */
.toc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.9rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0.5rem 1.5rem;
  counter-reset: toc;
}

.toc li { counter-increment: toc; }

.toc a {
  font-size: 0.88rem;
  color: var(--ink-2);
  display: flex;
  gap: 0.6rem;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  flex: none;
  padding-top: 0.18em;
}

.toc a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   16. FAQ (support) — <details>, zero JS
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 0.7rem; margin-top: 1.75rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: var(--green-line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.99rem;
  letter-spacing: -0.015em;
  position: relative;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq summary:hover { color: var(--green); }

.faq__body {
  padding: 0 1.35rem 1.35rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.faq__body p,
.faq__body li {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.68;
}

.faq__body p { margin-bottom: 0.85rem; }
.faq__body p:last-child { margin-bottom: 0; }

.faq__body ol,
.faq__body ul { margin: 0 0 0.9rem; padding-left: 1.25rem; display: grid; gap: 0.4rem; }

.faq__body li::marker { color: var(--green-line); }

.faq__body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.faq__body strong { color: var(--ink); }

/* Contact cards on support */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 1.5rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.contact__k {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.contact__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.contact p { font-size: 0.86rem; color: var(--ink-3); line-height: 1.55; }

/* Crisis block — highest-priority element on the support page */
.crisis {
  border: 1px solid var(--green-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(63, 224, 141, 0.13), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.crisis__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.crisis__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.25);
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.crisis__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--green);
}

.crisis__d { font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; }

/* --------------------------------------------------------------------------
   17. Motion
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

/* --------------------------------------------------------------------------
   18. Print (legal pages get printed / filed)
   -------------------------------------------------------------------------- */

@media print {
  body { background: #fff; color: #000; }
  body::before, .site-head, .site-foot, .band, .toc { display: none !important; }
  .prose p, .prose li, .prose h2, .prose h3 { color: #000; }
  a { color: #000; text-decoration: underline; }
}
