/* ============================================================
   VouchTrack — shared styles
   Palette: Ink #1B2A41 · Star Gold #E8A33D · Paper #FAF8F4
            Leaf #2E7D5B · Slate #5A6B7E
   Type: Fraunces (display) + Public Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1B2A41;
  --ink-soft: #2A3D5A;
  --gold: #E8A33D;
  --gold-soft: #F6E3C5;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --leaf: #2E7D5B;
  --leaf-soft: #E3F0EA;
  --slate: #5A6B7E;
  --line: #E7E2D8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(27, 42, 65, 0.07);
  --shadow-lift: 0 10px 30px rgba(27, 42, 65, 0.12);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Public Sans', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--slate); }
strong { color: var(--ink); }

a { color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.35rem;
  text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 6px;
}
.logo .star { color: var(--gold); font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--slate); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius);
  transition: background 0.15s ease, transform 0.15s ease;
  font-size: 0.98rem;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d99428; transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); padding: 10px 22px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

.nav .btn { padding: 9px 18px; font-size: 0.9rem; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 20px 24px;
    border-bottom: 1px solid var(--line); gap: 18px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--leaf); margin-bottom: 16px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { font-size: 1.15rem; margin-bottom: 32px; max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.88rem; color: var(--slate); margin-top: 14px; }

/* Rating lift card — signature element */
.lift-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 32px; position: relative;
}
.lift-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lift-col { text-align: center; }
.lift-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.lift-score { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 700; }
.lift-before .lift-score { color: var(--slate); }
.lift-after .lift-score { color: var(--ink); }
.lift-stars { font-size: 1.05rem; letter-spacing: 2px; }
.lift-before .lift-stars { color: #C8C2B6; }
.lift-after .lift-stars { color: var(--gold); }
.lift-count { font-size: 0.85rem; color: var(--slate); margin-top: 4px; }
.lift-arrow { font-size: 1.8rem; color: var(--leaf); font-weight: 700; }

.ticker {
  margin-top: 24px; border-top: 1px dashed var(--line); padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.tick {
  display: flex; align-items: center; gap: 10px; font-size: 0.9rem;
  background: var(--paper); border-radius: 8px; padding: 10px 14px; color: var(--ink);
}
.tick .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-gold { background: var(--gold); }
.dot-leaf { background: var(--leaf); }
.dot-ink { background: var(--ink); }
.tick time { margin-left: auto; color: var(--slate); font-size: 0.8rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }

.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink p { color: #B9C4D4; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.card p { font-size: 0.97rem; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--leaf); font-weight: 700;
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.featured { border: 2px solid var(--gold); position: relative; }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.plan-for { font-size: 0.9rem; color: var(--slate); margin-bottom: 20px; min-height: 2.6em; }
.plan-price { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 700; }
.plan-price span { font-family: 'Public Sans', sans-serif; font-size: 1rem; font-weight: 500; color: var(--slate); }
.plan-strike { text-decoration: line-through; color: var(--slate); font-size: 1.2rem; font-weight: 500; margin-right: 8px; }
.plan .checklist { margin: 24px 0 28px; flex: 1; }
.plan .checklist li { font-size: 0.94rem; }
.plan .btn { text-align: center; }

/* Comparison / tables */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { background: var(--ink); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td { color: var(--ink); }
td.muted { color: var(--slate); }

/* ---------- Industries ---------- */
.industry-hero { padding: 64px 0 56px; }
.industry-hero h1 { max-width: 16em; }
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .stat-band { grid-template-columns: 1fr; } }
.stat { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 26px; text-align: center; }
.stat .big { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.stat .small { font-size: 0.9rem; color: var(--slate); margin-top: 6px; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post-card .tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--leaf); }
.post-card h3 { margin: 10px 0; }
.post-card p { font-size: 0.93rem; }

article.post { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
article.post h1 { margin-bottom: 12px; }
article.post .meta { color: var(--slate); font-size: 0.9rem; margin-bottom: 40px; }
article.post h2 { margin: 44px 0 16px; font-size: 1.55rem; }
article.post h3 { margin: 32px 0 12px; }
article.post p { margin-bottom: 18px; }
article.post ul, article.post ol { margin: 0 0 18px 24px; color: var(--slate); }
article.post li { margin-bottom: 8px; }
article.post blockquote {
  border-left: 4px solid var(--gold); background: var(--white); padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; font-style: italic; color: var(--ink);
}
.post-cta {
  background: var(--ink); border-radius: var(--radius-lg); padding: 32px; margin-top: 48px; text-align: center;
}
.post-cta h3 { color: var(--white); margin-bottom: 10px; }
.post-cta p { color: #B9C4D4; margin-bottom: 20px; }

/* ---------- FAQ ---------- */
details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px;
}
details summary { font-weight: 600; cursor: pointer; color: var(--ink); }
details p { margin-top: 12px; font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 84px 0; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { margin-bottom: 30px; max-width: 34em; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #B9C4D4; padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer .logo { color: var(--white); margin-bottom: 12px; }
footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #B9C4D4; text-decoration: none; font-size: 0.93rem; }
footer a:hover { color: var(--white); }
.foot-bottom { border-top: 1px solid #2A3D5A; padding-top: 24px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
