/* Design Impact marketing - tokens aligned with board/public/styles.css */
:root {
  --bg: #eef2f6;
  --bg0: #dfe5ec;
  --surface: rgba(255, 255, 255, 0.88);
  --solid: #ffffff;
  --wash: rgba(21, 32, 43, 0.04);
  --ink: #15202b;
  --muted: #475569;
  --line: rgba(21, 32, 43, 0.12);
  --accent: #2f5d8c;
  --accent-bg: rgba(47, 93, 140, 0.1);
  --primary: #15202b;
  --good: #2f5d8c;
  --good-bg: rgba(47, 93, 140, 0.1);
  --poor: #c45c4a;
  --poor-bg: rgba(196, 92, 74, 0.1);
  --none: #475569;
  --none-bg: rgba(21, 32, 43, 0.05);
  --radius: 16px;
  --shadow: 0 24px 60px -40px rgba(15, 20, 25, 0.4);
  --font: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1080px;
  --focus: 2px solid var(--accent);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.55 var(--font);
  letter-spacing: -0.005em;
  background:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(47, 93, 140, 0.08), transparent),
    linear-gradient(165deg, var(--bg) 0%, var(--bg0) 100%) fixed;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
}

code {
  background: var(--wash);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

pre {
  background: var(--ink);
  color: #e6edf4;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.45;
  margin: 0 0 1.25rem;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.8125rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  align-items: center;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 0.35rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

.nav-cta {
  margin-left: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(21, 32, 43, 0.5);
}

.btn:active {
  transform: translateY(0);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-quiet:hover {
  background: var(--wash);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  min-height: calc(100svh - 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__brand {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  color: var(--ink);
  animation: rise 0.7s ease both;
}

.hero__headline {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 36rem;
  margin-bottom: 0.65rem;
  animation: rise 0.7s ease 0.08s both;
}

.hero__support {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
  animation: rise 0.7s ease 0.16s both;
}

.hero .cta-group {
  animation: rise 0.7s ease 0.24s both;
  margin-bottom: 2.25rem;
}

.hero__visual {
  animation: rise 0.85s ease 0.32s both;
}

/* Board mock (illustrative) */
.board-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1rem 1.15rem 1.25rem;
}

.board-frame__label {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--solid);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  z-index: 1;
}

.board-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.board-mock__title {
  font-weight: 700;
  font-size: 0.9rem;
}

.board-mock__pair {
  font-size: 0.8rem;
  color: var(--muted);
}

.board-mock__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .board-mock__grid {
    grid-template-columns: 1.1fr 1fr 0.9fr;
  }
}

.board-mock__panel {
  background: var(--solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.board-mock__kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.board-mock__metric {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.board-mock__delta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--good);
  background: var(--good-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-top: 0.35rem;
}

.board-mock__delta--warn {
  color: var(--poor);
  background: var(--poor-bg);
}

.board-mock__gauges {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.board-mock__gauge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  gap: 0.5rem;
}

.board-mock__bar-track {
  flex: 1;
  height: 6px;
  background: var(--none-bg);
  border-radius: 999px;
  overflow: hidden;
}

.board-mock__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left;
  animation: fillBar 1.1s ease 0.5s both;
}

.board-mock__effect {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.board-mock__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.board-shot {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.board-shot img {
  width: 100%;
  border-radius: inherit;
}

/* Sections */
main {
  padding-bottom: 4rem;
}

.section {
  padding: 3rem 0 0;
}

.section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.65rem;
}

.section > .lead,
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.outcomes {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .outcomes {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.outcome h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.outcome p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.defs {
  margin: 0 0 1.25rem;
}

.defs > div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.defs dt {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.defs dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8125rem;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--ink);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.note-warn {
  background: #fbf0d9;
  color: #8a5a00;
}

.draft-banner {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.page-head {
  padding: 2.5rem 0 0.5rem;
}

.page-head h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.page-head .lead {
  margin-bottom: 0;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.list-plain li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.list-plain strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* Forms (cards allowed for interaction) */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .hint {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--solid);
  color: var(--ink);
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(21, 32, 43, 0.28);
}

.required::after {
  content: " *";
  color: var(--accent);
}

.book-slots {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 600px) {
  .book-slots {
    grid-template-columns: 1fr 1fr;
  }
}

.book-slot {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.book-slot:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.book-slot strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.45);
}

.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--ink);
}

.credit {
  font-size: 0.875rem;
  color: var(--muted);
}

.credit a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.credit a:hover {
  color: var(--accent);
}

/* Motions */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fillBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__brand,
  .hero__headline,
  .hero__support,
  .hero .cta-group,
  .hero__visual,
  .board-mock__bar-fill {
    animation: none;
  }

  .btn,
  .book-slot {
    transition: none;
  }

  .btn:hover,
  .book-slot:hover {
    transform: none;
  }
}

/* Mobile nav stacking */
@media (max-width: 720px) {
  .site-header__inner {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    gap: 0.35rem 0.85rem;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 2.25rem;
  }
}
