/* WhatsAEO — shared design system
   Dark navy + teal + white, Inter font, editorial-but-digital.
   Last updated 10/10/26.
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0a0a;
  --ink-2: #111;
  --ink-3: #16211f;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-mint: #2dd4bf;
  --teal-faint: #f0fdfa;
  --teal-tint: #f8fffe;
  --text: #e0e0e0;
  --text-mute: rgba(255,255,255,0.55);
  --text-fade: rgba(255,255,255,0.3);
  --slate: #475569;
  --slate-dark: #1e293b;
  --cream: #fafaf8;
  --border-light: #e2e8f0;
  --border-dark: rgba(255,255,255,0.08);
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Skip link ──────────────────────────── */
.skip { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 10px; top: 10px; }

/* ── Nav ─────────────────────────────────── */
.nav-wrap { background: var(--ink); border-bottom: 1px solid var(--border-dark); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 16px 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo .wordmark { font-weight: 700; font-size: 1.05rem; color: #fff; }
.nav-logo .wordmark em { font-style: normal; color: var(--teal); }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links .nav-cta { padding: 8px 16px; background: var(--teal); color: #fff !important; border-radius: 6px; font-weight: 600; font-size: 0.85rem; }
.nav-links .nav-cta:hover { background: var(--teal-dark); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' \25BE'; font-size: 0.7em; opacity: .5; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--ink-2); border: 1px solid var(--border-dark); border-radius: 8px;
  min-width: 220px; padding: 10px 0; margin-top: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 18px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.04); color: #fff; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-2); padding: 24px; flex-direction: column; gap: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    border-radius: 0 0 12px 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: rgba(255,255,255,0.75); font-size: 1rem; padding: 10px 4px; width: 100%; }
  .nav-dropdown-menu { display: block; position: static; background: transparent; border: none; box-shadow: none; margin: 0; padding: 0 0 0 14px; }
  .nav-dropdown-menu a { padding: 6px 4px; font-size: 0.92rem; }
  .nav-dropdown > a::after { display: none; }
}

/* ── Buttons ─────────────────────────────── */
.btn-primary, .btn-ghost, .btn-dark {
  display: inline-block; padding: 14px 26px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background .2s, transform .15s, color .2s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.12); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--border-light); display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; }
.btn-light:hover { background: var(--teal-faint); }

/* ── Sections ────────────────────────────── */
.section { padding: 80px 24px; }
.section-sm { padding: 56px 24px; }
.section-light { background: #fff; color: var(--slate-dark); }
.section-dark { background: var(--ink); color: var(--text); }
.section-tint { background: var(--teal-faint); color: var(--slate-dark); }
.section-cream { background: var(--cream); color: var(--slate-dark); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner-narrow { max-width: 780px; margin: 0 auto; }

.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; }
.section-title-light { color: #fff; }
.section-sub { font-size: 1.05rem; color: var(--slate); max-width: 640px; margin-bottom: 48px; line-height: 1.7; }
.section-sub-light { color: var(--text-mute); }

/* ── Page hero (interior pages) ──────────── */
.page-hero { background: var(--ink); padding: 72px 24px 56px; border-bottom: 1px solid var(--border-dark); }
.page-hero-inner { max-width: 780px; margin: 0 auto; }
.page-hero-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-mint); margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px; }
.page-hero h1 em { font-style: normal; color: var(--teal); }
.page-hero p { font-size: 1.1rem; color: var(--text-mute); max-width: 640px; line-height: 1.7; }

/* ── Breadcrumbs ─────────────────────────── */
.crumb { background: var(--ink); color: var(--text-fade); font-size: 0.82rem; padding: 10px 24px; border-bottom: 1px solid var(--border-dark); }
.crumb-inner { max-width: 1100px; margin: 0 auto; }
.crumb a { color: var(--text-mute); }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; opacity: .5; }

/* ── Cards ───────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--border-light); }
.card-dark { background: var(--ink-2); border-color: var(--border-dark); color: var(--text); }
.card-tint { background: var(--teal-faint); border-color: rgba(13,148,136,.2); }
.card-icon { width: 44px; height: 44px; background: var(--teal-faint); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon-dark { background: rgba(13,148,136,0.12); }
.card-icon svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.card-dark h3 { color: #fff; }
.card p { font-size: 0.95rem; color: var(--slate); line-height: 1.65; }
.card-dark p { color: var(--text-mute); }
@media (max-width: 860px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}

/* ── Tiles (icon + title + one-line) ─────── */
.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--ink-2); border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 24px; }
.tile h4 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.tile p { color: var(--text-mute); font-size: 0.92rem; }
@media (max-width: 860px) { .tile-row { grid-template-columns: 1fr; } }

/* ── Prose (long-form articles) ──────────── */
.prose { color: var(--slate-dark); font-size: 1.05rem; line-height: 1.75; }
.prose h2 { color: var(--ink); font-size: 1.6rem; font-weight: 800; margin: 52px 0 16px; letter-spacing: -0.02em; }
.prose h3 { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin: 36px 0 12px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 20px; padding-left: 4px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--teal-dark); text-decoration: underline; }
.prose a:hover { color: var(--teal); }
.prose blockquote { border-left: 3px solid var(--teal); padding: 6px 0 6px 18px; margin: 24px 0; font-style: italic; color: var(--slate); }
.prose .callout { background: var(--teal-faint); border: 1px solid rgba(13,148,136,.2); padding: 18px 22px; border-radius: 10px; margin: 24px 0; font-size: 0.98rem; }
.prose .callout strong { color: var(--teal-dark); }
.prose .divider { height: 1px; background: var(--border-light); margin: 36px 0; }

/* Prose on dark */
.prose-dark { color: var(--text); }
.prose-dark h2, .prose-dark h3 { color: #fff; }
.prose-dark a { color: var(--teal-mint); }
.prose-dark blockquote { color: var(--text-mute); }
.prose-dark .callout { background: rgba(13,148,136,.08); border-color: rgba(13,148,136,.3); color: var(--text); }
.prose-dark .divider { background: var(--border-dark); }

/* ── Compare block (SEO/AEO/GEO) ─────────── */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; }
.compare-col { background: var(--ink-2); padding: 32px 26px; }
.compare-col.highlighted { background: var(--teal); }
.compare-col-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: .6; color: #fff; margin-bottom: 6px; }
.compare-col.highlighted .compare-col-tag { opacity: .9; }
.compare-col-name { font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,0.4); letter-spacing: -0.02em; margin-bottom: 6px; }
.compare-col.highlighted .compare-col-name { color: #fff; font-size: 1.75rem; }
.compare-col-expand { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-bottom: 24px; }
.compare-col.highlighted .compare-col-expand { color: rgba(255,255,255,0.75); }
.compare-items { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-items li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.compare-col.highlighted .compare-items li { color: #fff; }
.compare-items svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; stroke: var(--teal-mint); }
.compare-col.highlighted .compare-items svg { stroke: #fff; }
@media (max-width: 820px) { .compare-grid { grid-template-columns: 1fr; } }

/* ── FAQ accordion ───────────────────────── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary { font-weight: 600; color: #fff; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--teal); transition: transform .2s; line-height: 1; }
.faq p { color: var(--text-mute); margin-top: 14px; font-size: 0.98rem; line-height: 1.7; }
.faq-light details { border-color: var(--border-light); }
.faq-light summary { color: var(--ink); }
.faq-light p { color: var(--slate); }

/* ── Form ────────────────────────────────── */
.form { max-width: 560px; }
.form .row { margin-bottom: 18px; }
.form label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-light label { color: #fff; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  background: #fff; border: 1px solid var(--border-light); border-radius: 8px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form .radio-row label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--border-light); border-radius: 8px;
  font-weight: 500; cursor: pointer; font-size: 0.92rem;
}
.form .radio-row label:has(input:checked) { background: var(--teal-faint); border-color: var(--teal); color: var(--teal-dark); }
.form .gdpr { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--slate); }
.form .gdpr input { width: auto; margin-top: 3px; }
.form-light .gdpr { color: var(--text-mute); }
.form .error { color: #ef4444; font-size: 0.88rem; margin-top: 10px; display: none; }
.form .ok { color: var(--teal-dark); font-size: 0.95rem; margin-top: 14px; display: none; }

/* ── CTA block ───────────────────────────── */
.cta { padding: 72px 24px; text-align: center; background: var(--ink); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta p { color: var(--text-mute); margin-bottom: 28px; font-size: 1.05rem; }

/* ── Footer ──────────────────────────────── */
footer { background: var(--ink); color: var(--text-mute); padding: 56px 24px 30px; border-top: 1px solid var(--border-dark); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.92rem; max-width: 300px; margin-top: 10px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-mute); }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid var(--border-dark); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--text-fade); }
.footer-bar a { color: var(--text-fade); }
.footer-bar a:hover { color: var(--text-mute); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ── Score / progress helpers ────────────── */
.score-band { background: linear-gradient(to right, #ef4444 0%, #f59e0b 33%, var(--teal-mint) 66%, var(--teal) 100%); height: 10px; border-radius: 100px; position: relative; margin: 10px 0 20px; }
.score-marker { position: absolute; top: -4px; width: 2px; height: 18px; background: #fff; border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--ink); }

.progress-wrap { background: rgba(255,255,255,.08); height: 10px; border-radius: 100px; overflow: hidden; margin: 10px 0; }
.progress-wrap .bar { height: 100%; background: var(--teal); transition: width .3s; }
.progress-wrap-light { background: var(--border-light); }

/* ── Table (comparison) ──────────────────── */
.ctable { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; border-radius: 10px; overflow: hidden; }
.ctable th, .ctable td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.ctable th { background: var(--teal-faint); color: var(--teal-dark); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ctable tr:last-child td { border-bottom: 0; }

/* ── Utility ─────────────────────────────── */
.hide { display: none !important; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.lift { transform: translateY(-1px); }
