/* ============================================================
   Proof of Focus — app-aligned visual system
   Themes: light (default) / dark / pink via [data-theme] on <html>
   ============================================================ */

:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace;
  --bg: #F7F9FF;
  --card: #FFFFFF;
  --ink: #071333;
  --muted: #606B88;
  --accent: #3168FF;
  --accent-ink: #FFFFFF;
  --accent-soft: #EEF3FF;
  --line: #D6DEEF;
  --header-bg: rgba(247, 249, 255, 0.88);
  --shadow: 0 12px 28px rgba(174, 188, 234, 0.24);
  --danger: #F33527;
  --danger-soft: #FFECEA;
  --relaxed: #12AEB3;
  --relaxed-soft: #E6FBFB;
  --hardcore: #D9467D;
  --hardcore-soft: #FFF0F5;
  --acid: #EEF3FF;
  --invert-bg: #071333;
  --invert-ink: #F7F9FF;
  --invert-muted: #9AA5BC;
  --radius-phone: 38px;
  --radius-card: 18px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #0B0D12;
  --ink: #F7F9FF;
  --muted: #9AA5BC;
  --accent: #6F92FF;
  --accent-ink: #071333;
  --accent-soft: #11182A;
  --line: #202637;
  --header-bg: rgba(0, 0, 0, 0.86);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  --danger: #FF8A7F;
  --danger-soft: #351719;
  --relaxed: #5DDBD5;
  --relaxed-soft: #0D2527;
  --hardcore: #FF9ABB;
  --hardcore-soft: #301722;
  --acid: #11182A;
  --invert-bg: #000000;
  --invert-ink: #F7F9FF;
  --invert-muted: #9AA5BC;
}

html[data-theme="pink"] {
  --bg: #FFF5F8;
  --card: #FFFFFF;
  --ink: #351525;
  --muted: #8A5F70;
  --accent: #D9467D;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE3EC;
  --line: #F3C8D6;
  --header-bg: rgba(255, 245, 248, 0.88);
  --shadow: 0 12px 28px rgba(232, 175, 194, 0.26);
  --danger: #F33527;
  --danger-soft: #FFECEA;
  --relaxed: #12AEB3;
  --relaxed-soft: #E6FBFB;
  --hardcore: #D9467D;
  --hardcore-soft: #FFF0F5;
  --acid: #FFE3EC;
  --invert-bg: #FFF5F8;
  --invert-ink: #351525;
  --invert-muted: #8A5F70;
}

/* ---------- reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-220%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 18px;
  border: 2px solid var(--line);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

section[id] {
  scroll-margin-top: 96px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 clamp(16px, 4vw, 44px);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  min-height: 48px;
  flex: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav + .header-actions {
  margin-left: 0;
}

.header-theme-control {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 2px solid var(--line);
  padding: 2px;
  background: var(--card);
}

.header-theme-control button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.header-theme-control button[aria-pressed="true"] {
  background: var(--ink);
}

.header-theme-control button[aria-pressed="true"] .swatch {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

.swatch {
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid var(--line);
  pointer-events: none;
}

.swatch-light { background: #F7F9FF; }
.swatch-dark  { background: #000000; }
.swatch-pink  { background: #FFF5F8; }

html[data-theme="dark"] .header-theme-control button[aria-pressed="true"] {
  background: var(--accent-soft);
}

html[data-theme="dark"] .header-theme-control button[aria-pressed="true"] .swatch {
  outline-color: var(--line);
  border-color: var(--line);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent);
}

.header-cta:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.is-disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.header-cta.is-disabled {
  border-color: var(--line);
  background: var(--card);
  color: var(--muted);
  box-shadow: none;
  opacity: 0.78;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--card);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  padding: 8px clamp(16px, 4vw, 44px) 20px;
  display: flex;
  flex-direction: column;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 22%, transparent);
}

.mobile-menu a span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.mobile-menu a.mobile-menu-cta {
  margin-top: 14px;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--line);
  font-size: 17px;
  min-height: 56px;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- shared controls ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.button-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.button-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

html[data-theme="dark"] .button-primary:hover {
  box-shadow: var(--shadow);
}

.button-dark {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.button-dark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent);
}

.button-dark:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.text-link:hover {
  color: var(--accent);
}

html[data-theme="dark"] .text-link:hover {
  color: var(--acid);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 7vh, 84px) clamp(16px, 4vw, 44px) 0;
  max-width: 1360px;
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(18px, 3vh, 30px);
}

.hero-kicker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-kicker span::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--acid);
  border: 2px solid var(--line);
}

.hero h1 {
  font-size: clamp(3.05rem, 13.6vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
}

.outline-word {
  font-style: normal;
  color: var(--accent);
}

@supports ((-webkit-text-stroke: 1px black)) {
  .outline-word {
    -webkit-text-stroke: 2.5px var(--ink);
    color: transparent;
  }
}

.hero-bottom {
  margin-top: clamp(22px, 4vh, 38px);
  max-width: 480px;
}

.hero-bottom p {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin-top: 24px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-badge {
  display: flex;
  min-width: 148px;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  opacity: 0.78;
}

.store-badge-logo {
  width: 22px;
  height: 22px;
  flex: none;
}

.store-badge-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.store-badge-copy > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-badge strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

html[data-theme="dark"] .store-badge-logo {
  filter: invert(1);
}

/* hero visual */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 30px 0 6px;
}

.phone-shell {
  position: relative;
  width: min(354px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-phone);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

html[data-theme="dark"] .phone-shell {
  box-shadow: var(--shadow);
}

.phone-shell img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-phone);
}

.screen-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.screen-tabs button {
  min-height: 46px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.screen-tabs button:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.screen-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* hero proof strip */

.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--line);
  margin-top: clamp(30px, 5vh, 54px);
  background: var(--card);
}

.hero-proof div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(14px, 2vw, 26px);
  min-height: 64px;
}

.hero-proof div + div {
  border-left: 2px solid var(--line);
}

.hero-proof span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

html[data-theme="dark"] .hero-proof span {
  color: var(--acid);
}

.hero-proof strong {
  font-size: 15px;
  font-weight: 600;
}

/* ---------- statement ---------- */

.statement {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(70px, 14vh, 150px) clamp(16px, 4vw, 44px) clamp(30px, 5vh, 60px);
  text-align: center;
}

.statement p {
  font-size: clamp(2rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
}

.statement p + p {
  margin-top: 10px;
  color: var(--muted);
}

.statement p span {
  color: var(--accent);
}

html[data-theme="dark"] .statement p span {
  color: var(--acid);
}

/* ---------- sections shared ---------- */

.section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) clamp(16px, 4vw, 44px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-heading h2,
.penalty-copy h2,
.progress-intro h2,
.final-cta h2 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ---------- how / steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--line);
  margin-top: clamp(30px, 5vh, 52px);
  background: var(--card);
}

.step {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
}

.step + .step {
  border-left: 2px solid var(--line);
}

.step-number {
  font-size: clamp(3rem, 4.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px var(--muted);
}

.step h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- modes (inverted band) ---------- */

.modes-section {
  max-width: none;
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding-left: 0;
  padding-right: 0;
}

.modes-section .section-heading,
.modes-section .mode-list {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 44px);
  padding-right: clamp(16px, 4vw, 44px);
}

.section-heading-light .section-index {
  color: var(--acid);
}

.mode-list {
  margin-top: clamp(30px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 0;
}

.mode-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 18px clamp(20px, 3vw, 44px);
  border: 2px solid var(--invert-ink);
  padding: clamp(18px, 2.6vw, 28px) clamp(18px, 3vw, 32px);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mode-row:hover {
  transform: translate(-3px, -3px);
  background: var(--invert-ink);
  color: var(--invert-bg);
  box-shadow: 6px 6px 0 var(--acid);
}

.mode-row:hover p {
  color: var(--invert-bg);
}

.mode-name {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.mode-name span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.mode-row:hover .mode-name span {
  color: inherit;
}

.mode-name h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mode-row p {
  color: var(--invert-muted);
  font-size: 15.5px;
  max-width: 460px;
}

.mode-row > strong {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  padding: 8px 12px;
  white-space: nowrap;
}

/* ---------- penalty ---------- */

.penalty-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) clamp(16px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.penalty-copy h2 {
  margin-bottom: 20px;
}

.penalty-copy h2 span {
  color: var(--accent);
}

html[data-theme="dark"] .penalty-copy h2 span {
  color: var(--acid);
}

.penalty-copy > p {
  color: var(--muted);
  max-width: 460px;
}

.debt-ledger {
  margin-top: 30px;
  border: 2px solid var(--line);
  background: var(--card);
  max-width: 460px;
}

.debt-ledger [role="row"] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  min-height: 52px;
}

.debt-ledger [role="row"] + [role="row"] {
  border-top: 2px solid var(--line);
}

.debt-ledger span {
  font-size: 15px;
}

.debt-ledger strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}

.penalty-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.penalty-phone {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius-phone);
  overflow: hidden;
}

.penalty-phone img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: var(--radius-phone);
}

/* ---------- progress ---------- */

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

.progress-intro > p:not(.section-index) {
  color: var(--muted);
  max-width: 480px;
  margin-top: 20px;
}

.theme-control {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.theme-control > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  margin-bottom: 2px;
}

.theme-control button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--line);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.theme-control button:hover {
  transform: translateY(-2px);
}

.theme-control button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.progress-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 0;
}

.progress-phone {
  width: min(330px, 100%);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius-phone);
  overflow: hidden;
}

.progress-phone img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: var(--radius-phone);
}

/* ---------- final cta ---------- */

.final-cta {
  position: relative;
  max-width: 1272px;
  margin: 0 auto clamp(56px, 9vh, 100px);
  padding: clamp(48px, 8vh, 90px) clamp(20px, 4vw, 44px);
  border: 2px solid var(--line);
  background: var(--card);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.final-cta > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.final-cta h2 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  text-transform: uppercase;
}

.final-cta p:not(.section-index) {
  color: var(--muted);
  font-size: 18px;
}

.final-cta .button {
  position: relative;
  z-index: 1;
}

/* ---------- utility links ---------- */

.utility-links {
  max-width: 1360px;
  margin: 0 auto clamp(56px, 9vh, 100px);
  padding: 0 clamp(16px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.utility-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px solid var(--line);
  background: var(--card);
  padding: 18px 16px 16px;
  min-height: 120px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.utility-links a:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-3px);
}

.utility-links a span {
  font-weight: 700;
  font-size: 16px;
}

.utility-links a small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.utility-links a:hover small {
  color: var(--bg);
}

.utility-links a b {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  border-top: 2px solid var(--line);
  padding: 26px clamp(16px, 4vw, 44px);
  max-width: 1360px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-size: 15px;
}

.footer-brand span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-footer > p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
}

.footer-links a:hover {
  border-color: var(--line);
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

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

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 14.2vw, 6.4rem);
  }

  .hero-bottom {
    max-width: 560px;
  }

  .hero-visual {
    padding-top: 14px;
  }

  .penalty-section,
  .progress-section {
    grid-template-columns: 1fr;
  }

  .penalty-copy > p,
  .progress-intro > p:not(.section-index),
  .debt-ledger {
    max-width: 560px;
  }

  .progress-visual {
    order: 2;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .step + .step {
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .utility-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .utility-links a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header-cta {
    display: none;
  }

  .mode-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .mode-row > strong {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    height: 66px;
  }

  .mobile-menu {
    top: 66px;
  }

  .brand {
    min-width: 48px;
    justify-content: center;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-theme-control button {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14.8vw, 4.6rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .store-badges {
    width: 100%;
  }

  .store-badge {
    flex: 1;
    min-width: 0;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div + div {
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .utility-links {
    grid-template-columns: 1fr;
  }

  .utility-links a {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer > p {
    margin-left: 0;
  }
}

/* ---------- rules ---------- */

.rules-section {
  padding-top: clamp(64px, 11vh, 116px);
}

.rules-lede {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(30px, 5vh, 48px);
}

.rule-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.rule-card-wide {
  grid-column: 1 / -1;
}

.rule-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.rule-card h3 {
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.015em;
}

.rule-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 19px;
}

.accountability-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  margin-top: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 22px;
  background: var(--accent-soft);
}

.accountability-copy .section-index {
  margin-bottom: 12px;
}

.accountability-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.accountability-copy p:not(.section-index) {
  max-width: 57ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 21px;
}

.accountability-modes {
  display: grid;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.accountability-modes div {
  padding: 15px 17px;
}

.accountability-modes div + div {
  border-top: 1px solid var(--line);
}

.accountability-modes strong,
.accountability-modes span {
  display: block;
}

.accountability-modes strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
}

.accountability-modes span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.accountability-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .accountability-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

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

  .rule-card-wide {
    grid-column: auto;
  }

  .rule-card {
    padding: 16px;
  }

  .accountability-card {
    padding: 22px 18px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- app-aligned overrides ---------- */

body {
  background: var(--bg);
  font-size: 16px;
}

:focus-visible {
  outline-color: var(--accent);
}

.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
}

.brand img {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.nav a {
  border: 0;
  border-radius: 10px;
  color: var(--muted);
}

.nav a.is-active {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
}

.header-theme-control,
.theme-control button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.header-cta,
.button {
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: none;
  font-weight: 600;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent);
}

.header-cta:active,
.button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: none;
}

.button-dark {
  border-color: var(--ink);
  box-shadow: none;
}

.hero {
  padding-top: clamp(42px, 8vh, 94px);
}

.hero h1 {
  max-width: 7.5ch;
  font-size: clamp(3.25rem, 9vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.outline-word {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

.hero-kicker span,
.screen-tabs button {
  border-color: var(--line);
  background: var(--card);
  color: var(--muted);
}

.screen-tabs button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.hero-proof {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-proof div + div {
  border-left-color: var(--line);
}

.hero-proof span {
  color: var(--muted);
}

.statement {
  color: var(--ink);
}

.statement p span {
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 100%;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.step:first-child {
  grid-row: auto;
  min-height: 0;
  background: var(--card);
  border-color: var(--line);
}

.step + .step {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 18%, transparent);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  -webkit-text-stroke: 0;
}

.step:not(:last-child)::after {
  display: none;
}

.step h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.step p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 20px;
}

.modes-section {
  background: transparent;
  color: var(--ink);
  border: 0;
}

.section-heading-light .section-index {
  color: var(--muted);
}

.mode-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}

.mode-row:hover {
  transform: translateY(-2px);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--accent) 18%, transparent);
}

.mode-row:hover p {
  color: var(--muted);
}

.mode-name h3 {
  text-transform: none;
}

.mode-row p {
  color: var(--muted);
}

.mode-row > strong {
  border: 0;
  border-radius: 9px;
  padding: 8px 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.mode-relaxed {
  background: var(--relaxed-soft);
  border-color: color-mix(in srgb, var(--relaxed) 32%, var(--line));
}

.mode-relaxed .mode-name span,
.mode-relaxed > strong {
  color: var(--relaxed);
}

.mode-relaxed > strong {
  background: color-mix(in srgb, var(--relaxed) 13%, var(--card));
}

.mode-standard {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.mode-standard .mode-name span,
.mode-standard > strong {
  color: var(--accent);
}

.mode-standard > strong {
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}

.mode-hardcore {
  background: var(--hardcore-soft);
  border-color: color-mix(in srgb, var(--hardcore) 32%, var(--line));
}

.mode-hardcore .mode-name span,
.mode-hardcore > strong {
  color: var(--hardcore);
}

.mode-hardcore > strong {
  background: color-mix(in srgb, var(--hardcore) 12%, var(--card));
}

.penalty-copy h2 span {
  color: var(--danger);
}

.debt-ledger {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line));
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}

.debt-ledger [role="row"] + [role="row"] {
  border-top: 1px solid var(--line);
}

.debt-ledger strong {
  color: var(--danger);
}

.utility-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}

.final-cta {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  padding: 24px 28px;
  text-align: left;
}

.final-cta .button-dark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  white-space: nowrap;
}

.final-cta > div {
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  gap: 4px;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  text-transform: none;
}

.final-cta p:not(.section-index) {
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

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

  .final-cta {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .final-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 66px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .hero-proof div + div {
    border-top: 1px solid var(--line);
  }

  .step {
    padding: 20px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 12px;
  }

  .final-cta {
    align-items: stretch;
    gap: 14px;
    padding: 22px 20px;
    text-align: left;
  }

  .final-cta > div {
    align-items: flex-start;
  }

  .final-cta .button {
    width: 100%;
  }

}
