/* ============================================
   PetInsurancePicker — Stylesheet
   Aesthetic: Calm fintech / premium trust
   Cool slate blue, generous whitespace,
   geometric accents, confident restraint.
   Fonts: Sora (body/UI) + Libre Baskerville (display)
   ============================================ */

:root {
  --slate:        #1e2d4a;
  --slate-mid:    #2d4472;
  --slate-light:  #e8eef7;
  --slate-pale:   #f4f7fc;
  --blue:         #3662c4;
  --blue-light:   #e6edfa;
  --blue-pale:    #f0f4fd;
  --sky:          #6b9de8;
  --teal-accent:  #1a8a8a;
  --teal-light:   #e6f4f4;
  --paper:        #fafbfd;
  --white:        #ffffff;
  --ink:          #111827;
  --ink-2:        #374151;
  --ink-3:        #6b7280;
  --border:       #dde3ef;
  --border-dark:  #b8c4da;
  --good:         #1a6b3a;
  --good-light:   #e8f5ee;
  --warn:         #92400e;
  --warn-light:   #fef3c7;
  --shadow-sm:    0 1px 3px rgba(30,45,74,0.07);
  --shadow:       0 4px 16px rgba(30,45,74,0.08), 0 1px 4px rgba(30,45,74,0.06);
  --shadow-lg:    0 12px 40px rgba(30,45,74,0.12);
  --radius:       12px;
  --radius-sm:    7px;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Sora', system-ui, sans-serif;
  --max-w:        1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ─────────────────────────────── */
.site-header {
  background: var(--slate);
  position: sticky; top: 0; z-index: 200;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.9); text-decoration: none;
  display: flex; align-items: center; gap: 7px; letter-spacing: -0.01em;
}
.logo strong { font-weight: 600; color: var(--sky); }
.logo-shield { font-size: 16px; color: var(--sky); }
nav { display: flex; gap: 28px; }
nav a { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55); text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s; }
nav a:hover { color: rgba(255,255,255,0.9); }

/* ─── BUTTONS ────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--blue);
  color: #fff; padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--slate-mid); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  display: inline-block; border: 1.5px solid var(--slate);
  color: var(--slate); padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { background: var(--slate); color: #fff; }

/* ─── HERO ───────────────────────────────── */
.hero {
  background: var(--slate);
  padding: 72px 0 64px;
  position: relative; overflow: hidden;
}
.hero-geo {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 75% 50%, rgba(54,98,196,0.2) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.01) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.01) 75%);
  background-size: 100% 100%, 60px 60px;
}
.hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
h1 { font-family: var(--font-display); font-size: clamp(36px,4.5vw,56px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin-bottom: 22px; }
h1 em { font-style: italic; color: var(--sky); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 460px; margin-bottom: 30px; }
.hero-signals { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.signal { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); }
.sig-icon { color: var(--sky); font-size: 10px; }

/* Plan preview card */
.plan-preview {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
}
.pp-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 10px; }
.pp-name { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.pp-reason { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; margin-bottom: 20px; }
.pp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.pp-stat { background: rgba(255,255,255,0.07); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.ps-val { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--sky); margin-bottom: 3px; }
.ps-label { font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }
.pp-cta { font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }

/* ─── QUIZ SECTION ───────────────────────── */
.quiz-section { padding: 72px 0; }
.quiz-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }

/* Sidebar */
.quiz-sidebar { position: sticky; top: 76px; }
.sidebar-inner { background: var(--slate-pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.answer-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.answer-item {
  font-size: 13px; padding: 7px 10px;
  border-radius: var(--radius-sm); font-weight: 500;
  transition: all 0.2s;
}
.answer-item.placeholder { color: var(--border-dark); background: transparent; }
.answer-item.filled { background: var(--blue-light); color: var(--blue); }
.sidebar-note p { font-size: 11px; color: var(--ink-3); line-height: 1.55; border-top: 1px solid var(--border); padding-top: 12px; }

/* Quiz main */
.quiz-main { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quiz-progress { padding: 18px 28px; background: var(--slate-pale); border-bottom: 1px solid var(--border); }
.progress-steps { display: flex; gap: 6px; align-items: center; }
.progress-step { width: 28px; height: 4px; border-radius: 2px; background: var(--border); transition: background 0.3s, width 0.3s; }
.progress-step.done { background: var(--blue); }
.progress-step.active { background: var(--blue); width: 40px; }

.questions-wrap { padding: 36px 40px; }
.question { display: none; }
.question.active { display: block; }
.q-num { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 10px; }
.question h2 { font-family: var(--font-display); font-size: clamp(22px,2.5vw,30px); font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.pet-word { color: var(--blue); font-style: italic; }
.q-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; line-height: 1.55; }

.opts-row { display: flex; flex-direction: column; gap: 10px; }
.opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--slate-pale); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; text-align: left;
  font-family: var(--font-body); transition: all 0.16s;
}
.opt:hover { border-color: var(--blue); background: var(--blue-pale); }
.opt.selected { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 3px rgba(54,98,196,0.1); }
.opt-glyph { font-size: 20px; flex-shrink: 0; min-width: 28px; text-align: center; }
.opt-label { font-size: 14px; font-weight: 600; color: var(--ink); display: block; }
.opt-note { font-size: 12px; color: var(--ink-3); display: block; margin-top: 2px; line-height: 1.4; }

/* ─── RESULTS ────────────────────────────── */
.results-wrap { padding: 36px 40px; }
.result-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.result-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.result-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.result-sub { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

.result-plans { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.plan-card.top { border-color: var(--blue); border-width: 2px; background: var(--blue-pale); }
.pc-rank { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; display: block; }
.pc-rank.alt { color: var(--ink-3); }
.pc-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pc-tagline { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.pc-specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.pc-spec { background: rgba(255,255,255,0.8); border-radius: var(--radius-sm); padding: 8px 10px; }
.plan-card.top .pc-spec { background: rgba(255,255,255,0.7); }
.pcs-label { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; display: block; }
.pcs-val { font-size: 13px; font-weight: 600; color: var(--ink); display: block; }
.pc-verdict { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; padding: 12px 14px; background: rgba(255,255,255,0.6); border-radius: var(--radius-sm); border-left: 3px solid var(--blue); }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-tag { font-size: 11px; padding: 3px 9px; border-radius: 99px; font-weight: 500; background: var(--slate-pale); color: var(--ink-3); border: 1px solid var(--border); }
.pc-cta { display: inline-block; background: var(--blue); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; text-decoration: none; letter-spacing: 0.02em; transition: background 0.15s; }
.pc-cta:hover { background: var(--slate-mid); }
.pc-price { font-size: 12px; color: var(--ink-3); margin-left: 10px; }

.result-footer { border-top: 1px solid var(--border); padding-top: 18px; }
.result-note { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-light); border: 1px solid rgba(146,64,14,0.2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.rn-icon { font-size: 16px; flex-shrink: 0; color: var(--warn); margin-top: 1px; }
.result-note p { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.restart-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 18px; font-family: var(--font-body); font-size: 13px; color: var(--ink-3); cursor: pointer; transition: all 0.15s; }
.restart-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ─── WHY SECTION ────────────────────────── */
.why-section { padding: 80px 0; background: var(--slate); }
.why-header { margin-bottom: 40px; }
.why-header h2 { font-family: var(--font-display); font-size: clamp(26px,3vw,38px); font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-header p { color: rgba(255,255,255,0.5); font-size: 16px; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.why-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 28px 24px; }
.why-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: rgba(107,157,232,0.3); display: block; margin-bottom: 12px; line-height: 1; }
.why-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ─── GLOSSARY TEASER ────────────────────── */
.glossary-teaser { padding: 80px 0; border-top: 1px solid var(--border); }
.gt-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.gt-text h2 { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.gt-text p { font-size: 15px; color: var(--ink-3); line-height: 1.7; margin-bottom: 22px; }
.gt-terms { display: flex; flex-direction: column; gap: 0; }
.gt-term { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.gt-term:first-child { border-top: 1px solid var(--border); }
.gtt-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.gtt-def { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ─── FAQ ────────────────────────────────── */
.faq-section { padding: 80px 0; background: var(--slate-pale); border-top: 1px solid var(--border); }
.faq-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; text-align: center; margin-bottom: 40px; }
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); background: var(--white); border-radius: var(--radius-sm); margin-bottom: 6px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 20px; background: none; border: none;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--blue); transition: transform 0.2s; flex-shrink: 0; font-weight: 300; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 20px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ─── FOOTER ─────────────────────────────── */
.site-footer { background: var(--ink); padding: 44px 0 28px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-brand .logo { color: rgba(255,255,255,0.8); font-size: 15px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 4px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.2); line-height: 1.65; max-width: 720px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; }

/* ─── PAGE HERO (inner pages) ────────────── */
.page-hero h1 { color: var(--ink); }

/* ─── SHARED ─────────────────────────────── */
.article-body h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.article-body p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; }
.article-body li { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 8px; }
.compare-table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: var(--slate-pale); }
th { padding: 12px 14px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--blue-pale); }
td:first-child { font-weight: 600; color: var(--ink); }
.c-yes { color: var(--good); font-weight: 600; }
.c-no  { color: var(--ink-3); }
.c-partial { color: var(--warn); font-weight: 500; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .plan-preview { display: none; }
  .quiz-wrap { grid-template-columns: 1fr; }
  .quiz-sidebar { position: static; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .gt-inner { grid-template-columns: 1fr; gap: 40px; }
  .pc-specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav a:not(:first-child) { display: none; }
  .opts-grid { grid-template-columns: 1fr; }
  .questions-wrap { padding: 24px; }
  .results-wrap { padding: 24px; }
  .pc-specs { grid-template-columns: 1fr 1fr; }
}
