/* =====================================================
   Good to Great — Cybervahak Portal
   Editorial design: Fraunces serif + Inter sans, warm cream paper, bronze accent.
   ===================================================== */

:root {
  /* paper & ink */
  --paper:      #fbf8f1;
  --paper-2:    #ffffff;
  --paper-warm: #f4efe2;
  --ink:        #1c1917;
  --ink-2:      #44403c;
  --ink-3:      #78716c;
  --ink-4:      #a8a29e;

  /* rules / borders */
  --rule:        #e9e4d6;
  --rule-strong: #d3cdb9;

  /* single accent: warm bronze (premium, timeless, fits a business classic) */
  --accent:       #a16207;
  --accent-2:     #854d0e;
  --accent-soft:  #fef3c7;
  --accent-faint: #fdf6e3;

  /* secondary tints used sparingly */
  --tint-q:    #fef3c7;
  --tint-q-line: #d4a017;
  --tint-a:    #ecf2e8;
  --tint-a-line: #5d7a4f;
  --tint-m:    #fbeae3;
  --tint-m-line: #b03a2e;

  /* typography */
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(28,25,23,0.04);
  --shadow-md: 0 1px 3px rgba(28,25,23,0.05), 0 8px 24px rgba(28,25,23,0.04);
  --shadow-lg: 0 24px 60px -24px rgba(28,25,23,0.18);

  /* layout */
  --container: 1120px;
  --reading:   720px;
}

/* =====================================================
   Reset & base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 1, 'ss02' 1, 'cv11' 1;
}
body { min-height: 100vh; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: 600; }
em { font-style: italic; }

/* Subtle paper texture using a soft radial gradient — calmer than the previous grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(161,98,7,0.04), transparent 70%),
    radial-gradient(800px 500px at 100% 100%, rgba(161,98,7,0.025), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* =====================================================
   Top bar — minimal, with a single thin rule
   ===================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 4px;
  background: var(--paper-2);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
}

.progress-wrap { flex: 1; max-width: 360px; min-width: 200px; }
.progress-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
  font-weight: 500;
}
.progress-bar {
  height: 2px;
  background: var(--rule);
  border-radius: 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-actions { display: inline-flex; align-items: center; gap: 6px; }
.inline-form { display: inline; margin: 0; padding: 0; }
.link-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.15s;
  cursor: pointer;
  letter-spacing: 0.1px;
}
.link-btn:hover { color: var(--ink); background: var(--paper-warm); }

/* =====================================================
   Page shells
   ===================================================== */
.page-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 32px 100px;
  position: relative;
  z-index: 5;
}

/* Reading column — used for prose-heavy pages */
.reading-column {
  max-width: var(--reading);
  margin: 0 auto;
}

/* =====================================================
   Section page — chapter-style header
   ===================================================== */
.section-head { margin-bottom: 48px; max-width: var(--reading); margin-left: auto; margin-right: auto; }

.section-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.meta-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.meta-stage, .meta-section {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  font-weight: 500;
  position: relative;
  padding-left: 18px;
}
.meta-stage::before, .meta-section::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: var(--rule-strong);
}
.meta-section { color: var(--ink); font-weight: 600; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--ink);
  font-feature-settings: 'ss01' 1, 'ss02' 1;
  text-wrap: balance;
}
.section-tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.45;
  text-wrap: balance;
}

/* =====================================================
   Step "dots" — text breadcrumb instead of dots
   ===================================================== */
.stepdots {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto 56px;
  max-width: var(--reading);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.dot {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: all 0.15s;
  position: relative;
}
.dot:last-child { border-right: none; }
.dot:hover { background: var(--paper-warm); color: var(--ink-2); }
.dot.is-current { color: var(--ink); background: var(--paper-2); }
.dot.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.dot.is-done { color: var(--ink-2); }
.dot.is-done .dot-num { color: var(--accent); }

.dot-num {
  font-weight: 600;
  color: var(--ink-4);
}
.dot.is-current .dot-num { color: var(--accent); }
.dot-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================
   Section body — paper card
   ===================================================== */
.section-body {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 64px 72px;
  box-shadow: var(--shadow-md);
  position: relative;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.block-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  width: 100%;
}
.tag-bg svg { color: var(--accent); }
.tag-q  { color: var(--accent-2); }
.tag-a  { color: var(--accent-2); }
.tag-m  { color: var(--accent-2); }

/* =====================================================
   TITLE PAGE — like a book chapter opening
   ===================================================== */
.section-body-title { padding: 88px 80px 96px; text-align: left; }
.title-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}
.title-big-num {
  font-family: var(--serif);
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -6px;
  color: var(--accent);
  font-feature-settings: 'ss01' 1, 'lnum' 1;
}
.title-stage-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.title-headline {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  color: var(--ink);
  text-wrap: balance;
}
.title-tagline-large {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 60ch;
  text-wrap: balance;
}
.title-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  font-style: normal;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.1px;
}

/* =====================================================
   BACKGROUND PAGE — long-form reading
   ===================================================== */
.section-body-background { padding: 64px 72px 72px; }
.section-body-background .block-tag { max-width: var(--reading); margin-left: auto; margin-right: auto; }

.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  max-width: var(--reading);
  margin: 0 auto;
  font-weight: 400;
}
.prose p { margin-bottom: 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.4em;
  float: left;
  line-height: 0.9;
  margin: 0.05em 0.08em 0 0;
  color: var(--accent);
}
.prose em { font-style: italic; color: var(--accent-2); }
.prose strong { font-weight: 600; color: var(--ink); }

.bg-list {
  list-style: none;
  padding-left: 0;
  margin: 22px 0 22px 28px;
}
.bg-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
.bg-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 1px;
  background: var(--accent);
}

/* =====================================================
   QUESTION PAGE — single elegant pull-question
   ===================================================== */
.section-body-question {
  padding: 80px 72px 88px;
  text-align: center;
}
.section-body-question .block-tag {
  max-width: var(--reading);
  margin: 0 auto 36px;
  justify-content: center;
}
.question-headline {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--ink);
  max-width: 820px;
  margin: 24px auto 36px;
  position: relative;
  text-wrap: balance;
}
.question-headline::before, .question-headline::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 28px auto;
}
.question-prompt {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.2px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   ANSWERS PAGE — numbered list, clean
   ===================================================== */
.section-body-answers { padding: 64px 72px 72px; }
.answers-recap {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-2);
  padding: 16px 22px;
  background: var(--accent-faint);
  border-left: 2px solid var(--accent);
  margin: 0 auto 36px;
  max-width: var(--reading);
  line-height: 1.55;
}
.answers-recap strong {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-right: 10px;
  font-weight: 600;
}
.answers-intro {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 auto 24px;
  max-width: var(--reading);
}
.answers-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.answer-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.answer-card:hover { background: var(--paper-warm); }
.answer-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}
.answer-text {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.answer-text strong { font-weight: 600; color: var(--ink); }

/* Hedgehog: special pull-quote treatment */
.hedgehog {
  margin: 48px auto 0;
  padding: 36px 44px;
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  max-width: 880px;
  position: relative;
}
.hedgehog::before {
  content: "";
  position: absolute;
  top: -1px; left: 36px; right: 36px;
  height: 2px;
  background: var(--accent);
}
.hedgehog-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.hedgehog-text {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  text-wrap: balance;
}

/* =====================================================
   MESSAGE PAGE — pull quote
   ===================================================== */
.section-body-message {
  padding: 88px 72px 96px;
  text-align: center;
}
.section-body-message .block-tag {
  max-width: var(--reading);
  margin: 0 auto 40px;
  justify-content: center;
}
.message-quote {
  position: relative;
  margin: 0 auto;
  max-width: 820px;
  padding: 0 24px;
}
.message-quote .quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 96px;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  line-height: 0.6;
  margin-bottom: 24px;
}
.message-quote p {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.message-cta {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.message-cta strong { color: var(--accent); font-weight: 600; }

/* =====================================================
   COVER (home)
   ===================================================== */
.cover {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 32px 120px;
  position: relative; z-index: 5;
  text-align: center;
}
.cover-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 36px;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.cover-title {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 28px;
  color: var(--ink);
  text-wrap: balance;
}
.cover-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.cover-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 22px);
  font-style: italic;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto 56px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: balance;
}
.cover-lead strong { color: var(--ink); font-style: normal; font-weight: 600; }
.cover-lead em { color: var(--accent-2); font-style: italic; }

.journey-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  margin: 56px auto 64px;
  max-width: 900px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.js-stage {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 4px 8px;
  transition: color 0.15s;
}
.js-stage:hover { color: var(--accent); }
.js-arrow { color: var(--rule-strong); margin: 0 2px; font-size: 12px; }

.cover-actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.big-btn {
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  border: 1px solid transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.big-btn.primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.big-btn.primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.big-btn.ghost {
  background: var(--paper-2);
  border-color: var(--rule-strong);
  color: var(--ink);
}
.big-btn.ghost:hover { border-color: var(--ink); background: var(--paper-warm); }

.cover-hint {
  margin-top: 40px;
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--sans);
}
.cover-hint kbd {
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  margin: 0 2px;
}

/* =====================================================
   OVERVIEW grid
   ===================================================== */
.page-head { margin-bottom: 56px; max-width: var(--reading); }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  color: var(--ink);
  text-wrap: balance;
}
.page-lead {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.5;
}

.topic-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.topic-card {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--paper-2);
  transition: background 0.2s;
  position: relative;
}
.topic-card:hover { background: var(--paper-warm); }
.topic-card-link {
  display: block;
  padding: 32px 28px 28px;
  height: 100%;
}
.topic-card-num {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.topic-card-num .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}
.topic-card-num .stage {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.topic-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.topic-card-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 22px;
  line-height: 1.5;
}
.topic-card-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* =====================================================
   Bottom navigation
   ===================================================== */
.page-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  max-width: var(--reading);
  margin-left: auto;
  margin-right: auto;
}
.nav-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-2);
}
.nav-btn:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}
.nav-btn.primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  font-weight: 600;
  justify-self: end;
  box-shadow: var(--shadow-sm);
}
.nav-btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-btn .nav-direction {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.nav-btn.primary .nav-direction { color: rgba(251,248,241,0.7); }
.nav-btn .nav-label { font-weight: 500; }

.nav-btn[rel="prev"] { justify-self: start; }
.nav-btn[rel="next"] { justify-self: end; }

.nav-counter {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 1.5px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}
.nav-counter strong { color: var(--ink); font-size: 13px; font-weight: 700; }

/* =====================================================
   LOGIN / ERROR
   ===================================================== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  z-index: 5;
}
.auth-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 56px 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 48px; right: 48px;
  height: 2px;
  background: var(--accent);
}
.auth-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.auth-brand .brand-mark { width: 42px; height: 42px; font-size: 23px; }
.auth-brand .brand-title { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.auth-brand .brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 500;
}
.auth-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.auth-help {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.auth-error {
  background: var(--tint-m);
  border: 1px solid rgba(176, 58, 46, 0.3);
  border-left: 3px solid var(--tint-m-line);
  color: var(--tint-m-line);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 24px;
  font-weight: 500;
}
.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 6px;
}
.auth-input {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 16px;
  transition: all 0.15s;
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-submit {
  margin-top: 16px;
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 16px 24px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  display: block;
  text-decoration: none;
  letter-spacing: 0.1px;
  box-shadow: var(--shadow-sm);
}
.auth-submit:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.auth-foot {
  margin-top: 28px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
  font-family: var(--sans);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 768px) {
  .topbar-inner { padding: 14px 20px; gap: 14px; }
  .progress-wrap { order: 3; flex-basis: 100%; max-width: 100%; }
  .page-shell, .cover { padding-left: 20px; padding-right: 20px; padding-top: 40px; padding-bottom: 64px; }
  .section-body, .section-body-title, .section-body-background, .section-body-question, .section-body-answers, .section-body-message {
    padding: 36px 24px;
  }
  .title-hero { grid-template-columns: 1fr; gap: 24px; }
  .title-big-num { font-size: 96px; letter-spacing: -3px; }
  .stepdots { flex-direction: row; overflow-x: auto; }
  .dot-label { display: none; }
  .dot { padding: 12px 14px; flex: 0 0 auto; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { border-right: none; }
  .page-nav { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-nav .nav-counter { display: none; }
  .nav-btn { padding: 12px 14px; }
  .nav-btn .nav-direction { display: none; }
  .auth-card { padding: 40px 28px; }
  .prose { font-size: 17px; }
  .prose p:first-of-type::first-letter { font-size: 3.6em; }
  .answer-card { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 4px; }
  .answer-text { font-size: 16px; }
  .hedgehog { padding: 24px 22px; margin-top: 32px; }
  .question-headline::before, .question-headline::after { margin: 18px auto; }
}

/* =====================================================
   Print
   ===================================================== */
@media print {
  body::before { display: none; }
  .topbar, .stepdots, .page-nav, .topbar-actions, .cover-hint, .cover-actions { display: none !important; }
  .section-body { box-shadow: none; border: 1px solid #d6d3d1; page-break-after: always; }
  .topic-grid { page-break-inside: avoid; }
  body { background: #fff; }
}
