@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2-variations"),
       url("assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --baltic-blue: #33658A;
  --baltic-blue-dark: #284f6c;
  --sky-reflection: #86BBD8;
  --copperwood: #BB6D10;
  --copperwood-dark: #96590D;
  --vanilla-custard: #E3DC95;
  --cream: #FAF6E9;
  --ink: #17140F;
  --muted: #4a453c;
  --line: #e4dcc4;
  --green: #2E7D32;
  --amber: #E3A008;
  --red: #C62828;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(4, 3, 3, 0.06), 0 16px 36px rgba(4, 3, 3, 0.10);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--baltic-blue); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 54px; }
.brand-rule { width: 1px; align-self: stretch; background: var(--line); }
.seobar-logo { display: inline-flex; flex-direction: column; font-size: 24px; }
.seobar-logo .word { white-space: nowrap; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.seobar-logo img { display: block; width: 0; min-width: 100%; height: auto; margin-top: 0.1em; }
.header-link { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--baltic-blue); white-space: nowrap; }
@media (max-width: 379px) { .header-link { display: none; } }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 32px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copperwood-dark); }
h1, h2 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 700; }
.lede { margin: 18px 0 0; font-size: 19px; color: var(--muted); max-width: 34em; }

.hero-bar { margin-top: 28px; }

/* Form */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 22px; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #cfc6aa;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus { outline: 3px solid var(--sky-reflection); outline-offset: 1px; border-color: var(--baltic-blue); }
.field-row { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--baltic-blue);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), transform 120ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.form-card .btn { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
@media (hover: hover) { .btn:hover { background: var(--baltic-blue-dark); } }

.form-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.form-error { margin: 12px 0 0; font-size: 15px; color: var(--red); }

/* Score bar */
.bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.seg { height: 34px; border-radius: 6px; }
.seg.green { background: var(--green); }
.seg.amber { background: var(--amber); }
.seg.red { background: var(--red); }
.bar-caption { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.bar-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 18px; }
.band { background: var(--ink); color: var(--cream); }
.band p { color: #e9e3d0; }
.band .controlling { color: var(--vanilla-custard); font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: 24px; }
.narrow > * { max-width: 760px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: check; }
.checks li {
  counter-increment: check;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 58px;
}
.checks li::before {
  content: counter(check);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--baltic-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.checks strong { display: block; font-size: 18px; margin-bottom: 2px; }
.checks span { color: var(--muted); font-size: 16px; }
.payoff { margin: 24px 0 0; font-size: 20px; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { border-top: 3px solid var(--copperwood); padding-top: 14px; }
.steps strong { display: block; font-size: 20px; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.sample { margin: 36px 0 0; max-width: 560px; }

.who p { max-width: 40em; }
.who .talk { margin-top: 18px; font-weight: 600; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--baltic-blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta-end { text-align: center; }
.cta-end .btn { min-width: 260px; }

/* Footer */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Thank-you */
.thanks { padding: 48px 0 80px; }
.thanks .lede { margin-bottom: 28px; }
.thanks h2 { font-size: 24px; margin: 32px 0 8px; }

@media (min-width: 720px) {
  .brand-mark { width: 68px; }
  .seobar-logo { font-size: 30px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .checks { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 28px; }
}

@media (min-width: 960px) {
  .hero { padding: 40px 0 80px; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 56px; }
  section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
