/* ============================================================
   styles.css — AI Consulting Design System
   Mobile-first, WCAG AA, dependency-free
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: #1d2a33;
  background: #f5f8fa;
  -webkit-font-smoothing: antialiased;
}

/* --- Utilities --- */
.visually-hidden:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.stack > * + * { margin-top: 1.5rem; }

.muted { color: #4a5660; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; color: #0f3b57; }
h1 { font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); }

a { color: #1d6390; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0f3b57; }

/* --- Focus visible --- */
:focus-visible {
  outline: 3px solid #0f3b57;
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 0 0 0 5px #fff;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.promise :focus-visible {
  outline-color: #e8a33d;
  box-shadow: none;
}

/* --- Skip to content --- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  background: #0f3b57;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Draft banner --- */
.draft-banner {
  background: #e8a33d;
  color: #0f3b57;
  text-align: center;
  padding: 0.25rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Sticky header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f3b57;
  color: #fff;
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand,
.brand:hover {
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}
.brand-kicker {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e8a33d;
}
.brand-wordmark {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid #e8a33d;
  color: #e8a33d;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}
.nav-toggle:hover { background: rgba(232,163,61,0.15); }
.nav-menu {
  width: 100%;
  margin-top: 0.75rem;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #fdf8ee;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255,255,255,0.08);
  color: #e8a33d;
}
.nav-list a[aria-current="page"] { font-weight: 600; border-left: 3px solid #e8a33d; }

/* JS-enabled collapsing */
.js .nav-toggle { display: block; }
.js .nav-menu {
  display: none;
}
.js .nav-menu.is-open {
  display: block;
}

/* --- Mobile-first: 720px --- */
@media (min-width: 720px) {
  .js .nav-toggle { display: none; }
  .nav-menu {
    width: auto;
    margin-top: 0;
  }
  .nav-list {
    flex-direction: row;
    gap: 0.5rem;
  }
  .js .nav-menu { display: flex; }
}

/* --- 1024px --- */
@media (min-width: 1024px) {
  .nav-list { gap: 1rem; }
}

/* --- Hero --- */
.hero {
  background: #0f3b57;
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero .kicker {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e8a33d;
  margin-bottom: 0.5rem;
}
.hero p { max-width: 650px; margin-inline: auto; color: rgba(255,255,255,0.9); }
.hero .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: #e8a33d;
  color: #0f3b57;
  border-color: #e8a33d;
}
.btn-primary:hover { background: #f0b45a; border-color: #f0b45a; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark {
  background: #0f3b57;
  color: #fff;
  border-color: #0f3b57;
}
.btn-dark:hover { background: #1d6390; }

/* --- .contrast --- */
.contrast {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
}
.contrast-card {
  flex: 1;
  width: 100%;
  padding: 1.5rem;
  border-radius: 6px;
}
.contrast-card.is-muted {
  background: #f5f8fa;
}
.contrast-card.is-muted h3 { color: #4a5660; font-weight: 500; }
.contrast-card.is-strong {
  background: #0f3b57;
  color: #fff;
}
.contrast-card.is-strong h3 { color: #e8a33d; }
.contrast-card.is-strong .subline { font-style: italic; opacity: 0.9; }
.contrast-arrow {
  display: block;
  font-size: 1.5rem;
  color: #e8a33d;
  transform: rotate(90deg);
}

@media (min-width: 720px) {
  .contrast { flex-direction: row; align-items: stretch; }
  .contrast-arrow { transform: rotate(0deg); align-self: center; font-size: 2rem; }
}

/* --- .ticks list --- */
.ticks {
  list-style: none;
  margin-top: 0.75rem;
}
.ticks li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.35rem;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e8a33d;
  font-weight: 700;
}
.is-strong .ticks li::before { color: #e8a33d; }

/* --- .section --- */
.section { padding: 2.5rem 0; }
.section-title {
  color: #0f3b57;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid #e8a33d;
  display: inline-block;
}
.section-note { font-size: 0.85rem; color: #4a5660; font-style: italic; margin-top: 0.25rem; }

/* --- .callout --- */
.callout {
  background: #fdf3e1;
  border-left: 6px solid #e8a33d;
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}
.pill {
  display: inline-block;
  background: #0f3b57;
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.pill-gold {
  display: inline-block;
  background: #e8a33d;
  color: #0f3b57;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* --- .compare-table --- */
.compare-table {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table caption { text-align: left; font-weight: 600; margin-bottom: 0.5rem; color: #0f3b57; }
.compare-table th, .compare-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e3e9ee;
  vertical-align: top;
}
.compare-table thead th { background: #0f3b57; color: #fff; }
.compare-table thead th:last-child { background: #e8a33d; color: #0f3b57; }
.compare-table th[scope="row"] { background: #f5f8fa; font-weight: 600; }

/* Stack approach for narrow screens */
@media (max-width: 719px) {
  .compare-table table, .compare-table thead, .compare-table tbody, .compare-table tr, .compare-table td, .compare-table th {
    display: block;
  }
  .compare-table thead { display: none; }
  .compare-table tr { margin-bottom: 1rem; border: 1px solid #e3e9ee; border-radius: 4px; padding: 0.5rem; }
  .compare-table td, .compare-table th[scope="row"] {
    border: none;
    padding: 0.35rem 0.5rem;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0f3b57;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .compare-table tr { background: #fff; }
  .compare-table th[scope="row"] { background: transparent; font-weight: 600; padding-left: 0.5rem; }
  .compare-table th[scope="row"]::before { display: none; }
}

/* --- .fineprint --- */
.fineprint { font-size: 0.8rem; color: #4a5660; line-height: 1.7; }
.fineprint-box {
  border: 2px dashed #e3e9ee;
  padding: 1rem;
  border-radius: 4px;
  background: #f5f8fa;
}
.fineprint-box .fineprint { margin: 0; }

/* --- .card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.card h3 { margin-bottom: 0.5rem; }
.card.is-featured { border-top: 5px solid #e8a33d; }

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

/* --- .price-card --- */
.price-card {
  text-align: center;
}
.price-name { font-size: 1rem; color: #4a5660; text-transform: uppercase; letter-spacing: 0.05em; }
.price { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; color: #0f3b57; line-height: 1; margin: 0.25rem 0; }
.price-unit { font-size: 0.8rem; color: #4a5660; }
.price-card .ticks { text-align: left; }
.price-note { font-size: 0.8rem; color: #4a5660; margin-top: 0.75rem; }

/* --- .promise --- */
.promise {
  background: #0f3b57;
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 6px;
  text-align: center;
  margin: 2rem 0;
  position: relative;
}
.promise blockquote { font-style: italic; font-size: 1.1rem; max-width: 600px; margin-inline: auto; }
.promise blockquote::before {
  content: "“";
  display: block;
  font-size: 3.5rem;
  color: #e8a33d;
  line-height: 0.5;
  margin-bottom: 0.25rem;
}

/* --- .org-chart --- */
.org-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  padding: 1.5rem 0;
}
.org-step {
  background: #f5f8fa;
  border: 2px solid #e3e9ee;
  border-radius: 6px;
  padding: 1rem;
  width: 100%;
  text-align: center;
  position: relative;
}
.org-step h3 { color: #0f3b57; font-size: 0.95rem; margin-bottom: 0.25rem; }
.org-arrow {
  display: block;
  color: #b06f12;
  font-size: 1.2rem;
  transform: rotate(90deg);
}
.org-group { margin-top: 0.5rem; }
.org-group-label { font-size: 0.75rem; text-transform: uppercase; color: #4a5660; letter-spacing: 0.05em; }
.chip {
  display: inline-block;
  background: #0f3b57;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin: 0.2rem;
}

@media (min-width: 720px) {
  .org-chart { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: stretch; }
  .org-arrow { transform: rotate(0deg); align-self: center; }
  .org-step { width: auto; flex: 1 1 0; min-width: 0; }
  .org-step.is-wide { flex: 2.6 1 0; }
}

/* --- .proof-list --- */
.proof-list { list-style: none; margin: 1.5rem 0; }
.proof-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e3e9ee;
}
.proof-item:last-child { border-bottom: none; }
.proof-item h3 { margin-bottom: 0.25rem; }
.proof-link { display: inline-block; font-size: 0.85rem; color: #1d6390; margin-bottom: 0.35rem; }

/* --- .cta-band --- */
.cta-band {
  background: #e8a33d;
  color: #0f3b57;
  text-align: center;
  padding: 2.5rem 1rem;
  margin: 2rem 0;
}
.cta-band h2 { color: #0f3b57; }
.cta-band .btn-dark { margin-top: 1rem; }

/* --- .legal-stub --- */
.legal-stub { padding: 2rem 0; }
.draft-stamp {
  border: 3px solid #8a3b12;
  color: #8a3b12;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  background: transparent;
}

/* --- .site-footer --- */
.site-footer {
  background: #0f3b57;
  color: #f5f8fa;
  padding: 2rem 0;
  font-size: 0.85rem;
}
.site-footer a { color: #e8a33d; text-decoration: underline; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.footer-text { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* --- Print styles --- */
@media print {
  .site-header, .nav-toggle, .nav-menu { display: none; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a { text-decoration: underline; }
}

/* --- Layout additions --- */
main > section, main > div { margin: 0; }
.band-soft { background: #fdf8ee; }
.band-white { background: #fff; }
.contrast { padding: 0; }
.contrast-card.is-muted { border: 1px solid #e3e9ee; }
.contrast-card .subline { margin-top: 0.25rem; }
.dots { list-style: none; margin-top: 0.75rem; }
.dots li { padding-left: 1.5rem; position: relative; margin-bottom: 0.35rem; color: #4a5660; }
.dots li::before { content: "\2013"; position: absolute; left: 0.25rem; color: #6b7780; }
.contrast-card.is-strong .ticks li { color: #fff; }
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.data-table { width: 100%; overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
.data-table table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.875rem; background: #fff; }
.data-table th, .data-table td { border: 1px solid #e3e9ee; padding: 0.6rem 0.75rem; vertical-align: top; text-align: left; }
.data-table thead th { background: #0f3b57; color: #fff; }
.scroll-hint { font-size: 0.8rem; color: #4a5660; }
@media (min-width: 720px) { .scroll-hint { display: none; } }
.price-card .price-note, .card p + p { margin-top: 0.5rem; }
.promise blockquote { font-style: normal; }
.promise .fineprint { color: rgba(255,255,255,0.8); margin-top: 0.75rem; }
.callout p + p { margin-top: 0.5rem; }
.tbd { background: #fff2cc; color: #5a3a0c; padding: 0 0.25rem; border-radius: 3px; font-weight: 700; }
.cta-band { margin: 0; }
.site-footer .footer-text { margin-top: 0.25rem; }
.hero { text-align: left; }
.hero p { margin-inline: 0; margin-top: 0.75rem; }
.hero .lead { font-size: 1.15em; font-weight: 600; color: #fff; }
.hero .actions { justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* compare-table caption (Copy Humanizer item 8) */
.compare-table caption { caption-side: top; text-align: left; font-weight: 700; color: #0f3b57; padding: 0 0 0.5rem; }
@media (max-width: 719px) { .compare-table caption { display: block; width: 100%; } }
