/* ==========================================================================
   MopRoute design system
   Fresh clean: bright white, citrus lime, deep aqua.
   Display: Urbanist. Body: Hind. Motif: route lines, pins, sparkles, ticks.
   ========================================================================== */

:root {
  /* Brief palette */
  --bg: #FBFDFB;
  --surface: #FFFFFF;
  --ink: #12211F;
  --primary: #0F7C7B;
  --accent: #A8D62B;
  --muted: #5D6D6C;

  /* Aqua ramp */
  --aqua-950: #041F1F;
  --aqua-900: #063A39;
  --aqua-800: #0A5150;
  --aqua-700: #0D6A69;
  --aqua-600: var(--primary);
  --aqua-400: #3EA3A2;
  --aqua-200: #A9D9D7;
  --aqua-100: #DCEFEE;
  --aqua-050: #EFF8F7;

  /* Lime ramp */
  --lime-800: #4E6608;
  --lime-700: #6F9014;
  --lime-600: #8CB61E;
  --lime-500: var(--accent);
  --lime-300: #C9E77A;
  --lime-200: #E4F3B6;
  --lime-050: #F5FBE2;

  /* Neutral ramp */
  --ink-900: var(--ink);
  --ink-700: #24403D;
  --ink-500: var(--muted);
  --ink-300: #9AAAA8;
  --line: #DDE8E6;
  --line-soft: #EAF2F0;

  /* Type scale */
  --font-display: "Urbanist", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hind", "Helvetica Neue", Arial, system-ui, sans-serif;
  --t-hero: clamp(2.35rem, 1.45rem + 3.6vw, 4.05rem);
  --t-h2: clamp(1.85rem, 1.28rem + 2.1vw, 2.85rem);
  --t-h3: clamp(1.18rem, 1.03rem + 0.5vw, 1.38rem);
  --t-lead: clamp(1.06rem, 0.98rem + 0.4vw, 1.25rem);
  --t-body: 1.0325rem;
  --t-small: 0.9rem;
  --t-micro: 0.775rem;

  /* Space scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* Radii, lines, shadows */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --hair: 1px solid var(--line);
  --sh-1: 0 1px 2px rgba(6, 58, 57, 0.06);
  --sh-2: 0 10px 24px -14px rgba(6, 58, 57, 0.28), 0 2px 6px rgba(6, 58, 57, 0.05);
  --sh-3: 0 26px 54px -26px rgba(6, 58, 57, 0.4), 0 4px 12px rgba(6, 58, 57, 0.06);
  --sh-lift: 0 34px 66px -30px rgba(6, 58, 57, 0.46);

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  /* Polished floor: faint tile seams plus a soft window reflection */
  background-image:
    linear-gradient(115deg, rgba(168, 214, 43, 0.09) 0%, rgba(168, 214, 43, 0) 26%),
    radial-gradient(120% 60% at 82% -8%, rgba(15, 124, 123, 0.1) 0%, rgba(15, 124, 123, 0) 62%),
    repeating-linear-gradient(45deg, rgba(15, 124, 123, 0.035) 0 1px, rgba(15, 124, 123, 0) 1px 74px),
    repeating-linear-gradient(-45deg, rgba(15, 124, 123, 0.035) 0 1px, rgba(15, 124, 123, 0) 1px 74px);
  background-attachment: fixed, fixed, scroll, scroll;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.24; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--aqua-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--aqua-800); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15rem; }
li { margin-bottom: var(--s-2); }

strong { font-weight: 600; color: var(--ink); }

hr { border: 0; border-top: var(--hair); margin: var(--s-7) 0; }

::selection { background: var(--lime-200); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--aqua-600);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.visually-hidden {
  position: absolute !important;
  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(--s-4);
  top: -70px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

section { position: relative; }
.band { padding-block: var(--s-9); }
.band-tight { padding-block: var(--s-8); }

.band-paper {
  background: var(--surface);
  border-top: var(--hair);
  border-bottom: var(--hair);
}

.band-aqua {
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(168, 214, 43, 0.2) 0%, rgba(168, 214, 43, 0) 55%),
    linear-gradient(168deg, var(--aqua-800) 0%, var(--aqua-900) 100%);
  color: #EAF6F5;
}
.band-aqua h2, .band-aqua h3 { color: #FFFFFF; }
.band-aqua a { color: var(--lime-300); }

.grid { display: grid; gap: var(--s-5); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lede {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 62ch;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Route motif: stop badges, dashed spine, sparkles
   -------------------------------------------------------------------------- */

.stop-head { margin-bottom: var(--s-7); }

.stop-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-700);
  margin-bottom: var(--s-4);
}

.stop-tag .pin {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 2px solid var(--aqua-600);
  box-shadow: 0 0 0 4px var(--aqua-050);
  font-size: 0.72rem;
  color: var(--aqua-800);
  letter-spacing: 0;
}

.band-aqua .stop-tag { color: var(--lime-300); }
.band-aqua .stop-tag .pin {
  background: transparent;
  border-color: var(--lime-500);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(168, 214, 43, 0.14);
}

.dashline {
  height: 1px;
  background-image: linear-gradient(90deg, var(--aqua-200) 0 12px, rgba(0,0,0,0) 12px 24px);
  background-size: 24px 1px;
  margin-bottom: var(--s-6);
}

/* Four point sparkle used as a decorative highlight */
.spark {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--lime-500);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  opacity: 0.85;
  pointer-events: none;
  animation: twinkle 3.6s var(--ease) infinite;
}
.spark.s-a { top: -10px; right: 34px; width: 22px; height: 22px; animation-delay: 0s; }
.spark.s-b { bottom: 18px; left: -9px; width: 14px; height: 14px; background: var(--aqua-400); animation-delay: 0.9s; }
.spark.s-c { top: 42%; right: -8px; width: 11px; height: 11px; animation-delay: 1.8s; }

@keyframes twinkle {
  0%, 100% { transform: scale(0.72) rotate(0deg); opacity: 0.35; }
  45% { transform: scale(1) rotate(28deg); opacity: 0.95; }
}

/* --------------------------------------------------------------------------
   Buttons and pills
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.btn-primary {
  background: var(--aqua-700);
  color: #FFFFFF;
  box-shadow: 0 0 0 0 rgba(168, 214, 43, 0.6), var(--sh-2);
  position: relative;
}
.btn-primary::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--lime-500);
  border-radius: 2px;
  transform: scaleX(0.24);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.btn-primary:hover { background: var(--aqua-800); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-primary:hover::after { transform: scaleX(1); }

.btn-ghost {
  background: var(--surface);
  color: var(--aqua-800);
  border-color: var(--aqua-200);
}
.btn-ghost:hover { background: var(--aqua-050); color: var(--aqua-900); border-color: var(--aqua-400); transform: translateY(-2px); }

.btn-lime {
  background: var(--lime-500);
  color: var(--ink);
  box-shadow: var(--sh-2);
}
.btn-lime:hover { background: var(--lime-600); color: var(--ink); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--lime-050);
  border: 1px solid var(--lime-300);
  color: var(--lime-800);
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 253, 251, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(221, 232, 230, 0.9);
  transition: box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 10px 30px -22px rgba(6, 58, 57, 0.55);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.wordmark svg { width: 32px; height: 32px; flex: none; }
.wordmark .mark-dot { color: var(--lime-600); }

.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin: 0; padding: 0;
}
.nav li { margin: 0; }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--lime-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav a:hover { color: var(--aqua-800); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: var(--s-3); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

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

.hero { padding-block: var(--s-9) var(--s-8); position: relative; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-8);
  align-items: center;
}

/* Home hero headline only. The bare h1 rule sets the shared --t-hero size, which the
   interior .page-head titles also use, so the smaller display size is scoped here
   rather than applied to the token. Same family and weight, still fluid. */
.hero h1 {
  font-size: clamp(2.05rem, 1.47rem + 2.33vw, 3.15rem);
}

.hero h1 span.hl {
  position: relative;
  white-space: nowrap;
}
.hero h1 span.hl::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 0.07em;
  height: 0.28em;
  background: var(--lime-200);
  border-radius: 2px;
  z-index: -1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: var(--hair);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--t-small);
  color: var(--ink-700);
  max-width: 15rem;
}
.trust-item svg { width: 18px; height: 18px; color: var(--aqua-600); flex: none; margin-top: 3px; }
.trust-item b { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

.hero-visual { position: relative; }

.photo-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--aqua-100);
  box-shadow: var(--sh-lift);
  background: var(--surface);
}
.photo-frame img { width: 100%; height: auto; }
.photo-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(168, 214, 43, 0.14) 0%, rgba(255,255,255,0) 42%, rgba(6, 58, 57, 0.24) 100%);
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: var(--s-4);
  z-index: 3;
}

.card-route {
  left: -34px;
  top: 26px;
  width: 236px;
}
.card-checks {
  right: -26px;
  bottom: -28px;
  width: 254px;
}

.mini-title {
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Route line drawing across the mini map */
.routemap { width: 100%; height: auto; display: block; }
.routemap .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.routemap .road { stroke: var(--aqua-100); stroke-width: 5; stroke-linecap: round; fill: none; }
.routemap .route {
  fill: none;
  stroke: var(--aqua-600);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-route 4.2s var(--ease) infinite;
}
.routemap .stop { fill: var(--surface); stroke: var(--aqua-700); stroke-width: 3; }
.routemap .stop-live { fill: var(--lime-500); stroke: var(--lime-800); }

@keyframes draw-route {
  0% { stroke-dashoffset: 320; }
  55% { stroke-dashoffset: 0; }
  88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0.9; }
}

/* Checklist ticking in sequence */
.ticklist { list-style: none; margin: 0; padding: 0; }
.ticklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-700);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  margin: 0;
}
.ticklist li:last-child { border-bottom: 0; }
.ticklist .box {
  width: 20px; height: 20px;
  flex: none;
  border-radius: var(--r-xs);
  border: 2px solid var(--aqua-200);
  display: grid; place-items: center;
  background: var(--surface);
  animation: box-fill 5.6s var(--ease) infinite;
}
.ticklist .box svg { width: 13px; height: 13px; color: #fff; }
.ticklist .box path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: tick-in 5.6s var(--ease) infinite;
}
.ticklist li:nth-child(1) .box, .ticklist li:nth-child(1) .box path { animation-delay: 0.2s; }
.ticklist li:nth-child(2) .box, .ticklist li:nth-child(2) .box path { animation-delay: 1s; }
.ticklist li:nth-child(3) .box, .ticklist li:nth-child(3) .box path { animation-delay: 1.8s; }
.ticklist li:nth-child(4) .box, .ticklist li:nth-child(4) .box path { animation-delay: 2.6s; }

@keyframes tick-in {
  0%, 6% { stroke-dashoffset: 26; }
  18%, 92% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 26; }
}
@keyframes box-fill {
  0%, 6% { background: var(--surface); border-color: var(--aqua-200); }
  18%, 92% { background: var(--aqua-600); border-color: var(--aqua-700); }
  100% { background: var(--surface); border-color: var(--aqua-200); }
}

.photo-note {
  margin-top: 10px;
  font-size: var(--t-micro);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.photo-note svg { width: 14px; height: 14px; color: var(--lime-700); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: 22px; right: 22px;
  height: 3px;
  background: var(--lime-500);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--aqua-200); }
.card:hover::before { transform: scaleX(1); }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-700); font-size: 0.975rem; }

.cost-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-top: var(--s-4);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--aqua-050);
  border: 1px dashed var(--aqua-200);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--aqua-800);
}
.cost-tag em { font-style: normal; font-weight: 500; color: var(--muted); font-family: var(--font-body); }

/* Icon tiles */
.icon-tile {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--aqua-050);
  border: 1px solid var(--aqua-100);
  color: var(--aqua-700);
  margin-bottom: var(--s-4);
  position: relative;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile::after {
  content: "";
  position: absolute;
  top: -5px; right: -5px;
  width: 10px; height: 10px;
  background: var(--lime-500);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  opacity: 0;
  transition: opacity 200ms var(--ease), transform 260ms var(--ease);
  transform: scale(0.4) rotate(-40deg);
}
.card:hover .icon-tile::after { opacity: 1; transform: scale(1) rotate(0deg); }

/* --------------------------------------------------------------------------
   Steps (the route across the section)
   -------------------------------------------------------------------------- */

.steps-layout {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: var(--s-8);
  align-items: start;
}

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 21px; top: 12px; bottom: 26px;
  width: 2px;
  background-image: linear-gradient(180deg, var(--aqua-400) 0 10px, rgba(0,0,0,0) 10px 20px);
  background-size: 2px 20px;
}
.step {
  position: relative;
  padding-left: 66px;
  margin-bottom: var(--s-6);
}
.step:last-child { margin-bottom: 0; }
.step .num {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--aqua-600);
  color: var(--aqua-800);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.step:last-child .num { background: var(--lime-500); border-color: var(--lime-700); color: var(--ink); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-700); font-size: 0.99rem; }

.step-aside .photo-frame { border-radius: var(--r-lg); }
.aside-stat {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.aside-stat div {
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.aside-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--aqua-700);
  line-height: 1.1;
}
.aside-stat span { font-size: var(--t-micro); color: var(--muted); }

/* --------------------------------------------------------------------------
   Outcomes band
   -------------------------------------------------------------------------- */

.outcome {
  border-left: 2px solid rgba(168, 214, 43, 0.5);
  padding-left: var(--s-5);
}
.outcome .figure {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lime-300);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 10px;
}
.outcome h3 { font-size: 1.06rem; margin-bottom: 6px; }
.outcome p { color: rgba(234, 246, 245, 0.86); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Testimonials and results
   -------------------------------------------------------------------------- */

.testimonial {
  position: relative;
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--sh-1);
  margin: 0;
}
.testimonial::before {
  content: "";
  position: absolute;
  top: -11px; left: 24px;
  width: 22px; height: 22px;
  background: var(--lime-500);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}
.testimonial p {
  font-size: 1.01rem;
  color: var(--ink-700);
  margin-bottom: var(--s-4);
}
.testimonial footer {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-size: var(--t-small);
  color: var(--muted);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--s-7);
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
}
.results div {
  padding: var(--s-5);
  text-align: center;
  border-right: var(--hair);
}
.results div:last-child { border-right: 0; }
.results b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 800;
  color: var(--aqua-700);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.results span { font-size: var(--t-small); color: var(--muted); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}

.tier {
  position: relative;
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier h3 { font-size: 1.16rem; margin-bottom: 4px; }
.tier .who { font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-4); }
.tier .price {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.tier .per { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: var(--s-5) 0; }
.tier li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.945rem;
  color: var(--ink-700);
  padding: 6px 0;
}
.tier li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--aqua-600); }
.tier .btn { margin-top: auto; }

.tier-featured {
  border-color: var(--aqua-600);
  box-shadow: var(--sh-3);
  background:
    linear-gradient(180deg, var(--aqua-050) 0%, var(--surface) 26%);
}
.tier-featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--aqua-600), var(--lime-500));
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.ribbon {
  position: absolute;
  top: -13px; right: 20px;
  background: var(--lime-500);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
}

.billing-note {
  margin-top: var(--s-5);
  text-align: center;
  font-size: var(--t-small);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq-list {
  border-top: var(--hair);
  max-width: 860px;
  margin-inline: auto;
}
.faq-item { border-bottom: var(--hair); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  background: none;
  border: 0;
  padding: 20px 4px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.faq-q:hover { color: var(--aqua-800); }
.faq-q .chev {
  flex: none;
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--aqua-200);
  display: grid; place-items: center;
  color: var(--aqua-700);
  transition: transform 240ms var(--ease), background-color 200ms var(--ease);
  margin-top: 2px;
}
.faq-q .chev svg { width: 14px; height: 14px; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--aqua-050); }
.faq-a {
  padding: 0 44px 22px 4px;
  color: var(--ink-700);
  font-size: 0.99rem;
  max-width: 72ch;
}
.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Contact and form
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: var(--s-8);
  align-items: start;
}

.contact-copy ul { list-style: none; padding: 0; margin-top: var(--s-5); }
.contact-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink-700);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-copy li svg { width: 18px; height: 18px; color: var(--lime-700); flex: none; margin-top: 4px; }

.form-card {
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-3);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--lime-500), var(--aqua-600));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.field { margin-bottom: var(--s-4); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.req { color: var(--lime-700); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
input[type="text"]:hover, input[type="email"]:hover, select:hover, textarea:hover { border-color: var(--aqua-200); }
input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--aqua-600);
  box-shadow: 0 0 0 3px rgba(15, 124, 123, 0.16);
}
textarea { min-height: 128px; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--aqua-700) 50%), linear-gradient(135deg, var(--aqua-700) 50%, transparent 50%);
  background-position: calc(100% - 19px) 51%, calc(100% - 13px) 51%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

[aria-invalid="true"] { border-color: #B3261E; background: #FDF3F2; }
.err {
  display: block;
  color: #8C1D18;
  font-size: 0.82rem;
  margin-top: 5px;
  font-weight: 500;
}
.err:empty { display: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--aqua-050);
  border: 1px solid var(--aqua-100);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: var(--s-5);
}
.consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--aqua-700); flex: none; }
.consent label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-700);
  margin: 0;
  letter-spacing: 0;
}

.form-foot {
  margin-top: var(--s-4);
  font-size: var(--t-small);
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Byline, prose pages, footer
   -------------------------------------------------------------------------- */

.byline {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  background: var(--surface);
  border: var(--hair);
  border-left: 4px solid var(--lime-500);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  margin-top: var(--s-7);
  font-size: 0.95rem;
  color: var(--ink-700);
}
.byline b { font-family: var(--font-display); color: var(--ink); }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.2rem; }
.prose li { color: var(--ink-700); }
.page-head { padding-block: var(--s-8) var(--s-6); border-bottom: var(--hair); }
.page-head .lede { margin-top: var(--s-4); }
.updated {
  display: inline-block;
  margin-top: var(--s-4);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: 0.95rem;
}
.fact-table th, .fact-table td {
  text-align: left;
  padding: 11px 14px;
  border: var(--hair);
  vertical-align: top;
}
.fact-table th {
  width: 34%;
  background: var(--aqua-050);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.map-group {
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-md);
  padding: var(--s-5);
  height: 100%;
}
.map-group h2 { font-size: 1.2rem; margin-bottom: var(--s-3); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.map-group li:last-child { border-bottom: 0; }
.map-group a { font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.map-group a:hover { text-decoration: underline; }
.map-group span { display: block; font-size: 0.89rem; color: var(--muted); }

.site-footer {
  background: var(--aqua-950);
  color: #C9DEDC;
  padding-block: var(--s-8) var(--s-5);
  margin-top: var(--s-9);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua-600) 0%, var(--lime-500) 48%, var(--aqua-600) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s-6);
}
.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime-300);
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C9DEDC; text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .wordmark { color: #fff; margin-bottom: var(--s-4); }
.footer-brand p { font-size: 0.94rem; color: #9FBCBA; max-width: 30ch; }
.socials { display: flex; gap: 10px; margin-top: var(--s-5); }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid rgba(201, 222, 220, 0.24);
  color: #C9DEDC;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.socials a:hover { background: var(--lime-500); color: var(--aqua-950); border-color: var(--lime-500); }
.socials svg { width: 18px; height: 18px; }
.publisher-line { font-size: 0.88rem; color: #9FBCBA; margin-top: var(--s-4); }
.footer-base {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(201, 222, 220, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  font-size: 0.86rem;
  color: #9FBCBA;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 270ms; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .card-route { left: 12px; top: 14px; }
  .card-checks { right: 12px; bottom: -22px; }
  .steps-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: var(--hair);
    box-shadow: var(--sh-2);
    padding: var(--s-4) 0 var(--s-5);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .nav li { border-bottom: 1px dashed var(--line); }
  .nav a { display: block; padding: 13px 2px; font-size: 1.02rem; }
  .header-cta { display: none; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .results div { border-right: 0; border-bottom: var(--hair); }
  .results div:last-child { border-bottom: 0; }
}

@media (max-width: 660px) {
  .band { padding-block: var(--s-8); }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-route, .card-checks { position: static; width: auto; margin-top: var(--s-4); }
  .photo-frame { border-radius: var(--r-md); }
  .form-card { padding: var(--s-5) var(--s-4); }
  .aside-stat { grid-template-columns: 1fr; }
  .faq-a { padding-right: 8px; }
}

@media (max-width: 380px) {
  .wrap, .wrap-narrow { width: min(100% - 1.6rem, var(--wrap)); }
  .btn { width: 100%; }
  .hero-actions { gap: 10px; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .routemap .route { stroke-dashoffset: 0; }
  .ticklist .box { background: var(--aqua-600); border-color: var(--aqua-700); }
  .ticklist .box path { stroke-dashoffset: 0; }
  .spark { opacity: 0.8; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .form-card { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   The Route Sheet: the magazine
   Same tokens, same typefaces, same route motif. Cards are stops, the dashed
   spine returns as breadcrumb and meta rules, sparkles mark the call to action.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb rail
   -------------------------------------------------------------------------- */

.mag-crumb {
  background: var(--surface);
  border-bottom: var(--hair);
}
.mag-crumb ol {
  list-style: none;
  margin: 0;
  padding: 13px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: var(--t-small);
}
.mag-crumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  min-width: 0;
}
.mag-crumb li + li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background-image: linear-gradient(90deg, var(--aqua-200) 0 4px, rgba(0, 0, 0, 0) 4px 8px);
  background-size: 8px 1px;
}
.mag-crumb a {
  color: var(--aqua-700);
  text-decoration: none;
  font-weight: 500;
}
.mag-crumb a:hover { color: var(--aqua-900); text-decoration: underline; }
.mag-crumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  display: block;
  max-width: 52ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Magazine masthead
   -------------------------------------------------------------------------- */

.mag-masthead { padding-block: var(--s-8) var(--s-6); }
.mag-masthead h1 {
  font-size: clamp(2.6rem, 1.55rem + 4.2vw, 4.4rem);
  margin-bottom: var(--s-4);
}
.mag-standfirst {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 60ch;
  margin-bottom: var(--s-6);
}
.mag-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.mag-facts li {
  margin: 0;
  padding-left: var(--s-4);
  border-left: 3px solid var(--lime-500);
}
.mag-facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--aqua-800);
  letter-spacing: -0.02em;
}
.mag-facts span { font-size: var(--t-small); color: var(--muted); }

/* --------------------------------------------------------------------------
   Index grid and article cards
   -------------------------------------------------------------------------- */

.mag-index { padding-block: var(--s-5) var(--s-9); }

.mag-grid,
.mag-teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease), border-color 180ms var(--ease);
}
.mag-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--aqua-600) 0%, var(--lime-500) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--aqua-200); }
.mag-card:hover::before { transform: scaleX(1); }
.mag-card:focus-within { border-color: var(--aqua-400); box-shadow: var(--sh-2); }

.mag-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--aqua-050);
}
.mag-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease);
}
.mag-card:hover .mag-card-media img { transform: scale(1.035); }

.mag-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
}
.mag-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-700);
}
.mag-kicker .pin {
  flex: none;
  width: 9px; height: 9px;
  border-radius: var(--r-pill);
  background: var(--lime-500);
  box-shadow: 0 0 0 3px var(--lime-050);
}
.mag-card-title {
  margin: 0;
  font-size: 1.17rem;
  line-height: 1.22;
}
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.mag-card:hover .mag-card-title a { color: var(--aqua-800); }
.mag-card-dek {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.965rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-card-meta {
  margin: auto 0 0;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-small);
  color: var(--muted);
}
.mag-dot {
  flex: none;
  width: 5px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--aqua-200);
}

/* The first article on the index runs the full width of the grid */
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.mag-card.lead::before { transform: scaleX(1); height: 4px; }
.mag-card.lead .mag-card-media {
  flex: 1 1 56%;
  aspect-ratio: auto;
  min-height: 340px;
}
.mag-card.lead .mag-card-body {
  flex: 1 1 44%;
  justify-content: center;
  gap: var(--s-4);
  padding: var(--s-7);
}
.mag-card.lead .mag-card-title {
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.15rem);
  letter-spacing: -0.022em;
}
.mag-card.lead .mag-card-dek {
  font-size: var(--t-lead);
  line-height: 1.6;
  -webkit-line-clamp: 6;
}

/* Closing panel on the magazine index */
.mag-foot-cta { margin-top: var(--s-6); }
.mag-foot-cta h2 { max-width: 22ch; }
.mag-foot-act { margin-top: var(--s-6); }
.band-aqua .lede { color: rgba(234, 246, 245, 0.9); }

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */

.art-wrap { padding-block: var(--s-7) var(--s-8); }

.art-head { max-width: 74ch; }
.art-head h1 {
  font-size: clamp(2.05rem, 1.3rem + 3vw, 3.35rem);
  margin-bottom: var(--s-4);
}
.art-dek {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--ink-700);
  max-width: 64ch;
}

.art-byline {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: var(--hair);
  border-left: 4px solid var(--lime-500);
  border-radius: var(--r-sm);
}
.art-face {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--aqua-050);
  border: 1px solid var(--aqua-100);
  color: var(--aqua-700);
}
.art-face svg { width: 22px; height: 22px; }
.art-byline-text { min-width: 0; }
.art-by {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.99rem;
  color: var(--ink);
}
.art-by a { color: var(--aqua-800); text-decoration: none; }
.art-by a:hover { text-decoration: underline; }
.art-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: var(--t-small);
  color: var(--muted);
}
.art-meta li { margin: 0; display: flex; align-items: center; gap: 12px; }
.art-meta li + li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--aqua-200);
}

.art-figure {
  position: relative;
  margin: var(--s-7) 0;
  border: var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--aqua-050);
  box-shadow: var(--sh-2);
}
.art-figure img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Article body typography: measure of about 68 characters
   -------------------------------------------------------------------------- */

.art-body {
  max-width: 68ch;
  font-size: 1.075rem;
  line-height: 1.78;
  color: var(--ink-700);
}
.art-body > :first-child { margin-top: 0; }
.art-body p { margin: 0 0 var(--s-5); }
.art-body h2 {
  position: relative;
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-5);
  font-size: clamp(1.5rem, 1.18rem + 1.15vw, 2rem);
  color: var(--ink);
}
.art-body h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 3px;
  border-radius: var(--r-pill);
  background: var(--lime-500);
}
.art-body h3 {
  margin: var(--s-6) 0 var(--s-3);
  font-size: 1.2rem;
  color: var(--ink);
}
.art-body ul, .art-body ol { margin: 0 0 var(--s-5); padding-left: 1.3rem; }
.art-body li { margin-bottom: 10px; }
.art-body li::marker { color: var(--aqua-600); }
.art-body a { color: var(--aqua-800); text-decoration-thickness: 1.5px; }
.art-body a:hover { color: var(--aqua-900); }
.art-body blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  background: var(--aqua-050);
  border-left: 4px solid var(--aqua-600);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink);
  font-size: 1.06rem;
}
.art-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-6) 0;
  font-size: 0.96rem;
  background: var(--surface);
}
.art-body th, .art-body td {
  border: var(--hair);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.art-body thead th {
  background: var(--aqua-050);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.art-body tbody tr:nth-child(even) { background: var(--bg); }

/* Contextual link inside the body, styled as a route marker */
.inline-read {
  position: relative;
  margin: var(--s-6) 0;
  padding: 14px var(--s-5) 14px 46px;
  background: var(--lime-050);
  border: 1px solid var(--lime-200);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.99rem;
  line-height: 1.5;
  color: var(--ink);
}
.inline-read::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: var(--r-pill);
  background: var(--lime-600);
  box-shadow: 0 0 0 4px rgba(168, 214, 43, 0.22);
}
.inline-read a { color: var(--aqua-800); text-decoration-thickness: 1.5px; }

/* --------------------------------------------------------------------------
   Call to action, author box, Read also
   -------------------------------------------------------------------------- */

.art-cta {
  position: relative;
  max-width: 68ch;
  margin: var(--s-8) 0 var(--s-7);
  padding: var(--s-7);
  border-radius: var(--r-lg);
  color: #EAF6F5;
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(168, 214, 43, 0.2) 0%, rgba(168, 214, 43, 0) 55%),
    linear-gradient(168deg, var(--aqua-800) 0%, var(--aqua-900) 100%);
  box-shadow: var(--sh-3);
}
.art-cta-tag {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-300);
}
.art-cta h2 {
  color: #FFFFFF;
  font-size: clamp(1.4rem, 1.12rem + 1vw, 1.9rem);
  margin-bottom: var(--s-4);
}
.art-cta p { color: rgba(234, 246, 245, 0.88); }
.art-cta-act { margin-top: var(--s-5); }

.art-author {
  max-width: 68ch;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-6);
  background: var(--surface);
  border: var(--hair);
  border-radius: var(--r-md);
}
.art-author img {
  width: 132px; height: 132px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.art-author-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-700);
}
.art-author-name {
  margin: 3px 0 var(--s-3);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ink);
}
.art-author p { color: var(--ink-700); font-size: 0.98rem; }
.art-author p + p { margin-top: var(--s-3); }

.read-also {
  background: var(--surface);
  border-top: var(--hair);
}
.read-also-head { margin-bottom: var(--s-6); }
.read-also-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  margin-bottom: var(--s-5);
}
.read-also-head .dashline { margin-bottom: 0; }

.ra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.ra-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease), border-color 180ms var(--ease);
}
.ra-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--aqua-200); }
.ra-card:focus-within { border-color: var(--aqua-400); box-shadow: var(--sh-2); }
.ra-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--aqua-050); }
.ra-media img { width: 100%; height: 100%; object-fit: cover; }
.ra-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-5);
}
.ra-title { margin: 0; font-size: 1.04rem; line-height: 1.26; }
.ra-title a { color: var(--ink); text-decoration: none; }
.ra-title a::after { content: ""; position: absolute; inset: 0; }
.ra-card:hover .ra-title a { color: var(--aqua-800); }
.ra-dek {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.935rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ra-meta {
  margin: auto 0 0;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-size: var(--t-small);
  color: var(--muted);
}
.read-also-more { margin-top: var(--s-6); }

/* --------------------------------------------------------------------------
   Magazine teaser on the home page, sitting on the aqua band
   -------------------------------------------------------------------------- */

.mag-teaser-more { margin-top: var(--s-6); }
.band-aqua .mag-card { background: var(--surface); }
.band-aqua .mag-card a { color: var(--aqua-800); }
.band-aqua .mag-card .mag-card-title,
.band-aqua .mag-card .mag-card-title a { color: var(--ink); }
.band-aqua .mag-card:hover .mag-card-title a { color: var(--aqua-800); }
.band-aqua .mag-kicker { color: var(--aqua-700); }

/* Published articles list on the author page */
.mag-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.mag-list li {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  color: var(--aqua-800);
}
.mag-list a:hover { text-decoration: underline; }
.mag-list time { font-size: var(--t-small); color: var(--muted); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Magazine responsive behavior, down to 360px
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .mag-card.lead .mag-card-body { flex: none; padding: var(--s-6); }
}

@media (max-width: 900px) {
  .mag-grid, .ra-grid, .mag-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-wrap { padding-block: var(--s-6) var(--s-7); }
}

@media (max-width: 660px) {
  .mag-grid, .ra-grid, .mag-teaser { grid-template-columns: 1fr; }
  .mag-facts { grid-template-columns: 1fr; gap: var(--s-4); }
  .mag-masthead { padding-block: var(--s-7) var(--s-5); }
  .art-body { font-size: 1.04rem; line-height: 1.72; }
  .art-body table { display: block; overflow-x: auto; }
  .art-byline { align-items: flex-start; }
  .art-cta { padding: var(--s-5); border-radius: var(--r-md); }
  .art-author { grid-template-columns: 1fr; padding: var(--s-5); }
  .art-author img { width: 96px; height: 96px; }
  .art-figure { border-radius: var(--r-md); }
}

@media (max-width: 400px) {
  .mag-crumb ol { font-size: 0.82rem; }
  .mag-crumb [aria-current="page"] { max-width: 20ch; }
  .mag-card-body { padding: var(--s-4); }
  .mag-card.lead .mag-card-body { padding: var(--s-4); }
  .ra-body { padding: var(--s-4); }
  .art-cta h2 { font-size: 1.32rem; }
  .inline-read { padding: 12px var(--s-4) 12px 40px; }
  .inline-read::before { left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-card:hover, .ra-card:hover { transform: none; }
  .mag-card:hover .mag-card-media img { transform: none; }
  .mag-card::before { transition: none; }
}

/* The magazine group on the site map runs the full width of the two column grid */
.map-group-wide { grid-column: 1 / -1; }
.map-group-wide ul { columns: 2; column-gap: var(--s-6); }
.map-group-wide li { break-inside: avoid; }

@media (max-width: 900px) {
  .map-group-wide ul { columns: 1; }
}

/* Cards carry the site wide reveal, so they keep its fade and take a shorter
   hover transition than the entrance one */
.mag-card.reveal, .ra-card.reveal {
  transition: opacity 560ms var(--ease), transform 260ms var(--ease),
              box-shadow 220ms var(--ease), border-color 180ms var(--ease);
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
