/* ============================================================
   klang-guide — design system
   Palette is shared with the free PDF, email, and blog CTA:
   ink navy / brand red / warm paper. One brand everywhere.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Aurora Deep Dark Mode Variables */
  --paper:      #0d1117;  /* Changed from cream to Deep Dark */
  --paper-deep: #161b22;  /* Card background */
  --ink:        #c9d1d9;  /* Primary text */
  --ink-soft:   #8b949e;  /* Secondary text */
  --muted:      #6E7284;
  --hairline:   #30363d;  /* Border color */
  --red:        #9D6FFF;  /* Aurora violet accent */
  --red-deep:   #7C4DFF;
  --blue-glow:  #4F8FFF;
  --pink-glow:  #FF7AC6;
  --navy:       #241A45;
  --navy-deep:  #150F29;
  --sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  z-index: 0;
  font-family: var(--sans);
  background-image:
    radial-gradient(140% 85% at 50% 115%, rgba(157,111,255,0.20) 0%, rgba(79,143,255,0.09) 38%, transparent 68%);
  background-repeat: no-repeat;
  background-size: auto;
  background-attachment: scroll;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  body {
    background-image: radial-gradient(140% 85% at 50% 115%, rgba(157,111,255,0.20) 0%, rgba(79,143,255,0.09) 38%, transparent 68%);
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
}

/* ── Aurora glow: soft, slowly drifting light so every page feels alive
   on load instead of a flat dark rectangle. Multi-stop gradients (rather
   than a hard-edged blurred circle) + screen blend so overlapping colors
   melt into each other like a real aurora instead of stacking as flat
   blobs. ────────────────────� - 5vw)) scale(1.3) rotate(-30deg); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.wordmark {
  font-size: 22px; font-weight: bold; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.wordmark .dot { color: var(--red); }
.wordmark .kr {
  font-size: 13px; color: var(--muted); font-weight: normal;
  margin-left: 8px; letter-spacing: 0.14em;
}
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--sans); font-size: 14px; text-decoration: none;
  color: var(--ink-soft); letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--red); }
.btn-nav {
  background: var(--red); color: #fff !important; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
}
.btn-nav:hover { background: var(--red-deep); color: #fff !important; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: 16px; text-decoration: none; border-radius: 10px;
  padding: 15px 32px; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(157, 111, 255, .35); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 12vw, 130px) 0 clamp(64px, 10vw, 110px);
  border-bottom: 1px solid var(--hairline);
}
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 48vw; height: 48vw; right: -10vw; top: -16vw; border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    var(--pink-glow) 0%, rgba(255,122,198,.5) 30%, rgba(255,122,198,.14) 58%, transparent 78%);
  filter: blur(85px); opacity: 0.3;
  animation: auroraDriftB 30s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero-glyph {
  position: absolute; right: -4%; top: 50%; transform: translateY(-52%);
  font-size: clamp(280px, 42vw, 560px); line-height: 1;
  color: var(--paper-deep); user-select: none; pointer-events: none;
  font-weight: bold; z-index: 0;
  transition: opacity .4s ease;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--red); text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.08;
  letter-spacing: -0.025em; max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero-sub {
  margin-top: 26px; font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft); max-width: 54ch;
}
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ── Live growth strip ──────────────────────────────────── */
.growth-strip { border-bottom: 1px solid var(--hairline); background: var(--paper); }
.growth-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding: 34px 0; text-align: center;
}
.growth-stat { display: flex; flex-direction: column; align-items: center; }
.growth-stat .num {
  font-family: var(--serif); font-weight: bold; font-size: clamp(30px, 4vw, 42px);
  color: var(--red); line-height: 1;
}
.growth-stat .label {
  margin-top: 8px; font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .growth-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ── Pro upsell card ────────────────────────────────────── */
.pro-card {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
  background: var(--paper-deep); border: 1px solid var(--hairline); border-radius: 22px;
  padding: clamp(32px, 5vw, 52px);
}
.pro-copy .eyebrow { margin-bottom: 14px; }
.pro-copy h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.015em; line-height: 1.25; }
.pro-copy p { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.pro-list { margin: 20px 0 0; padding: 0; list-style: none; }
.pro-list li {
  position: relative; padding-left: 26px; margin: 10px 0;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
}
.pro-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700;
}
.pro-price {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: var(--paper-deep); border-radius: 16px; padding: 30px 20px;
}
.price-tag {
  font-family: var(--serif); font-weight: bold; font-size: 46px; color: var(--ink);
  display: flex; align-items: baseline; gap: 2px;
}
.price-tag .cur { font-size: 22px; color: var(--muted); }
.price-tag .once {
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted);
  margin-left: 8px; text-transform: uppercase; letter-spacing: 0.08em;
}
.pro-price .btn { margin-top: 20px; width: 100%; text-align: center; }
.pro-note { margin-top: 12px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) {
  .pro-card { grid-template-columns: 1fr; }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -0.02em;
}
.section-head p { margin-top: 14px; color: var(--ink-soft); }

/* ── Value cards ────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: rgba(22, 27, 34, 0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(48, 54, 61, 0.6); border-radius: 16px;
  padding: 30px 26px;
}
.card .k {
  font-size: 34px; line-height: 1; margin-bottom: 16px; color: var(--red);
  font-weight: bold;
}
.card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

/* ── Path cards (learning tracks) ───────────────────────── */
.path { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
a.path-card {
  display: block; text-decoration: none; background: var(--paper-deep);
  border: 1px solid var(--hairline); border-radius: 16px; padding: 26px;
  transition: border-color .12s ease, transform .12s ease;
}
a.path-card:hover { border-color: var(--red); transform: translateY(-2px); }
.path-card .tag {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
}
.path-card h3 { margin-top: 10px; font-size: 20px; letter-spacing: -0.01em; }
.path-card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.path-card .go { margin-top: 14px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* ── PDF banner ─────────────────────────────────────────── */
.pdf-banner {
  background: linear-gradient(135deg, rgba(21, 15, 41, 0.7), rgba(36, 26, 69, 0.7));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(157, 111, 255, 0.3);
  border-radius: 22px; padding: clamp(44px, 6vw, 68px) clamp(28px, 5vw, 64px);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.pdf-banner .glyph {
  position: absolute; left: -20px; bottom: -60px; font-size: 240px;
  color: rgba(255,255,255,0.05); font-weight: bold; pointer-events: none;
}
.pdf-banner h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; position: relative; }
.pdf-banner p {
  margin: 16px auto 30px; max-width: 52ch; color: #C8D0E0; position: relative;
}
.pdf-banner .btn-primary { position: relative; }

/* ── Manifesto strip ────────────────────────────────────── */
.manifesto { text-align: center; }
.manifesto blockquote {
  font-size: clamp(21px, 2.8vw, 30px); line-height: 1.45; font-style: italic;
  max-width: 30ch; margin: 0 auto; letter-spacing: -0.01em;
}
.manifesto blockquote strong { color: var(--red); font-style: normal; }
.manifesto cite {
  display: block; margin-top: 22px; font-family: var(--sans); font-style: normal;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ── Article-ish inner pages ────────────────────────────── */
.page-title { padding: clamp(56px, 8vw, 90px) 0 8px; }
.page-title h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.02em; line-height: 1.12; }
.page-title .lede { margin-top: 16px; font-size: 19px; color: var(--ink-soft); max-width: 56ch; }
.prose { padding: 36px 0 90px; }
.prose h2 { font-size: 26px; letter-spacing: -0.015em; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 20px; margin: 1.8em 0 0.5em; }
.prose p  { margin: 0.9em 0; }
.prose ul, .prose ol { margin: 0.9em 0 0.9em 1.4em; }
.prose li { margin: 0.45em 0; }
.prose a { color: var(--red); }
.prose .hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.4em 0; }
.kbox {
  background: var(--paper-deep); border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 1.4em 0;
  font-size: 15.5px;
}

/* ── Hint strip (dismissible inline "how this page works" banner) ── */
.hint-strip {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--paper-deep); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 16px 20px; margin: 22px 0 30px;
}
.hint-strip__icon { font-size: 19px; line-height: 1.6; flex-shrink: 0; }
.hint-strip__body { flex: 1; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.hint-strip__body b { color: var(--ink); }
.hint-strip__body a { color: var(--red); }
.hint-strip__more { display: block; margin-top: 6px; font-size: 13px; }
.hint-strip__close {
  flex-shrink: 0; background: none; border: none; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.hint-strip__close:hover { color: var(--ink); }
.hint-strip[hidden] { display: none; }

/* ── Nuance Dictionary (collectible-card browsing) ────────── */
.nuance-toolbar {
  position: sticky; top: 61px; z-index: 40;
  background: rgba(13, 17, 23, 0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0; margin-bottom: 6px;
}
.nuance-search {
  width: 100%; font-family: var(--sans); font-size: 16px;
  padding: 13px 18px; border-radius: 12px; border: 1.5px solid var(--hairline);
  background: var(--paper-deep); color: var(--ink); margin-bottom: 14px;
}
.nuance-search:focus { outline: none; border-color: var(--red); }
.nuance-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.nuance-chip {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--hairline);
  background: var(--paper-deep); color: var(--ink-soft); cursor: pointer; user-select: none;
  transition: all .12s ease;
}
.nuance-chip:hover { border-color: var(--red); color: var(--ink); }
.nuance-chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.nuance-count {
  font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 12px;
}
.nuance-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  padding: 28px 0 80px;
}
.nuance-card {
  background: var(--paper-deep); border: 1.5px solid var(--hairline); border-radius: 16px;
  padding: 22px 20px; cursor: pointer; transition: border-color .12s ease, transform .12s ease;
  position: relative; overflow: hidden;
}
.nuance-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nuance-card:hover { border-color: var(--red); transform: translateY(-3px); }
.nuance-card:hover::before { transform: scaleX(1); }
.nuance-card .set-tag {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--red);
  background: rgba(157,111,255,0.1); padding: 3px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.nuance-card .term { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.nuance-card .roman {
  font-family: var(--sans); font-size: 13px; color: var(--red); font-weight: 600;
  margin-top: 4px;
}
/* 앞면: 카테고리/잠금/단어/발음만. 뜻·뉘앙스는 뒷면(.expand)에서만 보인다(2026-07-07) */
.nuance-card .card-face {
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  transform-origin: bottom center;
}
.nuance-card.is-flipping .card-face { transform: rotateX(-90deg); }
.nuance-card .flip-hint {
  display: block; margin-top: 12px; font-size: 13px; color: var(--muted);
  opacity: .55; transition: transform .2s ease;
}
.nuance-card.is-open .flip-hint { transform: rotate(180deg); }
.nuance-card .meaning { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.nuance-card .expand {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease .05s, opacity .25s ease .05s, margin-top .3s ease .05s;
}
.nuance-card.is-open .expand { max-height: 480px; opacity: 1; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) {
  .nuance-card .card-face, .nuance-card .expand, .nuance-card .flip-hint { transition: none; }
}
.nuance-card .nuance-note {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.6;
  padding-top: 12px; border-top: 1px solid var(--hairline);
}
.nuance-card audio { width: 100%; height: 34px; margin-top: 12px; }
.nuance-card .source-link {
  display: inline-block; margin-top: 12px; font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.nuance-card .source-link:hover { color: var(--red); }
.nuance-empty {
  text-align: center; padding: 60px 20px; color: var(--muted); font-family: var(--sans);
}

/* ── Token economy: locked cards ────────────────────────── */
.token-balance {
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--paper-deep); border: 1.5px solid var(--hairline); border-radius: 999px;
  padding: 7px 14px; white-space: nowrap;
}
.token-balance b { color: var(--red); }
.nuance-card .lock-tag {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  background: var(--paper-deep); padding: 3px 10px; border-radius: 999px;
  margin-bottom: 12px; margin-left: 6px;
}
.nuance-blur {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.6;
  padding-top: 12px; border-top: 1px solid var(--hairline);
  filter: blur(5px); user-select: none; pointer-events: none;
}
.unlock-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.unlock-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; border-radius: 999px; padding: 9px 16px;
  background: var(--red); color: #fff;
}
.unlock-btn:hover { background: var(--red-deep); }
.unlock-btn.free {
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
}
.unlock-btn.free:hover { background: var(--ink); color: var(--paper); }

/* ── Auth pill (header) ─────────────────────────────────── */
.auth-pill {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--hairline);
  background: transparent; color: var(--ink-soft); cursor: pointer;
}
.auth-pill:hover { border-color: var(--red); color: var(--ink); }
.auth-pill.is-user { border-color: var(--red); color: var(--red-deep); }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(22,26,40,0.55);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--paper-deep); border-radius: 18px; padding: 34px 32px; max-width: 400px;
  width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,0.25); text-align: center;
}
.modal-box h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.modal-box p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; }
.modal-box .btn { width: 100%; text-align: center; margin-bottom: 10px; }
.modal-close {
  background: none; border: none; font-family: var(--sans); font-size: 13px;
  color: var(--muted); cursor: pointer; margin-top: 4px;
}

/* ── Save button on dictionary cards ────────────────────── */
.save-btn {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; border: 1.5px solid var(--hairline); background: var(--paper-deep);
  color: var(--muted); font-size: 15px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .12s ease;
}
.save-btn:hover { border-color: var(--red); color: var(--red); }
.save-btn.is-saved { background: var(--red); border-color: var(--red); color: #fff; }

/* ── My Deck / Review pages ─────────────────────────────── */
.deck-toolbar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 24px;
}
.deck-count { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.deck-count b { color: var(--ink); }
.deck-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
.deck-card {
  background: var(--paper-deep); border: 1px solid var(--hairline); border-radius: 14px; padding: 20px;
  position: relative;
}
.deck-card .term { font-size: 22px; }
.deck-card .roman { font-family: var(--sans); font-size: 12.5px; color: var(--red); margin-top: 2px; }
.deck-card .meaning { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.deck-card .box-badge {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-top: 10px;
}
.deck-remove {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  color: var(--muted); cursor: pointer; font-size: 13px;
}
.deck-remove:hover { color: var(--red); }
.deck-empty, .review-empty {
  text-align: center; padding: 70px 20px; color: var(--muted); font-family: var(--sans);
}
.upsell-banner {
  background: var(--paper-deep); border: 1.5px dashed var(--red); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 24px; font-size: 14px; color: var(--ink-soft);
}
.upsell-banner a { color: var(--red-deep); font-weight: 600; }

.review-stage { max-width: 480px; margin: 0 auto; text-align: center; }
.review-card {
  background: var(--paper-deep); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 48px 32px; min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
}
.review-card .term { font-size: 40px; }
.review-card .roman { font-family: var(--sans); font-size: 15px; color: var(--red); margin-top: 8px; }
.review-card .meaning { font-size: 16px; color: var(--ink-soft); margin-top: 18px; max-width: 40ch; }
.review-card .nuance {
  font-size: 14px; color: var(--ink-soft); margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--hairline); max-width: 40ch;
}
.review-card .hint { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 20px; }
.review-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.review-actions button {
  font-family: var(--sans); font-weight: 700; font-size: 14px; padding: 12px 20px;
  border-radius: 10px; border: none; cursor: pointer;
}
.rate-again { background: rgba(157,111,255,0.14); color: var(--red-deep); }
.rate-good { background: rgba(22,33,62,0.08); color: var(--ink); }
.rate-easy { background: rgba(46,160,90,0.14); color: #2E9E5B; }
.review-progress { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep); color: #AEB6C9;
  padding: 64px 0 46px; margin-top: 0;
}
.site-footer .top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.09);
}
.site-footer .brand { max-width: 380px; }
.site-footer .brand .wordmark { color: #fff; }
.site-footer .brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.65; }
.site-footer nav { display: flex; gap: 44px; flex-wrap: wrap; }
.site-footer nav h4 {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: #7B849C; margin-bottom: 14px;
}
.site-footer nav a {
  display: block; font-family: var(--sans); font-size: 14px;
  color: #C4CBDC; text-decoration: none; margin: 8px 0;
}
.site-footer nav a:hover { color: #fff; }
.site-footer .bottom {
  padding-top: 26px; font-family: var(--sans); font-size: 12.5px; color: #7B849C;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .hero-glyph { opacity: 0.55; }
  .hero-cta .btn { width: 100%; text-align: center; }
}
