/* ========================================================================
   CardWise — Standalone Credit Card Finder
   Redesigned UI: warm-light editorial theme + glassmorphism + dark mode
   ======================================================================== */

:root {
  /* Light palette (default) */
  --bg: #fbf8f3;
  --bg-elev: #ffffff;
  --bg-soft: #f1ece2;
  --bg-tint: #fff8ec;
  --ink: #1a1a1f;
  --ink-soft: #4a4a55;
  --ink-mute: #8a8a95;
  --line: rgba(20, 20, 25, 0.08);
  --line-strong: rgba(20, 20, 25, 0.16);

  --brand: #ff5b3a;          /* warm coral */
  --brand-deep: #d8421e;
  --brand-soft: #ffe7df;
  --accent: #2563eb;         /* royal blue */
  --accent-soft: #dde7ff;
  --gold: #b88a00;
  --green: #14924d;
  --green-soft: #d8f1e2;

  --shadow-sm: 0 1px 2px rgba(20,20,25,0.05), 0 2px 6px rgba(20,20,25,0.04);
  --shadow-md: 0 4px 12px rgba(20,20,25,0.06), 0 12px 40px rgba(20,20,25,0.06);
  --shadow-lg: 0 12px 32px rgba(20,20,25,0.08), 0 24px 64px rgba(20,20,25,0.10);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  --t: cubic-bezier(0.2, 0.8, 0.2, 1);

  --container: 1280px;
}

[data-theme="dark"] {
  --bg: #0e0e12;
  --bg-elev: #17171c;
  --bg-soft: #1d1d24;
  --bg-tint: #221d1a;
  --ink: #ececf1;
  --ink-soft: #a8a8b3;
  --ink-mute: #686872;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --brand-soft: #3a1c12;
  --accent-soft: #16224a;
  --green-soft: #143524;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 12px 40px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6), 0 24px 64px rgba(0,0,0,0.5);
}

/* ========== Reset & base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--t), color 0.4s var(--t);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ========== Decorative blobs ========== */
.blob {
  position: fixed; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: -1; opacity: 0.5;
}
.blob-1 { top: -10%; right: -8%; width: 520px; height: 520px; background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%); }
.blob-2 { bottom: -15%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); }
.blob-3 { top: 40%; left: 60%; width: 400px; height: 400px; background: radial-gradient(circle, #fff0c2 0%, transparent 70%); opacity: 0.35; }
[data-theme="dark"] .blob { opacity: 0.35; }

/* ========== Navigation ========== */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container); margin: 0 auto;
  padding: 1rem 2rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 700;
  font-family: var(--font-body); font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(255, 91, 58, 0.35);
}
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.2s var(--t);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 0.6rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: var(--bg) !important;
  font-weight: 600; font-size: 0.88rem;
  transition: transform 0.2s var(--t), background 0.2s var(--t);
}
.nav-cta:hover { transform: translateY(-1px); background: var(--brand); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-soft); display: grid; place-items: center;
  border: 1px solid var(--line); transition: all 0.3s var(--t);
}
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--ink); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; width: 32px; height: 32px; flex-direction: column; gap: 5px; }
.menu-btn span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s var(--t); }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Hero ========== */
.hero { padding: 5rem 0 3rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 1.5rem;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
[data-theme="dark"] .hero-eyebrow { color: #ffb29a; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 600; line-height: 1.02;
  letter-spacing: -0.035em; margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.18rem; color: var(--ink-soft); max-width: 540px;
  margin-bottom: 2rem; line-height: 1.55;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.8rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 0.98rem;
  transition: all 0.25s var(--t);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--brand); box-shadow: 0 8px 24px rgba(255,91,58,0.35); }
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.25s var(--t); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  padding: 1rem 1.4rem; border-radius: 999px;
  font-weight: 500; color: var(--ink-soft);
  transition: color 0.2s var(--t);
}
.btn-ghost:hover { color: var(--ink); }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat .num {
  font-family: var(--font-display); font-weight: 600; font-size: 2rem;
  letter-spacing: -0.02em; line-height: 1;
}
.stat .label { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.4rem; letter-spacing: 0.02em; }

/* Hero card stack */
.card-stack { position: relative; height: 480px; perspective: 1200px; }
.card-stack .cc {
  position: absolute; top: 50%; left: 50%;
  width: 320px; height: 200px; border-radius: 18px;
  padding: 1.4rem 1.5rem; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  transform-origin: center;
  box-shadow: 0 18px 48px rgba(0,0,0,0.25);
  transition: transform 0.6s var(--t), box-shadow 0.6s var(--t);
  font-family: var(--font-body);
}
.card-stack .cc::before {
  content: ''; position: absolute; top: -25%; right: -15%;
  width: 55%; height: 130%; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.card-stack .cc:nth-child(1) {
  background: linear-gradient(135deg, #ff5b3a 0%, #d8421e 100%);
  transform: translate(-50%, -50%) rotate(-9deg) translateY(-40px);
  z-index: 3;
}
.card-stack .cc:nth-child(2) {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  transform: translate(-50%, -50%) rotate(2deg) translateX(20px) translateY(20px);
  z-index: 2;
}
.card-stack .cc:nth-child(3) {
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a15 100%);
  transform: translate(-50%, -50%) rotate(12deg) translateX(50px) translateY(80px);
  z-index: 1;
}
.card-stack:hover .cc:nth-child(1) { transform: translate(-50%, -50%) rotate(-12deg) translateY(-55px) translateX(-15px); }
.card-stack:hover .cc:nth-child(2) { transform: translate(-50%, -50%) rotate(2deg) translateX(20px) translateY(20px) translateY(-5px); }
.card-stack:hover .cc:nth-child(3) { transform: translate(-50%, -50%) rotate(15deg) translateX(70px) translateY(95px); }

.cc-chip { width: 38px; height: 28px; border-radius: 5px;
  background: linear-gradient(135deg, #f4d066 0%, #c9a628 100%); border: 1px solid rgba(0,0,0,0.15); }
.cc-net { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; opacity: 0.85; text-transform: uppercase; }
.cc-num { font-family: var(--font-mono); font-size: 0.95rem; opacity: 0.8; letter-spacing: 0.18em; }
.cc-name { font-size: 0.88rem; font-weight: 600; }
.cc-issuer { font-size: 0.65rem; opacity: 0.6; letter-spacing: 0.04em; margin-top: 0.2rem; }

/* ========== Trust strip ========== */
.trust {
  padding: 1.5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.trust-inner { display: flex; align-items: center; gap: 3rem; max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.trust-label { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; flex-shrink: 0; }
.trust-marquee {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.trust-track { display: flex; gap: 3rem; animation: marquee 28s linear infinite; width: max-content; }
.trust-track span {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: var(--ink-mute); white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== Section ========== */
section.section { padding: 6rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}
[data-theme="dark"] .section-tag { color: #93b4ff; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 1rem;
}
.section-head h2 em { font-style: italic; font-weight: 400; color: var(--brand); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ========== How it works ========== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--bg-elev); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--t), box-shadow 0.3s var(--t);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card .num {
  font-family: var(--font-display); font-weight: 600; font-size: 3.5rem;
  line-height: 1; color: var(--brand); opacity: 0.6;
  letter-spacing: -0.04em; margin-bottom: 1rem;
}
.step-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ========== Wizard ========== */
.wizard-section {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 30%, var(--bg-soft) 70%, transparent 100%);
}
.wizard-shell {
  max-width: 880px; margin: 0 auto; padding: 0 1.5rem;
}
.wizard-card {
  background: var(--bg-elev); border-radius: var(--radius-xl);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wizard-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.wizard-head .step-pill {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--brand-deep); letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--brand-soft);
}
[data-theme="dark"] .wizard-head .step-pill { color: #ffb29a; }
.wizard-head .step-trail { display: flex; gap: 0.4rem; }
.wizard-head .pip {
  width: 28px; height: 4px; border-radius: 4px;
  background: var(--line-strong); transition: background 0.4s var(--t);
}
.wizard-head .pip.done { background: var(--brand); }
.wizard-head .pip.current { background: var(--ink); }

.wizard-body { padding: 2.5rem; min-height: 380px; }
.wstep { display: none; animation: stepIn 0.4s var(--t); }
.wstep.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wstep h2 {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.5rem;
}
.wstep .help { color: var(--ink-soft); margin-bottom: 1.8rem; }

/* Tile grid (radio) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; }
.tile {
  padding: 1.25rem; border-radius: var(--radius-md);
  background: var(--bg); border: 2px solid var(--line);
  cursor: pointer; transition: all 0.25s var(--t);
  display: flex; flex-direction: column; gap: 0.4rem; text-align: left;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile.selected {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 6px 20px rgba(255,91,58,0.15);
}
.tile .icon { font-size: 1.6rem; line-height: 1; }
.tile h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.tile p { font-size: 0.82rem; color: var(--ink-mute); }
.tile.selected p { color: var(--brand-deep); }
[data-theme="dark"] .tile.selected p { color: #ffb29a; }

/* Chip grid (multi-select) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--line);
  font-weight: 500; font-size: 0.92rem;
  cursor: pointer; transition: all 0.2s var(--t);
}
.chip:hover { border-color: var(--line-strong); }
.chip.selected {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.chip .icon { font-size: 1.05rem; }
.chip-counter {
  margin-top: 1rem; font-size: 0.85rem; color: var(--ink-mute);
}
.chip-counter b { color: var(--brand-deep); font-weight: 600; }
[data-theme="dark"] .chip-counter b { color: #ffb29a; }

/* Slider */
.slider-block {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--line);
  text-align: center; margin: 1rem 0;
}
.slider-block .figure {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -0.03em; line-height: 1;
  color: var(--brand);
}
.slider-block .figure-label { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.4rem; letter-spacing: 0.02em; }
.range {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 8px; border-radius: 4px; outline: none;
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) var(--pct, 12%), var(--line) var(--pct, 12%), var(--line) 100%);
  margin-top: 1.5rem;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 4px 12px rgba(255,91,58,0.35);
  cursor: pointer; transition: transform 0.15s var(--t);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; }
.slider-marks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-mute); margin-top: 0.6rem; font-family: var(--font-mono); }

.wizard-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem; border-top: 1px solid var(--line);
  background: var(--bg);
}
.btn-back-w {
  padding: 0.7rem 1.4rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.92rem;
  transition: color 0.2s var(--t);
}
.btn-back-w:hover:not(:disabled) { color: var(--ink); }
.btn-back-w:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-next-w {
  padding: 0.85rem 1.6rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.25s var(--t); box-shadow: var(--shadow-sm);
}
.btn-next-w:hover:not(:disabled) { background: var(--brand); box-shadow: 0 6px 18px rgba(255,91,58,0.35); }
.btn-next-w:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-next-w svg { width: 16px; height: 16px; }

/* ========== Results ========== */
.results-section { padding: 4rem 0 6rem; display: none; }
.results-section.active { display: block; animation: stepIn 0.6s var(--t); }
.results-head {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end;
  margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.results-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05;
}
.results-head h2 em { font-style: italic; color: var(--brand); }
.results-head p { color: var(--ink-soft); margin-top: 0.6rem; }
.btn-restart {
  padding: 0.8rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  font-weight: 500; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s var(--t);
}
.btn-restart:hover { border-color: var(--ink); color: var(--ink); }

.result-grid { display: grid; gap: 1.2rem; }
.rcard {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 2rem; align-items: start;
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--bg-elev); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--t), box-shadow 0.25s var(--t);
}
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rcard.r1 { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-elev) 35%); }
.rcard.r2 { border: 2px solid var(--gold); }
.rcard.r3 { border-left: 4px solid #cd7f32; }

.rcard-rank {
  position: absolute; top: 1.5rem; right: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
}
.rcard.r1 .rcard-rank { background: var(--brand); color: #fff; border-color: var(--brand); }
.rcard.r2 .rcard-rank { background: var(--gold); color: #fff; border-color: var(--gold); }

.rcard-visual {
  width: 100%; aspect-ratio: 1.585/1; max-width: 320px;
  border-radius: 14px; padding: 1.2rem 1.4rem; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.rcard-visual::before {
  content: ''; position: absolute; top: -25%; right: -15%;
  width: 55%; height: 130%; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.rcard-visual .top { display: flex; justify-content: space-between; align-items: flex-start; }
.rcard-visual .num { font-family: var(--font-mono); font-size: 0.9rem; opacity: 0.75; letter-spacing: 0.18em; }
.rcard-visual .label { font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.rcard-visual .iss { font-size: 0.65rem; opacity: 0.6; margin-top: 0.2rem; }

.rcard-info h3 {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; padding-right: 6rem;
}
.rcard-info .issuer { color: var(--ink-mute); font-size: 0.92rem; margin: 0.25rem 0 1.2rem; }

.metric-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.metric {
  padding: 0.7rem 0.8rem; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
}
.metric .v { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.1; }
.metric .l { font-size: 0.7rem; color: var(--ink-mute); margin-top: 0.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.metric.green .v { color: var(--green); }

.reason-box {
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--green-soft); border-left: 3px solid var(--green);
  margin-bottom: 1rem;
}
.reason-box .h {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--green); margin-bottom: 0.3rem;
}
.reason-box p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

.welcome-line {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 1rem;
}
[data-theme="dark"] .welcome-line { color: #93b4ff; }

.pros-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pro {
  font-size: 0.78rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
}

/* Comparison */
.compare-block {
  margin-top: 3rem; padding: 2rem;
  background: var(--bg-elev); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.compare-block h3 {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 1.2rem;
}
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.compare-table th {
  font-size: 0.78rem; font-weight: 600; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.compare-table td { color: var(--ink-soft); }
.compare-table td.win { color: var(--brand-deep); font-weight: 600; }
[data-theme="dark"] .compare-table td.win { color: #ff8366; }
.compare-table tr:last-child td { border-bottom: none; }

/* ========== FAQ ========== */
.faq-grid { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  padding: 1.2rem 1.5rem; border-radius: var(--radius-md);
  background: var(--bg-elev); border: 1px solid var(--line);
  cursor: pointer; transition: border-color 0.25s var(--t);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--ink-mute); transition: transform 0.3s var(--t); line-height: 1; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65;
  transition: max-height 0.4s var(--t), margin-top 0.3s var(--t);
}
.faq-item.open .faq-a { max-height: 320px; margin-top: 0.7rem; }

/* ========== Footer ========== */
footer {
  margin-top: 4rem; padding: 4rem 0 2rem;
  border-top: 1px solid var(--line); background: var(--bg-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--ink-soft); max-width: 420px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.2s var(--t); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--line);
  color: var(--ink-mute); font-size: 0.85rem;
}

.disclaimer {
  max-width: 760px; margin: 2rem auto 0; padding: 1.2rem 1.5rem;
  background: var(--bg-soft); border-radius: var(--radius-md);
  font-size: 0.82rem; color: var(--ink-mute); text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .card-stack { height: 400px; order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .rcard { grid-template-columns: 1fr; }
  .rcard-visual { max-width: 300px; margin: 0 auto; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .rcard-info h3 { padding-right: 0; }
  .results-head { grid-template-columns: 1fr; gap: 1rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .container { padding: 0 1.2rem; }
  .nav-inner { padding: 0.85rem 1.2rem; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 1.5rem; padding: 2rem; background: var(--bg);
    border-top: 1px solid var(--line); align-items: flex-start; z-index: 90; }
  .nav-links.open { display: flex; }
  .menu-btn { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 3rem 0 2rem; }
  section.section { padding: 4rem 0; }
  .wizard-section { padding: 3rem 0; }
  .wizard-body { padding: 1.5rem; }
  .wizard-head { padding: 1rem 1.5rem; }
  .wizard-foot { padding: 1rem 1.5rem; }
  .wstep h2 { font-size: 1.4rem; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile { display: flex; flex-direction: row; align-items: center; gap: 1rem; padding: 1rem; }
  .tile .icon { font-size: 1.4rem; }
  .results-head h2 { font-size: 1.6rem; }
  .rcard { padding: 1.2rem; gap: 1.2rem; }
  .rcard-rank { top: 1rem; right: 1rem; font-size: 0.7rem; padding: 0.3rem 0.6rem; }
  .compare-block { padding: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; }
  .hero-stats { gap: 1.2rem; padding-top: 1.5rem; margin-top: 2rem; }
  .stat .num { font-size: 1.6rem; }
  .stat .label { font-size: 0.75rem; }
}
