/* ============================================================
   INSTAGRAM GROWTH FREEBIE — by @marketing.shekhar
   Design system: Apple-clean, editorial, Orcalynx-inspired
============================================================ */

:root {
  --bg:          #0A0A09;
  --bg-tint:     #111110;
  --surface:     #161614;
  --surface-2:   #1E1E1B;
  --ink:         #F0EDE5;
  --ink-2:       #C4C0B6;
  --muted:       #888880;
  --muted-2:     #555550;
  --line:        #2A2826;
  --line-2:      #383632;

  --accent:      #C9963A;
  --accent-soft: rgba(201,150,58,0.14);
  --accent-ink:  #E8C26A;
  --hot:         oklch(0.65 0.18 28);
  --hot-soft:    rgba(220,100,40,0.15);
  --green:       oklch(0.62 0.14 155);
  --green-soft:  rgba(74,222,128,0.12);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(14,14,12,0.04), 0 2px 8px rgba(14,14,12,0.04);
  --shadow-md: 0 2px 4px rgba(14,14,12,0.04), 0 10px 30px rgba(14,14,12,0.06);
  --shadow-lg: 0 4px 8px rgba(14,14,12,0.05), 0 24px 60px rgba(14,14,12,0.10);

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

/* =========================================================
   LAYOUT
========================================================= */

.page {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 20;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink);
}

.rail-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.rail-title em {
  font-style: italic;
  color: var(--accent);
}

.rail-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.rail-progress-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  width: 0%;
  transition: width 400ms cubic-bezier(.2,.7,.2,1);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  margin: 0 -10px;
  padding: 0 10px;
}

.rail-nav::-webkit-scrollbar { width: 0; }

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  transition: background 180ms, color 180ms;
}

.rail-link:hover { background: var(--surface-2); color: var(--ink); }
.rail-link.is-active { background: var(--accent); color: #0A0A09; }
.rail-link.is-active .rail-link-num { color: #0A0A09; opacity: 0.7; }
.rail-link.is-done .rail-link-num { color: var(--green); }

.rail-link-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  min-width: 18px;
}

.rail-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.rail-footer a:hover { color: var(--accent); border-color: var(--accent); }

.content { min-width: 0; }

/* =========================================================
   SECTIONS
========================================================= */

section.chapter {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  scroll-margin-top: 0;
}

section.chapter.is-hero { padding-top: 80px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow .eyebrow-line {
  flex: 0 0 24px;
  height: 1px;
  background: var(--muted-2);
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 20px;
  text-wrap: balance;
}

.chapter-title em {
  font-style: italic;
  color: var(--accent);
}

.chapter-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 48px;
  text-wrap: pretty;
}

h3.sub {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 400;
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
}

h4.subsub {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 24px 0 10px;
  color: var(--ink);
}

p { margin-bottom: 16px; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 18px; color: var(--ink); }

strong { font-weight: 600; color: var(--ink); }
em { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0.01em;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 48px 40px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-core {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 28px;
  text-wrap: balance;
}

.hero-title em { font-style: italic; color: var(--accent); }
.hero-title .sub-line { display: block; font-size: 0.55em; color: var(--muted); margin-top: 10px; letter-spacing: -0.02em; }

.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  max-width: 620px;
  color: var(--ink-2);
  margin-bottom: 36px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 40px;
}

.hero-meta-cell {
  padding: 4px 20px;
  border-right: 1px solid var(--line);
}
.hero-meta-cell:first-child { padding-left: 0; }
.hero-meta-cell:last-child { border-right: 0; }

.hero-meta-num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 160ms, background 160ms, color 160ms;
}

.btn-primary {
  background: var(--accent);
  color: #0A0A09;
}
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-arrow { font-family: var(--font-mono); font-size: 11px; }

/* Hero signature block */
.hero-sig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-sig-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #C9963A, #A67A2A);
  display: flex; align-items: center; justify-content: center;
  color: #0A0A09; font-family: var(--font-display); font-size: 18px;
  font-style: italic;
}

/* =========================================================
   CARDS / MODULES
========================================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card-flat {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 28px;
}

.callout {
  border-left: 2px solid var(--ink);
  padding-left: 18px;
  margin: 28px 0;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

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

/* list */
.list-dot {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.list-dot li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-2);
}
.list-dot li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  position: absolute;
  left: 4px; top: 10px;
}

/* =========================================================
   TAG / PILL
========================================================= */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-hot { background: var(--hot-soft); color: var(--hot); border-color: transparent; }
.tag-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tag-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =========================================================
   PHONE FRAME (reel mockup)
========================================================= */

.phone {
  width: 240px;
  height: 480px;
  background: #0a0a0a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
  flex-shrink: 0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
  color: white;
  font-size: 13px;
}

.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 20px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 5;
}

.phone-ui {
  position: absolute;
  inset: 0;
  padding: 36px 14px 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-hook-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.phone-hook-text em { font-style: italic; color: oklch(0.9 0.14 80); }

.phone-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone-handle { font-size: 12px; font-weight: 600; opacity: 0.9; }
.phone-caption { font-size: 11px; opacity: 0.8; line-height: 1.3; }

.phone-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(201,150,58,0.5),
    rgba(120,80,20,0.7),
    rgba(60,40,10,0.6));
}

/* =========================================================
   CHECKLIST
========================================================= */

.checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 160ms;
  cursor: pointer;
  user-select: none;
}
.check-item:hover { background: var(--surface-2); }

.check-box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
}

.check-item.is-checked .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-box svg {
  width: 14px; height: 14px;
  color: white;
  opacity: 0;
  transform: scale(0.6);
  transition: all 200ms;
}

.check-item.is-checked .check-box svg {
  opacity: 1;
  transform: scale(1);
}

.check-item.is-checked .check-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.check-text { flex: 1; color: var(--ink); font-size: 15px; line-height: 1.4; }
.check-text small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* =========================================================
   INPUTS
========================================================= */

input[type="text"], textarea, select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  transition: border 160ms, background 160ms;
}
input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
}
input[type="text"]::placeholder, textarea::placeholder { color: var(--muted-2); }

textarea { resize: vertical; min-height: 80px; font-family: inherit; }

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

/* =========================================================
   FOOTER / CTA
========================================================= */

.final-cta {
  max-width: 880px;
  margin: 80px auto 80px;
  padding: 60px 48px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, #C9963A 0%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
}
.final-cta h2 em { font-style: italic; color: #C9963A; }

.final-cta p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 36px;
  position: relative;
}

.final-cta .btn-primary {
  background: #C9963A;
  color: #0A0A09;
}
.final-cta .btn-primary:hover { background: #E8C26A; color: #0A0A09; }

.final-cta .btn-ghost {
  color: var(--ink);
  border-color: var(--line-2);
}
.final-cta .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; }
  .rail {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .rail-nav { display: none; }
  section.chapter { padding: 60px 24px; }
  .hero { padding: 24px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-cell:nth-child(2) { border-right: 0; }
  .hero-meta-cell:nth-child(1), .hero-meta-cell:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .hero-meta-cell:nth-child(3), .hero-meta-cell:nth-child(4) { padding-top: 16px; }
  .final-cta { padding: 40px 24px; margin: 40px 20px; }
}

/* =========================================================
   UTILITIES
========================================================= */

.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* fade-in on view */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   WIDGETS — interactive modules
========================================================= */

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.widget-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.seg-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: all 160ms;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: var(--accent); color: #0A0A09; }

.btn-mini {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 0;
}

/* HOOK GENERATOR */
.hook-card {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-top: 8px;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), opacity 240ms;
}
.hook-card.is-rolling { transform: scale(0.98); opacity: 0.7; }

.hook-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.hook-card-num { color: var(--muted); font-size: 11px; }

.hook-card-template {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hook-card-ex {
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* SCRIPT BUILDER */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
@media (max-width: 820px) { .builder-grid { grid-template-columns: 1fr; } }

.builder-inputs { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; }

.script-box {
  background: #060605;
  color: #C4C0B6;
  border: 1px solid var(--line-2);
  padding: 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-x: auto;
  min-height: 360px;
  max-height: 460px;
  overflow-y: auto;
}

/* VIRAL SCORE */
.score-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) { .score-wrap { grid-template-columns: 1fr; } }

.score-questions { display: flex; flex-direction: column; gap: 4px; }

.score-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background 160ms;
}
.score-row:hover { background: var(--surface-2); }
.score-row input { display: none; }

.score-check {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms;
}
.score-check svg { width: 12px; height: 12px; color: white; opacity: 0; transform: scale(0.6); transition: all 200ms; }
.score-row.is-on .score-check { background: var(--accent); border-color: var(--accent); }
.score-row.is-on .score-check svg { opacity: 1; transform: scale(1); }
.score-label { font-size: 14px; line-height: 1.35; color: var(--ink); }
.score-weight { font-size: 11px; color: var(--muted); }
.score-row.is-on .score-weight { color: var(--green); }

.score-dial {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: sticky;
  top: 20px;
}
.dial { position: relative; width: 180px; height: 180px; }
.dial svg { width: 100%; height: 100%; }
.dial-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.dial-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, 28px);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.score-msg { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 0; }

/* NICHE FINDER */
.niche-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  transition: all 160ms;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-sub.is-on { background: var(--accent); color: white; border-color: var(--accent); }

.niche-result {
  margin-top: 28px;
  padding: 24px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
}
.niche-summary { font-size: 16px; color: var(--ink); }
.niche-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* QUIZ */
.quiz-dots { display: flex; gap: 6px; }
.quiz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
  transition: all 200ms;
}
.quiz-dot.is-done { background: var(--ink); }
.quiz-dot.is-now { background: #C9963A; transform: scale(1.4); }

.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 10px 0 24px;
  color: var(--ink);
  text-wrap: balance;
}

.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: all 180ms;
}
.quiz-opt:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateX(4px); }
.quiz-opt-letter { font-size: 12px; color: var(--muted); }
.quiz-opt:hover .quiz-opt-letter { color: var(--bg); opacity: 0.6; }
.quiz-opt-text { font-size: 15px; line-height: 1.35; }
.quiz-opt-arrow { font-size: 16px; color: var(--muted); opacity: 0; transition: all 180ms; }
.quiz-opt:hover .quiz-opt-arrow { opacity: 1; color: var(--bg); transform: translateX(4px); }

.quiz-result { padding: 40px; }
.quiz-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
}
.quiz-title em { font-style: italic; color: var(--accent); }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .quiz-grid { grid-template-columns: 1fr; } }

/* HOOK STACK DEMO */
.hook-stack-demo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin: 28px 0;
  padding: 36px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}
@media (max-width: 760px) {
  .hook-stack-demo { grid-template-columns: 1fr; }
  .hook-stack-demo .phone { margin: 0 auto; }
}

.hook-stack-lines { display: flex; flex-direction: column; gap: 14px; }
.hs-line {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* OUTLIERS math card */
.callout-math {
  background: rgba(201,150,58,0.08);
  color: var(--ink);
  border: 1px solid rgba(201,150,58,0.25);
  padding: 32px;
  margin: 24px 0;
}
.callout-math p { color: var(--ink-2); }
.math-line { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.math-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.math-eq {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 42px);
  letter-spacing: -0.01em;
  color: #C9963A;
}

/* METHOD */
.method {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.method:last-of-type { border-bottom: 1px solid var(--line); }
.method-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--muted-2);
  line-height: 1;
}

.adapt-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
}
.adapt-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.4;
  align-items: center;
}
.adapt-row:last-child { border-bottom: 0; }
.adapt-head {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.adapt-row > div:nth-child(2) { text-align: center; color: var(--muted); }

/* STEPS */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.steps-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.step-num {
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
}

/* BIO */
.bio-frame {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 20px 0;
}
.bio-line {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.bio-line:last-child { border-bottom: 0; }
.bio-num { color: var(--muted); font-size: 11px; }
.bio-line small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; font-style: italic; font-family: var(--font-display); }

/* FUNNEL */
.funnel { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.funnel-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
}
.funnel-row-0 { background: linear-gradient(180deg, rgba(201,150,58,0.10), var(--surface)); }
.funnel-row-1 { background: linear-gradient(180deg, rgba(201,150,58,0.06), var(--surface)); }
.funnel-row-2 { background: linear-gradient(180deg, rgba(74,222,128,0.07), var(--surface)); }
@media (max-width: 760px) { .funnel-row { grid-template-columns: 1fr; } }

.funnel-level {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.funnel-name { font-size: 16px; margin-top: 6px; color: var(--muted); font-weight: 500; }
.funnel-body { display: flex; flex-direction: column; gap: 14px; }
.funnel-job, .funnel-content { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.funnel-row-meta {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* GAMIFY */
.gamify-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
  margin: 24px 0 40px;
  background: #060605;
  color: var(--ink);
  border: 1px solid rgba(201,150,58,0.25);
  padding: 36px;
}
.gamify-hero h4 { color: var(--ink); }
.gamify-hero p { color: var(--ink-2); }
@media (max-width: 760px) { .gamify-hero { grid-template-columns: 1fr; text-align: center; } }

.gamify-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 760px) { .gamify-stat { padding-right: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 24px; } }
.gamify-stat-num {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 14px;
}
.gamify-stat-num .mono { font-size: 28px; }
.gamify-stat-label { margin-top: 10px; font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }

.gamify-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 760px) { .gamify-grid { grid-template-columns: 1fr; } }

.gamify-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gamify-card-top { display: flex; justify-content: space-between; align-items: center; }
.gamify-card-name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.gamify-hook {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-ink);
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.gamify-example {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--ink);
  border-radius: var(--radius-sm);
}
.gamify-example-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: oklch(0.92 0.01 240);
  line-height: 1.5;
}
.gamify-why {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.gamify-template {
  font-size: 12.5px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  line-height: 1.5;
}
