/* Dialysis Center Management System — presentation page.
   A light "paper and forms" look. Brand colors live in :root: swap them here once you have yours.
   Red and blue follow a dialysis circuit: red = the claim going out, blue = the money coming back. */

:root {
  /* Ground and ink */
  --paper: #F3F6F9;
  --sheet: #FFFFFF;
  --ink: #0F1B2B;
  --ink-2: #45536A;
  --ink-3: #69768A;
  --rule: #D7DEE7;
  --rule-strong: #B7C2CF;

  /* Accents */
  --venous: #1E4BB5;
  --venous-deep: #173B90;
  --venous-wash: #E8EEFB;
  --arterial: #C2303A;
  --good: #17744A;

  /* Contact band */
  --night: #0E1A29;
  --night-2: #172739;
  --night-line: rgba(233, 238, 245, .16);
  --night-ink: #EEF2F7;
  --night-ink-2: #A8B5C6;

  /* Draft placeholders */
  --ph-bg: #FFF0B3;
  --ph-line: #B88900;
  --ph-ink: #4A3700;

  --font-display: "Archivo", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-base: 1.0625rem;
  --fs-m: 1.1875rem;
  --fs-l: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.2rem + 2.1vw, 2.55rem);
  --fs-xxl: clamp(2.2rem, 1.3rem + 3.6vw, 3.55rem);

  --gutter: clamp(18px, 4vw, 32px);
  --max: 1160px;
  --header-h: 68px;
  --sheet-shadow: 0 1px 2px rgba(15, 27, 43, .06), 0 24px 48px -24px rgba(15, 27, 43, .32);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

a { color: var(--venous); text-underline-offset: .18em; }
a:hover { color: var(--venous-deep); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-xxl); font-weight: 760; }
h2 { font-size: var(--fs-xl); font-weight: 730; }
h3 { font-size: var(--fs-l); font-weight: 680; font-stretch: 106%; line-height: 1.2; letter-spacing: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 6px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Shared text ---------- */

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lead { max-width: 40rem; font-size: var(--fs-m); color: var(--ink-2); }
.sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Bands ---------- */

.band { padding-block: clamp(56px, 8vw, 104px); }
.band-paper { background: var(--paper); }
.band-sheet { background: var(--sheet); border-block: 1px solid var(--rule); }
.band-night { background: var(--night); color: var(--night-ink); }
/* Anchor jumps (nav links) land the section heading snugly under the sticky header.
   The band's top padding is kept for normal scrolling but tucked away on jump. */
.band[id] { scroll-margin-top: calc(24px - clamp(56px, 8vw, 104px)); }

.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split > .section-head { margin-bottom: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 8px;
  font: 600 1rem/1.1 var(--font-body);
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--venous); color: #fff; }
.btn-primary:hover { background: var(--venous-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Draft helpers (remove with the draft bar) ---------- */

.draft-bar { background: var(--ph-bg); color: var(--ph-ink); border-bottom: 1px solid var(--ph-line); font-size: var(--fs-s); }
.draft-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-block: 8px;
}
.draft-btn {
  padding: 8px 12px;
  border: 1px solid var(--ph-line); border-radius: 6px;
  background: #fff; color: var(--ph-ink);
  font: 600 var(--fs-s)/1 var(--font-body);
  cursor: pointer;
}
.draft-btn:hover { background: #FFF8DB; }

.ph {
  padding: 0 .2em;
  border-radius: 3px;
  background: var(--ph-bg);
  color: var(--ph-ink);
  box-shadow: inset 0 -1.5px 0 var(--ph-line);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  cursor: help;
}
.ph-block { outline: 2px dashed var(--ph-line); outline-offset: 6px; border-radius: 8px; }
.ph-tag {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--ph-line); border-radius: 4px;
  background: var(--ph-bg); color: var(--ph-ink);
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .08em; line-height: 1.4; text-transform: uppercase;
}
.ph-note {
  margin-top: 22px; padding: 10px 14px;
  border: 1px dashed var(--ph-line); border-radius: 6px;
  background: var(--ph-bg); color: var(--ph-ink);
  font-size: var(--fs-s);
}
html.ph-off .ph { padding: 0; background: none; color: inherit; box-shadow: none; cursor: auto; }
html.ph-off .ph-block { outline: none; }
html.ph-off .ph-tag,
html.ph-off .ph-note { display: none; }

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

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 27, 43, .35); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 34px; height: 34px; }
.brand-mark.ph-block { outline-offset: 4px; }
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-name {
  font-family: var(--font-display); font-stretch: 118%; font-weight: 780;
  font-size: 1.08rem; line-height: 1.1; letter-spacing: .005em;
}
.brand-sub {
  font-family: var(--font-mono); font-size: .62rem; line-height: 1.3;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
}

.site-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink-2); font-size: .95rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.header-cta { min-height: 42px; padding-inline: 18px; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1000px) {
  .header-inner { gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sheet);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -20px rgba(15, 27, 43, .35);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column; gap: 0;
    max-width: var(--max); margin-inline: auto;
    padding: 4px var(--gutter) 12px;
  }
  .site-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .site-nav li:last-child a { border-bottom: 0; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
}
@media (max-width: 359px) {
  .brand-sub { display: none; }
}

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

.hero { padding-block: clamp(40px, 7vw, 84px) clamp(56px, 8vw, 100px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero .lead { max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: grid; gap: 8px;
  margin-top: 4px; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2);
}
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; flex: none; width: 16px; height: 3px; border-radius: 2px; background: var(--venous); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The document stack: SOA in front, CSF and Annex A behind it */
.doc-stack { position: relative; justify-self: center; width: 100%; max-width: 580px; padding: 40px 28px 0 0; }
.doc-back {
  position: absolute;
  background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 27, 43, .05);
}
.doc-back span {
  position: absolute; top: 6px; right: 12px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.doc-back.b1 { top: 0; left: 28px; right: 0; bottom: 64px; }
.doc-back.b2 { top: 20px; left: 14px; right: 14px; bottom: 40px; }

.soa {
  position: relative;
  padding: 20px 20px 16px;
  background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: var(--sheet-shadow);
}
.soa-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.soa-clinic { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.soa-title {
  margin-top: 2px;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 780;
  font-size: 1.02rem; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase;
}
.soa-ref {
  flex: none;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em;
  text-align: right; text-transform: uppercase; white-space: nowrap; color: var(--ink-3);
}
.soa-ref b { display: block; margin-top: 2px; font-size: .84rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.soa-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 14px 0; }
.soa-meta .wide { grid-column: span 2; }
.soa-meta dt { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.soa-meta dd { margin-top: 2px; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

.soa-table-wrap { overflow-x: auto; }
.soa-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: .74rem; font-variant-numeric: tabular-nums;
}
.soa-table th,
.soa-table td { padding: 7px 6px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.soa-table thead th {
  padding-top: 0;
  border-bottom-color: var(--rule-strong);
  font-size: .58rem; font-weight: 500; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase;
  color: var(--ink-3); white-space: normal; vertical-align: bottom;
}
.soa-table th:first-child { padding-left: 0; text-align: left; }
.soa-table th:last-child,
.soa-table td:last-child { padding-right: 0; }
.soa-table tbody th,
.soa-table tfoot th { font-family: var(--font-body); font-size: .8rem; font-weight: 500; line-height: 1.3; color: var(--ink); white-space: normal; }
.soa-table .col-phic { color: var(--venous); font-weight: 600; }
.soa-table tfoot th,
.soa-table tfoot td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 600; }

.soa-due {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 12px; padding: 10px 12px;
  border-radius: 4px; background: var(--venous-wash);
  font-family: var(--font-mono);
}
.soa-due span { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.soa-due strong { font-size: 1.05rem; font-weight: 600; }
.soa-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.soa-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

@media (max-width: 960px) {
  .doc-stack { justify-self: start; }
}
@media (max-width: 520px) {
  .doc-stack { padding: 22px 12px 0 0; }
  .doc-back.b1 { left: 12px; bottom: 48px; }
  .doc-back.b2 { top: 11px; left: 6px; right: 6px; bottom: 30px; }
  .doc-back span { top: 2px; right: 10px; font-size: .56rem; }
  .soa { padding: 14px 12px 12px; }
  .soa-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soa-table { font-size: .68rem; }
  .soa-table th,
  .soa-table td { padding: 6px 4px; }
  .soa-table thead th { font-size: .54rem; letter-spacing: .06em; }
  .soa-table tbody th,
  .soa-table tfoot th { font-size: .74rem; }
  /* Excess is 0.00 on every row, so dropping it keeps the arithmetic readable */
  .soa-table .col-excess { display: none; }
}

/* ---------- The problem ---------- */

.pains { display: grid; padding: 0; list-style: none; }
.pain { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--rule); }
.pain:first-child { border-top: 2px solid var(--ink); }
.pain h3 { font-size: var(--fs-m); }
.pain p { max-width: 38rem; color: var(--ink-2); }
.pains-close { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--fs-m); font-weight: 600; }

/* ---------- How it works: the loop ---------- */

.flow-key { font-weight: 600; white-space: nowrap; }
.flow-key::before {
  content: ""; display: inline-block;
  width: 22px; height: 3px; margin-right: 6px; border-radius: 2px;
  vertical-align: .3em; background: currentColor;
}
.flow-key.out { color: var(--arterial); }
.flow-key.back { color: var(--venous); }

.circuit {
  --badge: 38px;
  --line: 3px;
  --gx: 44px;
  --gy: 88px;
  --extra: 30px;
  --r: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "s1 s2 s3" "s6 s5 s4";
  column-gap: var(--gx);
  row-gap: var(--gy);
  margin: 0;
  padding: 0 calc(var(--extra) + 14px);
  list-style: none;
}
.s1 { grid-area: s1; } .s2 { grid-area: s2; } .s3 { grid-area: s3; }
.s4 { grid-area: s4; } .s5 { grid-area: s5; } .s6 { grid-area: s6; }

.step { position: relative; display: grid; align-content: start; gap: 10px; }
.step.out { --flow: var(--arterial); }
.step.back { --flow: var(--venous); }
.step-num {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: var(--badge); height: var(--badge); border-radius: 50%;
  background: var(--flow); color: #fff;
  font-family: var(--font-mono); font-size: .95rem; font-weight: 600;
  box-shadow: 0 0 0 6px var(--paper);
}
.step h3 { margin-top: 6px; font-size: 1.14rem; }
.step p { color: var(--ink-2); font-size: .98rem; }

/* Straight runs from each badge to the next */
.s1::before, .s2::before, .s5::before, .s6::before {
  content: "";
  position: absolute; z-index: 1;
  top: calc(var(--badge) / 2 - var(--line) / 2);
  left: calc(var(--badge) / 2);
  width: calc(100% + var(--gx));
  height: var(--line);
  background: var(--flow);
}
/* Turns at both ends of the loop; each colour meets the other halfway down the side */
.s1::after, .s3::after, .s4::after, .s6::after {
  content: "";
  position: absolute; z-index: 1;
  border: var(--line) solid var(--flow);
  pointer-events: none;
}
.s3::after {
  top: calc(var(--badge) / 2 - var(--line) / 2);
  left: calc(var(--badge) / 2);
  right: calc(var(--extra) * -1);
  height: calc(100% - var(--badge) / 2 + var(--gy) / 2 + var(--line) / 2);
  border-left: 0; border-bottom: 0; border-top-right-radius: var(--r);
}
.s4::after {
  top: calc(var(--gy) / -2);
  left: calc(var(--badge) / 2);
  right: calc(var(--extra) * -1);
  height: calc(var(--gy) / 2 + var(--badge) / 2 + var(--line) / 2);
  border-left: 0; border-top: 0; border-bottom-right-radius: var(--r);
}
.s1::after {
  top: calc(var(--badge) / 2 - var(--line) / 2);
  left: calc(var(--extra) * -1);
  width: calc(var(--extra) + var(--badge) / 2);
  height: calc(100% - var(--badge) / 2 + var(--gy) / 2 + var(--line) / 2);
  border-right: 0; border-bottom: 0; border-top-left-radius: var(--r);
}
.s6::after {
  top: calc(var(--gy) / -2);
  left: calc(var(--extra) * -1);
  width: calc(var(--extra) + var(--badge) / 2);
  height: calc(var(--gy) / 2 + var(--badge) / 2 + var(--line) / 2);
  border-right: 0; border-top: 0; border-bottom-left-radius: var(--r);
}

/* Labels sitting on the line where it changes colour */
.seam {
  position: absolute; z-index: 3;
  padding: 10px 4px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .16em; line-height: 1; text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
}
.seam-right {
  top: calc(100% + var(--gy) / 2);
  right: calc(var(--extra) * -1 + var(--line) / 2);
  transform: translate(50%, -50%);
}
.seam-left {
  top: calc(var(--gy) / -2);
  left: calc(var(--extra) * -1 + var(--line) / 2);
  transform: translate(-50%, -50%) rotate(180deg);
}
.circuit-end { display: none; }
.how-more { margin-top: clamp(28px, 4vw, 44px); display: flex; justify-content: center; }

@media (max-width: 960px) {
  .circuit {
    --gy: 36px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    padding: 0;
  }
  .s1, .s2, .s3, .s4, .s5, .s6 { grid-area: auto; }
  .step { grid-template-columns: var(--badge) minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 7px; }
  .step::before {
    content: "";
    position: absolute; z-index: 1;
    top: calc(var(--badge) / 2);
    left: calc(var(--badge) / 2 - var(--line) / 2);
    width: var(--line);
    height: calc(100% + var(--gy));
    background: var(--flow);
  }
  .s3::before {
    background: linear-gradient(var(--arterial) 0 calc(100% - var(--gy) / 2 - var(--badge) / 2), var(--venous) 0);
  }
  .s6::before { content: none; }
  .step::after { content: none; }
  .seam-right {
    top: calc(100% + var(--gy) / 2);
    right: auto;
    left: calc(var(--badge) + 18px);
    padding: 5px 10px;
    transform: translateY(-50%);
    writing-mode: horizontal-tb;
  }
  .seam-left { display: none; }
  .circuit-end {
    display: block;
    margin-top: 20px;
    padding-left: calc(38px + 18px);
    color: var(--ink-2);
    font-size: .98rem;
  }
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
}
.feature { display: grid; align-content: start; gap: 10px; padding-top: 16px; border-top: 2px solid var(--ink); }
.feature-label {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--venous);
}
.feature h3 { font-size: 1.2rem; }
.feature ul { display: grid; gap: 9px; margin-top: 4px; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.feature li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--rule-strong); }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .features { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- PhilHealth ---------- */

.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.timeline { display: grid; margin-left: 6px; padding: 0; list-style: none; border-left: 2px solid var(--rule-strong); }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 0 0 20px 24px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -8px; top: .42em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-3);
}
.timeline time { font-family: var(--font-mono); font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.timeline span { color: var(--ink-2); }
.timeline .current::before { background: var(--venous); border-color: var(--venous); }
.timeline .current span { color: var(--ink); font-weight: 600; }
.now {
  margin-left: 8px; padding: 3px 7px; border-radius: 4px;
  background: var(--venous-wash); color: var(--venous);
  font-family: var(--font-mono); font-size: .64rem; font-style: normal; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; vertical-align: .1em;
}

.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.form-doc {
  position: relative;
  display: grid; align-content: start; gap: 4px;
  padding: 18px 18px 16px;
  background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 6px;
}
.form-doc::after {
  content: "";
  position: absolute; top: -1px; right: -1px;
  width: 18px; height: 18px;
  border-bottom-left-radius: 4px;
  background: linear-gradient(225deg, var(--paper) 50%, var(--rule) 50%);
}
.form-doc b { font-family: var(--font-display); font-stretch: 122%; font-size: 1.45rem; font-weight: 780; line-height: 1.1; letter-spacing: .02em; }
.form-doc span { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.form-doc.ph-block { outline-offset: 3px; }
.codes { margin-top: 18px; color: var(--ink-2); font-size: .95rem; }
.codes .mono {
  display: inline-block; padding: 1px 7px;
  border: 1px solid var(--rule); border-radius: 4px;
  background: var(--sheet); color: var(--ink); font-size: .85rem;
}
.disclaimer { max-width: 44rem; margin-top: clamp(32px, 5vw, 48px); color: var(--ink-3); font-size: var(--fs-xs); }

@media (max-width: 900px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .forms { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Screens ---------- */

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.shot { display: grid; align-content: start; gap: 12px; }
.shot-frame {
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--rule-strong); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 27, 43, .05), 0 12px 24px -18px rgba(15, 27, 43, .3);
}
.shot-bar {
  display: flex; align-items: center; gap: 12px;
  height: 28px; padding: 0 10px 0 12px;
  background: #E8EDF3; border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: .6rem; color: var(--ink-3);
}
.shot-bar span { margin-right: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot-bar i { font-size: .72rem; font-style: normal; }
.shot-body { width: 100%; max-width: 100%; aspect-ratio: 16 / 10; }
.shot-body {
  display: grid; place-content: center; gap: 6px;
  padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, #F7F9FB 0 12px, #EEF2F6 12px 24px);
}
.shot-body b { font-size: .95rem; }
.shot-body code { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); overflow-wrap: anywhere; }
.shot-body.ph-block { outline-offset: -8px; border-radius: 0; }
.shot img { display: block; width: 100%; max-width: 100%; height: auto; cursor: zoom-in; }
.shot figcaption { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.shot figcaption b { display: block; color: var(--ink); font-weight: 650; }

@media (max-width: 900px) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 340px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
  }
  .shot { scroll-snap-align: start; }
}

/* ---------- Proof ---------- */

.proof { display: grid; gap: clamp(28px, 4vw, 44px); }
.proof-copy { display: grid; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 2px solid var(--ink); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 16px 0 0; }
.stat dd {
  font-family: var(--font-display); font-stretch: 118%; font-weight: 760;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat dt { color: var(--ink-2); font-size: .95rem; }
.quote { display: grid; gap: 14px; max-width: 46rem; padding: 26px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; }
.quote p { font-size: var(--fs-m); line-height: 1.5; }
.quote footer { color: var(--ink-3); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; }

@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat {
    flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--rule);
  }
  .stat dt { text-align: right; }
}

/* ---------- Setup ---------- */

.setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.option {
  display: grid; align-content: start; gap: 10px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--rule); border-radius: 10px;
}
.option-tag {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--venous);
}
.option h3 { font-size: 1.3rem; }
.option p:last-child { color: var(--ink-2); }
.option-featured { border-color: var(--venous); background: var(--venous-wash); box-shadow: var(--sheet-shadow); }
.option-badge {
  display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 999px;
  background: var(--venous); color: #fff;
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4;
}
.setup-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 44px; }
.setup-notes p { max-width: 34rem; color: var(--ink-2); }

.ticks { display: grid; gap: 10px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute; left: 3px; top: .42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--venous); border-bottom: 2px solid var(--venous);
  transform: rotate(-45deg);
}
.ticks.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }

@media (max-width: 760px) {
  .setup,
  .setup-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .ticks.two-col { grid-template-columns: minmax(0, 1fr); }
}

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

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.price-card {
  display: grid; justify-items: start; gap: 10px;
  padding: 28px;
  background: var(--sheet);
  border: 1.5px solid var(--ink); border-radius: 12px;
  box-shadow: var(--sheet-shadow);
}
.price-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.price { font-family: var(--font-display); font-stretch: 118%; font-weight: 780; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 2.8rem); line-height: 1; }
.price-terms { color: var(--ink-2); }
.price-card .btn { width: 100%; margin-top: 8px; }
.price-addons { color: var(--ink-3); font-size: var(--fs-s); }

@media (max-width: 900px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
}

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

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 1.05rem; font-weight: 600;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--venous); font-family: var(--font-mono); font-size: 1.35rem; font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--venous-deep); }
.faq details p { max-width: 44rem; padding: 0 0 20px; color: var(--ink-2); }

/* ---------- Contact ---------- */

.band-night :focus-visible { outline-color: var(--night-ink); }
.band-night .eyebrow { color: var(--night-ink-2); }
.band-night h2 { color: var(--night-ink); }
.band-night .lead { color: var(--night-ink-2); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: end;
}
.contact-copy { display: grid; gap: 16px; }
.contact-person { margin-top: 8px; color: var(--night-ink-2); font-family: var(--font-mono); font-size: var(--fs-s); }
/* Two columns only where each button can keep its number or address on one line */
.contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.contact-btn {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 16px;
  background: var(--night-2);
  border: 1px solid var(--night-line); border-radius: 10px;
  color: var(--night-ink); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.contact-btn:hover { color: #fff; border-color: rgba(233, 238, 245, .45); }
.contact-btn svg {
  flex: none; width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact-btn > span { display: grid; gap: 2px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-btn small {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink-2);
}
.contact-btn.primary { background: var(--sheet); border-color: var(--sheet); color: var(--night); }
.contact-btn.primary small { color: var(--ink-3); }
.contact-btn.primary:hover { background: var(--venous-wash); color: var(--night); }

@media (max-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 26px;
  background: var(--night); color: var(--night-ink-2);
  border-top: 1px solid var(--night-line);
  font-size: var(--fs-s);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }

/* ---------- Phone: sticky call-to-action bar ---------- */

.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -8px 24px -18px rgba(15, 27, 43, .35);
  }
  .mobile-cta .btn { min-height: 46px; }
  .mobile-cta .btn-primary { flex: 1; }
  .mobile-cta .btn-ghost { background: var(--sheet); }
  .site-footer { padding-bottom: calc(26px + 72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Screenshot lightbox ---------- */

.lightbox { max-width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 14, 23, .84); }
.lightbox img { width: auto; max-width: 100%; max-height: 90vh; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lightbox-close {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--sheet); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
