:root {
  --ink: #101820;
  --muted: #60707d;
  --canvas: #f5efe4;
  --paper: #fffdf7;
  --line: #ded2c0;
  --accent: #c24a2c;
  --accent-dark: #8c321e;
  --green: #23624a;
  --gold: #d59a2b;
  --night: #111820;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
  --radius: 28px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 74, 44, 0.14), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(35, 98, 74, .08), transparent 30rem),
    linear-gradient(180deg, #fffaf0 0%, var(--canvas) 48%, #eee7da 100%);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: white; border-radius: 999px; }
.skip-link:focus { top: 1rem; }
.site-header, .site-footer, .section-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; max-width: 100%; }
.brand-lockup span:last-child { min-width: 0; }
.brand-lockup strong { display: block; line-height: 1.05; letter-spacing: -.03em; }
.brand-lockup small { display: block; color: var(--muted); font-weight: 700; font-size: .76rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--ink); font-weight: 900; letter-spacing: -.08em; flex: 0 0 auto; }
nav { display: flex; gap: 22px; font-size: .95rem; color: var(--muted); }
nav a { text-decoration: none; font-weight: 750; }
nav a:hover, nav a:focus { color: var(--accent-dark); }
.section-shell { padding: clamp(42px, 6vw, 76px) 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(30px, 5vw, 76px); align-items: center; min-height: 610px; }
.hero-copy, .hero-card { min-width: 0; }
.hero-narrow { min-height: 520px; }
.eyebrow { margin: 0 0 12px; color: var(--accent-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -0.048em; }
h1 { font-size: clamp(2.8rem, 5.2vw, 5.35rem); max-width: 820px; }
h2 { font-size: clamp(2.05rem, 4.6vw, 4.55rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 2.05rem); }
h4 { font-size: 1.12rem; letter-spacing: -.02em; }
p { color: var(--muted); }
.hero-subtitle { font-size: clamp(1.12rem, 2vw, 1.42rem); max-width: 700px; margin: 28px 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(194,74,44,.35); outline-offset: 3px; }
.button-primary { background: var(--accent); color: white; box-shadow: 0 14px 34px rgba(194,74,44,.22); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: rgba(255,255,255,.78); color: var(--ink); border: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 34px 0 0; }
.trust-row li { padding: 8px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.58); border-radius: 999px; color: #35424c; font-weight: 760; font-size: .92rem; }
.hero-card, .tool-section, .package-section, .proof-section, .split-section, .vertical-grid article, .system-stack article, .package-grid article, .results-panel, .vertical-detail-card, .cta-band { background: rgba(255, 253, 247, .9); border: 1px solid rgba(222,210,192,.94); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: clamp(24px, 4vw, 42px); transform: rotate(.8deg); }
.hero-card ol, .hero-card ul { padding-left: 1.25rem; color: #394653; font-weight: 700; }
.hero-card li + li { margin-top: 12px; }
.card-kicker { margin: 0 0 10px; color: var(--muted); font-weight: 850; }
.proof-card h2 { font-size: clamp(1.9rem, 3.2vw, 3.1rem); }
.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; padding: clamp(24px, 5vw, 48px); }
.system-stack, .package-grid, .vertical-grid, .gate-grid, .detail-grid { display: grid; gap: 18px; }
.system-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.system-stack article, .package-grid article { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: #fffefa; }
.system-stack span, .page-count { color: var(--accent); font-weight: 950; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading.wide { max-width: 900px; }
.vertical-section { padding-top: 56px; }
.vertical-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; }
.vertical-grid article { padding: 22px; display: flex; flex-direction: column; min-height: 280px; }
.vertical-grid article p:not(.page-count) { flex: 1; }
.vertical-grid a { font-weight: 900; color: var(--accent-dark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.package-section, .proof-section, .tool-section, .cta-band { padding: clamp(24px, 5vw, 48px); }
.package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.package-grid strong { display: block; color: var(--green); margin-top: 18px; }
.proof-section { background: var(--night); color: white; }
.proof-section p { color: rgba(255,255,255,.74); }
.proof-section .eyebrow { color: #f6b18d; }
.gate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.gate-grid span { padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.88); font-weight: 850; text-align: center; }
.audit-form { display: grid; gap: 22px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label, legend { font-weight: 850; color: #293642; }
input, select { width: 100%; min-height: 52px; margin-top: 8px; border: 1px solid #d8ccbb; border-radius: 16px; padding: 12px 14px; background: #fffefa; color: var(--ink); font: inherit; font-size: max(16px, 1rem); }
fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
fieldset label { font-weight: 700; color: #35424c; }
fieldset input { width: auto; min-height: 0; margin: 0 8px 0 0; }
legend { padding-inline: 8px; }
.form-error { color: #9f3219; font-weight: 850; }
.results-panel { margin-top: 28px; padding: clamp(20px, 4vw, 34px); }
.results-summary { display: flex; align-items: center; gap: 24px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.results-grid article { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: #fffefa; }
.results-grid ul { margin: 14px 0 0; padding-left: 1.25rem; color: #3b4853; }
.results-grid li + li { margin-top: 10px; }
.upgrade-box { margin-top: 22px; padding: 22px; border-radius: 24px; background: #101820; color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.upgrade-box p { color: rgba(255,255,255,.74); }
.upgrade-box .eyebrow { color: #ffb08e; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) 62%, #ebe2d4 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; background: var(--paper); }
.score-ring span, .score-ring small { position: relative; z-index: 1; }
.score-ring span { font-size: 3.2rem; font-weight: 950; letter-spacing: -.08em; }
.score-ring small { margin-left: -18px; margin-top: 48px; color: var(--muted); font-weight: 850; }
.score-ring-large { width: 132px; height: 132px; flex: 0 0 auto; }
.score-ring-large span { font-size: 2.8rem; }
.detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vertical-detail-card { padding: 24px; }
.vertical-detail-card ul { padding-left: 1.2rem; color: #3b4853; }
.vertical-detail-card li + li { margin-top: 10px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.site-footer { padding: 24px 0 46px; font-size: .95rem; }
@media (max-width: 1040px) { .vertical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .system-stack, .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; gap: 10px 16px; }
  .hero, .split-section, .package-grid, .gate-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 28px; }
  .hero-card { transform: none; }
  .field-grid, fieldset, .results-grid { grid-template-columns: 1fr; }
  .results-summary, .upgrade-box, .cta-band { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .site-header, .site-footer, .section-shell { width: calc(100% - 20px); max-width: 350px; margin-left: 10px; margin-right: auto; }
  .site-header { overflow: hidden; }
  .section-shell { padding: 34px 0; }
  h1 { font-size: clamp(1.95rem, 8.3vw, 2.25rem); line-height: 1.06; letter-spacing: -0.045em; max-width: 11ch; overflow-wrap: break-word; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.2rem); max-width: 12ch; overflow-wrap: break-word; }
  .hero-copy, .hero-card, .tool-section, .cta-band, .split-section, .package-section, .proof-section { max-width: calc(100vw - 20px); }
  .hero-subtitle { margin: 22px 0; font-size: 1.08rem; }
  .button { width: 100%; }
  .trust-row li { width: 100%; }
  .vertical-grid { grid-template-columns: 1fr; }
  nav { width: 100%; font-size: .9rem; gap: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
