:root {
  --paper: #FAFAFA;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, .78);
  --mint: #F1F5F9;
  --mint-2: #E2E8F0;
  --sky: #F1F7FE;
  --sky-2: #DCEAFB;
  --cream: #F5F9FF;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --nile: #1676E2;
  --nile-2: #0F5BB5;
  --blue-soft: rgba(22, 118, 226, .08);
  --manila: #1676E2;
  --manila-soft: #E3EFFD;
  --muted: #64748B;
  --slate-500: #475569;
  --rule: #E2E8F0;
  --danger: #C2410C;

  --font-display: "Stack Sans Headline", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.8rem, 1.4rem + 5.4vw, 5.4rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 20px 40px -28px rgba(15, 23, 42, .18);
  --btn-shadow: 0 10px 15px -3px rgba(22, 118, 226, .22), 0 4px 6px -4px rgba(22, 118, 226, .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.06; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: var(--step-3); font-weight: 500; max-width: 22ch; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
a { color: var(--nile); }
:focus-visible { outline: 3px solid var(--manila); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); }
.kicker { font: 600 1rem var(--font-display); color: var(--nile); margin-bottom: .8rem; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 8px;
  background: var(--nile); color: var(--white); text-decoration: none; border: 1px solid var(--nile); box-shadow: var(--btn-shadow);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--nile-2); border-color: var(--nile-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--rule); box-shadow: none; }
.btn-ghost:hover { background: var(--white); border-color: var(--nile); color: var(--nile); }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: .9rem; }
.header-row {
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
  width: min(1200px, calc(100% - 2 * var(--gutter))); padding-inline: 1.1rem;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, .8); border-radius: 16px; box-shadow: var(--shadow); transition: box-shadow .2s;
}
.site-header.scrolled .header-row { box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--slate-500); text-decoration: none; font-size: .98rem; font-weight: 500; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--manila); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--nile); }
.nav-toggle { display: none; }

/* Sections */
.section { padding-block: var(--section); }
.bg-white { background: var(--white); }
.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-cream { background: var(--cream); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 38rem; }
.section-head.stack { grid-template-columns: 1fr; }
.local-tag {
  display: inline-flex; align-items: center; gap: .45rem; font: 600 .9rem var(--font-display);
  color: var(--ink-2); background: var(--manila-soft); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem;
}
.local-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--manila); }

/* Home hero */
.hero { background: radial-gradient(60% 70% at 70% 30%, var(--blue-soft), transparent 70%); padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-title { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.hero-title .soft { display: block; color: var(--nile); }
.lede { margin-top: 1.6rem; font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 34rem; }
.lede-small { margin-top: 1.2rem; font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.audience { border-block: 1px solid var(--rule); background: var(--glass); padding-block: 1.4rem; }
.audience-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; }
.audience-label { font: 600 .95rem var(--font-display); color: var(--muted); margin-right: .5rem; }
.audience ul { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.audience li { font: 500 1rem var(--font-body); color: var(--slate-500); padding: .4rem .95rem; background: var(--mint); border-radius: 8px; }

/* Map widget */
.hero-map { position: relative; background: var(--glass); border: 1px solid var(--rule); backdrop-filter: blur(10px); border-radius: 20px; padding: 1.25rem; box-shadow: var(--shadow); }
.map-caption { font: 700 clamp(1.3rem, 1rem + 1vw, 1.7rem) var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: .9rem 0 .2rem; }
.map-caption .town-word { background: linear-gradient(var(--manila), var(--manila)) no-repeat 0 92% / 100% .2em; transition: opacity .25s; }
.map-caption .town-word.swap { opacity: 0; }
#heroLine2 { color: var(--nile); display: block; transition: color .3s; }
.is-paper #heroLine2 { color: var(--danger); }
#ugMap { display: block; width: 100%; height: auto; max-height: 44vh; }
.mode-switch { display: inline-flex; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; }
.mode-switch button { font: 600 .88rem var(--font-display); border: 0; background: transparent; color: var(--muted); padding: .45rem .9rem; border-radius: 999px; cursor: pointer; }
.mode-switch button[aria-checked="true"] { background: var(--nile); color: var(--white); }
.ug-land { fill: #EEF4FB; stroke: var(--nile); stroke-width: 1.5; stroke-linejoin: round; }
.ug-lake { fill: #CFE2F7; stroke: #A9C9EC; stroke-width: 1; }
.ug-lake-label { font: italic 14px var(--font-body); fill: #4A78A8; }
.ug-town { fill: var(--white); stroke: var(--nile); stroke-width: 2; cursor: pointer; }
.ug-town:hover { stroke: var(--manila); }
.ug-town.home { fill: var(--nile); }
.ug-town.target { fill: var(--manila); stroke: var(--ink); }
.ug-label { font: 600 15px var(--font-display); fill: var(--ink); pointer-events: none; }
.ug-label.dim { fill: var(--muted); font-weight: 500; }
.thread { fill: none; stroke: var(--manila); stroke-width: 4; stroke-linecap: round; }
.thread-glow { fill: none; stroke: var(--manila); stroke-width: 12; stroke-opacity: .2; stroke-linecap: round; }
.thread.broken { stroke: #A9B5B3; stroke-dasharray: 6 9; }
.packet { fill: var(--ink); }
.break-mark { stroke: var(--danger); stroke-width: 3.5; stroke-linecap: round; }
.pulse { fill: none; stroke: var(--manila); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.record-card { margin: .4rem 0 .9rem; min-height: 6.4rem; background: var(--sky); color: var(--ink); border-radius: 16px; padding: .9rem 1.1rem; font-size: .92rem; line-height: 1.45; transition: opacity .3s, transform .4s var(--ease); }
.record-card.hidden { opacity: 0; transform: translateY(8px); }
.record-card b { font-family: var(--font-display); font-size: 1rem; display: block; margin-bottom: .2rem; }
.record-card > span { color: var(--muted); font-size: .85rem; }
.record-card ul { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; }
.record-card li { padding-left: 1rem; position: relative; }
.record-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--manila); }
.record-card.paper { background: #FFF1EA; }
.record-card.paper li::before { background: var(--danger); }
.town-picker { border-top: 1px solid var(--rule); padding-top: .9rem; }
.picker-label { display: block; font: 600 .92rem var(--font-display); margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button { font: 500 .9rem var(--font-body); border: 1.5px solid var(--rule); background: var(--white); color: var(--ink); padding: .35rem .8rem; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s; }
.chips button:hover { border-color: var(--manila); }
.chips button[aria-pressed="true"] { background: var(--nile); border-color: var(--nile); color: var(--white); font-weight: 700; }

/* Feature list (primacy etc.) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.feature-grid > div { padding: 1.6rem 0; border-top: 2px solid var(--mint-2); }
.feature-grid h3 { display: flex; gap: .6rem; align-items: center; }
.feature-grid h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--nile); flex: none; }
.feature-grid p { margin-top: .6rem; color: var(--muted); }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }

/* Comparison table */
.compare { border: 1px solid var(--rule); background: var(--white); border-radius: 16px; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 1.5rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--rule); align-items: start; }
.compare-row:last-child { border-bottom: 0; }
.compare-headrow { font: 600 .95rem var(--font-display); color: var(--muted); padding-block: .9rem; background: var(--paper); }
.compare-row [role="rowheader"] { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.compare-row [role="cell"], .compare-headrow [role="columnheader"]:nth-child(n+2) { padding-left: 1.6rem; position: relative; }
.compare-row [role="cell"]:nth-child(2) { color: var(--muted); }
.compare-row [role="cell"]:nth-child(2)::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; border-top: 2px dashed var(--danger); }
.compare-row [role="cell"]:nth-child(3)::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 3px; border-radius: 2px; background: var(--manila); }

/* Platform rotator */
.rotator { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.rot-tabs { display: flex; flex-direction: column; gap: .5rem; }
.rot-tabs button {
  position: relative; overflow: hidden; text-align: left; background: var(--glass); border: 1px solid var(--rule); border-radius: 16px;
  padding: 1rem 1.1rem; cursor: pointer; color: var(--muted); display: flex; flex-direction: column; font: 700 1.35rem var(--font-display);
}
.rot-tabs button span { font: 400 .95rem var(--font-body); }
.rot-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--nile); }
.rot-tabs .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--manila); transform: scaleX(0); transform-origin: left; }
.rot-tabs button[aria-selected="true"] .bar { animation: fillbar var(--rot-ms, 7000ms) linear forwards; }
.rotator.paused .rot-tabs .bar { animation-play-state: paused; }
@keyframes fillbar { to { transform: scaleX(1); } }
.rot-panel { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.75rem, 3vw, 2.75rem); box-shadow: var(--shadow); }
.rot-panel .active-label { font: 600 .95rem var(--font-display); color: var(--nile); }
.rot-panel h3 { font-size: var(--step-2); margin-top: .4rem; }
.rot-panel > p { margin-top: .9rem; color: var(--muted); font-size: 1.1rem; max-width: 42rem; }
.rot-panel ol { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: r; }
.rot-panel ol li { counter-increment: r; display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: start; }
.rot-panel ol li::before { content: counter(r, decimal-leading-zero); font: 700 1rem var(--font-display); color: var(--nile); background: var(--mint); border-radius: 10px; height: 2.4rem; display: grid; place-items: center; }
.rot-status { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.rot-status button { font: 600 .85rem var(--font-display); background: none; border: 1.5px solid var(--rule); border-radius: 999px; padding: .25rem .8rem; cursor: pointer; color: var(--ink); }

/* Journey */
.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.journey-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.journey-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--rule); }
.journey-steps .fill { position: absolute; left: 19px; top: 20px; width: 2px; background: var(--manila); height: 0; transition: height .45s var(--ease); }
.journey-steps li { position: relative; }
.journey-steps button { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; background: none; border: 0; padding: .4rem 0; cursor: pointer; color: var(--muted); font: 500 1.02rem var(--font-body); }
.journey-steps .num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--rule); font: 700 .9rem var(--font-display); color: var(--muted); position: relative; z-index: 1; transition: background .2s, border-color .2s, color .2s; }
.journey-steps button:hover { color: var(--ink); }
.journey-steps li.done .num { border-color: var(--manila); color: var(--ink); background: var(--manila-soft); }
.journey-steps button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.journey-steps button[aria-selected="true"] .num { background: var(--nile); border-color: var(--nile); color: var(--white); }
.journey-detail { position: sticky; top: 6.5rem; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; background-image: linear-gradient(var(--manila), var(--manila)); background-size: 100% 6px; background-repeat: no-repeat; padding: clamp(1.75rem, 3vw, 2.75rem); min-height: 21rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.journey-detail .stage-count { font: 600 1rem var(--font-display); color: var(--nile); }
.journey-detail h3 { font-size: var(--step-2); margin-top: .5rem; }
.journey-detail p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.journey-nav { display: flex; gap: .5rem; margin-top: auto; padding-top: 1.5rem; }
.journey-nav button { font: 600 .9rem var(--font-display); background: var(--white); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.journey-nav button:hover:not(:disabled) { border-color: var(--nile); color: var(--nile); }
.journey-nav button:disabled { opacity: .4; cursor: default; }
.local-note { margin-top: clamp(2.5rem, 4vw, 4rem); background: var(--sky); border: 1px solid var(--sky-2); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem 3rem; }
.local-note .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.local-note .cols p { margin-top: .4rem; color: var(--muted); }

/* Three / four column text blocks */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trio > div { background: var(--glass); border: 1px solid var(--rule); border-radius: 16px; padding: 1.6rem; }
.trio p { margin-top: .6rem; color: var(--muted); }
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.outcomes > div { padding: 1.6rem 1.5rem 1.6rem 0; border-right: 1px solid var(--rule); }
.outcomes > div + div { padding-left: 1.5rem; }
.outcomes > div:last-child { border-right: 0; }
.outcomes .cat { font: 600 .95rem var(--font-display); color: var(--nile); }
.outcomes h3 { margin-top: .4rem; }
.outcomes p { margin-top: .5rem; color: var(--muted); }

/* Future */
.future-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.future-list { margin: 0; }
.future-list > div { padding: 1.1rem 0; border-top: 1px solid var(--sky-2); display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.future-list > div:last-child { border-bottom: 1px solid var(--sky-2); }
.future-list dt { font: 600 1.1rem var(--font-display); color: var(--nile-2); }
.future-list dd { margin: 0; color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.fig-num { display: block; font: 500 clamp(2.4rem, 1.5rem + 3vw, 4rem) var(--font-display); color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fig-label { color: var(--muted); }

/* CTA band */
.cta-band { background: radial-gradient(70% 120% at 100% 0%, var(--sky-2), transparent 60%), var(--white); border: 1px solid var(--rule); border-radius: 32px; padding: clamp(2rem, 5vw, 4.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.035em; }
.cta-band p { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.4rem; }

/* Inner page hero */
.page-hero { background: radial-gradient(55% 80% at 80% 0%, var(--blue-soft), transparent 70%); padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); font-weight: 500; letter-spacing: -0.035em; max-width: 18ch; }
.page-hero p { margin-top: 1.5rem; font-size: 1.2rem; color: var(--muted); max-width: 46rem; }

/* Platforms page groups */
.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.group { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.group:nth-child(1) { background: var(--sky); }
.group:nth-child(4) { background: var(--mint); }
.group > p { margin-top: .6rem; color: var(--muted); }
.group ul, .tick-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.group li, .tick-list li { padding-left: 1.6rem; position: relative; }
.group li::before, .tick-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 3px; border-radius: 2px; background: var(--manila); }
.group li b { font-family: var(--font-display); }

/* PHP */
.php-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.scenario { margin-top: 2rem; padding: 1.4rem 1.5rem; border-left: 4px solid var(--manila); background: var(--white); border-radius: 0 16px 16px 0; }
.scenario-text { font-size: 1.12rem; line-height: 1.65; }
.benefits { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.benefits li { padding-left: 1.9rem; position: relative; }
.benefits li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--mint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231676E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.principle-quote { margin-top: 2rem; font: 600 var(--step-1) var(--font-display); color: var(--nile-2); }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 290px; aspect-ratio: 9 / 19; background: #E2E8F0; border-radius: 44px; padding: 10px; position: relative; box-shadow: 0 40px 80px -36px rgba(23,48,47,.45), inset 0 0 0 2px #CBD5E1; transform: rotate(-3deg); }
.phone-notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 86px; height: 22px; background: #CBD5E1; border-radius: 20px; z-index: 2; }
.phone-screen { background: var(--white); color: var(--ink); height: 100%; border-radius: 36px; padding: 3.2rem 1rem 1rem; display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.ph-top { display: flex; flex-direction: column; }
.ph-hello { font: 700 1.2rem var(--font-display); }
.ph-sub { font-size: .78rem; color: var(--muted); }
.ph-chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.ph-chips span { font-size: .7rem; background: var(--mint); border-radius: 999px; padding: .15rem .55rem; }
.ph-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: .55rem .7rem; font-size: .78rem; }
.ph-card b { display: block; font-size: .86rem; }
.ph-card .ok { color: var(--nile); font-weight: 700; }
.ph-alert { background: #FCEDE8; color: var(--danger); border-radius: 12px; padding: .5rem .75rem; display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ph-grid > div { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: .5rem .7rem; display: flex; flex-direction: column; }
.ph-k { font-size: .72rem; color: var(--muted); }
.ph-v { font: 700 1.15rem var(--font-display); }
.ph-list { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: .2rem .7rem; }
.ph-item { display: flex; gap: .6rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .8rem; }
.ph-item:last-child { border-bottom: 0; }
.ph-item b { display: block; font-size: .85rem; }
.ph-item span { color: var(--muted); font-size: .72rem; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ph-dot.teal { background: var(--nile); }
.ph-dot.amber { background: var(--manila); }
.ph-qr { margin-top: auto; background: var(--sky); border-radius: 14px; padding: .6rem; display: flex; gap: .7rem; align-items: center; font-size: .75rem; }
.ph-qr b { display: block; font-size: .85rem; }
.ph-qr span { color: var(--muted); }
.ph-tabs { display: flex; justify-content: space-around; font-size: .72rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .5rem; }
.ph-tabs .on { color: var(--nile); font-weight: 700; }
.qr { width: 56px; height: 56px; background: var(--white); border-radius: 6px; padding: 3px; flex: none; }

/* Steps (true sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 4.5rem 1fr 1.6fr; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid var(--rule); align-items: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 2.2rem var(--font-display); color: var(--manila); line-height: 1; }
.steps p { color: var(--muted); }
.steps.compact li { grid-template-columns: 3.5rem 1fr; }
.steps.compact li p { grid-column: 2; margin-top: -.9rem; }

/* About */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 1.5rem; height: 2px; background: var(--mint-2); }
.timeline li { position: relative; padding-top: 3.4rem; }
.timeline li::before { content: ""; position: absolute; top: calc(1.5rem - 7px); left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--manila); border: 3px solid var(--paper); }
.timeline .year { position: absolute; top: 0; left: 0; font: 700 1rem var(--font-display); color: var(--nile); }
.timeline p { margin-top: .5rem; color: var(--muted); }
.principles-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles-list li { font: 600 clamp(1.3rem, 1rem + 1.4vw, 2.1rem) var(--font-display); line-height: 1.2; letter-spacing: -0.02em; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }

/* Contact */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.impact > div { background: var(--glass); border: 1px solid var(--rule); border-radius: 16px; padding: 1.4rem; }
.impact .fig-num { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.quote { margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); border: 1px solid var(--rule); border-radius: 16px; border-left: 6px solid var(--manila); }
.quote p { font: 600 clamp(1.25rem, 1rem + 1vw, 1.7rem) var(--font-display); line-height: 1.3; letter-spacing: -0.01em; }
.quote footer { margin-top: 1rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-info { margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-info dt { font: 600 .95rem var(--font-display); color: var(--muted); }
.contact-info dd { margin: .15rem 0 0; font-size: 1.1rem; }
.contact-form { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow); }
.field { display: grid; gap: .35rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { font: 600 .95rem var(--font-display); padding: 0; }
.field input { font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--nile); box-shadow: 0 0 0 3px var(--mint-2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.radios { display: grid; gap: .4rem; margin-top: .35rem; }
.radios label { display: flex; gap: .55rem; align-items: center; font: 400 1rem var(--font-body); }
.radios input { accent-color: var(--nile); width: 1.1rem; height: 1.1rem; }
.form-error { color: var(--danger); font-weight: 700; }
.form-note { font-size: .88rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); color: var(--slate-500); padding-block: 4rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid p { margin-top: .6rem; }
.footer-grid h3 { font-size: 1rem; font-weight: 500; }
.footer-grid ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.footer-grid a { color: var(--ink-2); }
.footer-base { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--muted); }
.footer-base a { color: var(--ink-2); margin-left: 1rem; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .php-grid, .contact-grid, .future-grid, .cta-band, .local-note { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .rotator { grid-template-columns: 1fr; }
  .rot-tabs { flex-direction: row; overflow-x: auto; }
  .rot-tabs button { flex: 1 0 auto; }
  .outcomes, .figures, .impact { grid-template-columns: repeat(2, 1fr); }
  .outcomes > div { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps li { grid-template-columns: 3.5rem 1fr; }
  .steps li p { grid-column: 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; font: 600 .95rem var(--font-display); background: var(--white); border: 1.5px solid var(--rule); border-radius: 999px; padding: .5rem 1rem; color: var(--ink); cursor: pointer; }
  .nav { position: absolute; top: 5.2rem; border-radius: 16px; margin-inline: var(--gutter); border: 1px solid var(--rule); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 1.1rem 1.25rem; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .journey { grid-template-columns: 1fr; }
  .journey-detail { position: static; order: -1; min-height: 0; }
  .compare-headrow { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: .5rem; }
  .trio, .groups, .local-note .cols, .feature-grid, .feature-grid.two, .benefits { grid-template-columns: 1fr; }
  .future-list > div { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 560px) {
  .record-card ul { grid-template-columns: 1fr; }
  .field-row, .footer-grid, .outcomes, .figures, .impact, .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .footer-base { flex-direction: column; }
  .footer-base a { margin: 0 1rem 0 0; }
  .phone { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* MedZit-style accent line in headings */
.accent-line { display: block; color: var(--nile); }

/* Diaspora teaser on Home */
.diaspora-teaser { background: radial-gradient(50% 80% at 0% 100%, var(--blue-soft), transparent 70%), var(--paper); }
.teaser-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.teaser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.teaser-list li { background: var(--glass); border: 1px solid var(--rule); border-radius: 16px; padding: 1.1rem 1.3rem; display: grid; gap: .2rem; }
.teaser-list b { font: 500 1.15rem var(--font-display); color: var(--ink); }
.teaser-list span { color: var(--muted); }

/* Time-zone overlap panel */
.tz { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); }
.tz-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: center; }
.tz-scale { display: flex; justify-content: space-between; padding-left: 10.5rem; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.tz-rows { display: grid; gap: .55rem; }
.tz-city b { display: block; font: 500 1.02rem var(--font-display); color: var(--ink); }
.tz-city span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tz-track { position: relative; height: 2.1rem; background: var(--mint); border-radius: 8px; overflow: hidden; }
.tz-clinic { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(100,116,139,.12) 0 6px, transparent 6px 12px); }
.tz-avail { position: absolute; top: 6px; bottom: 6px; background: var(--nile); border-radius: 6px; opacity: .85; }
.tz-row.home .tz-avail { background: var(--ink-2); }
.tz-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--nile); box-shadow: 0 0 0 3px var(--blue-soft); }
.tz-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 1000px) { .teaser-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .tz-row { grid-template-columns: 1fr; gap: .3rem; }
  .tz-scale { padding-left: 0; }
  .tz-row { margin-bottom: .5rem; }
}

/* Logo image */
.brand-logo { display: block; height: 40px; width: auto; }
.site-footer .brand-logo { height: 44px; }
@media (max-width: 560px) { .brand-logo { height: 34px; } }

/* Forms: actions, status, honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.form-status { font-weight: 500; padding: .8rem 1rem; border-radius: 8px; background: var(--sky); color: var(--nile-2); }
.form-status.ok { background: #E8F7EE; color: #15703D; }
.form-status.fail { background: #FFF1EA; color: var(--danger); }
.form-status a { color: inherit; font-weight: 700; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* WhatsApp */
.wa-icon { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa { background: #fff; color: #128C4B; border-color: #BFE8CF; box-shadow: none; gap: .5rem; }
.btn-wa:hover { background: #E9F8EF; border-color: #25D366; color: #0B6B38; }
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem;
  background: #25D366; color: #fff; border-radius: 999px; text-decoration: none;
  font: 500 .98rem var(--font-body); box-shadow: 0 10px 25px -8px rgba(18, 140, 75, .55);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(18, 140, 75, .6); color: #fff; }
.wa-float .wa-icon { width: 1.5rem; height: 1.5rem; }
@media (max-width: 560px) {
  .wa-float { padding: .85rem; right: 1rem; bottom: 1rem; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; max-width: none; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--slate-500); }
.legal p + p { margin-top: .8rem; }
.legal ul { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.legal strong { color: var(--ink-2); font-weight: 600; }
