/* =====================
   Reset & tokens
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #16697A;
  --brand-hover: #114F5C;
  --brand-light: #EDE7E3;
  --brand-accent: #82C0CC;
  --brand-dark: #002732;
  --brand-highlight: #FFA62B;

  --stone-50: oklch(98.5% .001 106.423);
  --stone-100: oklch(97% .001 106.424);
  --stone-200: oklch(92.3% .003 48.717);
  --stone-300: oklch(86.9% .005 56.366);
  --stone-400: oklch(70.9% .01 56.259);
  --stone-500: oklch(55.3% .013 58.071);
  --stone-600: oklch(44.4% .011 73.639);
  --stone-700: oklch(37.4% .01 67.558);
  --stone-800: oklch(26.8% .007 34.298);
  --stone-900: oklch(21.6% .006 56.043);

  --red-400: oklch(70.4% .191 22.216);
  --amber-400: oklch(82.8% .189 84.429);
  --green-400: oklch(79.2% .209 151.711);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: #1c1b1e;
  background: #fafaf9;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* =====================
   Layout
===================== */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 64rem; }
.container-tight { max-width: 48rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 5rem 0; }
/* Padding only — combine with .container (+ .container-narrow to cap width) */
.section-tight { padding: 4rem 0; }

.text-center { text-align: center; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--brand-accent);
}
.eyebrow-highlight { color: var(--brand-highlight); }

.section-heading {
  color: var(--brand);
  position: relative;
  display: inline-block;
  padding-bottom: 0.375rem;
  font-size: 1.875rem;
  font-weight: 700;
}
.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 2.5rem; height: 2px;
  background: var(--brand);
}
.section-head { margin-bottom: 2.5rem; }
.section-head .section-heading { margin-top: 0.5rem; color: #1c1917; }
.section-head .section-heading::after { background: var(--brand); }

.page-title { font-size: 2.25rem; font-weight: 800; color: var(--stone-900); }
.lead { margin-top: 1rem; font-size: 1.125rem; color: var(--stone-600); line-height: 1.7; }
.body-text { margin-top: 1rem; color: var(--stone-600); line-height: 1.7; }

/* =====================
   Buttons
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--brand); color: white; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary {
  background: white; color: var(--stone-700);
  box-shadow: inset 0 0 0 1px var(--stone-200);
}
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--stone-300); }
.btn-block { display: flex; justify-content: center; margin-top: 0.5rem; text-align: center; }

/* =====================
   Icons
===================== */
.icon { width: 1.25rem; height: 1.25rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.875rem; height: 0.875rem; }
.icon-brand { color: var(--brand); }

/* =====================
   Header
===================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-100);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-mark { flex-shrink: 0; }
.logo-text { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; color: var(--stone-800); transition: color 0.15s ease; }
.logo:hover .logo-text { color: var(--brand); }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone-600);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { color: var(--brand); background: var(--brand-light); }
.nav-link.active { color: var(--brand); background: var(--brand-light); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-open-app { display: none; }
.mobile-menu-btn { display: flex; padding: 0.5rem; color: var(--stone-600); }
.icon-menu-close { display: none; }
.mobile-menu-btn.active .icon-menu-open { display: none; }
.mobile-menu-btn.active .icon-menu-close { display: block; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--stone-200);
  background: white;
  padding: 0.75rem 1rem;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile-link { display: block; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--stone-600); }
.nav-mobile-link.active { color: var(--brand); background: var(--brand-light); }

@media (min-width: 640px) { .btn-open-app { display: inline-flex; } }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .mobile-menu-btn, .nav-mobile { display: none; }
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  background: var(--stone-100); color: var(--stone-700);
  font-size: 0.875rem; font-weight: 500;
  transition: background-color 0.15s ease;
}
.lang-switcher-btn:hover { background: var(--stone-200); }
.lang-switcher-current { display: none; }
@media (min-width: 640px) { .lang-switcher-current { display: inline; } }

.lang-switcher-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  width: 9rem;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,.12), inset 0 0 0 1px var(--stone-200);
  overflow: hidden;
  z-index: 50;
}
.lang-switcher-menu.open { display: block; }
.lang-switcher-item { display: block; width: 100%; text-align: left; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--stone-700); }
.lang-switcher-item:hover { background: var(--stone-50); }
.lang-switcher-item.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }

/* =====================
   Footer
===================== */
.site-footer { position: relative; background: var(--brand-dark); color: var(--stone-300); margin-top: 4rem; }
.footer-topbar { height: 3px; background: var(--brand); }
.footer-inner { padding: 3rem 1rem; }
@media (min-width: 640px) { .footer-inner { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) { .footer-inner { padding: 3rem 2rem; } }

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

.logo-footer { width: fit-content; }
.logo-text-footer { color: white; }
.logo-footer:hover .logo-text-footer { color: var(--brand-highlight); }
.footer-tagline { margin-top: 0.75rem; font-size: 0.875rem; color: var(--stone-400); line-height: 1.6; }

.footer-col-title {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--stone-500); margin-bottom: 1rem;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { font-size: 0.875rem; color: var(--stone-400); transition: color 0.15s ease; }
.footer-link:hover { color: var(--brand-highlight); }

.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--stone-800);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem; color: var(--stone-600);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* =====================
   Hero
===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--brand-light), white);
}
.hero-inner { padding: 5rem 1rem 6rem; text-align: center; }
@media (min-width: 640px) { .hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .hero-inner { padding-left: 2rem; padding-right: 2rem; } }

.hero-title {
  margin-top: 1.5rem;
  font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--stone-900);
  white-space: pre-line;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }

.hero-subtitle {
  margin: 1.5rem auto 0; max-width: 42rem;
  font-size: 1.125rem; color: var(--stone-600); line-height: 1.7;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

.hero-carousel { margin: 4rem auto 0; max-width: 56rem; }

/* Carousel */
.carousel {
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 20px 50px rgba(0,0,0,.18);
  background: white;
}
.carousel-chrome {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--stone-100);
  border-bottom: 1px solid var(--stone-200);
}
.carousel-chrome span[class^="carousel-dot-"] { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.carousel-dot-red { background: var(--red-400); }
.carousel-dot-amber { background: var(--amber-400); }
.carousel-dot-green { background: var(--green-400); }
.carousel-url {
  margin-left: 0.75rem; padding: 0.25rem 0.75rem;
  border-radius: 0.375rem; background: white;
  box-shadow: inset 0 0 0 1px var(--stone-200);
  font-size: 0.75rem; color: var(--stone-400);
}
.carousel-viewport { position: relative; aspect-ratio: 1416 / 932; background: var(--stone-50); }
.carousel-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 0.7s ease-in-out;
}
.carousel-slide.active { opacity: 1; }
.carousel-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.75rem 1rem; background: white; }
.carousel-dot { height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--stone-200); transition: all 0.3s ease; }
.carousel-dot.active { width: 1.25rem; background: var(--brand); }

/* =====================
   Step / Feature / Who cards
===================== */
.step-grid, .feature-grid, .who-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.feature-grid { gap: 1.5rem; }
@media (min-width: 640px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card-head { display: flex; align-items: center; gap: 0.75rem; }
.step-number {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step-card h3, .feature-card h3, .who-card h3 { margin-top: 1rem; font-weight: 600; color: var(--stone-900); }
.step-card p, .feature-card p, .who-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--stone-500); line-height: 1.6; }

.feature-card {
  padding: 1.5rem; border-radius: 1rem; background: white;
  box-shadow: inset 0 0 0 1px var(--stone-100);
  transition: box-shadow 0.2s ease;
}
.feature-card:hover { box-shadow: inset 0 0 0 1px var(--brand-accent), 0 6px 16px rgba(0,0,0,.06); }
.feature-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}

.who-card {
  padding: 1.5rem; border-radius: 1rem;
  background: color-mix(in srgb, var(--brand-light) 40%, transparent);
  box-shadow: inset 0 0 0 1px var(--stone-100);
}
.who-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: white; color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
}

/* =====================
   Bands
===================== */
.band-white { background: white; border-top: 1px solid var(--stone-100); border-bottom: 1px solid var(--stone-100); }
.band-dark { background: var(--brand-dark); color: white; }
.band-dark-title { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 700; }
.band-dark-body { margin-top: 1.25rem; color: var(--stone-300); line-height: 1.7; }
.band-light { background: var(--brand-light); }

.tag-row { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.tag { padding: 0.375rem 0.75rem; border-radius: 9999px; background: var(--brand-light); color: var(--brand); font-size: 0.75rem; font-weight: 600; }

.cta-title { font-size: 1.5rem; font-weight: 700; color: var(--stone-900); }
@media (min-width: 640px) { .cta-title { font-size: 1.875rem; } }
.cta-body { margin-top: 0.75rem; color: var(--stone-600); }

.section-title { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 700; color: var(--stone-900); }

/* =====================
   Manual index
===================== */
.manual-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .manual-grid { grid-template-columns: repeat(2, 1fr); } }

.manual-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; border-radius: 1rem; background: white;
  box-shadow: inset 0 0 0 1px var(--stone-100);
  transition: box-shadow 0.2s ease;
}
.manual-card:hover { box-shadow: inset 0 0 0 1px var(--brand-accent), 0 6px 16px rgba(0,0,0,.06); }
.manual-card-icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.manual-card-text { flex: 1; min-width: 0; }
.manual-card-text h2 { font-weight: 600; color: var(--stone-900); font-size: 1rem; }
.manual-card:hover .manual-card-text h2 { color: var(--brand); }
.manual-card-text p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--stone-500); line-height: 1.6; }
.manual-card-arrow { flex-shrink: 0; margin-top: 0.25rem; color: var(--stone-300); }
.manual-card:hover .manual-card-arrow { color: var(--brand); }

/* =====================
   Manual section page
===================== */
.back-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--stone-500); }
.back-link:hover { color: var(--brand); }

.manual-layout { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .manual-layout { grid-template-columns: 240px 1fr; } }

.manual-sidebar { align-self: start; }
@media (min-width: 1024px) { .manual-sidebar { position: sticky; top: 6rem; } }
.sidebar-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone-400); margin-bottom: 0.75rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.125rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; color: var(--stone-600); }
.sidebar-link:hover { background: var(--stone-50); }
.sidebar-link.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }

.prose-manual { min-width: 0; font-size: 1.0625rem; line-height: 1.8; }
.prose-manual h1 { font-size: 1.875rem; font-weight: 800; color: var(--stone-900); margin-bottom: 0.5rem; }
.prose-manual h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: #1c1b1e; }
.prose-manual h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose-manual p { margin-bottom: 1.1rem; }
.prose-manual ul, .prose-manual ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
.prose-manual ul { list-style-type: disc; }
.prose-manual ol { list-style-type: decimal; }
.prose-manual li { margin-bottom: 0.35rem; }
.prose-manual strong { font-weight: 700; }
.prose-manual code {
  background: var(--brand-light); color: var(--brand-dark);
  padding: 0.1rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em;
}
.prose-manual img {
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid #e7e5e4;
  margin-bottom: 1.75rem;
  width: 100%; height: auto;
}
/* Sign-in card crop is narrow (not a full-app screenshot) — don't stretch it */
.prose-manual[data-slug="getting-started"] img { width: auto; max-width: 320px; margin-left: 0; }

/* =====================
   About page
===================== */
.standards-groups { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.group-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone-400); margin-bottom: 0.75rem; }
.standards-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .standards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .standards-grid { grid-template-columns: repeat(3, 1fr); } }

.standard-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem; border-radius: 0.75rem; background: white;
  box-shadow: inset 0 0 0 1px var(--stone-100);
  transition: box-shadow 0.15s ease;
}
.standard-card:hover { box-shadow: inset 0 0 0 1px var(--brand-accent); }
.standard-logo {
  display: flex; align-items: center; justify-content: center;
  height: 2.5rem; min-width: 2.75rem; padding: 0 0.375rem;
  border-radius: 0.5rem; flex-shrink: 0;
  background: var(--stone-50); box-shadow: inset 0 0 0 1px var(--stone-100);
}
.standard-logo img { max-height: 1.5rem; max-width: 3.25rem; object-fit: contain; }
.standard-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.standard-name { font-size: 0.875rem; font-weight: 500; color: var(--stone-900); }
.standard-card:hover .standard-name { color: var(--brand); }
.standard-desc { font-size: 0.75rem; color: var(--stone-500); margin-top: 0.125rem; line-height: 1.5; }
.standard-card > .icon { flex-shrink: 0; margin-top: 0.25rem; color: var(--stone-300); }
.standard-card:hover > .icon { color: var(--brand); }

.provider-card { align-items: center; }
.provider-icon { flex-shrink: 0; border-radius: 0.375rem; }

/* =====================
   Privacy page
===================== */
.privacy-sections { margin-top: 3rem; display: flex; flex-direction: column; gap: 2.5rem; }
