@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }

:root {
  --bg: #f8f7f4; --surface: #fffefc; --text: #1a1a1a; --body: #2c2c2a; --muted: #57534e;
  --line: rgba(0, 0, 0, 0.12); --accent: #f97316; --accent-text: #b8450a; --on-accent: #1a1a1a; --error: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514; --surface: #201e1d; --text: #f6f4f1; --body: #dedad5; --muted: #aaa49d;
    --line: rgba(255, 255, 255, 0.14); --accent: #f97316; --accent-text: #fb923c; --on-accent: #1a1a1a; --error: #fca5a5;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.65 "Inter", system-ui, sans-serif; }
h1, h2, h3 { color: var(--text); letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; max-width: 65ch; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.lead { font-size: 1.2rem; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 16px; }

.btn { display: inline-block; padding: 14px 26px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent);
  transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; transform: none; }

.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline; }
.nav .btn { padding: 8px 16px; }

.hero { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; padding: clamp(40px, 6vw, 88px) 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.loop { background: var(--accent); color: var(--on-accent); padding: 28px; }
.loop p { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split ul, .plain { margin: 16px 0 0; padding: 0; list-style: none; }
.split li { padding: 10px 0 10px 18px; border-left: 3px solid var(--accent); margin-bottom: 8px; }
.split .no li { border-left-color: var(--line); }

.curriculum { margin-top: 32px; display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
summary { cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--text); }
details p { padding: 0 20px 18px; }

.flow { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.flow > div { border-top: 3px solid var(--accent); padding-top: 14px; }
.flow p { font-size: 0.97rem; margin-top: 6px; }

.enrol { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--accent);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding: clamp(24px, 4vw, 48px); }
.price { font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.enrol .plain li { padding: 7px 0; }

.faq { max-width: 780px; }
.doc { max-width: 760px; padding: clamp(40px, 6vw, 72px) 16px; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); }
.doc h2 { font-size: 1.3rem; margin-top: 36px; letter-spacing: -0.015em; }
.doc p, .doc ul { margin-top: 12px; }
.doc li { margin-top: 6px; }
.facts { display: grid; grid-template-columns: 180px 1fr; gap: 8px 20px; margin-top: 24px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }

.foot { border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.9rem; color: var(--muted); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.foot p + p { margin-top: 8px; }
.foot .foot-small { font-size: 0.78rem; }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero, .split, .enrol, .foot .cols { grid-template-columns: 1fr; gap: 32px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 20px; }
  .nav-links a:not(.btn):not([href="/login"]) { display: none; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 12px; }
}
@media (max-width: 420px) { .flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

.form { margin-top: 28px; display: grid; gap: 20px; }
.form[hidden], .check[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field label { font-weight: 600; color: var(--text); }
input:not([type="checkbox"]), select { width: 100%; padding: 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--muted); border-radius: 0; }
[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 0.9rem; color: var(--muted); }
.error { font-size: 0.92rem; color: var(--error); }
.error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.bump { background: var(--surface); border: 2px dashed var(--accent); padding: 16px; }
.form .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem; }
.form .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.lesson { display: block; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); font-weight: 600; color: var(--text); text-decoration: none; }
.lesson:hover { text-decoration: underline; }
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 20px; background: var(--surface); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Admin */
.admin { padding-top: 24px; padding-bottom: 64px; }
.admin h1 { font-size: 2rem; margin-top: 24px; }
.admin h2 { font-size: 1.25rem; margin-top: 40px; }
.admin > p, .admin .facts, .admin .table-wrap, .admin .empty { margin-top: 16px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-weight: 600; }
.admin-nav a { text-decoration: none; color: var(--muted); }
.admin-nav a:hover { color: var(--text); }
.admin-nav a[aria-current="page"] { color: var(--text); box-shadow: 0 3px 0 var(--accent); }
.admin .notice { background: var(--surface); border-left: 4px solid var(--accent); padding: 10px 14px; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.stat dt { color: var(--muted); font-size: 0.9rem; }
.stat dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat p { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.admin-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; }
.admin-search input[type="search"], .admin-search select { padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.admin-search input[type="search"] { flex: 1 1 240px; min-width: 0; }
.admin-search .btn { padding: 10px 18px; }
.admin-search .check { display: flex; align-items: center; gap: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.table-wrap:focus-visible { outline: 2px solid var(--accent); }
.admin table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin th, .admin td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text); }
.admin th { color: var(--muted); font-weight: 600; }
.admin tbody tr:last-child td { border-bottom: 0; }
.admin form { margin: 0; }
.badge { display: inline-block; padding: 2px 8px; font-size: 0.82rem; font-weight: 700; border: 1px solid var(--line); }
.badge.paid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.badge.refunded { border-color: var(--text); }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.admin-actions { margin-top: 16px; }
.pager { display: flex; gap: 20px; margin-top: 16px; }
.admin .empty { color: var(--muted); }

/* Sales page (/static-ad-studio). Same tokens and sharp corners, with bolder type. */
.lp { overflow-x: clip; }

.lp-narrow:not(.wrap), .wrap.lp-narrow > * { max-width: 760px; }
.lp-btn { font-size: 1.05rem; padding: 16px 28px; }
.lp-hero { border-bottom: 1px solid var(--line); }
.lp-hero h1 { margin-top: 18px; font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 850; letter-spacing: -0.045em; line-height: 0.98; }

/* Placeholders: hatched boxes, easy to spot and swap. */
.ph { position: relative; display: grid; place-items: center; text-align: center; padding: 12px;
  border: 1px dashed var(--muted); color: var(--muted); font-size: 0.85rem; font-weight: 600;
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--line) 10px 11px), var(--surface); }
.ph span { background: var(--surface); padding: 4px 8px; }
.ph-ad { aspect-ratio: 4 / 5; }
.ph-video { aspect-ratio: 16 / 9; margin: 32px 0; }
.lp-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 32px 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px -22px rgba(40, 30, 20, 0.4); }
.ph-text { background: var(--accent); color: var(--on-accent); padding: 0 6px; }

.lp-ad { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(40, 30, 20, 0.35); }

.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.25s ease; }
.lp-sticky.show { transform: none; }
.lp-sticky strong { font-size: 1.2rem; color: var(--text); }
.lp-sticky .btn { padding: 10px 16px; }
.lp-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lp-motion .reveal.in { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .lp-sticky { display: flex; }
  .lp-btn { display: block; text-align: center; white-space: normal; padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) { .lp-sticky { transition: none; } }

@media (max-width: 767px) { .lp-hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.9rem); } }

/* ---- Sales page sections: stack structure, centred, alternating bands ---- */
.sx { --tint: color-mix(in srgb, var(--accent) 7%, var(--bg)); --alt: color-mix(in srgb, var(--text) 5%, var(--bg)); }
.sx .cp { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: 1px dashed var(--accent-text); outline-offset: 1px; padding: 0 4px; }
.sx-tint { background: var(--tint); }
.sx-alt { background: var(--alt); }
.sx-sec { padding: clamp(48px, 7vw, 80px) 0; }
.sx-tight { padding: clamp(32px, 5vw, 48px) 0; }
.sx-center { text-align: center; }
.sx-center p { margin-left: auto; margin-right: auto; }
.sx-strip { background: var(--text); color: var(--bg); text-align: center; font-weight: 700; font-size: 0.9rem; padding: 10px 16px; letter-spacing: 0.02em; }
.sx-strip .cp { background: transparent; outline-color: var(--accent); }
.sx-hero { padding: clamp(40px, 6vw, 72px) 0; }
.sx-eyebrow { font-weight: 700; color: var(--accent-text); margin-bottom: 14px; }
.sx-hero h1 { max-width: 20ch; margin: 0 auto; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.sx-hero-img { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto; }
.sx-cta { margin-top: clamp(28px, 4vw, 40px); }
.sx-note { margin-top: 16px; color: var(--muted); }
.sx-sub { margin-top: 14px; font-size: 1.1rem; }
.sx-more { margin-top: 32px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.sx-hint { margin-top: 18px; font-weight: 700; font-size: 0.95rem; }
.sx-hint::before { content: "↓ "; } .sx-hint::after { content: " ↓"; }
.sx-fine { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

.sx-ticks { list-style: none; padding: 0; margin: 32px auto 0; max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; text-align: left; }
.sx-ticks li { position: relative; padding-left: 32px; }
.sx-ticks li::before, .sx-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--accent-text); }
.sx-ticks li::before { width: 22px; height: 22px; top: 2px; display: grid; place-items: center; font-size: 0.8rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); }

.sx-h-group { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.sx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); max-width: 860px; margin: 32px auto 0; }
.sx-cards figure { margin: 0; }
.sx-cards figcaption { margin-top: 12px; font-size: 0.95rem; font-weight: 600; }

.sx-inc-head { padding-bottom: 8px; }
.sx-item { padding: clamp(28px, 4vw, 44px) 0; }
.sx-item .wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 960px; }
.sx-item img, .sx-item .ph { width: 100%; height: auto; display: block; }
.sx-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.sx-val { white-space: nowrap; font-weight: 700; color: var(--accent-text); }
.sx-val s { color: var(--muted); }
.ph-mock { aspect-ratio: 16 / 10; }
.sx-pair { display: grid; gap: 12px; }

.sx-niches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 32px auto 0; }
.sx-niches > div { border: 2px solid var(--accent); background: var(--surface); padding: 24px 16px; }
.sx-badge { display: block; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent); }
.sx-badge::after { content: "✓"; display: grid; place-items: center; height: 100%; font-weight: 800; color: var(--on-accent); }
.sx-niches + .sx-sub { margin-top: 32px; }
.sx-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 24px auto 0; text-align: left; }
.sx-list ul { list-style: none; margin: 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); }
.sx-list li { position: relative; padding: 4px 0 4px 24px; font-size: 0.95rem; }

.sx-ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); max-width: 900px; margin: 28px auto 0; }
.sx-ba img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }

.sx-me { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); max-width: 1080px; }
.sx-me-text > * + * { margin-top: 14px; }
.sx-me-text h3 { font-size: 1.3rem; margin-top: 24px; }
.sx-accent-h { color: var(--accent-text); }
/* The photo is a cut-out that ends at the waist, so it stands on the bottom edge of its panel. */
.sx-me-media { align-self: center; padding: 28px 16px 0; background: var(--tint); border-bottom: 4px solid var(--accent); }
.sx-me-media img { display: block; width: 100%; height: auto; max-width: 480px; margin: 0 auto; }

.sx .lp-video { max-width: 960px; margin: 32px auto 0; }
.sx-faq { margin-top: 32px; display: grid; gap: 10px; }
.sx-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 1.2rem; font-weight: 700; line-height: 1; transition: transform 0.2s ease; }
.sx-faq details[open] summary::after { transform: rotate(45deg); }
.sx-faq summary:hover { color: var(--accent-text); }
.sx-faq details p { max-width: none; }
@media (prefers-reduced-motion: reduce) { .sx-faq summary::after { transition: none; } }

@media (max-width: 767px) {
  .sx-ticks, .sx-niches, .sx-list, .sx-me { grid-template-columns: 1fr; }
  .sx-me-media { order: -1; }
  .sx-me-media img { max-width: 260px; }
  .sx-ba { grid-template-columns: 1fr; max-width: 480px; }
  .sx-cards { gap: 10px; }
  .sx-cards figcaption { font-size: 0.8rem; }
  .sx-item .wrap { grid-template-columns: 1fr; }
}
/* Crossed-out full price before the launch price. */
[data-price-was] { white-space: nowrap; }
[data-price-was] s { opacity: 0.6; font-weight: 600; text-decoration-thickness: 2px; }

/* Checkout bump */
.bump-head { display: block; color: var(--text); font-size: 1.05rem; }
.bump-img { display: block; width: 100%; max-width: 360px; height: auto; margin: 10px 0; border: 1px solid var(--line); }
.bump-copy { display: block; color: var(--body); font-size: 0.95rem; }

/* Thank-you upsells */
.upsell { max-width: 760px; margin: 8px auto 40px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 2px solid var(--accent); text-align: center; }
.upsell > * + * { margin-top: 16px; }
.upsell p { margin-left: auto; margin-right: auto; }
.upsell img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.upsell-eyebrow { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.85rem; padding: 4px 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.upsell h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.upsell .sx-ticks { margin-top: 20px; grid-template-columns: 1fr; max-width: 520px; }
.upsell-actions { display: grid; justify-items: center; gap: 14px; margin-top: 24px; }
.upsell-actions .btn { white-space: normal; }
.upsell-actions .linkish { color: var(--muted); text-decoration: underline; justify-self: center; }
.upsell-note { font-size: 0.9rem; }
.upsell-help { text-align: center; margin: 0 auto 48px; }

/* Buyer area (/learn): plain, step by step. Square corners like the rest of the site. */
.learn { max-width: 880px; padding: clamp(32px, 5vw, 56px) 16px 56px; }
.learn h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.learn h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.learn h3 { font-size: 1.05rem; }
.learn p { margin-top: 8px; }
.learn-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.learn-eyebrow { color: var(--accent-text); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.learn-head .lead { color: var(--muted); }
.learn-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.step-num { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.2rem; }
.step-body { min-width: 0; }
.step-body > .btn, .step-body p > .btn { margin-top: 8px; }
.learn .curriculum { margin-top: 16px; }
.learn-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.learn-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.learn-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.learn-card > div { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.learn-card .btn { margin-top: auto; align-self: flex-start; padding: 10px 18px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto !important; padding-top: 8px; }
.card-actions .btn { margin-top: 0; }

.video-card { display: grid; grid-template-columns: 168px 1fr; gap: 14px; align-items: center; margin-top: 16px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); color: var(--text); text-decoration: none; }
.video-card:hover strong { text-decoration: underline; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--line); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; background: var(--accent); clip-path: polygon(30% 20%, 30% 80%, 80% 50%); }
.video-text { display: flex; flex-direction: column; gap: 2px; }
.video-card .lesson-action { color: var(--accent-text); font-weight: 700; font-size: 0.9rem; margin-top: 4px; }
.video-card.soon { opacity: 0.6; border-left-color: var(--line); }

.plan-tabs { display: inline-flex; margin-top: 16px; border: 1px solid var(--line); }
.plan-tabs button { font: inherit; font-weight: 700; padding: 10px 20px; background: var(--surface); color: var(--muted); border: 0; cursor: pointer; }
.plan-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.plan-panel { margin-top: 16px; }
.js-tabs .plan-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.learn-steps { margin: 12px 0 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.learn-steps li { counter-increment: s; position: relative; padding-left: 36px; margin: 0; }
.learn-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--accent); color: var(--accent-text); }

.prompt-box { margin-top: 24px; padding: 16px; background: var(--surface); border: 2px dashed var(--accent); }
.prompt-label { font-weight: 700; margin-top: 0 !important; }
.prompt-box pre { margin: 8px 0 0; padding: 12px 14px; background: var(--bg); border-left: 4px solid var(--accent); white-space: pre-wrap; word-break: break-word; font: 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.prompt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px !important; }
.prompt-foot .btn { padding: 8px 16px; }
.learn-help { padding: 32px 0 0; }

@media (max-width: 560px) {
  .learn-step { grid-template-columns: 1fr; gap: 10px; }
  .step-num { width: 36px; height: 36px; font-size: 1rem; }
  .video-card { grid-template-columns: 112px 1fr; }
}
.learn .lesson { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; }
.learn .lesson .muted { grid-column: 1; font-weight: 400; font-size: 0.95rem; }
.learn .lesson .lesson-action { grid-column: 2; grid-row: 1 / span 2; color: var(--accent-text); font-size: 0.9rem; }
.learn .lesson.soon { border-left-color: var(--line); }
.learn .lesson.soon .lesson-action { color: var(--muted); }

/* Buyer area: per-plan install guide steps with screenshots. */
.guide-pdf { margin-top: 12px !important; }
.guide-pdf .btn { padding: 10px 18px; }
.guide-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 32px; }
.guide-steps h4 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.guide-num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.9rem; }
.guide-steps .prompt-box { margin-top: 12px; }
.guide-shot { display: block; margin-top: 12px; border: 1px solid var(--line); }
.guide-shot img { display: block; width: 100%; height: auto; }
.plan-panel > .video-card { margin-top: 16px; }
.learn-card.wide { grid-column: 1 / -1; }
.learn-card img.strip { aspect-ratio: auto; object-fit: contain; }

/* Sales page demo: four steps, text beside a large screenshot */
.sx-demo { background: var(--bg); }
.sx-steps { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1040px; display: grid; gap: clamp(28px, 5vw, 56px); }
.sx-steps li { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.sx-steps li:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.sx-steps li:nth-child(even) .sx-step-text { order: 2; }
.sx-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.sx-step-text h3 { font-size: 1.3rem; margin-bottom: 8px; }
.sx-step-text p { color: var(--body); }
.sx-steps a { display: block; }
.sx-steps img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 12px 32px -18px rgba(60, 40, 20, 0.35); }
@media (max-width: 767px) {
  .sx-steps li, .sx-steps li:nth-child(even) { grid-template-columns: 1fr; gap: 14px; }
  .sx-steps li:nth-child(even) .sx-step-text { order: 0; }
  .sx-step-n { width: 34px; height: 34px; font-size: 1rem; margin-bottom: 10px; }
}

/* Login: Google button, following Google's button colours in light and dark */
#google-error { margin-top: 20px; }
.google-login { margin-top: 28px; }
.google-login[hidden] { display: none; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 20px; background: #fff; border: 1px solid #747775; color: #1f1f1f; font-weight: 600; text-decoration: none; }
.google-btn:hover { background: #f5f5f4; }
.google-btn svg { flex: none; }
.google-or { max-width: none; display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.google-or::before, .google-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google-login + .form { margin-top: 20px; }
@media (prefers-color-scheme: dark) { .google-btn { background: #131314; border-color: #8e918f; color: #e3e3e3; } .google-btn:hover { background: #1f1f20; } }

/* AI Opportunity Finder (/ai-opportunity-finder): one question per screen, mobile first. Same tokens and square corners. */
.aof [hidden] { display: none !important; }
.aof-intro h1 { max-width: 16ch; margin: 0 auto; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.aof-intro .lp-btn { cursor: pointer; font-family: inherit; }
.aof-wrap { max-width: 680px; margin: 0 auto; padding: 24px 16px 72px; }
.aof-wrap h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.aof-center { text-align: center; }
.aof-center p { margin-left: auto; margin-right: auto; }
.aof-progress { height: 6px; background: var(--line); }
.aof-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }
.aof-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 20px; color: var(--muted); font-size: 0.92rem; }
.aof-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.aof-q legend { padding: 0; }
.aof-q h2:focus { outline: none; }
.aof-q .hint { margin-top: 8px; }
.aof-options { display: grid; gap: 10px; margin-top: 20px; }
.aof-opt { display: block; width: 100%; min-height: 56px; padding: 14px 18px; text-align: left; font: inherit; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); cursor: pointer; }
.aof-opt:hover { border-left-color: var(--accent); }
.aof-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.aof-opt[aria-pressed="true"]::after { content: "✓"; float: right; color: var(--accent-text); font-weight: 800; }
.aof-other { margin-top: 4px; }
.aof-text { width: 100%; padding: 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; resize: vertical; }
.aof-count { text-align: right; max-width: none; }
.aof-q-error, #aof-q-error { margin-top: 12px; }
.aof-next, .aof-wrap .form .btn { margin-top: 20px; width: 100%; cursor: pointer; font-family: inherit; }
.aof-small { font-size: 0.9rem; }
.aof-turnstile { min-height: 65px; }
.aof-spinner { width: 44px; height: 44px; margin: 48px auto 24px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: aof-spin 0.9s linear infinite; }
@keyframes aof-spin { to { transform: rotate(360deg); } }
.aof-center .muted { margin-top: 10px; }

.aof-report h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; }
.aof-report h1:focus { outline: none; }
/* Claude's one-sentence summary: body-sized and set off by the accent rule, so it reads as a sentence, not a wall of heading. */
.aof-headline { margin-top: 14px; padding-left: 14px; border-left: 4px solid var(--accent); font-size: clamp(1.05rem, 3.6vw, 1.2rem); line-height: 1.5; color: var(--text); }
.aof-card { margin-top: 24px; padding: clamp(18px, 4vw, 28px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); scroll-margin-top: 88px; }
.aof-card.is-constraint { border: 2px solid var(--accent); border-top-width: 6px; }
.aof-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.aof-rank { font-weight: 800; font-size: 1.1rem; color: var(--accent-text); }
.aof-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.aof-row { margin-top: 8px; }
.aof-value { margin-top: 18px; font-size: clamp(1.35rem, 4.5vw, 1.7rem); font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.aof-est { display: inline-block; margin-left: 8px; padding: 1px 6px; vertical-align: middle; font-size: 0.75rem; font-weight: 700; letter-spacing: 0; color: var(--muted); border: 1px solid var(--line); }
.aof-week { margin-top: 18px; padding: 14px 16px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 2px dashed var(--accent); }
.aof-week strong { color: var(--text); }
.aof-week p { margin-top: 4px; }
.aof-constraint { display: block; margin-top: 28px; padding: clamp(18px, 4vw, 26px); background: var(--accent); color: var(--on-accent); text-decoration: none; }
.aof-constraint-label { display: block; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.aof-constraint strong { display: block; margin-top: 4px; font-size: 1.25rem; }
.aof-constraint p { margin-top: 8px; }
.aof-assume { margin: 24px 0 0; padding: 0 0 0 18px; font-size: 0.85rem; color: var(--muted); }
.aof-ref { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.aof-final-step { margin-top: 40px; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 2px solid var(--accent); text-align: center; }
.aof-final-step > * + * { margin-top: 12px; }
.aof-final-step p { margin-left: auto; margin-right: auto; }
/* WhatsApp's own button style: its green, white text and logo, pill shaped. */
.aof-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; padding: 10px 20px;
  background: #25d366; color: #fff; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(18, 140, 126, 0.6); transition: transform 0.15s ease, background 0.15s ease; }
.aof-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.aof-wa:active { transform: translateY(1px); }
.aof-wa img { flex: none; width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .aof-wa { transition: none; } }
.aof-final-step .linkish { color: var(--muted); }
.aof-final-step .form { text-align: left; }
.aof-sent { font-weight: 700; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .aof-progress span { transition: none; } .aof-spinner { animation-duration: 3s; } }

/* ---- Home page (/): reuses the sales-page .sx tokens and parts. Only the new pieces live here. ---- */
.home-hero h1 { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; margin-top: clamp(28px, 4vw, 40px); }
.home-ticks { grid-template-columns: 1fr; max-width: 560px; }
.home-method { list-style: none; padding: 0; margin: 32px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.home-method li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 24px; }
.home-method h3 { margin-bottom: 8px; }
.home-path { list-style: none; padding: 0; margin: 32px auto 0; max-width: 760px; }
.home-path li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.home-path li:last-child { border-bottom: 0; }
.home-path h3 { margin-bottom: 4px; }
.home-guarantee { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 2px solid var(--accent); text-align: center; }
.home-guarantee > * + * { margin-top: 14px; }
.home-guarantee p { margin-left: auto; margin-right: auto; }
.home-final { border-top: 1px solid var(--line); }
.home-product { padding-top: 8px; padding-bottom: 32px; text-align: center; max-width: none; font-size: 0.9rem; color: var(--muted); }
.home-sticky-text { font-weight: 700; color: var(--text); }
.nav-links a { white-space: nowrap; }
@media (max-width: 400px) { .nav-wide { display: none; } }
.home-wa { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 21; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; box-shadow: 0 8px 22px -8px rgba(18, 140, 126, 0.7);
  transition: transform 0.15s ease, background 0.15s ease; }
.home-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .home-wa { transition: none; } }
@media (max-width: 767px) {
  .home-method { grid-template-columns: 1fr; }
  .home-actions { flex-direction: column; align-items: stretch; }
  .home-path li { grid-template-columns: 36px 1fr; gap: 12px; }
  .home-path .step-num { width: 36px; height: 36px; font-size: 1rem; }
  .home { padding-bottom: 64px; }
  /* Sits above the sticky bar. */
  .home-wa { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}
.home-nowrap { white-space: nowrap; }
