/* Vaida SEO landing pages — shared stylesheet.
   Hand-rolled (no Tailwind) to keep static marketing pages dependency-free
   and ship the smallest possible payload. Brand tokens mirror the React app.
*/

:root {
  /* Vaida rebrand (May 2026): amber accent on midnight surfaces.
     Surfaces stay dark for visual continuity with the in-app SPA;
     the brand accent flips from teal #4fa3a3 to amber #E8854A. */
  --bg-app: #161B26;        /* midnight */
  --bg-surface: #1c2231;
  --bg-surface-2: #232a3b;
  --bg-surface-3: #2c3447;
  --border-subtle: #2e3548;
  --border-strong: #3d465c;
  --text-primary: #FAF6F0;  /* cream */
  --text-secondary: #b9bfd0;
  --text-tertiary: #8b93a8;
  --accent: #E8854A;        /* amber */
  --accent-hover: #B85628;  /* ember */
  --accent-soft: #3a2317;
  --accent-soft-2: #4a2c1e;
  --success: #3D8C5F;       /* verified */
  --warning: #E07A5F;       /* coral */
  --danger: #E07A5F;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 72rem;
  --content-width: 44rem;

  /* Full Vaida brand palette per §5.1 — available for future light theme. */
  --vaida-amber:    #E8854A;
  --vaida-ember:    #B85628;
  --vaida-teal:     #3FB8AF;
  --vaida-cream:    #FAF6F0;
  --vaida-midnight: #161B26;
  --vaida-charcoal: #1A1A1A;
  --vaida-slate:    #5C6373;
  --vaida-verified: #3D8C5F;
  --vaida-coral:    #E07A5F;
}

* { box-sizing: border-box; }

html {
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--bg-app);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-app);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(16, 19, 21, 0.85);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.site-logo:hover { text-decoration: none; color: var(--accent); }

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text-primary); text-decoration: none; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher {
  position: relative;
}
.lang-switcher select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.75rem 0.4rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239ba8ac' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-app);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-app);
  text-decoration: none;
}
.btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  text-decoration: none;
}
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

main { flex: 1; }

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

.content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--text-secondary); text-decoration: underline; }
.breadcrumb__sep { padding: 0 0.5rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}
.hero__inner {
  max-width: 50rem;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
  .hero { padding: 5rem 1.25rem 6rem; }
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 auto 2rem;
  max-width: 36rem;
  line-height: 1.6;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.hero__free-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section__inner--wide {
  max-width: var(--max-width);
}
.section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .section h2 { font-size: 2.5rem; }
  .section { padding: 5rem 1.25rem; }
}
.section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.section p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.section ul {
  color: var(--text-secondary);
  padding-left: 1.25rem;
  line-height: 1.8;
}
.section ul li { margin-bottom: 0.5rem; }
.section ul li strong { color: var(--text-primary); font-weight: 600; }

.section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pillar-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .pillar-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.pillar__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.pillar h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.pillar p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

.callout {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text-primary); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.25rem;
}
.faq__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.faq h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
  .faq h2 { font-size: 2.5rem; }
  .faq { padding: 5rem 1.25rem; }
}
.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq details > div p { margin: 0 0 0.75rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── Final CTA ───────────────────────────────────────────────────────────── */

.cta-final {
  text-align: center;
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-app));
}
.cta-final h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.cta-final p {
  color: var(--text-secondary);
  margin: 0 0 2rem;
  font-size: 1.1rem;
}
.cta-final__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Related links ────────────────────────────────────────────────────────── */

.related {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.25rem;
}
.related__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.related h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  text-align: center;
}
.related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: block;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.related-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}
.related-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}
.related-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-app);
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer__top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
}
.site-footer__brand .site-logo { margin-bottom: 0.75rem; display: inline-block; }
.site-footer__tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 22rem;
}
.site-footer__col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__col li { margin-bottom: 0.5rem; }
.site-footer__col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.site-footer__col a:hover { color: var(--accent-hover); }
.site-footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ── Hub grids (used by hub pages) ────────────────────────────────────────── */

.hub-section {
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.hub-section__inner { max-width: var(--max-width); margin: 0 auto; }
.hub-section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
}
