/* Payrelle site. One layout, one type family, six colourways: the Payrelle series.
   Each theme is named after the animal on a Philippine peso note and borrows only its colourway
   (specs in _source/brand/themes, drawn with the Tone-on-Tone Lattice in patterns.js).
   Nothing here reproduces a banknote (BSP Circular 829): no bill art, seals, text, serials or bill layouts. */

/* ---------------- Series colourways ---------------- */
:root,
[data-look="agila"] {
  --hl: #ffc94a;
  --hl-ink: #3a2600;
  --ground: #0f4c9e;
  --g-light: #3f7fd1;
  --g-lighter: #8db6ee;
  --g-dark: #0a3570;
  --on-ground: #ffffff;
  --bg: #eef3f8;
  --surface: #ffffff;
  --sunk: #f6f9fc;
  --ink: #12233a;
  --muted: #55657a;
  --line: #d9e2ec;
  --accent: #0f4c9e;
  --accent-soft: #e3eef9;
}
[data-look="usa"] {
  --hl: #b9b2ff;
  --hl-ink: #231b5c;
  --ground: #e3a21a;
  --g-light: #f3c653;
  --g-lighter: #fbe29a;
  --g-dark: #a86f06;
  --on-ground: #2a1d05;
  --bg: #fff9ea;
  --surface: #ffffff;
  --sunk: #fffbf1;
  --ink: #2b2213;
  --muted: #6b5e45;
  --line: #efe3c6;
  --accent: #8a5a05;
  --accent-soft: #fdefd6;
}
[data-look="mamag"] {
  --hl: #ff9ec3;
  --hl-ink: #4a0f2a;
  --ground: #1c7443;
  --g-light: #3e9a63;
  --g-lighter: #8ccb9f;
  --g-dark: #10522e;
  --on-ground: #ffffff;
  --bg: #f0f6ef;
  --surface: #ffffff;
  --sunk: #f7fbf6;
  --ink: #15291c;
  --muted: #556b5b;
  --line: #d7e6d8;
  --accent: #1c7443;
  --accent-soft: #e1f0e3;
}
[data-look="tandikan"] {
  --hl: #d6ec5a;
  --hl-ink: #2a3300;
  --ground: #6a3da6;
  --g-light: #8e66c4;
  --g-lighter: #c6aee8;
  --g-dark: #4b2780;
  --on-ground: #ffffff;
  --bg: #f5f1f9;
  --surface: #ffffff;
  --sunk: #faf7fc;
  --ink: #2a1f3d;
  --muted: #625675;
  --line: #e4dbee;
  --accent: #6a3da6;
  --accent-soft: #eee6f8;
}
[data-look="maral"] {
  --hl: #6fe0d2;
  --hl-ink: #053b36;
  --ground: #c0272d;
  --g-light: #db5a5c;
  --g-lighter: #f0a7a5;
  --g-dark: #8c171c;
  --on-ground: #ffffff;
  --bg: #fbf1f0;
  --surface: #ffffff;
  --sunk: #fdf7f6;
  --ink: #3a1517;
  --muted: #74504f;
  --line: #f0dad8;
  --accent: #b3262e;
  --accent-soft: #fbe3e2;
}
[data-look="musang"] {
  --hl: #8cc3ff;
  --hl-ink: #062a52;
  --ground: #e2631a;
  --g-light: #f08b4a;
  --g-lighter: #f8c39c;
  --g-dark: #a9440b;
  --on-ground: #2b1405;
  --bg: #fff5ec;
  --surface: #ffffff;
  --sunk: #fffaf5;
  --ink: #331b0c;
  --muted: #74584a;
  --line: #f3ddcc;
  --accent: #a9440b;
  --accent-soft: #fde6d6;
}
/* Shared by the whole series */
:root {
  --brand: var(--ground);
  --on-brand: var(--on-ground);
  --seal: var(--accent);
  --hero-bg: var(--ground);
  --hero-ink: var(--on-ground);
  --hero-muted: color-mix(in srgb, var(--on-ground) 82%, var(--ground));
  --hero-line: color-mix(in srgb, var(--on-ground) 42%, transparent);
  --hero-btn: var(--on-ground);
  --hero-btn-ink: var(--ground);
  --mark: var(--on-ground);
  --mark-foot: var(--accent);
  --field: var(--g-light);
  --pd-on: var(--on-ground);
  --pd-next: var(--on-ground);
  --font-d: 'Funnel Display', system-ui, sans-serif;
  --font-b: 'Funnel Sans', system-ui, 'Segoe UI', sans-serif;
  --d-weight: 600;
  --d-track: -0.025em;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}
:root {
  --sel: color-mix(in srgb, var(--ink) 7%, transparent);
  --good: #2e7d5b;
  --good-soft: #e3f3ea;
  --warn: #9a6512;
  --warn-soft: #fbefd9;
  --bad: #b23a48;
  --bad-soft: #fbe6e9;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* ---------------- Base ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: var(--d-weight);
  letter-spacing: var(--d-track);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.88em; background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.num, td, .tab { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { left: 8px; }
.sel { user-select: all; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font: 600 16px/1 var(--font-b);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.solid { background: var(--brand); color: var(--on-brand); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); padding-bottom: 170px; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
.hero .btn.solid { background: var(--hero-btn); color: var(--hero-btn-ink); }
.hero .btn.ghost { border-color: var(--hero-line); color: var(--hero-ink); }
.top { position: relative; display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: var(--d-weight) 26px/1 var(--font-d); letter-spacing: var(--d-track); }
.mark { width: 34px; height: 34px; flex: none; }
.mark { --mc: var(--mark-foot); }
.hero .mark { --mc: var(--mark); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--hero-muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--hero-ink); }
.hero-copy { position: relative; padding-top: clamp(40px, 7vw, 90px); display: grid; gap: 22px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); max-width: 15ch; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--hero-muted); max-width: 54ch; }
@media (max-width: 760px) {
  .nav { display: none; }
}

/* ---------------- Hero: the lattice on the saturated note colour ---------------- */
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
/* The animal pressed into the ground tone-on-tone: a grayscale photo in overlay takes the ground's own hue. */
.photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; background: center 35% / cover no-repeat;
  filter: grayscale(1) contrast(1.15); mix-blend-mode: overlay; opacity: 0.75;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 72%, transparent 100%); mask-composite: intersect; }
.top, .hero-copy, .micro { position: relative; z-index: 2; }

/* Microtext rule: reads as a hairline until you look closely. */
.micro { position: relative; overflow: hidden; white-space: nowrap; font: 500 5.5px/1 var(--font-b); color: var(--hero-muted); opacity: 0.7; padding-block: 1px; }

.hero-copy { grid-template-columns: minmax(0, 1fr); }
.hero-text { display: grid; gap: 22px; }

@media (max-width: 860px) {
  /* phones: the animal gets its own band between the buttons and the demo */
  .hero { padding-bottom: 260px; }
  .photo { top: auto; bottom: 0; width: 100%; height: 300px; opacity: 0.65; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%); mask-image: linear-gradient(to bottom, transparent 0%, #000 35%); }
}

/* Theme picker: one swatch per note, the chosen one ringed and named. */
.picker { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.picker button { all: unset; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.picker button i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--on-ground) 55%, transparent); transition: transform 0.15s ease; }
.picker button:hover i { transform: scale(1.15); }
.picker button[aria-checked='true'] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--on-ground); }
.picker button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.picker-name { font-size: 14px; font-weight: 600; margin-left: 6px; min-width: 6ch; }
@media (max-width: 760px) {
  .picker { margin-left: auto; gap: 3px; }
  .picker-name { display: none; }
}

/* Progressive serial on the payroll run */
.serial { margin-left: auto; font: 600 14px/1 var(--font-b); color: var(--brand); font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; }
.serial + .app-user { margin-left: 0; }

/* ---------------- Demo ---------------- */
.demo-band { margin-top: -110px; position: relative; z-index: 3; padding-bottom: 32px; }
.demo-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 40px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 26px 28px 22px; }
.demo-intro h2 { font-size: clamp(24px, 2.6vw, 32px); grid-column: 1 / -1; }
.demo-intro p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.size { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.size input { width: 100%; accent-color: var(--brand); }
.size output { min-width: 9ch; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .demo-intro { grid-template-columns: 1fr; } }

.app { background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(20, 30, 50, 0.35); }
.app-bar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; }
.app-strip { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.app-bar > :not(.app-strip) { position: relative; }
.app-org { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.org-dot { width: 18px; height: 18px; border-radius: 50%; background: #ffd25e; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.app-period { color: var(--muted); }
.app-user { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--sel); color: var(--ink); }
.app-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 520px; position: relative; }
.app-nav { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); }
.app-nav button { all: unset; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.app-nav button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-nav button:hover { background: var(--sel); color: var(--ink); }
.app-nav button[aria-selected='true'] { background: var(--sel); color: var(--ink); font-weight: 600; }
.app-nav button[aria-selected='true'] svg { stroke: var(--brand); stroke-width: 2; }
.app-nav button:focus-visible { outline: 3px solid var(--accent); }
.count { margin-left: auto; font-size: 11px; background: var(--seal); color: #fff; border-radius: 999px; padding: 1px 7px; }
.app-main { padding: 18px 20px 22px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.app-main:focus-visible { outline-offset: -3px; }
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; }
  .app-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .app-nav button { white-space: nowrap; }
  .app-period { display: none; }
}

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 4px; }
.kpis div { display: grid; gap: 2px; }
.kpis span { font-size: 12px; color: var(--muted); }
.kpis b { font: var(--d-weight) 24px/1.15 var(--font-d); letter-spacing: var(--d-track); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.view-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.view-head h3 { font-family: var(--font-b); font-weight: 700; letter-spacing: 0; font-size: 17px; }
.view-head small { color: var(--muted); font-size: 13px; }
.scroll { overflow: auto; max-height: 360px; border: 1px solid var(--line); border-radius: var(--r-md); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grid th { position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.grid td { padding: 9px 9px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); white-space: nowrap; }
.grid .r { text-align: right; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover td { background: var(--sunk); }
.grid tbody tr.on td { background: var(--accent-soft); }
.grid td.who b { display: block; font-weight: 600; }
.grid td.who { white-space: normal; min-width: 150px; }
.grid td.who span { font-size: 12px; color: var(--muted); }
.grid tfoot td { position: sticky; bottom: 0; background: var(--surface); font-weight: 700; border-top: 1px solid var(--ink); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--accent-soft); color: var(--brand); }
.masked { letter-spacing: 0.08em; color: var(--muted); }

/* payslip drawer */
.slip-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 40px -30px rgba(0, 0, 0, 0.4); padding: 18px 20px; overflow-y: auto; display: grid; gap: 12px; align-content: start; z-index: 2; }
.slip-panel[hidden] { display: none; }
.slip-mark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; pointer-events: none; }
.slip-panel > :not(.slip-mark) { position: relative; }
.slip-panel header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.slip-panel h3 { font-size: 22px; }
.slip-panel .x { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sunk); font-size: 18px; }
.slip-panel .x:focus-visible { outline: 3px solid var(--accent); }
.slip-meta { font-size: 13px; color: var(--muted); }
.slip-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.slip-tbl td { padding: 5px 0; }
.slip-tbl td:last-child { text-align: right; }
.slip-tbl tr.h td { padding-top: 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.slip-tbl tr.ded td:last-child { color: var(--bad); }
.slip-tbl tr.net td { border-top: 1.5px solid var(--ink); padding-top: 10px; font-weight: 700; font-size: 18px; }
.slip-tbl tr.net td:last-child { color: var(--ink); }
.seal { justify-self: end; transform: rotate(-10deg); border: 1.5px solid var(--seal); color: var(--seal); border-radius: 50%; width: 70px; height: 70px; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.15; }

/* DTR */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.day { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 9px; display: grid; gap: 3px; font-size: 12.5px; background: var(--surface); }
.day b { font-size: 12px; color: var(--muted); font-weight: 600; }
.day .t { font-variant-numeric: tabular-nums; font-weight: 600; }
.day.rest { background: var(--sunk); color: var(--muted); }
.proof { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px; padding: 10px 12px; background: var(--good-soft); border-radius: var(--r-sm); color: var(--good); font-weight: 600; font-variant-numeric: tabular-nums; }
.who-pick { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }

/* requests / approvals */
.reqs, .approvals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.req b { font-weight: 600; }
.req small { color: var(--muted); font-size: 12.5px; grid-column: 1; }
.req .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; align-items: center; }
.mini { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.mini.yes { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.mini:focus-visible { outline: 3px solid var(--accent); }
.chain { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); grid-column: 1; }
.chain i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); display: inline-block; }
.chain i.ok { background: var(--good); border-color: var(--good); }

/* reports */
.remit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.remit div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 4px; }
.remit h4 { margin: 0; font-size: 14px; }
.remit p { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.remit p b { color: var(--ink); }
@media (max-width: 640px) { .remit { grid-template-columns: 1fr; } }
.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.files li:last-child { border-bottom: 0; }
.files span { color: var(--muted); font-size: 12.5px; }
.demo-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------------- Clients ---------------- */
.clients { padding-block: clamp(56px, 8vw, 96px) 0; display: grid; gap: 28px; }
.clients-head { display: grid; gap: 10px; max-width: 60ch; }
.clients-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.clients-head p { color: var(--muted); }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.client { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.client-logo { display: grid; place-items: center; height: 150px; border-bottom: 1px solid var(--line); }
.client-logo.nte { background: #b71f36; }
.client-logo.ab { background: #ffffff; }
.client-logo img { max-height: 92px; width: auto; max-width: 70%; }
.client-logo.nte img { max-height: 150px; max-width: 100%; }
.client-body { padding: 22px 24px 24px; display: grid; gap: 12px; align-content: start; }
.client-body h3 { font-size: 24px; }
.client-what { color: var(--muted); font-size: 15.5px; }
.client .ticks { font-size: 15px; }
.client-link { justify-self: start; margin-top: 6px; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
@media (max-width: 860px) { .client-grid { grid-template-columns: 1fr; } }

/* ---------------- Features ---------------- */
main { display: grid; gap: clamp(72px, 10vw, 128px); padding-block: clamp(72px, 9vw, 120px); }
.feat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feat.flip .feat-copy { order: 2; }
.feat-copy { display: grid; gap: 16px; }
.feat h2 { font-size: clamp(30px, 3.4vw, 44px); }
.feat-copy > p { color: var(--muted); max-width: 52ch; }
.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; }
  .feat.flip .feat-copy { order: 0; }
}

.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 60px -36px rgba(20, 30, 50, 0.4); min-width: 0; }
.shot > *:not(.shot-bar) { margin: 16px 18px; }
.shot-bar { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px 11px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; }
.shot-bar span { font-weight: 500; color: var(--muted); }

.schema { display: grid; gap: 14px; }
.cols { display: flex; flex-wrap: wrap; gap: 6px; }
.col { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.col.earn { background: var(--good-soft); border-color: transparent; color: var(--good); }
.col.ded { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.col.net { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.col.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.formula { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.formula code { background: none; padding: 0; font-size: 14px; }
.fx { font-style: italic; font-weight: 700; color: var(--muted); font-family: Georgia, serif; }
.col-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.col-props div { background: var(--sunk); border-radius: var(--r-sm); padding: 8px 10px; }
.col-props dt { font-size: 12px; color: var(--muted); }
.col-props dd { margin: 0; font-weight: 700; }

.recon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.recon div { border-radius: var(--r-sm); padding: 9px 11px; display: grid; gap: 1px; font-size: 12.5px; }
.recon b { font-size: 20px; font-variant-numeric: tabular-nums; }
.recon .ok { background: var(--good-soft); color: var(--good); }
.recon .wa { background: var(--warn-soft); color: var(--warn); }
.recon .no { background: var(--sunk); color: var(--muted); }
.dtr { display: grid; gap: 10px; }

.approvals .req { grid-template-columns: minmax(0, 1fr) auto; }

.gens { list-style: none; padding: 0; display: grid; gap: 0; position: relative; }
.gens li { display: grid; gap: 2px; padding: 0 0 18px 30px; position: relative; font-size: 14px; }
.gens li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); z-index: 1; }
.gens li::after { content: ''; position: absolute; left: 12px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.gens li:last-child::after { display: none; }
.gens li.done::before { background: var(--good); border-color: var(--good); }
.gens li.refi::before { background: var(--warn); border-color: var(--warn); }
.gens li.live::before { background: var(--brand); border-color: var(--brand); }
.gens span { color: var(--muted); }
.gens em { font-style: normal; font-weight: 600; font-size: 13px; }

.shot .bridge { width: calc(100% - 36px); height: auto; display: block; }
.bridge text { font-family: var(--font-b); font-size: 11px; fill: var(--muted); }
.bridge text.v { fill: var(--ink); font-weight: 700; font-size: 11.5px; }

.phone { justify-self: center; width: min(300px, 100%); border-radius: 40px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.ph-screen { background: var(--bg); border-radius: 30px; padding: 26px 16px 24px; display: grid; gap: 10px; align-content: start; }
.ph-hi { font: var(--d-weight) 24px/1.15 var(--font-d); letter-spacing: var(--d-track); margin-bottom: 6px; }
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 2px; }
.ph-card span, .ph-card small { font-size: 12.5px; color: var(--muted); }
.ph-card b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ph-time { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.ph-time span, .ph-time small { color: inherit; opacity: 0.8; }
.ph-leave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-leave div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; display: grid; text-align: center; }
.ph-leave b { font-size: 18px; }
.ph-leave span { font-size: 11.5px; color: var(--muted); }

.also { display: grid; gap: 28px; }
.also h2 { font-size: clamp(28px, 3vw, 38px); }
.also-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.also-grid h3 { font-family: var(--font-b); font-weight: 700; letter-spacing: 0; font-size: 16px; margin-bottom: 6px; }
.also-grid p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .also-grid { grid-template-columns: 1fr; } }

.paydays-band { position: relative; overflow: hidden; background: var(--ground); color: var(--on-ground); padding-block: clamp(56px, 8vw, 96px); }
.band-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pd-wrap { position: relative; }
.pd-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pd-copy { display: grid; gap: 14px; }
.pd-copy h2 { font-size: clamp(32px, 4vw, 52px); }
.pd-copy p { color: var(--hero-muted); max-width: 46ch; }
.pd-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; font-size: 11px; color: var(--hero-muted); font-variant-numeric: tabular-nums; }
.pd-row { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.pd-row i { aspect-ratio: 1; border-radius: 50%; border: 1.25px solid color-mix(in srgb, var(--on-ground) 45%, transparent); background: color-mix(in srgb, var(--ground) 70%, var(--g-dark)); }
.pd-row i.next { background: var(--pd-next); border-color: var(--pd-next); }
@media (prefers-reduced-motion: no-preference) {
  .pd-row i.next { animation: pd 2.6s ease-in-out infinite; }
  @keyframes pd { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pd-next) 25%, transparent); } }
}
@media (max-width: 860px) { .pd-wrap { grid-template-columns: 1fr; } }

.closer { display: grid; gap: 16px; justify-items: start; }
.closer h2 { font-size: clamp(32px, 4vw, 52px); }
.closer > p { color: var(--muted); max-width: 52ch; }
.mail { font-size: 14px; }

/* ---------------- Footer ---------------- */
.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 40px; align-items: start; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: var(--d-weight) 22px/1 var(--font-d); letter-spacing: var(--d-track); }
.foot .mark { width: 28px; height: 28px; }
.made { max-width: 64ch; font-size: 15.5px; }
.made a { font-weight: 600; text-underline-offset: 3px; }
.fine { grid-column: 2; font-size: 13px; color: var(--muted); }
.credits a { color: inherit; text-underline-offset: 2px; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } .fine { grid-column: 1; } }

/* Gold and orange grounds go burnt under overlay; a softer blend keeps their hue. */
[data-look="usa"] .photo,
[data-look="musang"] .photo { mix-blend-mode: soft-light; opacity: 0.9; }

/* ---------------- Plans (each plan is a theme) ---------------- */
.tier-line { grid-column: 1 / -1; font-size: 14px; color: var(--muted); max-width: none; }
.tier-line b { color: var(--ink); }
.tier-line a { color: var(--accent); font-weight: 600; }
.plans { display: grid; gap: 22px; }
.plans-head { display: grid; gap: 10px; max-width: 62ch; }
.plans-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.plans-head p { color: var(--muted); }
.plans-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.plan-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-pick button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; }
.plan-pick button i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); }
.plan-pick button[aria-checked='true'] { background: var(--ground); color: var(--on-ground); border-color: var(--ground); }
.plan-pick button:focus-visible, .billing button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.billing { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.billing button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.billing button[aria-pressed='true'] { background: var(--ink); color: var(--surface); }
.plan-detail { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px 48px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--ground); color: var(--on-ground); }
.pd-main { display: grid; gap: 10px; align-content: start; justify-items: start; }
.pd-main h3 { font-size: clamp(36px, 4vw, 52px); }
.pd-pitch { color: var(--hero-muted); }
.pd-price { font: var(--d-weight) clamp(30px, 3vw, 40px)/1.1 var(--font-d); letter-spacing: var(--d-track); margin-top: 6px; }
.pd-price small { display: block; font: 500 14px/1.4 var(--font-b); letter-spacing: 0; color: var(--hero-muted); }
.pd-facts { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 2px; font-size: 15px; color: var(--hero-muted); }
.plan-detail .btn.solid { background: var(--on-ground); color: var(--ground); }
.pd-adds-h { font-weight: 600; margin-bottom: 10px; }
.plan-detail .ticks li::before { border-color: var(--on-ground); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.compare th, .compare td { padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); text-align: center; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.compare thead th { position: sticky; top: 0; background: var(--surface); font-weight: 700; }
.compare thead th:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.compare thead button { all: unset; cursor: pointer; font-weight: 700; }
.compare .on { background: color-mix(in srgb, var(--ground) 12%, var(--surface)); }
.compare thead th.on { background: var(--ground); color: var(--on-ground); }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: var(--line); }
.compare .price-row td { font-weight: 700; font-variant-numeric: tabular-nums; }
.plans-note { font-size: 14px; color: var(--muted); }
.plans-note a { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .plan-detail { grid-template-columns: 1fr; } }

/* Demo: what this plan includes, and what it doesn't */
.plan-box { margin-top: 18px; padding: 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--ground) 10%, var(--surface)); display: grid; gap: 6px; font-size: 13px; }
.plan-box b { font-size: 14px; }
.plan-box span { color: var(--muted); }
.plan-box a { color: var(--accent); font-weight: 600; font-size: 13px; }
.plan-box .mini { justify-self: start; }
.lock { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.req.locked, .files li.locked { background: var(--sunk); }
.req.locked b, .files li.locked { color: var(--muted); }
.locked-panel { padding: 14px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { .plan-box { display: none; } }

/* Mini images for "Also in Payrelle": line vignettes in the theme's own tints */
.vig { width: 100%; max-width: 220px; height: auto; display: block; margin-bottom: 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--ground) 9%, var(--surface)); }
.vig .v-paper { fill: var(--surface); stroke: color-mix(in srgb, var(--ground) 45%, var(--line)); stroke-width: 1.2; }
.vig .v-soft { fill: color-mix(in srgb, var(--ground) 22%, var(--surface)); }
.vig .v-ink { fill: var(--ground); }
.vig .v-ink-o { fill: none; stroke: var(--ground); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vig .v-line { fill: none; stroke: color-mix(in srgb, var(--ground) 40%, var(--line)); stroke-width: 2.4; stroke-linecap: round; }
.vig .v-tick { fill: none; stroke: var(--on-ground); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vig .v-num { font: 700 8px var(--font-b); fill: var(--on-ground); text-anchor: middle; }
.vig .v-mask { font: 700 11px var(--font-b); fill: color-mix(in srgb, var(--ground) 60%, var(--muted)); }
.count:empty { display: none; }
.plan-pick button[aria-checked='true'] i { box-shadow: 0 0 0 2px var(--on-ground); }
.open-app { grid-column: 1 / -1; justify-self: start; }

/* ---------------- Plan explorer (round 3) ---------------- */
/* Demo intro: the copy on the left; on the right, the plan you're exploring, the size, and the way into the app */
.demo-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px 40px; }
.demo-intro h2 { grid-column: auto; }
.di-copy { display: grid; gap: 12px; }
.di-plan { display: grid; gap: 14px; }
.di-card { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--ground); color: var(--on-ground); padding: 18px 18px 16px; display: grid; gap: 10px; }
.di-card > :not(.di-field) { position: relative; }
.di-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.di-now { font: var(--d-weight) 22px/1.2 var(--font-d); letter-spacing: var(--d-track); }
.di-now b { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.di-card .tier-line { color: var(--hero-muted); font-size: 14px; }
.di-card .tier-line a { color: var(--on-ground); }
.size-note { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.size-note.flash { animation: note-flash 1.4s ease; }
@keyframes note-flash { 0% { background: color-mix(in srgb, var(--ground) 30%, transparent); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .size-note.flash { animation: none; } }
.btn.big { min-height: 56px; font-size: 17px; width: 100%; }
.open-app { grid-column: auto; justify-self: stretch; }
@media (max-width: 760px) { .demo-intro { grid-template-columns: 1fr; } }

/* Coloured plan chips: each pill is its own note colour; the chosen one is ringed */

/* Header: the swatches are a plan switcher, so they sit in a labelled group */
.plan-group { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; background: color-mix(in srgb, var(--on-ground) 14%, transparent); border: 1px solid var(--hero-line); }
.plan-label { font-size: 13px; font-weight: 600; color: var(--hero-muted); }
.plan-group .picker { margin-left: 0; }
@media (max-width: 760px) { .plan-label { display: none; } .plan-group { margin-left: auto; padding-left: 6px; } }

/* Plans section: the detail panel carries a soft lattice */
.plan-detail { display: block; padding: 0; }
.pd-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pd-in { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px 48px; padding: clamp(24px, 4vw, 40px); }
.pd-care { font-size: 15px; color: var(--hero-muted); max-width: 46ch; }
.pd-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-detail .btn.ghost { border-color: var(--hero-line); color: var(--on-ground); }
@media (max-width: 860px) { .pd-in { grid-template-columns: 1fr; } }

/* Angat Buhay's logo panel takes a tint of its own teal */
.client-logo.ab { background: #dff3f5; }
.demo-intro .di-card .di-now { color: var(--on-ground); max-width: none; }
.demo-intro .di-card .tier-line { color: var(--hero-muted); max-width: none; }
.client-logo.nte { overflow: hidden; }
.client-link { color: var(--accent); }

/* ---------------- Polish (round 4) ---------------- */
/* <button class="btn ghost"> must not inherit the browser's grey button face */
.btn.ghost { background: transparent; }

/* Plans you haven't picked step back: less colour, a little lighter; the picked one is full colour and ringed */
.picker button[aria-checked='false'] i { filter: saturate(0.35); opacity: 0.6; }
.picker button[aria-checked='false']:hover i { filter: none; opacity: 1; }

/* Scrollbars take the plan's colour */
html { scrollbar-color: var(--ground) var(--sunk); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ground) 70%, var(--surface)) transparent; }
html { scrollbar-width: auto; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ground) 70%, var(--surface)); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ground); background-clip: padding-box; }

/* ---------------- Plan pills on a white tray (round 5) ---------------- */

/* Header: the plan dots sit on a white tray too, full colour, the picked one ringed */
.plan-group { background: #fff; border-color: transparent; }
.plan-label { color: #1b2230; }
.picker button[aria-checked='false'] i { filter: none; opacity: 1; }
.picker button[aria-checked='true'] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ground); }
.picker-name { color: #1b2230; }

/* ---------------- Plan-switch motion (see assets/js/motion.js) ---------------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
[data-pop] .tier-chips button[aria-checked='true'], [data-pop] .picker button[aria-checked='true'] { animation: chip-pop 320ms cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes chip-pop { 0% { transform: scale(0.88); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { [data-pop] .tier-chips button[aria-checked='true'], [data-pop] .picker button[aria-checked='true'] { animation: none; } }

/* Round 6: pills keep their width whichever is picked; the Plans section's pills sit on the page, no tray */
main > .wrap { width: 100%; }

/* ---------------- Phones (responsive-design skill, round 7) ---------------- */
/* The plan notice that slides down when a plan is picked from the header */
.plan-notice { position: fixed; z-index: 400; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--ground); color: var(--on-ground); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); font-size: 14px; }
.plan-notice b { font: var(--d-weight) 18px/1.2 var(--font-d); letter-spacing: var(--d-track); }
.plan-notice span { color: var(--hero-muted); }
.plan-notice a { justify-self: start; margin-top: 4px; font-weight: 700; color: var(--on-ground); text-underline-offset: 3px; padding: 6px 0; }

/* Touch screens: every control is at least 44px */
@media (pointer: coarse) {
  .mini { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; }
  .client-link { display: inline-block; padding-block: 12px; }
  .app-nav button { min-height: 44px; }
  .billing button { min-height: 44px; display: inline-flex; align-items: center; }
  .size input { min-height: 44px; }
  .compare thead button { min-height: 44px; }
}

@media (max-width: 760px) {
  /* Header: the plan dots get their own full-width row, one 44px target each */
  .top { flex-wrap: wrap; row-gap: 12px; }
  .plan-group { order: 3; width: 100%; margin-left: 0; justify-content: space-between; padding: 4px 6px 4px 14px; }
  .plan-label { display: inline; }
  .picker { gap: 0; }
  .picker button { width: 44px; height: 44px; }
  .picker button i { width: 22px; height: 22px; }
  .picker button[aria-checked='true'] { box-shadow: none; }
  .picker button[aria-checked='true'] i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ground); }

  /* Plan pills: an even 3 by 2 grid instead of a lumpy wrap */
  .plans-bar { display: grid; gap: 12px; }
  .billing { justify-self: start; }

  /* Comparison: show the picked plan's column; the pills above switch it */
  .compare { min-width: 0; }
  .compare th:not(:first-child):not(.on), .compare td:not(.on) { display: none; }
  .compare thead th.on { width: 96px; }

  /* Also in Payrelle: a small picture beside its text */
  .also-grid > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .also-grid .vig { grid-row: span 2; max-width: 96px; margin: 0; }
  .also-grid h3 { margin: 0; }
}
@media (pointer: coarse) { .btn.small { min-height: 44px; } .brand { min-height: 44px; } }
@media (max-width: 359px) { .plan-label { display: none; } .plan-group { justify-content: center; padding-left: 6px; } }
.plan-notice[hidden] { display: none; }


/* ================= Plan pills: the one definition (consolidated 2026-11-04) =================
   Equal-width columns keep every pill the same size whichever is picked, so nothing needs reserved space.
   Unpicked: white pill, plan-coloured text and outline. Picked: filled with a check. All other pill rules were removed. */
.tier-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 4px; max-width: 660px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px -12px rgba(20, 30, 50, 0.35); }
.tier-chips button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 40px; padding: 0 8px; border-radius: 999px; white-space: nowrap; font: 700 14px/1 var(--font-b);
  background: #fff; color: var(--ct); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cg) 50%, #fff);
  transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.tier-chips button:hover { background: color-mix(in srgb, var(--cg) 10%, #fff); box-shadow: inset 0 0 0 1.5px var(--cg); }
.tier-chips button[aria-checked='true'] { background: var(--cg); color: var(--co); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--cg) 70%, transparent); }
.tier-chips button[aria-checked='true']::before { content: '✓'; }
.tier-chips button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* On the page (Plans section): no tray */
#plan-pick.tier-chips { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 6px; }
/* Inside half-width panels (the demo card): three per row */
.di-card .tier-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 22px; border-color: transparent; }
.fx-hero .tier-chips { border-color: transparent; }
@media (pointer: coarse) { .tier-chips button { min-height: 44px; } }
@media (max-width: 760px) { .tier-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 22px; max-width: none; } }
.plan-notice { overflow: hidden; }
.plan-notice > :not(.pn-field) { position: relative; }
.pn-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 760px) { .plans-bar #plan-pick.tier-chips { width: 100%; } }
@media (max-width: 760px) { .plans-bar { grid-template-columns: minmax(0, 1fr); justify-content: stretch; } }

/* ---------------- Where it runs ---------------- */
.deploy { display: grid; gap: 28px; padding-top: clamp(56px, 8vw, 96px); }
.deploy-head { display: grid; gap: 10px; max-width: 62ch; }
.deploy-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.deploy-head p { color: var(--muted); }
.deploy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.deploy-grid article { display: grid; gap: 10px; align-content: start; }
.dv-pic { width: 100%; height: auto; display: block; margin-bottom: 6px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--ground) 9%, var(--surface)); padding: 14px; box-sizing: border-box; }
.dv-pic .dv-shadow { fill: color-mix(in srgb, var(--ground) 18%, transparent); }
.dv-pic .dv-win { fill: #fff; stroke: color-mix(in srgb, var(--ground) 30%, var(--line)); stroke-width: 1; }
.dv-pic .dv-dot { fill: color-mix(in srgb, var(--ground) 25%, #e6e9ee); }
.dv-pic .dv-bar { fill: var(--sunk); stroke: var(--line); stroke-width: 0.8; }
.dv-pic .dv-url { font: 600 8px var(--font-b); fill: var(--muted); }
.dv-pic .dv-url-on { fill: var(--accent); font-weight: 800; }
.dv-pic .dv-sep { stroke: var(--line); stroke-width: 0.8; }
.dv-pic .dv-side { fill: var(--ground); }
.dv-pic .dv-mark { fill: var(--on-ground); }
.dv-pic .dv-nav { fill: color-mix(in srgb, var(--on-ground) 45%, var(--ground)); }
.dv-pic .dv-nav-on { fill: var(--on-ground); }
.dv-pic .dv-title { fill: color-mix(in srgb, var(--ink) 75%, #fff); }
.dv-pic .dv-kpi { fill: var(--sunk); stroke: var(--line); stroke-width: 0.6; }
.dv-pic .dv-kpi-on { fill: color-mix(in srgb, var(--ground) 16%, #fff); stroke: color-mix(in srgb, var(--ground) 40%, #fff); stroke-width: 0.6; }
.dv-pic .dv-row { fill: var(--sunk); }
.dv-pic .dv-row2 { fill: color-mix(in srgb, var(--line) 60%, #fff); }
.dv-pic .dv-site { fill: #f3f4f6; }
.dv-pic .dv-site-logo { fill: #9aa3ad; }
.dv-pic .dv-site-nav { fill: #c9ced4; }
.dv-pic .dv-site-tab { fill: var(--ground); }
.dv-pic .dv-badge { fill: var(--ground); }
.dv-pic .dv-badge-t { fill: var(--on-ground); opacity: 0.85; }
.dv-pic .dv-tick { fill: none; stroke: var(--on-ground); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deploy-grid h3 { font-size: 20px; }
.deploy-grid p { color: var(--muted); font-size: 15.5px; }
.dv-eg a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.deploy-note { font-size: 14.5px; color: var(--muted); max-width: 80ch; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .deploy-grid { grid-template-columns: 1fr; } .dv-pic { max-width: 380px; } }
.dv-pic .dv-hl { fill: color-mix(in srgb, var(--ground) 14%, transparent); transform-box: view-box; transition: fill 0.24s ease; }
.dv-active .dv-pic .dv-hl { fill: color-mix(in srgb, var(--ground) 32%, transparent); }
.dv-active h3 { color: var(--accent); transition: color 0.24s ease; }
/* Where it runs, while the highlight plays: the active address takes the plan's complementary colour and blinks;
   the other two cards step back */
.deploy-grid.dv-playing article { transition: filter 0.24s ease, opacity 0.24s ease; }
.deploy-grid.dv-playing article:not(.dv-active) { filter: saturate(0.25); opacity: 0.55; }
.dv-active .dv-pic .dv-hl { fill: var(--hl); }
.dv-active .dv-pic .dv-url-on { fill: var(--hl-ink); }

/* ---------------- Floating plan switcher (float-plans.js) ----------------
   Desktop: a slim white tray on the right edge, dots with the plan name for the picked one.
   Phones: a tray at the bottom centre, within thumb reach. */
.float-plans { position: fixed; z-index: 120; right: 16px; top: 50%; translate: 0 -50%; display: grid; gap: 2px; padding: 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px -14px rgba(20, 30, 50, 0.45); }
.float-plans[hidden] { display: none; }
.float-plans button { all: unset; cursor: pointer; position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.float-plans i { width: 18px; height: 18px; border-radius: 50%; background: var(--cg); transition: transform 0.15s ease; }
.float-plans button:hover i { transform: scale(1.15); }
.float-plans button[aria-checked='true'] i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cg); }
.float-plans button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
/* the name shows beside the picked dot, and beside any dot on hover */
.float-plans span { position: absolute; right: 44px; top: 50%; translate: 0 -50%; white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  background: var(--cg); color: #fff; font: 700 13px/1.2 var(--font-b); opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.float-plans button[aria-checked='true'] span, .float-plans button:hover span, .float-plans button:focus-visible span { opacity: 1; }
.float-plans button:hover:not([aria-checked='true']) ~ button[aria-checked='true'] span,
.float-plans:has(button:hover:not([aria-checked='true'])) button[aria-checked='true'] span { opacity: 0; }
[data-look='usa'] .float-plans button[aria-checked='true'] span, [data-look='musang'] .float-plans button[aria-checked='true'] span { color: var(--on-ground); }
@media (max-width: 760px) {
  .float-plans { top: auto; right: auto; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; grid-auto-flow: column; gap: 0; }
  .float-plans button { width: 44px; height: 44px; }
  .float-plans i { width: 22px; height: 22px; }
  .float-plans span { display: none; }
}
