/* ---------------------------------------------------------------------------
   Public pages: nav, hero, headed lists, FAQ, footer and the guides, in MHI
   blue. Depends on css/system.css for tokens and buttons.

   This began as ConnectAble's marketing layout. The October 2026 feature run
   took out what made it read as a template (A4-01 to A4-13): italic accent
   words in headings, numbered and uppercase eyebrows, emoji tiles, a tilted
   fake browser window, "$0 / 0 / 2" stats, glass, glow and lifting cards,
   and text a person must read set below 16px.
--------------------------------------------------------------------------- */

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border-strong);
}
.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}
.site-logo img { border-radius: 50%; }
.site-logo .org { display: block; font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.site-nav-links { display: flex; align-items: center; gap: 28px; }
/* Plain links only: on .btn this grey outranked the button's white and
   "Open the app" read 1.04:1 on every public page (F47). */
.site-nav-links a:not(.btn) {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
}
.site-nav-links a:not(.btn):hover { color: var(--color-primary); text-decoration: underline; }
@media (max-width: 760px) {
  .site-nav-inner { padding: 10px 16px; }
  .site-nav-links .nav-hide-sm { display: none; }
}
/* A phone gets a one-line logo and a button that wraps rather than being
   cut off: it was clipped at 320-375px, worse in Spanish. */
@media (max-width: 480px) {
  .site-nav-inner { gap: var(--space-3); }
  .site-logo { flex: 1 1 0; min-width: 0; font-size: 1rem; line-height: 1.15; gap: var(--space-2); }
  .site-logo img { width: 30px; height: 30px; }
  .site-logo .org { display: none; }
  /* The logo text wraps before the button does: at 16px a squeezed button
     went to three lines and the nav to 97px. */
  .site-nav-links { gap: 8px; }
  .site-nav-links .btn { white-space: normal; text-align: center; line-height: 1.15; padding: 6px 10px; min-height: 44px; }
}

/* Buttons at reading size on these pages: system.css draws them at 14 and
   15px, which suits the app's dense screens but not a page read once (A4-09). */
.btn { font-size: 1rem; }
.btn-lg { font-size: 1.0625rem; }

/* Under every Spanish "Abrir": the app opens in Spanish, and how to switch (F21, FR-44). */
.app-language-note { margin: 0 0 12px; font-size: 1rem; }
/* A check mark in brand blue: the ✅ emoji draws a green box on every platform (F56). */
.feature-check { color: var(--color-primary); font-weight: 800; }
.app-language-note a { color: inherit; text-decoration: underline; }

/* === HERO === */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 36px 80px;
}
.hero-inner { max-width: 720px; }
/* A plain line of blue text, not a pill (A4-09). */
.hero-badge {
  margin: 0 0 var(--space-4);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
}
.hero-title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text-primary);
}
.hero-desc {
  max-width: 600px;
  margin: 0 0 var(--space-8);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-primary);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero-facts { margin: 0; font-size: 1.0625rem; color: var(--color-text-primary); }
@media (max-width: 900px) {
  .hero { padding: 48px 20px 56px; }
}

.section-divider { max-width: 1200px; margin: 56px auto; height: 1px; background: var(--color-border-medium); }

/* === SECTIONS AS HEADED LISTS === */
/* One column of heading and paragraph, separated by a rule: the three-across
   card grids with emoji tiles made a phone page a quarter longer (A4-06). */
.features { padding: 72px 36px; }
.features-inner { max-width: 720px; margin: 0 auto; }
.section-heading {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
.section-sub { max-width: 640px; margin: 0 0 var(--space-8); font-size: 1.0625rem; line-height: 1.7; color: var(--color-text-primary); }

.features-grid { display: block; margin: 0; padding: 0; }
.feature-card { padding: 20px 0; border-bottom: 1px solid var(--color-border-strong); }
.feature-card:first-child { border-top: 1px solid var(--color-border-strong); }
/* The three real steps on the home page are a numbered list, so the numbers
   mean something. */
.feature-steps { padding-left: 1.5em; }
.feature-steps .feature-card { display: list-item; }
.feature-steps .feature-card::marker { color: var(--color-primary); font-weight: 700; }
.feature-title { margin: 0 0 8px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.feature-desc { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--color-text-primary); }
@media (max-width: 900px) {
  .features { padding: 48px 20px; }
}

/* === FAQ === */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq summary {
  padding: 18px 20px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--color-primary); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--color-text-primary); font-size: 1rem; }

/* === CTA BAND === */
.cta-band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 36px;
  text-align: center;
  background: var(--brand-navy);
  border-radius: var(--radius-2xl);
  color: var(--color-on-brand);
}
.cta-band h2 { margin: 0 0 var(--space-3); font-size: clamp(1.5rem, 3.5vw, 2.125rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto var(--space-6); max-width: 540px; color: var(--color-on-brand); }
@media (max-width: 760px) { .cta-band { margin: 0 20px; padding: 40px 20px; } }

/* === FOOTER === */
.site-footer {
  margin-top: 88px;
  padding: 56px 36px 40px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
}
.site-footer h2 { margin: 0 0 var(--space-4); font-size: 1rem; color: var(--color-text-primary); }
.site-footer address { font-style: normal; font-size: 1rem; line-height: 1.8; color: var(--color-text-secondary); }
.site-footer ul { margin: 0; padding: 0; list-style: none; font-size: 1rem; line-height: 2; }
.site-footer a { color: var(--color-text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); text-decoration: underline; }
/* The copyright line is the one footnote allowed below 16px. */
.site-footer-bottom {
  max-width: 1200px;
  margin: var(--space-10) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
@media (max-width: 900px) {
  .site-footer { padding: 40px 20px 32px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* === GUIDE ARTICLES (/guides/) ===
   A guide is running text, which needs a measure short enough to follow and
   headings sized to sit inside a flow rather than announce a new section. */
.guide { max-width: 720px; margin: 0 auto; font-size: 1.0625rem; }
.guide .section-heading { margin: var(--space-12) 0 var(--space-4); font-size: clamp(1.375rem, 3vw, 1.8125rem); }
.guide h3 { margin: var(--space-6) 0 var(--space-2); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.guide p { margin: 0 0 var(--space-4); line-height: 1.75; color: var(--color-text-primary); }
.guide ul, .guide ol { margin: 0 0 var(--space-4); padding-left: var(--space-6); color: var(--color-text-primary); }
.guide li { margin-bottom: var(--space-2); line-height: 1.75; }
.guide strong { color: var(--color-text-primary); }
.guide-crumbs { margin-bottom: var(--space-4); font-size: 1rem; color: var(--color-text-muted); }
.guide-crumbs a { color: var(--color-primary); text-decoration: none; }
.guide-crumbs a:hover { text-decoration: underline; }
/* The review line and the disclaimer are both required on every guide, so
   they get one visible treatment each rather than ad-hoc inline styles. The
   review line is a footnote, the one other text allowed below 16px. */
.guide-meta {
  margin: 0 0 var(--space-6);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.guide-note {
  padding: 16px 20px;
  margin: 0 0 var(--space-8);
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 1rem;
}
/* A four-column table cannot shrink below its longest cell, and the page sets
   overflow-x: hidden, so on a phone the table scrolls inside its own region
   rather than being clipped at the right edge. Numbers are in the reading
   face with tabular figures, at reading size (A4-02). */
.bp-table-wrap { margin: 0 0 var(--space-8); overflow-x: auto; }
.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.bp-table caption { margin-bottom: var(--space-3); font-size: 1rem; color: var(--color-text-muted); text-align: left; }
.bp-table th, .bp-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border-medium); }
.bp-table thead th { font-size: 1rem; color: var(--color-text-secondary); }
.bp-table tbody th { color: var(--color-primary); white-space: nowrap; }
.bp-table td { color: var(--color-text-primary); font-variant-numeric: tabular-nums; font-size: 1rem; }
@media (max-width: 560px) {
  .bp-table tbody th { white-space: normal; }
  .bp-table th, .bp-table td { padding: 8px 8px; }
}
