/* Candle Rules - design system ("The Limit Line").
   Brand tokens match the indicators' CandleRulesStyle (ink #17150F, paper #F2EFE6, accent #C2410C).
   One family (Archivo, variable width) for words, IBM Plex Mono only for live numbers.
   Signature: the limit line - a hairline rule with a short accent tick, like a level on a chart.
   Contrast (WCAG): text-2 on paper 8.3, text-3 on paper 6.5, on-ink-2 on ink 11.8, on-ink-3 on ink 8.5,
   accent-bright on ink 6.3, accent-dark on paper 6.4, white on accent 5.2, accent on paper 4.5 (large/graphic only). */
:root {
  /* colour */
  --ink: #17150F;
  --ink-2: #201D16;
  --ink-3: #2A261D;
  --ink-line: #3A362C;
  --paper: #F2EFE6;
  --paper-2: #E9E5D9;
  --card: #FBFAF6;
  --line: #D9D3C4;
  --line-strong: #BDB5A3;
  --text-2: #4A4538;
  --text-3: #5A5548;
  --on-ink-2: #D6CFBF;
  --on-ink-3: #B8B0A0;
  --accent: #C2410C;
  --accent-dark: #9A3412;
  --accent-bright: #F0743A;
  --lock: #B42318;
  --free: #0F766E;
  --free-ink: #0B524C;
  --free-bg: #E4F0EF;

  /* type */
  --display: "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wide: 112%;            /* font-stretch for headings */
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-md: 20px;
  --fs-lg: 24px;
  --fs-xl: clamp(26px, 2.6vw, 34px);
  --fs-2xl: clamp(32px, 4.4vw, 54px);
  --fs-3xl: clamp(40px, 5vw, 68px);

  /* space, radius, shadow */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section: clamp(72px, 10vw, 128px);
  --r-sm: 4px;     /* chips, chart badges */
  --r-md: 10px;    /* buttons, inputs, small panels */
  --r-lg: 16px;    /* tiles */
  --r-xl: 22px;    /* the hero device */
  --sh-1: 0 1px 2px rgba(23, 21, 15, 0.06), 0 1px 0 rgba(23, 21, 15, 0.04);
  --sh-2: 0 18px 40px -20px rgba(23, 21, 15, 0.28);
  --sh-device: 0 48px 96px -32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(242, 239, 230, 0.08);

  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px;  /* header can wrap to two rows on tablets */ }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.section-dark a:not(.btn), .hero a:not(.btn) { color: var(--accent-bright); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-bright); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: var(--r-md); }

h1, h2, h3, h4 { font-family: var(--display); font-stretch: var(--wide); line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-weight: 750; font-size: var(--fs-3xl); letter-spacing: -0.035em; }
h2 { font-weight: 720; font-size: var(--fs-2xl); letter-spacing: -0.03em; }
h3 { font-weight: 650; font-size: var(--fs-lg); letter-spacing: -0.015em; line-height: 1.15; }
h4 { font-weight: 650; font-size: var(--fs-md); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; max-width: 36em; }
.muted { color: var(--text-2); }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-md);
  font: 600 16px/1 var(--body); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: inherit; background: transparent; }
.btn-ghost:hover { color: inherit; border-color: currentColor; background: rgba(127, 120, 100, 0.1); }
.hero .btn-ghost, .section-dark .btn-ghost, .tier-dark .btn-ghost { border-color: #6B6556; }
.hero .btn-ghost:hover, .section-dark .btn-ghost:hover, .tier-dark .btn-ghost:hover { border-color: var(--paper); background: rgba(242, 239, 230, 0.06); }

/* ---- status chips */
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font: 600 var(--fs-xs)/1 var(--body); letter-spacing: 0.01em;
  padding: 7px 11px 7px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--text-3); white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.status-free { background: var(--free-bg); color: var(--free-ink); }
.status-free::before { background: var(--free); }
.section-dark .status, .hero .status:not(.status-free), .tier-dark .status { background: var(--ink-3); color: var(--on-ink-2); }
.section-dark .status::before, .hero .status:not(.status-free)::before, .tier-dark .status::before { background: var(--accent-bright); }
.product .status, .tier:not(.tier-dark) .status { background: var(--paper-2); }
.section-sand .section-head .status { background: var(--card); }

/* ---- header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 750 21px/1 var(--display); font-stretch: var(--wide); letter-spacing: -0.025em; }
.brand:hover { color: var(--paper); }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); flex-wrap: wrap; font-size: var(--fs-sm); font-weight: 500; }
.nav a { color: var(--on-ink-2); text-decoration: none; }
.nav a:hover { color: var(--paper); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: var(--fs-sm); color: #fff; }

/* ---- sections: light (paper), alt (sand), dark (ink) */
.section { padding: var(--section) 0; }
.section-sand { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .muted { color: var(--on-ink-2); }
.section-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .muted { font-size: 18px; max-width: 34em; }
.section-head .status + h2 { margin-top: var(--s-4); }

/* ---- hero: ink, faint price-level grid, ruler along the bottom edge */
.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(242, 239, 230, 0.05) 0 1px, transparent 1px 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%); mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
}
.hero::after, .page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; pointer-events: none;
  background:
    linear-gradient(var(--ink-line), var(--ink-line)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(242, 239, 230, 0.22) 0 1px, transparent 1px 16px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 160px) bottom / 100% 12px no-repeat;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero h1 { max-width: 15ch; }
.hero .lede { color: var(--on-ink-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: var(--fs-sm); color: var(--on-ink-3); padding-left: 14px; border-left: 2px solid var(--accent); }

/* hero device: one Phylax status card, one reason (max loss reached) */
.lockcard { position: relative; width: 100%; max-width: 448px; justify-self: center; background: var(--paper); color: var(--ink); border-radius: var(--r-xl); padding: 26px 28px 22px; box-shadow: var(--sh-device); }
.lockcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 14px/1 var(--mono); color: var(--text-3); }
.lockcard-state { display: inline-flex; align-items: center; gap: 6px; background: var(--lock); color: #fff; padding: 6px 11px; border-radius: var(--r-sm); font: 700 12px/1 var(--body); letter-spacing: 0.08em; }
.lockcard-reason { margin: 24px 0 18px; font: 720 clamp(26px, 2.6vw, 32px)/1.08 var(--display); font-stretch: var(--wide); letter-spacing: -0.025em; }
.meter { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text-3); }
.meter-top strong { font: 600 28px/1 var(--mono); color: var(--lock); letter-spacing: -0.02em; }
.meter-bar { position: relative; margin: 14px 0 8px; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--lock); border-radius: 4px; transform-origin: left; }
.meter-foot { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--text-3); }
.lockcard-rows { margin: 14px 0 0; display: grid; }
.lockcard-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.lockcard-rows div:last-child { border-bottom: none; padding-bottom: 0; }
.lockcard-rows dt { color: var(--text-3); }
.lockcard-rows dd { margin: 0; font: 600 15px var(--mono); font-variant-numeric: tabular-nums; }
#unlock-in { font-size: 17px; color: var(--accent-dark); }

/* the one orchestrated moment: the loss fills the meter, then the lock lands */
@media (prefers-reduced-motion: no-preference) {
  .meter-bar span { animation: fill 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .lockcard-state { animation: lock-in .35s cubic-bezier(.2, .9, .3, 1.3) 1.3s both; }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes lock-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
}

/* ---- free offer bar under the hero */
.free-strip { padding: var(--s-5) 0 0; }
.free-bar { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 18px 20px 18px 24px; background: var(--free-bg); border: 1px solid #C9DEDB; border-radius: var(--r-lg); }
.free-strip p { flex: 1 1 360px; color: #23403D; font-size: 16px; }
.free-strip strong { color: var(--free-ink); }
.free-strip .btn { background: var(--free); min-height: 46px; }
.free-strip .btn:hover { background: var(--free-ink); }
.free-mini { width: 64px; display: flex; flex-direction: column; gap: 5px; flex: none; }
.free-mini-ext { height: 0; border-top: 2px dashed #3B82F6; opacity: 0.8; }
.free-mini-box { height: 22px; background: #FBEDE4; border: 1px solid #E0A080; border-radius: 2px; }

/* ---- facts strip */
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; font-size: var(--fs-sm); color: var(--text-3); border-bottom: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 10px; height: 2px; background: var(--accent); flex: none; }

/* ---- limit-line grid: hairline rule on top, a short accent tick at the left (used for features) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3.5vw, 48px); row-gap: clamp(32px, 4vw, 48px); }
.feature { position: relative; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--accent); }
.feature h3 { font-size: 21px; }
.feature p { color: var(--text-2); font-size: 16px; }
.feature .status { margin-bottom: 4px; }
.section-dark .feature { border-top-color: var(--ink-line); }
.section-dark .feature::before { background: var(--accent-bright); }
.section-dark .feature p { color: var(--on-ink-2); }

/* ---- callout */
.callout { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--paper); border-radius: var(--r-lg); display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 16px 40px; align-items: baseline; }
.callout h3 { font-size: var(--fs-lg); }
.callout p { color: var(--on-ink-2); }
.section-dark .callout { background: var(--paper); color: var(--ink); }
.section-dark .callout p { color: var(--text-2); }

/* ---- product tiles */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 18px; }
.product h3 { font-size: var(--fs-xl); font-weight: 720; letter-spacing: -0.025em; }
.product .kicker { font-size: var(--fs-sm); color: var(--text-3); margin-top: -8px; }
.product ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.product li::marker { color: var(--accent); }
.product .muted { font-size: 17px; }

/* chart illustrations (role="img", described in aria-label) */
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 220px; font-size: 12px; overflow: hidden; }
.badge { align-self: flex-start; padding: 4px 8px; border-radius: 2px; font-weight: 700; color: #fff; white-space: nowrap; }
.rule { height: 2px; }
.row { display: flex; align-items: center; gap: 10px; }
.row .grow { flex: 1; min-width: 24px; }

/* Opening Range block + Lite/Pro tiers */
.or-wide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-top: 20px; padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.or-intro { display: flex; flex-direction: column; gap: 14px; }
.or-intro h3 { font-size: var(--fs-xl); font-weight: 720; letter-spacing: -0.025em; }
.tier { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tier-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tier .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier h4 { font-size: 22px; }
.tier ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.7; color: var(--text-2); flex: 1; }
.tier.tier-dark ul { color: var(--on-ink-2); }
.tier .btn { align-self: stretch; }

.or-chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-height: 200px; }
.or-ext { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.or-ext .dash { flex: 1; border-top: 2px dashed #3B82F6; opacity: 0.7; }
.or-ext .tag { padding: 2px 6px; background: #22D3EE; color: var(--ink); font-weight: 700; border-radius: 2px; }
.or-box { border: 1px solid #E0A080; background: #FBEDE4; border-radius: 2px; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; position: relative; min-height: 90px; }
.or-box::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #B8B0A0; }
.or-box .tag { position: relative; padding: 3px 7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 2px; }

/* ---- steps (a real sequence): numbered stops on one track */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: counter(step); font: 600 15px/1 var(--mono); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%; background: var(--paper); margin-bottom: 8px; }
.section-sand .steps li::before { background: var(--paper-2); }
.steps h3 { font-size: 21px; }
.steps p { color: var(--text-2); font-size: 16px; }
.steps-vertical { grid-template-columns: 1fr; gap: 28px; max-width: 760px; }
.steps-vertical li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; }
.steps-vertical li::before { grid-row: span 3; margin-bottom: 0; }
.steps-vertical h3 { font-size: 20px; margin: 0; }

/* ---- How it works */
.how h2 { margin-bottom: clamp(36px, 4vw, 56px); }
.how-steps { position: relative; }
.how-steps::before { content: ""; position: absolute; left: 18px; right: 0; top: 18px; height: 1px; background: var(--line-strong); }
.how-steps li { position: relative; }
.how-note { margin-top: 44px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text-2); max-width: 52em; }

/* ---- "Sound familiar?" - the problem before the product */
.pain { padding-top: 0; }
.pain-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain-list li { font-size: 16px; color: var(--text-2); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--lock); border-radius: var(--r-md); padding: 24px; }
.pain-list strong { display: block; color: var(--ink); font: 650 21px/1.2 var(--display); font-stretch: var(--wide); letter-spacing: -0.015em; margin-bottom: 10px; }
.pain-turn { margin-top: 40px; max-width: 30em; font: 680 clamp(21px, 2.1vw, 26px)/1.3 var(--display); font-stretch: var(--wide); letter-spacing: -0.02em; }

/* ---- founder note */
.founder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.founder-grid h2 { position: sticky; top: calc(var(--header-h) + 32px); }
.founder-note p { font-size: 19px; line-height: 1.65; color: var(--text-2); max-width: 34em; }
.founder-note p + p { margin-top: 18px; }
.founder-note .founder-punch { margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--accent); font: 680 24px/1.3 var(--display); font-stretch: var(--wide); letter-spacing: -0.02em; color: var(--ink); }
.founder-note .founder-sign { margin-top: 20px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }

/* spam trap: hidden from people, filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- signup */
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.signup-copy { display: flex; flex-direction: column; gap: 16px; }
.signup { display: flex; flex-direction: column; gap: 12px; }
.signup label { font-weight: 600; font-size: var(--fs-sm); }
.signup .fields { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 240px; min-height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid #6B6556; background: var(--ink-2); color: var(--paper); font: 16px var(--body); }
.signup input[type="email"]::placeholder { color: #8A8270; }
.section .signup input[type="email"] { background: #fff; color: var(--ink); border-color: #8A8270; }
.section-dark .signup input[type="email"], .signup-dark input[type="email"] { background: var(--ink-2); color: var(--paper); border-color: #6B6556; }
.signup input[type="email"]:focus-visible { outline-offset: 1px; }
.signup .fine { font-size: var(--fs-xs); color: var(--on-ink-3); }
.section .signup .fine { color: var(--text-3); }
.section-dark .signup .fine { color: var(--on-ink-3); }
.signup .msg { min-height: 1.5em; font-size: var(--fs-sm); font-weight: 600; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.consent input { margin-top: 4px; width: 18px; height: 18px; }
#launch .signup { padding: clamp(20px, 3vw, 32px); background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); }

/* ---- FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-dark); }
.faq details p { margin: -4px 0 22px; color: var(--text-2); max-width: 44em; }

/* ---- prose pages (privacy, terms, install) */
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.todo { background: #FFF4D6; border: 1px dashed #B7791F; padding: 1px 6px; border-radius: 3px; color: #7A4A0A; font-weight: 600; }

/* ---- tables (data logs) */
.logwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.log { width: 100%; min-width: 640px; border-collapse: collapse; font: 500 14px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.log caption { caption-side: bottom; padding: 12px 16px; text-align: left; font: 14px var(--body); color: var(--text-3); }
.log th, .log td { padding: 12px 16px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.log th { background: var(--ink); color: var(--paper); font: 600 13px var(--body); }
.log tbody tr:hover { background: var(--paper); }

/* ---- Strategos mockups (SAMPLE only) */
.sample { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sample figcaption { font-size: 14px; color: var(--on-ink-3); }
.tg { align-self: flex-start; max-width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px 14px 14px 2px; font: 500 15px/1.5 var(--mono); color: var(--paper); }

/* ---- footer */
.site-footer { position: relative; background: var(--ink); color: var(--on-ink-3); padding: 64px 0 56px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, rgba(242, 239, 230, 0.16) 0 1px, transparent 1px 16px) top / 100% 6px no-repeat, repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 160px) top / 100% 10px no-repeat; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--ink-line); }
.site-footer nav { display: flex; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; }
.site-footer nav a { color: var(--on-ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .legal { font-size: var(--fs-xs); line-height: 1.7; max-width: 70em; }

/* ---- responsive */
@media (max-width: 960px) {
  .hero .wrap, .section-head, .signup-grid, .faq, .callout, .pain-list, .founder-grid { grid-template-columns: 1fr; }
  .products, .or-wide { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .how-steps::before { left: 18px; right: auto; top: 18px; bottom: 18px; width: 1px; height: auto; }
  .how-steps li { padding-left: 56px; }
  .how-steps li::before { position: absolute; left: 0; top: 0; }
  .founder-grid h2 { position: static; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .nav .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .brand { font-size: 19px; }
  .hide-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  .lockcard { padding: 22px 20px 18px; }
  .badge { white-space: normal; }
  .free-mini { display: none; }
  .free-strip .btn { width: 100%; }
  .faq summary { font-size: 17px; }
}

/* ---- small helpers that replace inline styles */
.section-title { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .status + .section-title, .status + .section-title { margin-top: var(--s-4); }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.legal + .legal { margin-top: 12px; }

/* ---- page head: the ink band that opens every secondary page (same ruler as the hero) */
.page-head { position: relative; background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-head .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 18ch; }
.page-head .lede, .page-head .muted { color: var(--on-ink-2); }
.page-head .updated { font-size: 14px; color: var(--on-ink-3); }
.page-head a:not(.btn) { color: var(--accent-bright); }
.page-head :focus-visible { outline-color: var(--accent-bright); }

/* ---- prose: readable measure, every h2 sits on a limit line */
.prose > * { max-width: 720px; }   /* keeps the left edge aligned with the page head */
.prose h2, .mm-block h2 { position: relative; font-size: var(--fs-xl); letter-spacing: -0.025em; margin: 56px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2::before, .mm-block h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--accent); }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.7; }
.prose li::marker { color: var(--accent); }

/* ---- device: a product picture framed like the hero lock card */
.device { margin: 0; width: 100%; max-width: 480px; justify-self: center; background: var(--paper); color: var(--ink); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--sh-device); }
.or-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.or-chart-lg { min-height: 300px; }
.or-chart-lg .or-box { min-height: 120px; }
.or-ext-group { display: flex; flex-direction: column; gap: 14px; }
.or-ext .tag-full { background: #38BDF8; }
.hero .signup { width: 100%; max-width: 560px; }

/* Strategos SAMPLE alert: a dark device on the ink hero */
.hero .sample { width: 100%; max-width: 448px; justify-self: center; padding: 28px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-xl); box-shadow: var(--sh-device); }
.hero .sample .tg { align-self: stretch; font-size: 16px; padding: 18px 22px; background: var(--ink-3); }

/* ---- morning page */
.mm-note { display: inline-flex; border: 1px solid var(--accent-bright); color: var(--accent-bright); padding: 3px 10px; border-radius: var(--r-sm); font-size: 14px; }
.mm-small { font-size: 14px; color: var(--text-2); }
.page-head .mm-small { color: var(--on-ink-3); }
.mm > * { max-width: 960px; }
.mm-block + .mm-block { margin-top: 64px; }
.mm-block h2 { margin-top: 0; }
.mm-block > .mm-small { margin-top: 12px; max-width: 60em; }
.mm-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.mm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mm-table caption { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mm-table th, .mm-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mm-table tr:last-child th, .mm-table tr:last-child td { border-bottom: none; }
.mm-table thead th { background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; }
.mm-table tbody th { font-weight: 600; }
.mm-num { font-family: var(--mono); font-weight: 600; }
#mm-cal > .mm-table { border: 1px solid var(--line); background: var(--card); }
#mm-sum p { max-width: 44em; }
#mm-sum p + p { margin-top: 14px; }
@media (max-width: 480px) { .mm-table th, .mm-table td { padding: 8px 10px; font-size: 15px; } }

/* ---- mobile menu (site.js adds .js to <html>; without JS the links simply wrap under the logo) */
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; margin-left: auto; border: 1px solid #6B6556; border-radius: var(--r-md); background: transparent; color: var(--paper); font: 600 15px/1 var(--body); cursor: pointer; }
.menu-btn:hover { border-color: var(--paper); }
.menu-icon { position: relative; width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu-icon::after { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-icon { border-color: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { opacity: 1; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-header .wrap { flex-wrap: nowrap; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--ink-line); box-shadow: 0 32px 48px -24px rgba(0, 0, 0, 0.6); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .nav.open { display: flex; }
  .js .nav .nav-link { display: block; padding: 14px 0; font-size: 18px; color: var(--paper); border-bottom: 1px solid var(--ink-line); }
  .js .nav .btn { margin-top: 20px; min-height: 52px; font-size: 16px; }
  .js .nav .hide-sm { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  .menu-icon::before, .menu-icon::after { transition: transform .2s ease, opacity .2s ease; }
  .js .nav.open { animation: drop .18s ease-out; }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
}
.mm-scroll .mm-table { min-width: 560px; }   /* scroll inside the box on phones instead of crushing columns */
