/* ============================================================================
   Token of Trust — shared marketing-page components  ·  tot-navy concept v1.1
   ----------------------------------------------------------------------------
   The reusable composition layer for ported marketing subpages. Base tokens,
   reset, layout, typography, header/nav, footer, buttons, .proof, .kicker,
   .eyebrow, trust slots, forms and the reveal animation live in the shared
   THEME (tot-navy.css). THIS file adds the page-level building blocks every
   ported page shares — hero variants, feature/card grids, media splits, steps,
   stat rows, reassurance rows, FAQ, breadcrumb, CTA band and the nav active
   pill — so individual pages need little or no page-local CSS.
   Consumes the shared token layer (no :root re-declare). Primary CTAs route
   through --color-cta. Do not minify — one rule per line, keep the headers.
   ========================================================================== */

/* Nav active pill + footer note */
nav.primary a.active {
  color: var(--teal-ink);
  background: #eaf5f2;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.foot-note {
  font-size: .88rem;
  margin-top: 12px;
  max-width: 34ch;
  color: var(--muted);
}

/* Breadcrumb */
.crumbs {
  padding-top: 28px;
  font-size: .85rem;
  color: var(--muted);
}
.crumbs a {
  color: var(--teal-ink);
  text-decoration: none;
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--navy);
}
.crumbs .sep {
  margin: 0 8px;
  opacity: .5;
}

/* Hero (centred default; .hero-split for image heroes) */
.hero {
  text-align: center;
  padding: 64px 0 0;
}
.hero h1 {
  margin: 16px auto;
  max-width: 22ch;
}
.hero .lede {
  max-width: 60ch;
  margin: 0 auto;
}
.hero .cta-row {
  justify-content: center;
  margin-top: 28px;
}
.hero-split {
  text-align: left;
}
.hero-split .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-split h1 {
  margin: 14px 0;
  max-width: 16ch;
}
.hero-split .lede {
  margin: 0;
  max-width: 52ch;
}
.hero-split .cta-row {
  justify-content: flex-start;
}
.hero-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* CTA variants over the shared .btn base */
.btn-ent {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 7px 20px rgba(21, 122, 74, .28);
}
.btn-ent:hover {
  background: var(--color-cta-hover);
}

/* Feature / card grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.feature-grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.feature-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.feat-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat-card.accent {
  border-top: 3px solid var(--teal);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-cool);
}
.feat-card h3 {
  font-size: 1.14rem;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: 8px;
}
.feat-card p {
  font-size: .93rem;
  color: var(--muted);
}
.card-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-top: 10px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--teal-ink);
  text-decoration: none;
}
.card-link:hover {
  color: var(--navy);
}

/* Media split (copy beside a panel / image / list) */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.split.rev .split-copy {
  order: 2;
}
.split-copy h2 {
  margin-top: 6px;
}
.split-copy p {
  color: var(--muted);
  max-width: 48ch;
  margin: 12px 0 24px;
}
.split-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.split-media img {
  display: block;
  width: 100%;
  height: auto;
}
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--ink);
}
.check-list li::before {
  content: "\2713";
  font-weight: 800;
  flex-shrink: 0;
  color: var(--green);
}
.check-list li b {
  display: block;
}
.check-list li span {
  font-size: .88rem;
  color: var(--muted);
}

/* Steps (numbered how-it-works) */
.alt-bg {
  background: #fff;
  border-block: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
  text-align: center;
}
.steps.three {
  grid-template-columns: repeat(3, 1fr);
}
.step {
  padding: 28px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.step .num {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf5f2;
  color: var(--teal-ink);
}
.step h3 {
  font-size: 1.02rem;
  margin: 10px 0 6px;
  color: var(--navy);
}
.step p {
  font-size: .88rem;
  color: var(--muted);
}

/* Stat row (big numbers) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}
.stat-row.three {
  grid-template-columns: repeat(3, 1fr);
}
.stat b {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy);
}
.stat span {
  font-size: .9rem;
  color: var(--muted);
}

/* Reassurance row (trust / privacy callouts) */
.reassure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.reassure-row.two {
  grid-template-columns: repeat(2, 1fr);
}
.inline-links {
  margin-top: 28px;
  font-weight: 600;
  text-align: center;
}
.inline-links a {
  color: var(--teal-ink);
  text-decoration: none;
}
.inline-links a:hover {
  color: var(--navy);
}

/* FAQ (details/summary accordion) */
.faq {
  max-width: 760px;
  margin: 40px auto 0;
}
.faq details {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.faq summary {
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal-ink);
  transition: transform .2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 20px 18px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  padding: 64px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 26px;
  color: #fff;
}
.cta-band .kicker {
  color: #7fe3b8;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  max-width: 52ch;
  margin: 0 auto;
  color: #b8c8de;
}
.cta-band .cta-row {
  justify-content: center;
  margin-top: 24px;
}
.cta-band .btn-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.cta-band .btn-line:hover {
  border-color: #fff;
}

/* Prose block (long-form copy: careers, legal-shell, etc.) */
.prose {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--ink);
}
.prose h2 {
  margin-top: 36px;
}
.prose h3 {
  margin-top: 24px;
  color: var(--navy);
}
.prose p {
  margin-top: 12px;
  color: var(--muted);
}
.prose ul {
  margin: 12px 0 12px 22px;
  color: var(--muted);
}
.prose li {
  margin-top: 6px;
}

/* Logo strip caption */
.logo-note {
  text-align: center;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 980px) {
  .feature-grid, .feature-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .steps, .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-split .container, .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-split {
    text-align: center;
  }
  .hero-split h1, .hero-split .lede {
    max-width: none;
    margin-inline: auto;
  }
  .hero-split .cta-row {
    justify-content: center;
  }
  .split.rev .split-copy {
    order: 0;
  }
  .reassure-row, .reassure-row.two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .feature-grid, .feature-grid.two, .feature-grid.four, .steps, .steps.three, .stat-row {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

/* Dark theme — literal light surfaces re-pointed at the card/tint layer */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    nav.primary a.active { background: rgba(43, 179, 166, .16); }
    .hero-media, .feat-card, .split-media, .check-list, .alt-bg, .faq details { background: var(--card); }
    .step .num { background: rgba(43, 179, 166, .16); }
    .crumbs a:hover, .feat-card h3, .card-link:hover, .step h3, .stat b,
    .inline-links a:hover, .faq summary, .prose h3 { color: var(--ink); }
  }
}
:root[data-theme="dark"] nav.primary a.active { background: rgba(43, 179, 166, .16); }
:root[data-theme="dark"] .hero-media,
:root[data-theme="dark"] .feat-card,
:root[data-theme="dark"] .split-media,
:root[data-theme="dark"] .check-list,
:root[data-theme="dark"] .alt-bg,
:root[data-theme="dark"] .faq details { background: var(--card); }
:root[data-theme="dark"] .step .num { background: rgba(43, 179, 166, .16); }
:root[data-theme="dark"] .crumbs a:hover,
:root[data-theme="dark"] .feat-card h3,
:root[data-theme="dark"] .card-link:hover,
:root[data-theme="dark"] .step h3,
:root[data-theme="dark"] .stat b,
:root[data-theme="dark"] .inline-links a:hover,
:root[data-theme="dark"] .faq summary,
:root[data-theme="dark"] .prose h3 { color: var(--ink); }
