:root {
  --navy: #143D69;
  --navy-deep: #021C36;
  --amber: #FFB03A;
  --amber-deep: #f29a12;
  --white: #ffffff;
  --off: #f6f8fb;
  --line: #e3e9f1;
  --text: #1f2a37;
  --text-2: #4b5a6e;
  --radius: 12px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --slab: "Roboto Slab", Georgia, serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--slab); font-weight: 700; line-height: 1.15; color: var(--navy-deep); }
p { margin: 0; color: var(--text-2); }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .9em; }

/* Top bar */
.topbar { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--navy-deep); background: var(--amber); }
.topbar a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px clamp(20px, 5vw, 60px); background: var(--navy); box-shadow: 0 2px 14px rgba(2,28,54,.18); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--slab); font-weight: 800; font-size: 20px; color: var(--white); }
.logo { width: 26px; height: 26px; border-radius: 6px; background: var(--amber); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); transition: color .2s; }
.nav-links a:hover { color: var(--amber); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .01em; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.btn.primary { background: var(--amber); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(255,176,58,.35); }
.btn.primary:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,176,58,.45); }
.btn.ghost { color: var(--white); border: 2px solid rgba(255,255,255,.35); }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn.big { padding: 17px 34px; font-size: 17px; }
.btn.small { padding: 9px 18px; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Shared section */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 60px); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); border-left: 4px solid var(--amber); padding-left: 12px; margin-bottom: 18px; }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
.sub { margin-top: 16px; font-size: clamp(17px, 1.7vw, 19px); }
.grad { color: var(--amber-deep); }
.accent { color: var(--amber); }
.serif { font-family: var(--slab); font-weight: 800; }

/* Hero (navy block) */
.hero { background: var(--navy); color: var(--white); }
.hero h1 { font-size: clamp(40px, 5.8vw, 74px); line-height: 1.06; color: var(--white); letter-spacing: -0.01em; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.3em); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero h1 .w.in { opacity: 1; transform: none; }
.hero h1 .accent { color: var(--amber); }
.lead { margin-top: 24px; font-size: clamp(18px, 1.8vw, 20px); color: rgba(255,255,255,.82); max-width: 560px; }
.hero .eyebrow { color: var(--amber); border-left-color: var(--amber); }

.hero-art { position: relative; width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 1; }
.art { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: rgba(255,176,58,.5); stroke-width: 1.5; stroke-dasharray: 4 10; transform-origin: 210px 210px; }
.r1 { animation: spin 40s linear infinite; }
.r2 { animation: spin 26s linear infinite reverse; stroke-dasharray: 2 14; }
.env { transform-origin: 210px 210px; animation: bobble 6s var(--ease) infinite; filter: drop-shadow(0 24px 30px rgba(2,28,54,.5)); }
.flap { transform-origin: 210px 150px; animation: flapOpen 6s var(--ease) infinite; stroke-dasharray: 400; }
.seal { transform-origin: 210px 232px; animation: pulseSeal 3s ease-in-out infinite; }
.tick { stroke-dasharray: 40; animation: draw 3s ease-in-out infinite; }
.trail { stroke-dasharray: 6 12; animation: dash 3s linear infinite; }
.badge { position: absolute; padding: 9px 16px; border-radius: 6px; font-weight: 700; font-size: 14px; color: var(--navy-deep); background: var(--white); box-shadow: 0 10px 24px rgba(2,28,54,.3); }
.b1 { top: 6%; left: -4%; animation: bob 5s ease-in-out infinite; }
.b2 { top: 44%; right: -6%; background: var(--amber); animation: bob 6s ease-in-out -2s infinite; }
.b3 { bottom: 6%; left: 8%; animation: bob 5.5s ease-in-out -4s infinite; }

/* Stats (amber band) */
.stats { background: var(--amber); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; max-width: none; padding: 0; margin: 0; }
.stat { padding: 40px clamp(20px, 4vw, 50px); border-right: 1px solid rgba(2,28,54,.14); }
.stat:last-child { border-right: 0; }
.num-big { display: block; font-family: var(--slab); font-size: clamp(42px, 5vw, 62px); font-weight: 800; color: var(--navy-deep); line-height: 1; }
.stat p { margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--navy-deep); }

/* Marquee (navy strip) */
.marquee { overflow: hidden; background: var(--navy-deep); padding: 16px 0; }
.track-x { display: flex; gap: 22px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--slab); font-size: 20px; font-weight: 700; white-space: nowrap; }
.track-x span { color: var(--white); }
.track-x i { font-style: normal; color: var(--amber); }

/* Cards (white on off-white) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 30px 28px 32px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,61,105,.12); border-top-color: var(--amber); }
.pill { display: inline-flex; padding: 6px 12px; border-radius: 4px; background: var(--navy); color: var(--white); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.card h3 { font-size: 22px; margin: 22px 0 10px; }
.card p { font-size: 16px; }

/* Journey (navy section) */
.journey-wrap { background: var(--navy); max-width: none; color: var(--white); }
.journey-wrap .head, .journey-wrap .section-inner { max-width: 1180px; }
.journey-wrap .eyebrow { color: var(--amber); border-left-color: var(--amber); }
.journey-wrap h2 { color: var(--white); }
.journey-wrap .sub, .journey-wrap p { color: rgba(255,255,255,.8); }
.journey { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 0 26px; max-width: 760px; }
.rail { position: relative; }
.rail::before { content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 3px; background: rgba(255,255,255,.18); }
.runner { position: absolute; left: 4px; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255,176,58,.22); transition: top .7s var(--ease); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stop-btn { display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: 0; padding: 14px 16px; font: inherit; font-family: var(--slab); font-size: 20px; font-weight: 700; color: var(--white); text-align: left; cursor: pointer; border-radius: 8px; transition: background .25s; }
.stop-btn:hover { background: rgba(255,255,255,.07); }
.n { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.14); font-family: var(--sans); font-size: 15px; transition: background .3s, color .3s; }
.stop.active .n { background: var(--amber); color: var(--navy-deep); }
.stop p { max-height: 0; opacity: 0; overflow: hidden; padding: 0 16px 0 64px; font-size: 17px; transition: max-height .5s var(--ease), opacity .4s, padding .3s; }
.stop.active p { max-height: 140px; opacity: 1; padding: 0 16px 16px 64px; }

/* Causes */
.causes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cause { background: var(--off); border-radius: var(--radius); padding: 28px 28px 30px; border-left: 4px solid var(--navy); }
.cause h3 { font-size: 21px; margin-bottom: 10px; }
.cause p { font-size: 16px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); margin-bottom: 20px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--amber); transition: width 1.4s var(--ease); }
.cause.in .meter span { width: var(--w); }

/* Audit */
.audit-wrap { background: var(--off); max-width: none; }
.audit-wrap .head, .audit-grid { max-width: 1180px; margin-left: auto; margin-right: auto; }
.audit-wrap .section-inner { max-width: 1180px; }
.audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.audit-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border-top: 4px solid var(--amber); box-shadow: 0 6px 20px rgba(20,61,105,.06); }
.big-pct { display: block; font-family: var(--slab); font-size: 54px; font-weight: 800; color: var(--navy); line-height: 1; }
.audit-card h3 { font-size: 21px; margin: 14px 0 8px; }
.audit-card p { font-size: 16px; }

/* Domain checker */
.domain-wrap { background: var(--off); max-width: none; }
.domain-wrap .head, .domain-wrap .domain-form, .domain-wrap .results, .domain-wrap .form-error { max-width: 1180px; margin-left: auto; margin-right: auto; }
.domain-wrap > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.domain-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 680px; }
.domain-form input {
  flex: 1 1 260px; min-width: 0; padding: 15px 18px; font: inherit; font-size: 17px; color: var(--text);
  background: var(--white); border: 2px solid var(--line); border-radius: 6px;
}
.domain-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,176,58,.35); }
.domain-form button[disabled] { opacity: .6; cursor: progress; }
.form-error { margin-top: 14px; color: #b42318; font-weight: 500; }
.results { margin-top: 30px; display: grid; gap: 14px; }
.summary { padding: 20px 24px; border-radius: var(--radius); background: var(--white); border-left: 6px solid var(--navy); font-size: 18px; color: var(--navy-deep); font-weight: 500; }
.summary.has-issues { border-left-color: var(--amber); }
.check-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; }
.badge-status { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; color: var(--white); white-space: nowrap; }
.s-pass { background: #1f7a4d; }
.s-warn { background: #b76e00; }
.s-fail { background: #b42318; }
.s-info { background: var(--navy); }
.check-row h3 { font-size: 19px; }
.check-row p { grid-column: 2; font-size: 16px; }
.check-row .fix { grid-column: 2; font-size: 15px; color: var(--navy); }
.check-row .fix strong { color: var(--navy-deep); }
.email-fix {
  display: inline-flex; margin-top: 6px; justify-self: start; padding: 14px 24px; border-radius: 6px; font-weight: 700;
  background: var(--navy); color: var(--white); transition: background .2s, transform .2s;
}
.email-fix:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* Centered hero with domain checker */
.hero { display: block; min-height: auto; text-align: center; padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 80px); max-width: 100%; }
.hero-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-art { width: 220px; height: 220px; max-width: none; margin: 0 auto 8px; justify-self: auto; aspect-ratio: auto; }
.hero .eyebrow { border-left: 0; padding-left: 0; margin-bottom: 20px; }
.hero h1 { max-width: 780px; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.08; }
.hero .lead { margin: 22px auto 0; max-width: 620px; }
.hero .domain-form { justify-content: center; width: 100%; max-width: 640px; margin: 36px auto 0; }
.hero .domain-form input { background: var(--white); color: var(--text); }
.hero .form-error { color: #ffd0c8; text-align: center; font-weight: 600; }
.hero .results { width: 100%; text-align: left; margin-top: 26px; }
.hero .results .summary { color: var(--navy-deep); }
.hero .hero-actions { justify-content: center; margin-top: 26px; }
.hero .btn.ghost { color: var(--white); }
.hero .privacy { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); }

/* Cost estimator */
.cost-wrap { padding-bottom: clamp(40px, 5vw, 60px); }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 900px; }
.calc label { display: grid; gap: 8px; font-size: 15px; font-weight: 700; color: var(--navy-deep); }
.calc input { font: inherit; font-size: 18px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 6px; background: var(--white); color: var(--text); }
.calc input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,176,58,.35); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; max-width: 900px; }
.calc-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 26px 28px; border-top: 4px solid var(--amber); }
.calc-label { display: block; font-size: 15px; color: rgba(255,255,255,.8); }
.calc-value { display: block; margin-top: 10px; font-family: var(--slab); font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; color: var(--amber); line-height: 1.05; }
.calc-note { margin-top: 18px; font-size: 14px; max-width: 900px; }

/* Commands */
.check-wrap { padding-top: clamp(70px, 9vw, 120px); }
.commands { display: grid; gap: 18px; max-width: 900px; }
.command { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.cmd-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--navy-deep); border-radius: 8px; padding: 14px 16px; }
.code code { color: #d6e6fa; white-space: nowrap; overflow-x: auto; font-size: 15px; }
.copy { flex-shrink: 0; border: 0; border-radius: 6px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; background: var(--amber); color: var(--navy-deep); cursor: pointer; transition: background .2s; }
.copy:hover { background: var(--amber-deep); }
.cmd-note { margin-top: 14px; font-size: 16px; }
.cmd-note code, .head code { background: var(--off); padding: .1em .4em; border-radius: 4px; color: var(--navy); }

/* Closing */
.closing { background: var(--amber); text-align: center; max-width: none; padding: clamp(70px, 9vw, 110px) 24px; }
.closing h2 { color: var(--navy-deep); }
.closing .sub { color: var(--navy-deep); opacity: .85; margin-left: auto; margin-right: auto; }
.closing .btn { margin-top: 30px; background: var(--navy); color: var(--white); box-shadow: none; }
.closing .btn:hover { background: var(--navy-deep); }

/* Footer */
.footer { background: var(--navy-deep); color: #cfdbe9; padding: 64px clamp(20px, 5vw, 60px) 36px; }
.footer-cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; }
.footer-cols p, .footer-cols a { display: block; color: #aebfd3; font-size: 15px; margin-bottom: 10px; }
.footer-cols a:hover { color: var(--amber); }
.f-brand { font-family: var(--slab); font-size: 20px; font-weight: 800; color: var(--white) !important; }
.f-head { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber) !important; margin-bottom: 14px !important; }
.legal { max-width: 1180px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7f95b0 !important; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bobble { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(1.2deg); } }
@keyframes flapOpen { 0%,100% { transform: rotateX(0deg); } 45%,55% { transform: rotateX(-14deg); } }
@keyframes pulseSeal { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes draw { 0%,100% { stroke-dashoffset: 40; } 50% { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { margin-left: 0; }
  .hero-art { max-width: 340px; order: -1; }
  .nav-links a:not(:last-child) { display: none; }
  .nav .btn { display: none; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(2,28,54,.14); }
}
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .nav-links { display: none; } .card, .cause { padding: 24px 22px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero h1 .w { opacity: 1; transform: none; }
  .meter span { width: var(--w); }
}
