/* ==========================================================================
   Shays Media — Design System implementation (v1.0 LOCKED tokens)
   Hand-authored CSS custom properties + components. No framework/build step
   required — see README for why (npm registry access constraint in the
   build sandbox; see the deviations note).
   ========================================================================== */

:root {
  /* Colour tokens — Design System §2 */
  --charcoal: #101416;
  --charcoal-deep: #0a0d0e;
  --charcoal-surface: #181d1f;
  --teal: #20b8b0;
  --teal-hover: #189a94;
  --teal-soft: #ddf5f3;
  /* AA-compliant variant of --teal for text/links/focus outlines on light
     backgrounds (same hue/saturation, darkened for contrast) — --teal
     itself is unchanged since it already passes as a button/background
     fill and as text on dark backgrounds. */
  --teal-text: #157974;
  --silver: #c8ced0;
  --silver-light: #e8ebec;
  --off-white: #f7f8f8;
  --white: #ffffff;
  --text-dark: #202628;
  --text-muted: #667174;
  /* AA-compliant variant of --text-muted for use on dark backgrounds
     (footer, dark sections) — --text-muted itself is unchanged since it
     already passes on light backgrounds. */
  --text-muted-on-dark: #778488;

  /* Functional (not brand) colours — used only for genuine states */
  --error: #b3261e;
  --error-soft: #fbe9e8;
  --success: #1c6b4f;

  /* Type */
  --font-display: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale — §2 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-card: 14px;
  --radius-button: 9px;

  --container-max: 1200px;
  --reading-max: 720px;
  --hero-copy-max: 800px;

  --section-pad-desktop: 112px;
  --section-pad-mobile: 72px;

  --motion-fast: 180ms;
  --motion-entrance: 420ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--off-white);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

/* ---------- Type scale (fluid) — restrained desktop scale ---------- */
.h-hero { font-size: clamp(2.25rem, 3.2vw + 1rem, 3.75rem); line-height: 1.08; }
.h-page { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
h2, .h2 { font-size: clamp(1.5rem, 1.7vw + 1rem, 2.25rem); }
h3, .h3 { font-size: clamp(1.2rem, 0.8vw + 1rem, 1.5rem); }
.intro { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem); line-height: 1.55; color: var(--text-muted); }
.hero-title { max-width: 720px; }
.hero-lede { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem); font-weight: 500; }
.section-dark .hero-lede, .section-deep .hero-lede { color: var(--silver-light); }
.eyebrow {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
  color: var(--teal); display: inline-block; margin-bottom: var(--space-3);
}
small, .small { font-size: 14.5px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-5); }
@media (max-width: 640px) { .container { padding-inline: var(--space-4); } }
.section { padding-block: var(--section-pad-desktop); }
@media (max-width: 768px) { .section { padding-block: var(--section-pad-mobile); } }
.section-tight { padding-block: var(--space-7); }
.stack > * + * { margin-top: var(--space-5); }
.reading { max-width: var(--reading-max); margin-inline: auto; }
.hero-copy { max-width: var(--hero-copy-max); }

.section-dark { background: var(--charcoal); color: var(--silver-light); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .intro { color: var(--silver); }
.section-deep { background: var(--charcoal-deep); color: var(--silver-light); }
.section-light { background: var(--off-white); color: var(--text-dark); }
.section-white { background: var(--white); color: var(--text-dark); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--teal); color: var(--charcoal-deep);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 200; transition: top var(--motion-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal-text);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-button);
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--motion-fast) var(--ease), background var(--motion-fast), border-color var(--motion-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #06211f; }
.btn-primary:hover { background: var(--teal-hover); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--silver); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.section-light .btn-secondary, .section-white .btn-secondary { color: var(--text-dark); border-color: var(--text-muted); }
.btn-text { background: none; border: none; color: var(--teal); font-weight: 700; padding: 0; min-height: auto; }
.btn-text:hover { color: var(--teal-hover); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(16, 20, 22, 0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(200, 206, 208, 0.14);
  transition: padding var(--motion-fast);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.site-header .logo img { height: 34px; width: auto; }
.logo.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo.lockup .logo-mark { height: 36px; width: auto; display: block; }
.logo.lockup .logo-text { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 21px; color: var(--white); text-transform: uppercase; }
@media (max-width: 1023px) {
  .logo.lockup .logo-text { display: none; }
}
.site-header nav.primary-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-header nav.primary-nav a { color: var(--silver-light); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-header nav.primary-nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; padding: 8px; }

.mobile-menu {
  position: fixed; inset: 0; background: var(--charcoal-deep); z-index: 150;
  display: none; flex-direction: column; padding: var(--space-5);
}
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn { align-self: flex-end; background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-7); }
.mobile-menu nav a { color: var(--white); font-size: 26px; text-decoration: none; font-family: var(--font-display); font-weight: 700; }
/* The "Check Your Fit" CTA inside the mobile menu also carries .btn-primary,
   which expects its own dark text on the teal button background — restore
   that instead of the plain-link white this selector would otherwise apply. */
.mobile-menu nav a.btn-primary { color: #06211f; }

@media (max-width: 1023px) {
  .site-header nav.primary-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: var(--silver); padding-block: var(--space-8) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { color: var(--silver); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--teal); }
.footer-grid > div:first-child .text-muted { color: var(--text-muted-on-dark); }
.footer-bottom { border-top: 1px solid rgba(200,206,208,0.14); margin-top: var(--space-7); padding-top: var(--space-5); font-size: 14px; color: var(--text-muted-on-dark); }
.footer-logo img { height: 28px; margin-bottom: var(--space-4); }
.independence-note { max-width: 640px; font-size: 13.5px; color: var(--text-muted-on-dark); margin-top: var(--space-3); }

/* ---------- About page two-column layout ---------- */
.about-layout {
  max-width: 1100px; margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-8);
  align-items: start;
}
.about-main { max-width: var(--reading-max); }
.about-aside { display: flex; flex-direction: column; gap: var(--space-5); }
.about-aside .card ul { margin: 0; padding-left: 1.1em; }
.about-cta { grid-column: 1 / -1; margin-top: var(--space-6); }
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-main { max-width: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius-card);
  padding: var(--space-6);
}
.section-dark .card, .section-deep .card { background: var(--charcoal-surface); border-color: rgba(200,206,208,0.16); color: var(--silver-light); }
.card h3 { margin-bottom: var(--space-2); }
.card-icon { width: 40px; height: 40px; color: var(--teal); margin-bottom: var(--space-4); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: stretch; }
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card .badge {
  display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--teal-text); border: 1px solid var(--teal-text); border-radius: 999px;
  padding: 4px 12px; margin-bottom: var(--space-4); width: fit-content;
}
.pricing-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; margin: var(--space-3) 0; }
.pricing-card .price small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: var(--space-5) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pricing-card ul li { padding-left: 26px; position: relative; }
.pricing-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.pricing-card .excludes { color: var(--text-muted); font-size: 14.5px; margin-top: auto; padding-top: var(--space-4); border-top: 1px dashed var(--silver-light); }

/* ---------- Decision framework (Scale / Continue / Hold-Fix / Stop) ---------- */
.decision-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 800px) { .decision-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .decision-row { grid-template-columns: 1fr; } }
.decision-item {
  border: 1px solid rgba(200,206,208,0.24); border-radius: var(--radius-card); padding: var(--space-5);
  text-align: center; background: var(--charcoal-surface);
}
.decision-item .decision-label { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--white); margin-bottom: var(--space-2); }
.decision-item p { color: var(--silver); font-size: 14.5px; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--silver-light); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: inherit;
  min-height: 56px;
}
.faq-question .chevron { transition: transform var(--motion-fast) var(--ease); flex-shrink: 0; }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height var(--motion-entrance) var(--ease); }
.faq-item.open .faq-answer { max-height: 800px; }
.faq-answer-inner { padding-bottom: var(--space-5); color: var(--text-muted); }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 700; margin-bottom: var(--space-2); font-size: 15px; }
.field .hint { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: var(--space-1); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--silver); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: var(--white); color: var(--text-dark);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13.5px; margin-top: var(--space-2); display: flex; gap: 6px; align-items: flex-start; }
.checkbox-field { display: flex; align-items: flex-start; gap: var(--space-3); }
.checkbox-field input { margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; }
.form-status { padding: var(--space-4) var(--space-5); border-radius: 10px; margin-bottom: var(--space-5); font-size: 15px; }
.form-status.success { background: var(--teal-soft); color: #0a4a45; }
.form-status.error { background: var(--error-soft); color: var(--error); }

/* ---------- Callouts ---------- */
.callout { border-radius: 10px; padding: var(--space-4) var(--space-5); font-size: 15px; margin: var(--space-5) 0; border-left: 4px solid; }
.callout-platform { background: var(--teal-soft); border-color: var(--teal); color: #0a4a45; }
.callout-recommendation { background: var(--silver-light); border-color: var(--text-muted); color: var(--text-dark); }
.callout-distinction { background: #fff6e5; border-color: #b8860b; color: #5c4400; }

/* ---------- Fit Check ---------- */
.fitcheck-shell { background: var(--charcoal); color: var(--silver-light); min-height: 100vh; }
.fitcheck-shell h1, .fitcheck-shell h2, .fitcheck-shell h3 { color: var(--white); }
.fitcheck-shell .intro, .fitcheck-shell .text-muted, .fitcheck-shell .field .hint { color: var(--silver); }
.fitcheck-shell .field label { color: var(--silver-light); }
.fitcheck-progress-track { height: 4px; background: rgba(200,206,208,0.2); border-radius: 4px; overflow: hidden; }
.fitcheck-progress-fill { height: 100%; background: var(--teal); transition: width var(--motion-entrance) var(--ease); }
.fitcheck-progress-label { font-size: 13.5px; color: var(--silver); margin-top: var(--space-2); font-weight: 700; letter-spacing: 0.02em; }
.fitcheck-question-wrap { max-width: 760px; margin-inline: auto; padding-block: var(--space-8); }
.fitcheck-answers { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.answer-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  border: 1.5px solid rgba(200,206,208,0.38); background: var(--charcoal-surface);
  border-radius: var(--radius-card); padding: 20px 24px; text-align: left; cursor: pointer;
  color: var(--white); font-size: 1.02rem; font-weight: 600; min-height: 44px;
  transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}
.answer-card:hover { border-color: var(--teal); background: rgba(200,206,208,0.06); }
.answer-card.selected {
  border-color: var(--teal); background: rgba(32,184,176,0.18);
  box-shadow: 0 0 0 1px var(--teal) inset; font-weight: 700;
}
.answer-card .check { color: var(--teal); opacity: 0; transition: opacity var(--motion-fast); flex-shrink: 0; }
.answer-card.selected .check { opacity: 1; }
.fitcheck-nav { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-7); }
.fitcheck-reviewing { text-align: center; padding-block: var(--space-10); }
.fitcheck-result-badge {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  color: var(--white); margin-bottom: var(--space-4);
}
.readiness-list { list-style: none; padding: 0; margin: var(--space-5) 0; }
.readiness-list li {
  padding: 14px 18px; border-radius: 10px; background: var(--charcoal-surface); margin-bottom: var(--space-3);
  border-left: 3px solid var(--teal);
}

/* ---------- Signature conversation demo ---------- */
/* Light "app canvas" styling is intentional here: this mimics the look of a
   ChatGPT conversation window sitting inside the dark homepage section, so
   colours below are deliberately light-surface tokens even though the
   surrounding section is dark. */
.conv-demo {
  background: var(--white); border: 1px solid rgba(16,20,22,0.08); border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.45);
  padding: var(--space-6); max-width: 620px; margin-inline: auto;
}
.conv-bubble-user {
  background: #eef0f1; color: var(--text-dark); border-radius: 14px 14px 4px 14px;
  padding: 14px 18px; margin-left: auto; max-width: 80%; margin-bottom: var(--space-4); opacity: 0;
  transform: translateY(8px);
}
.conv-bubble-response {
  color: var(--text-dark); padding: 4px 2px; max-width: 92%; margin-bottom: var(--space-6); opacity: 0;
  line-height: 1.6; transform: translateY(8px);
}
.conv-sponsored {
  border: none; border-top: 1px solid rgba(16,20,22,0.08); border-radius: 0; padding: var(--space-4) 0 0 0;
  opacity: 0; background: transparent; box-shadow: none; text-align: left; transform: translateY(8px);
}
.sponsored-header { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-3); }
.sponsored-advertiser { font-size: 13.5px; font-weight: 700; color: var(--text-dark); }
.sponsored-label {
  margin-left: auto; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  color: var(--text-muted);
}
.sponsored-body { display: flex; align-items: flex-start; gap: var(--space-4); }
.sponsored-text { flex: 1 1 auto; min-width: 0; }
.sponsored-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.sponsored-copy { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.sponsored-domain { font-size: 12px; color: var(--text-muted); }
.sponsored-creative {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 10px;
  object-fit: cover; border: 1px solid rgba(16,20,22,0.1);
}
/* Advertiser favicon mark uses a neutral, non-brand colour deliberately —
   this represents the fictional advertiser's own identity, not Shays
   Media's, so it must not use the site's teal token. */
.conv-brand-dot { width: 20px; height: 20px; border-radius: 6px; background: #8a7355; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--white); flex-shrink: 0; }
.conv-demo.revealed .conv-bubble-user {
  opacity: 1; transform: translateY(0); transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.conv-demo.revealed .conv-bubble-response {
  opacity: 1; transform: translateY(0);
  transition: opacity 500ms var(--ease) 500ms, transform 500ms var(--ease) 500ms;
}
.conv-demo.revealed .conv-sponsored {
  opacity: 1; transform: translateY(0);
  transition: opacity 500ms var(--ease) 1000ms, transform 500ms var(--ease) 1000ms;
}
.conv-demo-caption { text-align: center; font-size: 13.5px; color: var(--text-muted-on-dark); margin-top: var(--space-4); }
.conv-demo-caption a { color: var(--teal); text-decoration: underline; }
.conv-demo-replay { display: flex; justify-content: center; margin-top: var(--space-4); }

/* Mobile-only refinement: tighter, smaller-scale conversation card so it
   reads like a genuine mobile ChatGPT screen rather than a scaled-down
   desktop layout. Desktop styles above are untouched. */
@media (max-width: 640px) {
  .conv-demo { padding: var(--space-4); }
  .conv-bubble-user { font-size: 15px; padding: 12px 16px; margin-bottom: var(--space-3); }
  .conv-bubble-response { font-size: 15px; margin-bottom: var(--space-4); }
  .conv-sponsored { padding-top: var(--space-3); }
  .sponsored-header { margin-bottom: var(--space-2); }
  .sponsored-body { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .sponsored-text { width: 100%; }
  .sponsored-creative { width: 120px; height: 120px; }
  .sponsored-title { font-size: 13.5px; }
  .sponsored-copy { font-size: 12.5px; }
}

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 300;
  background: var(--charcoal-deep); color: var(--silver-light); border-radius: 16px; padding: var(--space-5);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35); display: none; max-width: 620px; margin-inline: auto;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 14.5px; color: var(--silver); }
.cookie-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }
.cookie-prefs-link { position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 90; }

/* ---------- Article ---------- */
.article-header { max-width: var(--reading-max); margin-inline: auto; padding-block: var(--space-8) var(--space-5); }
.article-meta { display: flex; gap: var(--space-4); flex-wrap: wrap; color: var(--text-muted); font-size: 14px; margin-top: var(--space-4); }
.article-body { max-width: var(--reading-max); margin-inline: auto; font-size: 18px; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body p, .article-body ul, .article-body ol, .article-body table, .article-body blockquote { margin-bottom: 1.3em; }
.article-body blockquote {
  border-left: 4px solid var(--teal); background: var(--teal-soft); color: #0a4a45; margin: 1.6em 0;
  padding: var(--space-4) var(--space-5); border-radius: 0 10px 10px 0; font-size: 16px;
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.article-body th, .article-body td { border: 1px solid var(--silver-light); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--off-white); }
.article-body a { color: var(--teal-hover); text-decoration: underline; }
.article-card-cover {
  height: 140px; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--charcoal);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  padding-block: 8px;
}
.article-card-cover span { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 14px; z-index: 1; padding: 0 var(--space-4); text-align: center; }
.article-card-cover::after {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(32,184,176,0.28), transparent 55%);
}
.article-list-card { border: 1px solid var(--silver-light); border-radius: var(--radius-card); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.article-list-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.article-list-card h3 { font-size: 1.15rem; }
.article-list-card .article-list-cta { margin-top: auto; }
/* Scoped overrides for --teal used as text on light backgrounds — see
   .btn-text (base rule) which stays unchanged since it's also used on the
   dark footer ("Cookie settings"), where the original --teal already
   passes contrast fine. */
.article-list-cta, .btn-text[href="/faq/"] { color: var(--teal-text); }
.article-list-cta:hover, .btn-text[href="/faq/"]:hover { color: var(--teal-text); }
.category-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-text); font-weight: 700; }

/* ---------- Badges ---------- */
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--silver-light); color: var(--text-dark); }
.section-dark .tag { background: rgba(200,206,208,0.16); color: var(--silver-light); }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.section-dark .text-muted { color: var(--silver); }
.section-deep .text-muted { color: var(--silver); }
.max-w-prose { max-width: 62ch; }
.divider { border: none; border-top: 1px solid var(--silver-light); margin: var(--space-7) 0; }
.section-dark .divider { border-top-color: rgba(200,206,208,0.18); }
