/*
 * Wampums public site (wampums.app): home, feature, module, comparison, FAQ and blog pages.
 * The palette comes from the logo (green, teal, navy) and the wampum sign
 * (wood, white and purple beads). Mobile first; nothing scrolls sideways at 390px.
 */
:root {
  --night: #0c2a30;
  --night-2: #123a40;
  --teal: #13707e;
  --teal-bright: #7fd0c8;
  --green: #2f7a3e;
  --green-soft: #e4f1e3;
  --navy: #174c78;
  --ember: #f2a654;
  --ember-deep: #a4520f;
  --wood: #7a4b2a;
  --bead: #6d4fa1;
  --bead-soft: #efe9f8;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --sand: #f3ece0;
  --ink: #142320;
  --muted: #4c5e59;
  --line: #e2dccf;
  --focus: #f2a654;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(12 42 48 / 0.06), 0 12px 32px -12px rgb(12 42 48 / 0.18);
  --shadow-lift: 0 2px 4px rgb(12 42 48 / 0.08), 0 28px 60px -20px rgb(12 42 48 / 0.35);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shell: 1160px;
  --gutter: 16px;
  --touch: 44px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 120;
}

p {
  margin: 0;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ember);
  color: var(--night);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--gutter);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  transition: transform 0.15s ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--ember {
  background: var(--ember);
  color: var(--night);
  box-shadow: 0 10px 24px -10px rgb(242 166 84 / 0.8);
}

.btn--ember:hover {
  background: #f6b56c;
}

.btn--ghost-light {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgb(255 255 255 / 0.08);
}

.btn--teal {
  background: var(--teal);
  color: #fff;
}

.btn--teal:hover {
  background: #0f5f6b;
}

.btn--outline {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}

/* ---------- Cookie consent ---------- */

/* Cookie choices stay in the document flow so they never obscure controls. */
.cookie-consent {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.cookie-consent__content {
  display: grid;
  gap: 0.75rem;
}

.cookie-consent__title {
  font-size: 1.5rem;
}

.cookie-consent__details {
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-consent__content > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  width: fit-content;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent__actions .btn {
  flex: 1 1 14rem;
}

.cookie-consent :focus-visible {
  outline-color: var(--teal);
}

.cookie-settings {
  min-height: var(--touch);
  padding: 0.5rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.cookie-consent__status:not(:empty):not(.sr-only) {
  padding-block: 1rem;
}

/* ---------- Wampum bead rule (signature divider) ---------- */

.bead-rule {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 1rem;
}

.bead-rule span {
  width: 9px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.08), 0 0 0 1px var(--line);
}

.bead-rule span:nth-child(3n) {
  background: var(--bead);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.2);
}

.bead-rule--center {
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  color: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--touch);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.7rem;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.88);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.site-nav .nav-pages {
  display: none;
}

.site-nav .nav-cta {
  min-height: var(--touch);
  margin-left: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  box-shadow: none;
}

.nav-cta-long {
  display: none;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  margin-left: 0.25rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
}

.lang-switch a {
  min-height: 38px;
  min-width: var(--touch);
  justify-content: center;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a[aria-current="page"] {
  background: #fff;
  color: var(--night);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% 110%, rgb(242 166 84 / 0.28), transparent 60%),
    radial-gradient(40rem 30rem at 0% 0%, rgb(19 112 126 / 0.55), transparent 70%),
    var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/topo.svg") center / 900px auto repeat;
  opacity: 0.22;
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 2rem 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: rgb(255 255 255 / 0.9);
  font-size: 0.85rem;
  font-weight: 600;
}

.eyebrow b {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--night);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.4rem, 9.5vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}

.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  color: rgb(255 255 255 / 0.84);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-note {
  margin: -0.75rem 0 1.5rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.95rem;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.92rem;
  color: rgb(255 255 255 / 0.78);
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.proof .icon {
  color: var(--teal-bright);
  width: 1.1em;
  height: 1.1em;
}

/* Hero product vignette */

.stage {
  position: relative;
  margin: 0 auto;
  width: min(100%, 360px);
  padding: 1.25rem 0 2.5rem;
}

.phone {
  position: relative;
  margin: 0 auto;
  width: 270px;
  max-width: 100%;
  padding: 10px;
  border-radius: 40px;
  background: #0a1d21;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 40px 80px -30px rgb(0 0 0 / 0.7);
  transform: rotate(-2.5deg);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
  background: var(--cream);
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.story {
  display: grid;
  gap: 1.5rem;
}

.story .section-head {
  margin-bottom: 0;
}

.story-body > * + * {
  margin-top: 1.1rem;
}

.story-quote {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--bead);
  border-radius: var(--radius-sm);
  background: var(--bead-soft);
}

.story-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.45;
}

.story-quote figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 3rem;
    align-items: start;
  }
}

.kicker {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Problem → answer */

.swap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.mess {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mess li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 15rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px dashed #cfc5b3;
  color: var(--muted);
  font-size: 0.95rem;
}

.mess li:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.mess li:nth-child(even) {
  transform: rotate(0.5deg);
}

.mess b {
  color: var(--ink);
  font-size: 1rem;
  text-decoration: line-through;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
}

.answer {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.answer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/topo.svg") 30% 40% / 700px auto;
  opacity: 0.18;
}

.answer > * {
  position: relative;
}

.answer h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.answer p {
  color: rgb(255 255 255 / 0.82);
  margin-bottom: 1.25rem;
}

.answer ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.answer li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.answer li .icon {
  margin-top: 0.15rem;
  color: var(--teal-bright);
}

/* A week with Wampums */

.week {
  background: var(--sand);
}

.timeline {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step-body {
  padding: 1.5rem 1.4rem 1.25rem;
}

.step-when {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-weight: 750;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.step-when::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.step ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.97rem;
}

.step li {
  display: flex;
  gap: 0.5rem;
}

.step li .icon {
  margin-top: 0.2rem;
  color: var(--green);
  width: 1.05em;
  height: 1.05em;
}

.step-visual {
  margin-top: auto;
  padding: 1.1rem 1.2rem 1.3rem;
  background: linear-gradient(180deg, var(--cream), #f5efe3);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.mini {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 6px 16px -10px rgb(12 42 48 / 0.3);
}

.mini-title {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.mini-title span {
  color: var(--muted);
  font-weight: 500;
}

.agenda {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.agenda li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: var(--cream);
}

.agenda time {
  color: var(--teal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bars {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.2rem;
  gap: 0.5rem;
  align-items: center;
}

.bars .bar {
  height: 10px;
  border-radius: 999px;
  background: var(--sand);
  overflow: hidden;
}

.bars .bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--c, var(--teal));
}

.bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bubble {
  position: relative;
  padding: 0.7rem 0.85rem;
  border-radius: 14px 14px 14px 4px;
  background: #dcf3e4;
  color: #173d27;
  margin-bottom: 0.5rem;
}

.bubble small {
  display: block;
  margin-top: 0.35rem;
  color: #3c6a4e;
}

.delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.delivery span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Roles */

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.3rem;
  margin: 0 auto 2rem;
  width: 100%;
  max-width: 34rem;
  border-radius: 999px;
  background: var(--sand);
}

.tabs[hidden] {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--touch);
  justify-content: center;
  min-width: 0;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.role-panel + .role-panel {
  margin-top: 3rem;
}

.js .role-panel + .role-panel {
  margin-top: 0;
}

.role-panel > h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.js .role-panel > h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.role-intro {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--night);
  color: rgb(255 255 255 / 0.88);
}

.role-intro strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-size: 1.3rem;
  color: #fff;
}

.feature-groups {
  display: grid;
  gap: 1rem;
}

.feature-group {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.feature-group h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1.08rem;
}

.feature-group h4 .icon-tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tile, var(--green-soft));
  color: var(--tile-ink, var(--green));
  flex: none;
}

.feature-group dl {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.feature-group dt {
  font-weight: 650;
}

.feature-group dd {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile-teal {
  --tile: #dff0f1;
  --tile-ink: var(--teal);
}

.tile-navy {
  --tile: #e1e9f3;
  --tile-ink: var(--navy);
}

.tile-ember {
  --tile: #fdeedb;
  --tile-ink: var(--ember-deep);
}

.tile-bead {
  --tile: var(--bead-soft);
  --tile-ink: var(--bead);
}

/* Bilingual */

.bilingual {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

.bilingual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/topo.svg") 70% 20% / 820px auto;
  opacity: 0.16;
}

.bilingual > * {
  position: relative;
}

.bilingual .kicker {
  color: var(--teal-bright);
}

.bilingual .section-head p {
  color: rgb(255 255 255 / 0.8);
}

.bilingual-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.twin {
  display: grid;
  gap: 0.9rem;
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.notice:nth-child(2) {
  margin-left: 1.5rem;
}

.notice header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.notice .lang-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--bead-soft);
  color: #4a3374;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.notice b {
  display: block;
  margin-bottom: 0.2rem;
}

.notice p {
  color: var(--muted);
  font-size: 0.93rem;
}

.pillars {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pillars li {
  display: flex;
  gap: 0.9rem;
}

.pillars .icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(127 208 200 / 0.14);
  color: var(--teal-bright);
  flex: none;
}

.pillars h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.pillars p {
  color: rgb(255 255 255 / 0.78);
  font-size: 0.97rem;
}

/* Compare */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare caption {
  padding: 0.85rem 1rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
}

.compare th,
.compare td {
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.compare thead th {
  border-top: 0;
  background: var(--cream);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.compare tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.compare td {
  color: var(--muted);
}

.compare .us {
  background: #eef7f3;
  color: var(--ink);
  font-weight: 600;
}

.compare thead .us {
  background: var(--teal);
  color: #fff;
}

.compare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.compare-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.compare-links a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Benefits */

.impact {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.impact li {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.impact .icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--tile, var(--green-soft));
  color: var(--tile-ink, var(--green));
}

.impact h3 {
  margin-bottom: 0.4rem;
  font-size: 1.12rem;
}

.impact p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.6rem;
  max-width: 50rem;
  margin: 0 auto;
}

.faq-list details {
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.faq-list details[open] {
  box-shadow: var(--shadow);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.9rem 1.2rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon {
  color: var(--teal);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}

.faq-more {
  margin-top: 1.5rem;
  text-align: center;
}

/* Final call */

.final {
  padding: 0 0 4.5rem;
}

.final-card {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgb(242 166 84 / 0.45), transparent 70%),
    linear-gradient(160deg, var(--teal), var(--night) 75%);
}

.final-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/topo.svg") center / 760px auto;
  opacity: 0.18;
}

.final-card > * {
  position: relative;
}

.final-card h2 {
  max-width: 40rem;
  margin: 0 auto 1rem;
  font-size: clamp(1.9rem, 6vw, 3rem);
}

.final-card p {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  color: rgb(255 255 255 / 0.85);
}

.final-card .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: #0a2227;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 22rem;
}

.site-footer h2 {
  margin-bottom: 0.6rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
}

.site-footer ul {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: rgb(255 255 255 / 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--teal-bright);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem;
}

/* ---------- Inner pages (features, modules, comparisons, FAQ, blog) ---------- */

.hero--page .page-intro {
  max-width: 50rem;
  padding-block: 1rem 3.5rem;
}

.hero--page h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero--page .kicker {
  color: var(--teal-bright);
}

.hero--page .hero-lede {
  max-width: 44rem;
}

.hero--page .hero-lede + .hero-lede {
  margin-top: -0.75rem;
}

.hero--page .hero-actions {
  margin-bottom: 0;
}

.hero--page .meta {
  color: rgb(255 255 255 / 0.75);
  margin-bottom: 0.75rem;
}

.site-nav a[aria-current="page"]:not(.lang-switch a) {
  color: #fff;
  background: rgb(255 255 255 / 0.12);
}

.breadcrumb-nav {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgb(255 255 255 / 0.7);
}

.breadcrumb-nav li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: rgb(255 255 255 / 0.4);
}

.breadcrumb-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: rgb(255 255 255 / 0.88);
}

.breadcrumb-nav [aria-current="page"] {
  color: #fff;
}

.page-body > .section {
  padding-block: 3rem;
}

.page-body > .section + .section {
  padding-top: 0;
}

.page-body .section h2 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.page-body .section > .shell > p {
  max-width: 44rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  min-width: 0;
  overflow-wrap: break-word;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.card::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--bead));
}

.page-body .card h2,
.card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: 0;
  /* Fraunces' display cut is too tight at this size; use its text cut. */
  font-variation-settings: "opsz" 24;
}

.card p,
.card li {
  color: var(--muted);
}

.card p + p {
  margin-top: 0.8rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* A screen of the app, in a phone frame, with what it shows */

.app-shot {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--shell) - 2 * var(--gutter));
  margin: 0 auto 3rem;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 20rem at 85% 100%, rgb(242 166 84 / 0.18), transparent 70%),
    var(--sand);
}

.page-body > .app-shot:first-child {
  margin-top: 2.5rem;
}

.app-shot__phone {
  width: 300px;
  max-width: 100%;
  padding: 10px;
  border-radius: 38px;
  background: var(--night);
  box-shadow: var(--shadow-lift);
}

.app-shot__phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--paper);
}

.app-shot figcaption {
  max-width: 26rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Questions answered on the page, always open */

.faq-grid,
.faq-cards {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  min-width: 0;
  overflow-wrap: break-word;
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.faq-item p {
  color: var(--muted);
}

.faq-category {
  scroll-margin-top: 1rem;
}

/* Comparison tables on comparison pages */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.8rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.comparison-table thead th {
  border-top: 0;
  background: var(--cream);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.comparison-table thead th:last-child {
  background: var(--teal);
  color: #fff;
}

.comparison-table tbody td:first-child {
  font-weight: 700;
}

.comparison-table .lose,
.comparison-table .neutral {
  color: var(--muted);
}

.comparison-table .win {
  background: #eef7f3;
  font-weight: 600;
}

@media (max-width: 639px) {
  .comparison-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .comparison-table thead th:first-child {
    display: none;
  }

  .comparison-table tbody td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 0.25rem;
  }

  .comparison-table tbody td:not(:first-child) {
    border-top: 0;
  }
}

/* Closing call, as on the home page */

.page-body > .final {
  padding-top: 1rem;
}

/* Blog */

.post-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.post-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-list h2 a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.post-list .card .meta {
  margin-bottom: 0.5rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
}

.post-layout {
  max-width: 46rem;
}

.lang-notice a {
  color: var(--teal-bright);
}

.toc {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.page-body .toc h2 {
  margin-bottom: 0.5rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc li {
  padding-block: 0.2rem;
}

.toc .toc-level-3 {
  margin-left: 1rem;
}

.post-content {
  font-size: 1.08rem;
}

.post-content > * + * {
  margin-top: 1.1rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

.post-content h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.post-content h2,
.post-content h3 {
  scroll-margin-top: 1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.3rem;
}

.post-content li + li {
  margin-top: 0.4rem;
}

.post-content blockquote {
  margin-inline: 0;
  padding: 0.25rem 0 0.25rem 1.2rem;
  border-left: 4px solid var(--bead);
  color: var(--muted);
}

.post-content img {
  height: auto;
  border-radius: var(--radius);
}

.post-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.post-content th,
.post-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
}

.post-content code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--sand);
  font-size: 0.92em;
}

.post-nav {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
}

.post-nav a {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.post-nav a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.post-nav__next {
  text-align: right;
}

@media (min-width: 640px) {
  .faq-cards,
  .post-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .app-shot {
    grid-template-columns: 300px minmax(0, 26rem);
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 3rem 4rem;
  }

  .app-shot figcaption {
    justify-self: start;
    text-align: left;
  }

  .hero--page .page-intro {
    padding-block: 2rem 5rem;
  }

  .page-body > .section {
    padding-block: 4.5rem;
  }

  .cards,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    padding: 1.9rem 1.8rem;
  }
}

/* ---------- Demo dialog ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgb(8 24 28 / 0.62);
  backdrop-filter: blur(3px);
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 1.75rem;
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.modal-header h2 {
  font-family: var(--display);
  font-size: 1.6rem;
}

.modal-intro {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.modal-close {
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 650;
  font-size: 0.95rem;
}

.form-group .optional {
  color: var(--muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #c9c1b2;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--teal);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.form-hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-error {
  display: none;
  margin-top: 0.3rem;
  color: #a3261b;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #a3261b;
}

.form-group.error .form-error {
  display: block;
}

.modal-alt {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e4ddd0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-alt a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--teal);
  font-weight: 650;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #fbe9e7;
  color: #8a1f15;
  font-weight: 600;
}

.form-status[hidden],
.form-success[hidden] {
  display: none;
}

.form-success {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--green-soft);
  color: #1f5a2b;
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.btn-submit {
  width: 100%;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- Larger screens ---------- */

@media (max-width: 479px) {
  .tab .icon {
    display: none;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .nav-cta-long {
    display: inline;
  }

  .nav-cta-short {
    display: none;
  }

  .impact {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal {
    align-items: center;
    padding: var(--gutter);
  }

  .modal-content {
    border-radius: 24px;
    padding: 2rem;
  }

  .final-card {
    padding: 4rem 2rem;
  }
}

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

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 3rem 6rem;
  }

  .stage {
    width: 100%;
    max-width: 400px;
  }

  .phone {
    width: 290px;
  }

  .section {
    padding: 6.5rem 0;
  }

  .swap {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }

  .answer {
    padding: 2.5rem 2.25rem;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .role-intro {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .bilingual-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }

  .impact {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
