/* QuoteCraft — premium editorial design system */
:root {
  --navy-950: #0a1428;
  --navy-900: #0f1f3d;
  --navy-800: #16294d;
  --navy-700: #1e3560;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --green-600: #16a34a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 40, .06);
  --shadow-md: 0 6px 24px -6px rgba(10, 20, 40, .12);
  --shadow-lg: 0 20px 60px -12px rgba(10, 20, 40, .22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--slate-700);
  background: #fff;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--navy-700); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--amber-400); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 800; font-size: 20px; color: var(--navy-900); letter-spacing: -.02em; }
.brand-name span { color: var(--amber-600); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--slate-600); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--navy-900); }
.nav-cta {
  background: var(--amber-500); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
}
.nav-cta:hover { background: var(--amber-600); }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 80% -10%, #274b8f 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; max-width: 760px; }
.hero h1 .accent { color: var(--amber-400); }
.hero p.lead { font-size: 19px; color: #c9d6ec; max-width: 640px; margin: 20px 0 32px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: #dbe4f5; font-weight: 600;
}
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 14px 30px; font-size: 16px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: #fff; box-shadow: 0 8px 24px rgba(245,158,11,.4); }
.btn-primary:hover { background: var(--amber-600); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; margin-left: 12px; }
.btn-ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--slate-50); }
.section-kicker { color: var(--amber-600); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy-900); letter-spacing: -.02em; font-weight: 800; line-height: 1.2; }
.section-sub { color: var(--slate-500); max-width: 640px; margin-top: 12px; font-size: 17px; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 10px; }
.card h3 { font-size: 20px; color: var(--navy-900); line-height: 1.35; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--slate-500); flex: 1; }
.card-price { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 24px; font-weight: 800; color: var(--navy-900); }
.price small { font-size: 13px; color: var(--slate-500); font-weight: 600; }
.card-link { color: var(--amber-600); font-weight: 700; font-size: 15px; }

/* ---------- article ---------- */
.article-hero { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; padding: 64px 0 56px; }
.breadcrumbs { font-size: 14px; color: #9db1d4; margin-bottom: 18px; }
.breadcrumbs a { color: #c9d6ec; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.article-meta { display: flex; gap: 18px; margin-top: 18px; font-size: 14px; color: #9db1d4; flex-wrap: wrap; }
.article-meta strong { color: #fff; }
.article-body { padding: 56px 0; }
.article-body h2 { font-size: 28px; color: var(--navy-900); letter-spacing: -.02em; margin: 44px 0 16px; line-height: 1.3; font-weight: 800; }
.article-body h3 { font-size: 21px; color: var(--navy-800); margin: 32px 0 12px; font-weight: 700; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; box-shadow: var(--shadow-sm); border-radius: 10px; overflow: hidden; }
.article-body th { background: var(--navy-900); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; }
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--slate-200); }
.article-body tr:nth-child(even) td { background: var(--slate-50); }
.article-body blockquote { border-left: 4px solid var(--amber-500); background: #fffbeb; padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0; font-size: 16px; }
.key-takeaway { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.key-takeaway strong { color: var(--navy-900); }

/* CTA banner inside articles */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius); padding: 36px; color: #fff; margin: 44px 0;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-banner::after { content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 70%); }
.cta-banner h3 { color: #fff !important; margin: 0 0 10px !important; font-size: 24px !important; }
.cta-banner p { color: #c9d6ec; margin-bottom: 20px; max-width: 560px; }
.cta-price { font-size: 15px; color: var(--amber-400); font-weight: 700; margin-bottom: 16px; display: block; }
.cta-price s { color: #8fa3c8; font-weight: 400; margin-right: 8px; }

/* FAQ accordion */
.faq { margin: 20px 0 8px; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; background: #fff; }
.faq summary { padding: 18px 22px; font-weight: 700; color: var(--navy-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--amber-600); font-weight: 400; flex-shrink: 0; }
.faq[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 22px 20px; color: var(--slate-600); font-size: 16px; }

/* author box */
.author-box { display: flex; gap: 18px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px; margin: 48px 0 0; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--amber-400); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-box strong { color: var(--navy-900); }
.author-box p { font-size: 15px; color: var(--slate-500); margin-top: 6px; }

/* email capture */
.email-capture { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: var(--radius); padding: 40px; text-align: center; margin: 56px 0; }
.email-capture h3 { color: var(--navy-900); font-size: 24px; margin-bottom: 10px; }
.email-capture p { color: var(--slate-600); margin-bottom: 20px; }

/* footer */
.site-footer { background: var(--navy-950); color: #8fa3c8; padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .04em; }
.footer-grid a { color: #8fa3c8; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }

/* responsive */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-body table { font-size: 13px; }
  .article-body th, .article-body td { padding: 8px 10px; }
}
