/* Columnwise landing page styles — mobile-first, no external fonts or requests. */

:root {
  --navy: #1a2b5c;
  --navy-dark: #101b3d;
  --navy-tint: #2a3d7c;
  --gold: #c9a227;
  --gold-dark: #a9840f;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #1c1f2a;
  --ink-soft: #4a4f5e;
  --line: #e4e0d4;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(16, 27, 61, 0.08);
}

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

html {
  scroll-behavior: smooth;
  /* Relative, not a fixed px value, so it still respects a user's browser-level font
     preference — just scales everything (nearly all sizing here is in rem) down from the
     16px default to a denser 14px baseline. */
  font-size: 87.5%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.45;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy-dark); line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.85rem; color: var(--ink-soft); }

a { color: var(--navy); }
a:hover { color: var(--gold-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 1.25rem; flex-wrap: wrap; }
/* Explicit color, not inherited: the global `a { color: var(--navy) }` rule below would
   otherwise win over .site-header's white (a direct rule on the element always beats
   inheriting from an ancestor, regardless of the ancestor rule's specificity) — making the
   currentColor logo render navy-on-navy and effectively invisible until :hover. */
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #fff; }
.brand-mark { display: block; }
.brand-name { color: #fff; font-family: Georgia, serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.site-nav { display: none; gap: 1.25rem; }
.site-nav a { color: #f2efe6; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--gold); }
.site-nav-minor { opacity: 0.7; font-size: 0.88rem !important; }
.header-cta { display: none; }

@media (min-width: 760px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .hero-inner { flex-direction: row; align-items: center; gap: 2.5rem; }
  .hero-copy { flex: 1 1 56%; }
  .hero-video { flex: 1 1 44%; }
}

/* Buttons & badges */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-tint); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge-light { background: rgba(255,255,255,0.12); color: #f2efe6; }
.badge-gold { background: #fdf5e0; color: var(--gold-dark); border: 1px solid var(--gold); }

.status-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.5rem; }
.status-live { background: #e4f3e6; color: #226b3a; }
.status-soon { background: #eee; color: #666; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 2rem 0 1.75rem; }
.hero-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--gold); font-weight: 700; margin-bottom: 0.5rem; }
.hero h1 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2.1rem); max-width: 22ch; margin: 0 0 0.75rem; }
.hero-sub { color: #dfe2ee; max-width: 58ch; font-size: 0.95rem; }
.hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.hero-trust { font-size: 0.82rem; color: #c7cce0; }

/* Hero video: click-to-play facade, so nothing loads from YouTube until clicked */
.hero-video { width: 100%; }
.video-facade, .video-embed-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video-facade { padding: 0; border: none; background: var(--navy-dark); cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.15s; }
.video-facade:hover img, .video-facade:focus-visible img { opacity: 0.85; }
.video-facade:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.video-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(201, 162, 39, 0.92); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
}
.video-caption {
  position: absolute; left: 0.75rem; bottom: 0.65rem;
  background: rgba(16, 27, 61, 0.78); color: #fff;
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px;
}
.video-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Section rhythm */
section { padding: 1.75rem 0; }
.section-lede { max-width: 62ch; font-size: 0.95rem; }

/* About page */
.about-hero { padding: 1.75rem 0 1.5rem; }
.wrap-narrow { max-width: 68ch; }
.about-section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.about-section:last-of-type { border-bottom: none; }
.about-links { padding-left: 1.25rem; }
.about-links li { margin-bottom: 0.4rem; }

/* Demo */
.demo { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-panel { margin-top: 1rem; }
.dropzone {
  border: 2px dashed var(--navy-tint);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  background: #f5f6fb;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
}
.dropzone:focus-visible, .dropzone:hover { border-color: var(--gold); background: #f8f3e3; outline: none; }
.dropzone.dragover { border-color: var(--gold); background: #f8f3e3; }
.dropzone-icon { color: var(--navy-tint); margin-bottom: 0.35rem; }
.dropzone p { margin: 0.2rem 0; }

.network-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }
.demo-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: #fdecea;
  color: #9a2a1f;
  border: 1px solid #f3c3bd;
}

.demo-results { margin-top: 2rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
}
@media (min-width: 600px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-grid > div { background: #f5f6fb; border-radius: var(--radius); padding: 0.9rem 1rem; }
.stat-grid dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 0.25rem; }
.stat-grid dd { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--navy-dark); word-break: break-word; }

.section-note { font-size: 0.92rem; max-width: 68ch; }

.type-select {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-family: inherit;
}
.detected-hint { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.25rem; }

.table-more-note { font-size: 0.85rem; color: var(--ink-soft); }

.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; white-space: nowrap; }
.data-table th, .data-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead th { background: var(--navy); color: #fff; position: sticky; top: 0; }
.data-table tbody tr:nth-child(even) { background: #f7f7fb; }

/* Pillars */
.pillar-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  border-top: 2px solid var(--gold);
  padding-top: 0.9rem;
}
.pillar p { margin: 0; }

/* Functions */
.function-list { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .function-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .function-list { grid-template-columns: repeat(3, 1fr); } }
.function-card {
  border-bottom: 1px solid var(--line);
  padding: 0 0 0.95rem;
  scroll-margin-top: 5rem;
}
.function-card p { margin: 0; font-size: 0.95rem; }
.function-card-links { margin-top: 0.6rem !important; font-size: 0.88rem !important; }
.function-card-links a { color: var(--navy); font-weight: 600; text-decoration: none; }
.function-card-links a:hover { color: var(--gold-dark); text-decoration: underline; }

/* Pricing */
.pricing-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 1.5rem 0 1rem; }
@media (min-width: 760px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.6rem;
  text-align: center;
}
.price-card-featured { border: 2px solid var(--gold); }
.price-card-featured .badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
}
.price-card h3 { margin-bottom: 0.3rem; }
.price-amount { font-family: Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--navy-dark); margin: 0 0 0.6rem; }
.price-card p:not(.price-amount) { font-size: 0.92rem; }
.price-card .btn { width: 100%; margin-top: 0.4rem; }
.pricing-note { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* Comparison */
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--paper); }
.compare-table th, .compare-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; }
.compare-table tbody th { color: var(--navy-dark); font-family: Georgia, serif; }
.compare-highlight { background: #fdf5e0; }
.compare-highlight th, .compare-highlight td { font-weight: 600; }

/* Final CTA */
.cta-final { background: var(--navy-dark); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #dfe2ee; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-final-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }

.demo-to-tool-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.demo-to-tool-cta p { color: #dfe2ee; margin: 0; max-width: 48ch; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c7cce0; padding: 2rem 0; font-size: 0.85rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: #dfe2ee; }
.site-footer a:hover { color: var(--gold); }

/* Tool pages (landing/tools/<slug>/) */
.tool-section { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.tool-section:last-of-type { border-bottom: none; }

.how-to-list { counter-reset: how-to; list-style: none; padding: 0; margin: 1rem 0; }
.how-to-list li {
  counter-increment: how-to;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.75rem;
}
.how-to-list li::before {
  content: counter(how-to);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}
.how-to-list strong { color: var(--navy-dark); }

.worked-example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  margin: 1rem 0;
}
.worked-example h3 { margin-top: 0; }

.video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 0;
}
.video-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f8;
  border: 1px dashed var(--navy-tint);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.video-embed-placeholder p { margin: 0; }
.worked-example code, .worked-example pre {
  background: #f5f6fb;
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  font-size: 0.88rem;
}
.worked-example pre { padding: 0.85rem 1rem; overflow-x: auto; }

.related-tools { display: grid; gap: 0.85rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 640px) { .related-tools { grid-template-columns: repeat(2, 1fr); } }
.related-tools a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.related-tools a:hover { color: var(--gold-dark); }

.consent-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.consent-banner p { flex: 1 1 320px; margin: 0; font-size: 0.85rem; line-height: 1.4; }
.consent-banner a { color: var(--gold); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
