/* CSS Variables */
:root {
  --red: #e0162b;
  --red-dark: #b70f20;
  --red-soft: #fff0f2;
  --ink: #171719;
  --ink-2: #303034;
  --muted: #6b6b73;
  --line: #e8e8ec;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --surface-3: #f1f1f4;
  --success: #137a4e;
  --warning: #8b5a00;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 24px rgba(25, 25, 28, .06);
  --shadow: 0 18px 55px rgba(25, 25, 28, .10);
  --container: 1180px;
  --header-h: 76px;
  --ease: 180ms ease;
}

/* 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, svg { display: block; max-width: 100%; }
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;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { min-height: 60vh; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(42px, 6vw, 72px) 0; }
.section-tint { background: var(--surface-2); }
.section-dark { background: var(--ink); color: #fff; }
.rule-top { border-top: 1px solid var(--line); }

/* Typography */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.75rem, 7vw, 5.75rem); max-width: 14ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); max-width: 18ch; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { color: var(--muted); }
.section-dark p { color: #cfcfd5; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 64ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800;
  color: var(--red); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.kicker { font-weight: 760; color: var(--ink); }
.text-link { color: var(--red-dark); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Utilities */
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.center { text-align: center; }
.center h2, .center .lede { margin-inline: auto; }
.muted { color: var(--muted); }
.chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: #fff; font-size: .82rem; font-weight: 700; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.skip-link { position: fixed; z-index: 9999; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Header */
.announcement { background: var(--ink); color: #fff; font-size: .82rem; }
.announcement .container { min-height: 38px; display: flex; align-items: center; justify-content: center; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); transition: var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(25,25,28,.04); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.18rem; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; }
.nav-list a { text-decoration: none; padding: 10px 11px; border-radius: 9px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--surface-3); color: var(--red-dark); }
.header-actions { display: flex; gap: 9px; align-items: center; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); margin: 4px auto; transition: var(--ease); }

/* Navigation */
.breadcrumb { padding: 24px 0 0; font-size: .86rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #b0b0b6; }
.breadcrumb a { text-decoration: none; }

/* Hero */
.hero { padding: clamp(52px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto auto; width: min(38vw, 540px); height: 78%; background: linear-gradient(145deg, var(--red-soft), transparent 72%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr); gap: clamp(34px, 6vw, 78px); align-items: center; position: relative; }
.hero-copy p { margin-top: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .88rem; }
.hero-visual { position: relative; min-height: 510px; }
.hero-panel { position: absolute; right: 0; top: 0; width: 88%; background: var(--ink); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--red); right: -70px; top: -70px; opacity: .9; }
.hero-panel img { position: relative; width: 100%; border-radius: 16px; }
.hero-metric { position: absolute; left: 0; bottom: 26px; width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.metric-line { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.metric-line span { display: block; width: 68%; height: 100%; background: var(--red); }

/* Buttons */
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform var(--ease), background var(--ease), border-color var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(224,22,43,.22); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-small { min-height: 42px; padding-inline: 14px; font-size: .9rem; }

/* Cards */
.card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.card:hover { box-shadow: var(--shadow-sm); }
.icon-box { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-dark); font-weight: 900; margin-bottom: 22px; }
.icon-box svg { width: 23px; height: 23px; }
.card h3 + p { margin-top: 12px; }
.stat-card { border-top: 3px solid var(--red); }
.bento { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.bento .wide { grid-row: span 2; }
.bento-card { position: relative; overflow: hidden; min-height: 230px; }
.bento-card img { margin-top: 24px; max-height: 300px; object-fit: contain; margin-inline: auto; }

/* Sections */
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 42px; }
.section-head > p { max-width: 52ch; }
.quick-answer { border-left: 4px solid var(--red); background: var(--red-soft); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.quick-answer strong { display: block; margin-bottom: 7px; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .92rem; }
.disclosure { font-size: .82rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 900; }
.split-media { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.media-frame { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }
.media-frame img { border-radius: 16px; margin: auto; }

/* Features */
.feature-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(240px, .7fr); gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.feature-number { font-size: 2.1rem; font-weight: 900; letter-spacing: -.05em; color: #d4d4d9; }
.feature-benefit { border-left: 2px solid var(--red); padding-left: 16px; }
.feature-benefit strong { display: block; margin-bottom: 6px; }

/* How It Works */
.timeline { counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 24px; position: relative; padding-bottom: 40px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 35px; top: 62px; bottom: 0; width: 1px; background: var(--line); }
.step-marker { width: 70px; height: 70px; border-radius: 22px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; }
.step-marker::before { content: counter(step, decimal-leading-zero); }
.step-content { padding-top: 8px; }
.step-content p { margin-top: 10px; }

/* Pricing */
.offer-shell { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 6vw, 64px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.offer-shell p { color: #d3d3da; }
.offer-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 28px; }
.offer-card p { color: var(--muted); }
.plan-list { margin: 18px 0 0; display: grid; gap: 12px; }
.plan-list div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: #fff; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-group + .faq-group { margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; border: 0; background: transparent; display: flex; justify-content: space-between; gap: 20px; text-align: left; padding: 20px 0; font-weight: 800; cursor: pointer; color: var(--ink); }
.faq-question span:last-child { color: var(--red); font-size: 1.25rem; transition: transform var(--ease); }
.faq-question[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; max-width: 76ch; }
.faq-answer[hidden] { display: none; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.blog-art { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink), #3c3c43); position: relative; overflow: hidden; }
.blog-art::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: var(--red); right: -30px; top: -70px; }
.blog-art::after { content: "TC"; position: absolute; left: 24px; bottom: 18px; color: #fff; font-size: 2rem; font-weight: 900; letter-spacing: -.06em; }
.blog-card-body { padding: 22px; }
.blog-card-body h3 a { text-decoration: none; }
.blog-card-body p { margin-top: 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 58px; align-items: start; }
.article-body > * + * { margin-top: 1.25rem; }
.article-body h2 { margin-top: 2.7rem; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.article-body h3 { margin-top: 2rem; }
.article-body ul, .article-body ol { color: var(--muted); }
.toc { position: sticky; top: 110px; border-left: 1px solid var(--line); padding-left: 20px; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: 5px 0; font-size: .9rem; }
.toc a:hover { color: var(--red-dark); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 750; font-size: .9rem; }
input, textarea, select { width: 100%; border: 1px solid #dcdce2; border-radius: 12px; padding: 13px 14px; background: #fff; color: var(--ink); }
textarea { min-height: 160px; resize: vertical; }
.form-status { margin-top: 14px; font-size: .9rem; }

/* Footer */
.site-footer { background: #111113; color: #fff; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; }
.footer-brand p { margin-top: 14px; color: #bdbdc4; max-width: 40ch; }
.footer-col h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #c9c9cf; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c2c31; margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: #9898a1; }
.cta-band { display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center; background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px); }
.cta-band h2 { max-width: 15ch; }
.cta-band p { color: #ffe8eb; margin-top: 12px; max-width: 58ch; }
.cta-band .btn { background: #fff; color: var(--red-dark); }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: var(--ease); z-index: 900; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Animations */
.reveal { opacity: 1; transform: none; }

/* Accessibility */
:focus-visible { outline: 3px solid rgba(224,22,43,.35); outline-offset: 3px; }
.sr-only { position: absolute; 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% - 32px), var(--container)); }
}
@media (max-width: 992px) {
  .header-inner { flex-wrap: wrap; }
  .nav { width: 100%; order: 4; margin-left: 0; padding: 8px 0 10px; border-top: 1px solid var(--line); }
  .nav-list { display: grid; }
  .js .menu-toggle { display: block; margin-left: auto; }
  .js .nav { position: fixed; inset: calc(38px + var(--header-h)) 16px auto; width: auto; order: initial; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: var(--ease); }
  .js .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-list a { display: block; padding: 12px 14px; }
  .header-actions .btn-secondary { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-visual { min-height: 480px; max-width: 720px; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .wide { grid-row: auto; grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; border-left: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
  .offer-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .header-actions .btn-primary { display: none; }
  .hero { padding-top: 42px; }
  .hero-visual { min-height: 390px; }
  .hero-panel { width: 94%; padding: 18px; }
  .hero-metric { width: 190px; bottom: 0; }
  .grid-2, .grid-3, .blog-grid, .split-media { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: auto; }
  .section-head { display: grid; align-items: start; }
  .feature-row { grid-template-columns: 60px 1fr; }
  .feature-benefit { grid-column: 2; }
  .cta-band { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
@media (max-width: 576px) {
  :root { --header-h: 68px; }
  .announcement { font-size: .75rem; }
  .header-inner { gap: 12px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 31px; height: 31px; }
  .hero-visual { min-height: 335px; }
  .hero-panel { width: 100%; }
  .hero-metric { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-number { font-size: 1.5rem; }
  .feature-benefit { grid-column: auto; }
  .step { grid-template-columns: 54px 1fr; gap: 16px; }
  .step-marker { width: 54px; height: 54px; border-radius: 16px; }
  .step:not(:last-child)::before { left: 26px; top: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
