/* CSS Variables */
:root {
  --brand: #d71920;
  --brand-dark: #a90f16;
  --brand-soft: #fff1f2;
  --ink: #17181c;
  --muted: #5f626b;
  --surface: #ffffff;
  --surface-alt: #f7f7f9;
  --border: #e7e8ec;
  --success: #0b7a53;
  --warning: #9b5a00;
  --shadow-sm: 0 8px 24px rgba(20, 20, 25, .08);
  --shadow-lg: 0 22px 60px rgba(20, 20, 25, .13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1180px;
  --header-h: 76px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25rem; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }

/* Base Styles */
body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;
}
main { min-height: 60vh; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.section-sm { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: #15161a; color: #fff; }
.divider { height: 1px; background: var(--border); }

/* Typography */
h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { color: var(--muted); }
.section-dark p { color: #c9cbd2; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; color: var(--brand); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 760px; }
.section-title { max-width: 760px; margin-bottom: 2.25rem; }
.section-title p { margin-top: .85rem; }
.text-center { text-align: center; }
.text-center .section-title, .section-title.text-center { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Utilities */
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 9999; background: #fff; color: #111; padding: .7rem 1rem; border-radius: 8px; box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 1rem; }
.grid { display: grid; gap: 1.35rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 1rem; }
.check-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 1.75rem; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.pill { display: inline-flex; padding: .38rem .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 700; background: #fff; }
.note { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.note p { color: #5a2326; }
.source-note { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1.4rem; }

/* Header */
.announcement { background: #15161a; color: #fff; font-size: .9rem; text-align: center; padding: .55rem 1rem; }
.announcement a { color: #fff; font-weight: 800; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 28px rgba(20,20,25,.05); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-weight: 900; font-size: 1.2rem; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(215,25,32,.24); }
.nav-wrap { display: flex; align-items: center; gap: 1.1rem; }
.nav-list { list-style: none; padding: 0; display: flex; gap: .2rem; align-items: center; }
.nav-list a { display: inline-flex; padding: .65rem .72rem; text-decoration: none; font-size: .93rem; font-weight: 700; color: #3e4047; border-radius: 10px; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--surface-alt); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 12px; cursor: pointer; }

/* Navigation */
.breadcrumb { padding: 1rem 0; font-size: .9rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .5rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: #aaa; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* Hero */
.hero { position: relative; overflow: clip; padding: clamp(3.5rem, 7vw, 7rem) 0; background: linear-gradient(135deg, #fff 0%, #fff7f7 56%, #f7f7f9 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(215,25,32,.12), rgba(215,25,32,0) 68%); top: -180px; right: -140px; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy p { margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; }
.hero-media { position: relative; }
.hero-media::after { content: ""; position: absolute; inset: 8% -4% -6% 10%; z-index: -1; background: var(--brand); border-radius: 36px; opacity: .08; transform: rotate(4deg); }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.page-hero { padding: clamp(3rem, 6vw, 5.5rem) 0; background: linear-gradient(135deg, #fff, #fff4f4); border-bottom: 1px solid var(--border); }
.page-hero .lead { margin-top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.1rem; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 25px rgba(215,25,32,.22); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-block { width: 100%; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 4px 14px rgba(20,20,25,.025); }
.card h3 { margin-bottom: .65rem; }
.card p + p { margin-top: .7rem; }
.icon-box { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-weight: 900; margin-bottom: 1rem; }
.feature-card { min-height: 100%; }
.benefit-card { border-top: 3px solid var(--brand); }
.info-card { background: #15161a; color: #fff; border: 0; }
.info-card p { color: #c9cbd2; }

/* Sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.media-card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); }
.media-card img { border-radius: var(--radius); }
.quick-answer { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.quick-answer h2 { font-size: 1.35rem; margin-bottom: .55rem; }
.quick-answer p { color: #34363d; }
.stateless-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.trust-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }

/* Features */
.feature-detail { padding: 1.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.feature-detail .meta { display: grid; gap: .65rem; margin-top: 1rem; }
.feature-detail .meta div { padding: .8rem; background: var(--surface-alt); border-radius: 12px; }
.feature-detail strong { display: block; margin-bottom: .1rem; }

/* How It Works */
.timeline { position: relative; display: grid; gap: 1rem; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 24px; top: 24px; bottom: 24px; width: 2px; background: #f0c7c9; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.step-num { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; z-index: 1; }
.step-body { padding: .4rem 0 1.3rem; }
.step-body p { margin-top: .4rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.price-card { position: relative; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.price-card.featured { border-color: #f1a8ac; box-shadow: var(--shadow-lg); }
.price-label { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; margin: .5rem 0 .8rem; }
.price-card ul { margin: 1rem 0 1.2rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #fafafa; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; }
.faq-question { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1rem 1.15rem; border: 0; background: #fff; font-weight: 800; cursor: pointer; }
.faq-question::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 1.15rem 1.15rem; }
.faq-answer[hidden] { display: none; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.blog-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.blog-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg,#ffe2e3,#fafafa); display: grid; place-items: center; color: var(--brand); font-weight: 900; font-size: 1.1rem; }
.blog-card .body { padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.blog-card .body a { margin-top: auto; color: var(--brand); font-weight: 800; text-decoration: none; }
.article-shell { width: min(calc(100% - 2rem), 860px); margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .9rem; margin: 1rem 0 1.4rem; }
.article-content { display: grid; gap: 1.1rem; }
.article-content h2 { margin-top: 1.6rem; font-size: clamp(1.65rem,3vw,2.25rem); }
.article-content h3 { margin-top: .8rem; }
.article-content ul, .article-content ol { color: var(--muted); }
.toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; background: var(--surface-alt); }
.toc a { color: #333; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cfd1d7; border-radius: 12px; padding: .8rem .9rem; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(215,25,32,.14); border-color: var(--brand); }
.form-status { min-height: 1.5rem; font-size: .92rem; font-weight: 700; }
.form-status.error { color: #a11218; }
.form-status.info { color: var(--warning); }

/* Footer */
.cta-banner { padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); background: linear-gradient(135deg, #b90f16, #e02229); color: #fff; display: flex; justify-content: space-between; gap: 2rem; align-items: center; box-shadow: 0 22px 55px rgba(215,25,32,.24); }
.cta-banner p { color: #ffe9ea; margin-top: .5rem; }
.site-footer { background: #111216; color: #fff; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 2rem; }
.footer-brand p { color: #aeb0b7; margin-top: .9rem; max-width: 420px; }
.footer-col h2 { font-size: 1rem; margin-bottom: .85rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: #c8cad0; text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid #2b2c31; display: flex; justify-content: space-between; gap: 1rem; color: #9b9da5; font-size: .84rem; }
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; z-index: 999; }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Animations */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy, .hero-media { animation: fade-up .55s ease both; }
.hero-media { animation-delay: .08s; }

/* Accessibility */
:focus-visible { outline: 3px solid rgba(215,25,32,.35); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .container { width: min(calc(100% - 2.5rem), 1080px); }
  .nav-list a { padding-inline: .55rem; }
}
@media (max-width: 992px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav-wrap { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .nav-wrap.open { display: flex; }
  .nav-list { align-items: stretch; flex-direction: column; }
  .nav-list a { display: block; padding: .8rem; }
  .header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; max-width: 760px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container { width: min(calc(100% - 1.5rem), 100%); }
  .grid-2, .grid-3, .pricing-grid, .blog-grid, .stateless-trust { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 180px; }
}
@media (max-width: 576px) {
  :root { --header-h: 68px; }
  .announcement { font-size: .8rem; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions { grid-template-columns: 1fr; }
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .card, .feature-detail { padding: 1.1rem; }
  .section { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
