/* Tokens from DESIGN.md (Mecenia adaptation). Landing = marketing: navy ink-button CTAs, terracotta as accent. */
:root {
  --canvas: #fff;
  --surface-soft: #faf5ec;
  --surface-cream-deep: #f2e9d8;
  --primary: #b4472a;
  --primary-deep: #93381f;
  --primary-soft: #f6e4dc;
  --accent-gold: #e2ae4c;
  --ink-deep: #17233a;
  --ink: #1f2a3d;
  --ink-button: #17233a;
  --charcoal: #444950;
  --steel: #5d6c7b;
  --hairline: #d6cfc2;
  --hairline-soft: #ebe4d6;
  --success: #31a24c;
  --attention: #f2a918;
  --critical: #e41e3f;
  --focus: #1876f2;
  --font: 'Montserrat', Helvetica, Arial, 'Noto Sans', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --rounded-lg: 8px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --rounded-xxxl: 32px;
  --rounded-full: 100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--ink-deep); font-family: var(--font); line-height: 1.5; letter-spacing: -0.16px; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 32px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink-deep); letter-spacing: -0.5px; }
h1 { font-size: 60px; line-height: 1.1; margin: 0 0 24px; }
h2 { font-size: 40px; line-height: 1.2; margin: 0 0 32px; max-width: 820px; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
p { font-size: 16px; color: var(--steel); margin: 0 0 24px; }
.lead { font-size: 18px; line-height: 1.5; max-width: 620px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 16px; }
.spaced { margin-top: 72px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline-soft); }
.topbar .wrap { padding-top: 14px; padding-bottom: 14px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bar-right { display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; }
.logo img { display: block; height: 40px; width: auto; }
.topnav { display: flex; gap: 28px; margin-right: auto; margin-left: 24px; }
.topnav a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink); padding: 8px 0; }
.topnav a:hover { color: var(--primary); }
select { min-height: 44px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: var(--rounded-full); font: 700 14px var(--font); background: var(--canvas); color: var(--ink-deep); cursor: pointer; }

/* Buttons: pills always */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--ink-button); color: #fff; font: 700 14px/1.43 var(--font); letter-spacing: -0.14px; padding: 14px 30px; border: 0; border-radius: var(--rounded-full); text-decoration: none; cursor: pointer; transition: background 150ms ease-out; }
.btn:hover { background: #24344f; }
.btn:active { background: var(--charcoal); }
.btn:disabled { background: #bcc0c4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink-deep); border: 2px solid var(--ink-deep); padding: 12px 28px; }
.btn.ghost:hover { background: var(--ink-deep); color: #fff; }
.bar .btn { min-height: 44px; padding: 10px 22px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Product mockup: eligibility check with cited clauses */
.mock { margin: 0; background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--rounded-xxxl); padding: 28px; box-shadow: 0 24px 60px -24px rgba(23, 35, 58, 0.25); position: relative; }
.mock::before { content: ''; position: absolute; inset: -18px 18px 18px -18px; background: var(--surface-soft); border-radius: var(--rounded-xxxl); z-index: -1; }
.mock-head { display: flex; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: var(--rounded-full); font-size: 12px; font-weight: 700; background: var(--surface-soft); color: var(--charcoal); }
.chip.ok { background: var(--success); color: #fff; }
.mock-title { font-family: var(--font-display); font-size: 22px; color: var(--ink-deep); margin: 0 0 12px; line-height: 1.25; }
.mock-result { font-weight: 700; color: var(--ink-deep); margin: 0 0 8px; font-size: 15px; }
.mock-bar { height: 8px; background: var(--surface-cream-deep); border-radius: var(--rounded-full); overflow: hidden; margin-bottom: 20px; }
.mock-bar span { display: block; height: 100%; background: var(--primary); border-radius: var(--rounded-full); }
.mock-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.mock-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.mock-list strong { display: block; color: var(--ink); font-weight: 500; }
.mock-list cite { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--primary-deep); background: var(--primary-soft); padding: 2px 8px; border-radius: var(--rounded-full); }
.mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--success); }
.miss .mark { background: var(--attention); color: var(--ink-deep); }
.mock-review { margin: 0; padding-top: 16px; border-top: 1px solid var(--hairline-soft); font-size: 14px; font-weight: 700; color: var(--ink-deep); }
.mock-review span:first-child { color: var(--primary); }

/* Problem band (stat tiles) */
.band { background: var(--ink-deep); color: #fff; }
.band .wrap { padding-top: 80px; padding-bottom: 80px; }
.band h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-top: 2px solid rgba(255, 255, 255, 0.18); padding-top: 24px; }
.stat p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.stat .stat-n { font-family: var(--font-display); font-size: 56px; line-height: 1.1; color: var(--accent-gold); margin-bottom: 12px; }

/* Cards */
section.wrap { padding-top: 88px; padding-bottom: 32px; }
.cards, .steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--rounded-xl); padding: 28px; transition: border-color 150ms ease-out; }
.card:hover { border-color: var(--hairline); }
.card p { margin: 0; font-size: 15px; }
.icon { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps { grid-template-columns: repeat(4, 1fr); }
.num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-deep); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 16px; }
.soft { background: var(--surface-soft); margin-top: 88px; }
.soft .wrap { padding-top: 88px; padding-bottom: 88px; }
.soft .card { border-color: transparent; }

/* Pilot form */
.pilot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; color: var(--ink); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.form { display: grid; gap: 16px; padding: 32px; border-radius: var(--rounded-xxl); box-shadow: 0 24px 60px -32px rgba(23, 35, 58, 0.25); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.form input, .form textarea { width: 100%; min-height: 44px; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--rounded-lg); font: 400 16px var(--font); color: var(--ink); background: var(--canvas); }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border: 2px solid var(--focus); padding: 11px; }
.form .invalid { border-color: var(--critical); }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: 14px; font-weight: 700; min-height: 1px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--critical); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ accordion */
.faq { max-width: 880px; padding-bottom: 96px !important; }
.faq details { border-bottom: 1px solid var(--hairline-soft); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 700; color: var(--ink-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--primary); transition: transform 300ms ease-in-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 720px; }

/* Footer */
.foot { background: var(--ink-deep); color: #fff; }
.foot .wrap { padding-top: 48px; padding-bottom: 24px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot img { height: 40px; width: auto; margin-bottom: 16px; }
.foot p { color: rgba(255, 255, 255, 0.72); max-width: 420px; }
.foot-links { display: flex; flex-direction: column; gap: 12px; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.foot-links a:hover { color: var(--accent-gold); }
.foot .rights { font-size: 12px; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }

@media (max-width: 1023px) {
  .hero, .pilot { grid-template-columns: 1fr; gap: 48px; }
  .topnav { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 48px; }
}
@media (max-width: 767px) {
  .wrap { padding: 16px; }
  .topbar .wrap { padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 32px; }
  .bar { gap: 8px; }
  .bar-right { gap: 8px; }
  .bar .btn { padding: 10px 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .lead { font-size: 16px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .ctas .btn { flex: 1 1 100%; }
  .mock { padding: 20px; border-radius: var(--rounded-xxl); }
  .mock::before { display: none; }
  .stats, .steps { grid-template-columns: 1fr; }
  .stat .stat-n { font-size: 44px; }
  .band .wrap, .soft .wrap { padding-top: 56px; padding-bottom: 56px; }
  section.wrap { padding-top: 56px; }
  .soft { margin-top: 56px; }
  .spaced { margin-top: 48px; }
  .form { padding: 20px; }
  .form .btn { justify-self: stretch; }
}
