/* Rio Services — v3, faithful pilot.com design language */
:root {
  --ink: #281350;            /* dark purple */
  --ink-border: #3e2b62;     /* signature section rule */
  --ink-soft: #3e2b62;
  --muted: #656363;
  --white: #ffffff;
  --cream: #faf6ee;
  --buttercream: #e7ddc9;
  --cyan: #dae9f3;
  --pink: #fde0ff;
  --pink-hot: #f891ff;
  --lavender: #f2edff;
  --royal: #5931dc;
  --violet: #5f2ee5;
  --violet-border: #6a46df;
  --green: #47bfa4;
  --maxw: 100%;
  --pad: 64px;
  --content: 1480px;   /* inner content cap: fills wide screens, avoids stretch */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", Verdana, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: inherit; margin: 0 0 1rem; font-weight: 600; line-height: 115%; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- The frame: page-spanning bordered column ---------- */
.frame { max-width: var(--maxw); margin: 0 auto; border-left: 1px solid var(--ink-border);
  border-right: 1px solid var(--ink-border); min-height: 100vh; display: flex; flex-direction: column; }
.band { border-bottom: 1px solid var(--ink-border); }
.band-cream { background: var(--cream); }
.band-cyan { background: var(--cyan); }
.band-buttercream { background: var(--buttercream); }
.band-pink { background: var(--pink); }
.band-lavender { background: var(--lavender); }
.band-dark { background: var(--ink); color: #fff; border-color: var(--ink-border); }
.band-royal { background: var(--royal); color: #fff; border-color: var(--violet-border); }
.inner { padding: 80px var(--pad); max-width: var(--content); margin-inline: auto; width: 100%; }
.inner-sm { padding: 48px var(--pad); max-width: var(--content); margin-inline: auto; width: 100%; }

/* mono eyebrow */
.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-weight: 400; text-transform: uppercase;
  letter-spacing: .14em; font-size: .76rem; margin-bottom: 18px; opacity: .85;
}
.hand { font-family: "Dancing Script", cursive; font-size: 1.15rem; color: var(--violet); }
.band-dark .hand, .band-royal .hand { color: var(--pink-hot); }

/* ---------- Buttons: square, uppercase, letter-spaced ---------- */
.btn {
  display: inline-block; font-family: "Be Vietnam Pro", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; line-height: 20px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--violet); border-color: var(--violet); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-pink { background: var(--pink-hot); color: var(--ink); border-color: var(--pink-hot); }
.btn-pink:hover { filter: brightness(1.05); }
.btn-white-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-white-outline:hover { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--pink-hot); border-color: var(--pink-hot); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--ink-border); }
.nav { display: flex; align-items: center; gap: 30px; height: 72px; padding: 0 var(--pad);
  max-width: var(--content); margin-inline: auto; width: 100%; }
.logo { display: flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo img { height: 46px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-cta .btn { white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--violet); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero-grid > .art.has-img { border: 1px solid var(--ink-border); box-shadow: 8px 8px 0 var(--ink-border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 10px; }
/* compact doodle accent on resource-article heroes (white bg art on cream) */
.hero-doodle { display: inline-block; width: 140px; height: auto; margin-top: 22px;
  mix-blend-mode: multiply; opacity: .9; }
/* homepage hero hand-doodle (multiply on cream) */
.hand-doodle { display: block; width: 150px; height: auto; margin-top: 6px;
  mix-blend-mode: multiply; opacity: .85; }
/* paper-plane sticker on the royal band — framed like a postage stamp */
.band-sticker { position: absolute; top: 10px; right: 10px; width: 92px; height: 92px;
  object-fit: cover; background: var(--cream); border: 1px solid var(--ink);
  padding: 6px; transform: rotate(6deg); box-shadow: 4px 4px 0 rgba(0,0,0,.25); }

/* mock report card (hero art) */
.mock { background: #fff; border: 1px solid var(--ink-border); padding: 24px;
  box-shadow: 8px 8px 0 var(--ink-border); }
.mock .mock-head { font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--ink-border); padding-bottom: 12px; margin-bottom: 16px; }
.mock-rows { display: grid; gap: 0; }
.mock-row { display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px dashed #d8d2e6; font-size: .95rem; }
.mock-row b { font-weight: 600; }
.mock-row .ok { color: var(--green); font-weight: 700; }
.mock-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.mock-foot .big { font-size: 1.7rem; font-weight: 700; }
.tag { font-family: "IBM Plex Mono", monospace; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; background: var(--pink); border: 1px solid var(--ink-border);
  padding: 3px 10px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 880px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; opacity: .92; }

/* ---------- Bordered cell grids (pilot's grid-with-rules look) ---------- */
.cellgrid { display: grid; border: 1px solid var(--ink-border); background: var(--ink-border);
  gap: 1px; }
.cellgrid-3 { grid-template-columns: repeat(3, 1fr); }
.cellgrid-2 { grid-template-columns: repeat(2, 1fr); }
.cellgrid-4 { grid-template-columns: repeat(4, 1fr); }
.cell { background: var(--white); padding: 30px; }
.band-cyan .cell { background: var(--cyan); }
.band-buttercream .cell { background: var(--buttercream); }
.band-dark .cellgrid { border-color: var(--violet-border); background: var(--violet-border); }
.band-dark .cell { background: var(--ink); }
.band-royal .cellgrid { border-color: var(--violet-border); background: var(--violet-border); }
.band-royal .cell { background: var(--royal); }
.cell h3 { margin-bottom: .5rem; }
.cell p { margin: 0; font-size: .96rem; opacity: .92; }
.cell .num { font-family: "IBM Plex Mono", monospace; font-size: .76rem; letter-spacing: .12em;
  display: block; margin-bottom: 14px; opacity: .7; }
.cell .ic { font-size: 1.5rem; margin-bottom: 14px; display: block; }
.cell .ic-img { width: 44px; height: 44px; margin-bottom: 14px; display: block; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split ul { padding: 0; list-style: none; margin: 20px 0 0; }
.split li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.split li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.split .art { border: 1px solid var(--ink-border); min-height: 260px; display: grid;
  place-items: center; padding: 32px; box-shadow: 8px 8px 0 var(--ink-border); background: var(--pink); }
.split .art.cyan { background: var(--cyan); }
.split .art.lavender { background: var(--lavender); }
.split .art.buttercream { background: var(--buttercream); }
.split .art.has-img, .art.has-img { padding: 0; background: var(--cream); overflow: hidden; }
.art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split .art .big { font-size: 2.4rem; font-weight: 700; text-align: center; }
.split .art .sub { font-family: "IBM Plex Mono", monospace; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .12em; text-align: center; margin-top: 6px; }

/* ---------- People (advisor) cards ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-border);
  border: 1px solid var(--ink-border); }
.person { background: var(--white); padding: 30px; }
.person .face { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink-border);
  background: var(--lavender); display: grid; place-items: center; font-weight: 700;
  font-size: 1.2rem; margin-bottom: 16px; }
.person b { display: block; }
.person span { font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); display: block; margin: 4px 0 12px; }
.person p { font-size: .92rem; margin: 0; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--ink-border); border: 1px solid var(--ink-border); }
.price-card { background: #fff; padding: 36px 30px; display: flex; flex-direction: column; }
.price-card.feature { background: var(--lavender); position: relative; }
.price-card .plan { font-family: "IBM Plex Mono", monospace; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 12px; }
.price { font-size: 2.3rem; font-weight: 700; margin: 8px 0 2px; }
.price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.price-card li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
/* Volume cap tag — the laddered transaction/invoice limit per tier */
.price-card .limit { align-self: flex-start; font-family: "IBM Plex Mono", monospace; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--violet); background: var(--lavender);
  border: 1px solid var(--violet-border); padding: 5px 11px; margin: 6px 0 4px; line-height: 1.3; }
.price-card.feature .limit { background: #fff; }
.price-card .save { color: var(--green); font-weight: 600; }

/* ---------- Service switcher (no-JS CSS tabs) ---------- */
.svc-switch > input { position: absolute; opacity: 0; width: 0; height: 0; }
.svc-tabbar { display: flex; flex-wrap: nowrap; justify-content: center; gap: 1px;
  background: var(--ink-border); border: 1px solid var(--ink-border);
  width: max-content; max-width: 100%; margin: 0 auto 38px; overflow-x: auto; }
.svc-tabbar label { flex: 0 0 auto; background: #fff; font-family: "IBM Plex Mono", monospace; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: var(--ink);
  padding: 14px 20px; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.svc-tabbar label:hover { background: var(--lavender); color: var(--violet); }
.svc-panel { display: none; }
#svc-book:checked ~ .svc-panels #panel-book,
#svc-tax:checked  ~ .svc-panels #panel-tax,
#svc-pay:checked  ~ .svc-panels #panel-pay,
#svc-cfo:checked  ~ .svc-panels #panel-cfo,
#svc-ops:checked  ~ .svc-panels #panel-ops,
#svc-hr:checked   ~ .svc-panels #panel-hr,
#svc-smb:checked  ~ .svc-panels #panel-smb { display: block; }
#svc-book:checked ~ .svc-tabbar label[for=svc-book],
#svc-tax:checked  ~ .svc-tabbar label[for=svc-tax],
#svc-pay:checked  ~ .svc-tabbar label[for=svc-pay],
#svc-cfo:checked  ~ .svc-tabbar label[for=svc-cfo],
#svc-ops:checked  ~ .svc-tabbar label[for=svc-ops],
#svc-hr:checked   ~ .svc-tabbar label[for=svc-hr],
#svc-smb:checked  ~ .svc-tabbar label[for=svc-smb] { background: var(--ink); color: #fff; }
.svc-switch > input:focus-visible ~ .svc-tabbar { outline: 2px solid var(--violet); outline-offset: 3px; }
.svc-panel .panel-note { font-family: "IBM Plex Mono", monospace; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin: 0 0 18px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--ink-border); border-radius: 0; font: inherit;
  color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: 4px 4px 0 var(--ink-border); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--ink-border); padding: 18px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "IBM Plex Mono", monospace; color: var(--violet); }
.faq details[open] summary::after { content: "-"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b4a7d1; margin-top: auto; }
.site-footer .inner-sm { padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer a { color: #b4a7d1; font-size: .92rem; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand .logo img { height: 46px; }
.footer-brand p { font-size: .9rem; max-width: 260px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--ink-border); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Mega-menu dropdowns ---------- */
.main-nav .has-menu { position: relative; }
.main-nav .has-menu > a::after { content: " ▾"; font-size: .7em; }
.menu { display: none; position: absolute; top: 100%; left: -16px; background: #fff;
  border: 1px solid var(--ink-border); padding: 22px 24px; z-index: 60;
  box-shadow: 8px 8px 0 rgba(62,43,98,.18); gap: 32px; }
.main-nav .has-menu:hover > .menu, .main-nav .has-menu:focus-within > .menu { display: flex; }
/* extend hover area to avoid gap between link and panel */
.main-nav .has-menu::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.menu-col { min-width: 210px; width: max-content; }
/* headers share one baseline across columns: fixed height + bottom rule */
.menu-col h5 { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: .66rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  margin: 0 0 8px; padding: 0 10px 8px; border-bottom: 1px solid #ece8f3; }
/* every row — iconed or text-only — uses the same height + hover tint */
.menu-col a { display: flex; align-items: center; gap: 11px; min-height: 34px;
  padding: 5px 12px; border-radius: 0; color: var(--ink);
  font-weight: 500; font-size: .92rem; white-space: nowrap; line-height: 1.2;
  transition: background .15s ease, color .15s ease; }
.menu-col a img.mi { width: 30px; height: 30px; flex: 0 0 30px; margin: 0; }
.menu-col a:hover, .menu-col a:focus-visible { color: var(--violet); background: var(--lavender); text-decoration: none; }

/* ---------- Keyboard focus-visible (a11y) ---------- */
/* Visible, on-brand focus ring for keyboard users; mouse hover unaffected. */
.main-nav a:focus-visible, .nav-cta a:focus-visible, .logo:focus-visible,
.site-footer a:focus-visible, .faq summary:focus-visible, a.btn:focus-visible,
.prose a:focus-visible {
  outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; text-decoration: none; }
/* On dark surfaces the violet ring is low-contrast — use a bright ring instead */
.site-footer a:focus-visible, .band-dark a:focus-visible, .band-royal a:focus-visible,
.btn-white:focus-visible, .btn-white-outline:focus-visible { outline-color: var(--pink-hot); }
.menu-col a:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }

/* ---------- Resource article pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--ink-border); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; background: var(--lavender); }
.prose ul.checklist { list-style: none; padding: 0; }
.prose ul.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.prose ul.checklist li::before { content: "☐"; position: absolute; left: 0; color: var(--violet); }
.note { border: 1px solid var(--ink-border); background: var(--buttercream); padding: 16px 20px;
  font-size: .9rem; margin: 1.4rem 0; }

/* ---------- Motion: scroll-triggered reveals ---------- */
/* Elements tagged .reveal start hidden + nudged, settle in when scrolled into view.
   JS adds .is-in. With no JS, .reveal stays hidden — so we make visibility the
   default and only opt INTO hiding when the document advertises JS support. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.js .reveal.is-in { opacity: 1; transform: none; }
/* staggered children: each cell/person/card eases in a beat after the last */
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in, .js .reveal-stagger > *, .js .reveal-stagger.is-in > * {
    opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Hover states ---------- */
/* Free-standing cards (price-card) lift with a crisp offset shadow.
   Cells INSIDE the 1px-gap bordered grids must NOT move or cast an offset
   shadow — that clips neighbours and renders as a dark slab in the seams.
   Instead they shift toward white/lavender with an inset accent bar that
   stays inside the cell's own gridlines. */
.cell, .person, .price-card { position: relative; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.cellgrid .cell:hover, .people .person:hover {
  background: var(--lavender); box-shadow: inset 3px 0 0 var(--violet); }
/* On cyan/buttercream light bands, lavender still reads as a lift */
.band-cyan .cellgrid .cell:hover, .band-buttercream .cellgrid .cell:hover {
  background: var(--white); box-shadow: inset 3px 0 0 var(--violet); }
/* Dark/royal bands: lighten toward the violet border with a brighter inset */
.band-dark .cellgrid .cell:hover, .band-royal .cellgrid .cell:hover {
  background: var(--violet-border); box-shadow: inset 3px 0 0 var(--pink-hot); }
.price-card:hover { background: var(--lavender); box-shadow: inset 3px 0 0 var(--violet); }
.price-card.feature:hover { background: #e9e0ff; }
/* button lift */
.btn { transition: background .2s, color .2s, border-color .2s, transform .12s, box-shadow .12s; }
.btn-primary:hover, .btn-pink:hover, .btn-white:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--violet-border); }
.band-royal .btn-white:hover { box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Animated stat counters ---------- */
.statline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ink-border); border: 1px solid var(--ink-border); }
.stat { background: var(--white); padding: 34px 28px; text-align: center; }
.band-dark .statline { background: var(--violet-border); border-color: var(--violet-border); }
.band-dark .stat { background: var(--ink); }
.stat .figure { font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 700; line-height: 1;
  letter-spacing: -.02em; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat .figure .suffix { font-size: .55em; font-weight: 600; }
.band-dark .stat .figure { color: #fff; }
.stat .figure .suffix, .band-dark .stat .figure .suffix { color: var(--pink-hot); }
.stat .label { font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-top: 12px; }
.band-dark .stat .label { color: #b4a7d1; }

/* ---------- Competitive-contrast band (vs freelancer / software / firm) ---------- */
.contrast-claim { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em; max-width: 820px; margin: 0 0 8px; }
.contrast-claim em { font-style: normal; color: var(--violet); }
.band-dark .contrast-claim em { color: var(--pink-hot); }
.compare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px;
  background: var(--ink-border); border: 1px solid var(--ink-border); }
.compare .col { background: var(--white); padding: 28px 24px; }
.compare .col.rio { background: var(--lavender); }
.compare .col h4 { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink-border); }
.compare .col.rio h4 { color: var(--violet); font-weight: 700; }
.compare .row { display: flex; gap: 10px; font-size: .92rem; margin-bottom: 14px; line-height: 1.35; }
.compare .row .mk { flex: 0 0 18px; font-weight: 700; line-height: 1.3; }
.compare .row .mk.no { color: #c0392b; }
.compare .row .mk.warn { color: #b8860b; }
.compare .row .mk.yes { color: var(--green); }
.compare .row:last-child { margin-bottom: 0; }

/* ---------- Pipeline diagram (capture → categorize → review → sign-off) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--ink-border); background: var(--white); margin-top: 8px; }
.band-dark .pipeline { border-color: var(--violet-border); background: var(--ink); }
.pstep { padding: 30px 26px 32px; border-right: 1px solid var(--ink-border); position: relative;
  background: var(--white); }
.band-dark .pstep { background: var(--ink); border-right-color: var(--violet-border); }
.pstep:last-child { border-right: 0; }
.pstep .pnum { font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .12em;
  color: var(--muted); }
.band-dark .pstep .pnum { color: #b4a7d1; }
.pstep .picon { width: 100%; height: 96px; display: grid; place-items: center; margin: 16px 0; }
.pstep .picon svg { width: 88px; height: 88px; }
.pstep h3 { font-size: 1.06rem; margin: 0 0 8px; }
.band-dark .pstep h3 { color: #fff; }
.pstep p { font-size: .9rem; margin: 0; opacity: .9; }
/* the connector dot riding the seam between steps, animated along the chain */
.pstep::after { content: ""; position: absolute; right: -7px; top: 118px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--violet); border: 2px solid var(--white); transform: translateY(-50%);
  z-index: 3; opacity: 0; }
.band-dark .pstep::after { border-color: var(--cream); background: var(--pink-hot); }
.pstep:last-child::after { display: none; }
.js .pipeline.is-in .pstep::after { animation: flowDot 3.2s ease-in-out infinite; }
.js .pipeline.is-in .pstep:nth-child(1)::after { animation-delay: 0s; }
.js .pipeline.is-in .pstep:nth-child(2)::after { animation-delay: .5s; }
.js .pipeline.is-in .pstep:nth-child(3)::after { animation-delay: 1s; }
@keyframes flowDot { 0%,40% { opacity: 0; } 50% { opacity: 1; transform: translateY(-50%) scale(1.25); }
  85% { opacity: 1; transform: translateY(-50%) scale(1); } 100% { opacity: 0; } }
.pipe-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; border: 1px solid var(--ink-border); padding: 7px 14px; }
.pipe-tag.human { background: var(--pink); color: var(--ink); border-color: var(--ink); }
.pipe-tag.auto { background: var(--cyan); color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .js .pipeline.is-in .pstep::after { animation: none; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --pad: 24px; }
  .frame { border-left: 0; border-right: 0; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .cellgrid-3, .cellgrid-4, .price-grid, .people { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 12px; }
  /* mobile nav drawer: scroll within viewport instead of pushing a 1400px column */
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--ink-border); padding: 8px 24px 20px;
    max-height: calc(100vh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  /* top-level links get >=44px tap targets */
  .main-nav > ul > li > a { display: block; padding: 12px 0; font-size: 1.05rem; min-height: 44px; }
  .main-nav .has-menu { border-bottom: 1px solid #eee; }
  .menu { position: static; display: flex; flex-direction: column; gap: 2px;
    border: 0; box-shadow: none; padding: 0 0 10px 6px; }
  .menu-col { min-width: 0; margin-bottom: 6px; }
  .menu-col h5 { margin: 8px 0 4px; }
  /* shrink mega-menu icons + give links real tap height */
  .menu-col a { padding: 9px 0; min-height: 44px; font-size: .98rem; gap: 12px; }
  .menu-col a img.mi { width: 30px; height: 30px; flex: 0 0 30px; margin: 0; }
  .main-nav .has-menu > a::after { content: ""; }
  .nav-toggle { display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; font-size: 1.5rem; }
  /* keep the VI/EN language switcher reachable on mobile; only hide "Talk to us" */
  .nav-cta { gap: 8px; flex-shrink: 0; }
  .nav-cta a:nth-child(2) { display: none; }
  .nav-cta .btn { padding: 11px 14px; letter-spacing: 1px; }
  .nav-cta a[lang="vi"], .nav-cta a[href="/index.html"] { padding: 11px 12px; }
  .statline { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* Prose tables (e.g. the tax-calendar 3-col table) can't shrink below their
     content min-width on a 360px phone. Make them horizontally scrollable
     instead of pushing the whole page wide. Standard responsive-table pattern;
     CSS-only so it mirrors to vi/ automatically. */
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cellgrid-3, .cellgrid-4, .cellgrid-2, .price-grid, .people, .form-grid { grid-template-columns: 1fr; }
  .svc-tabbar { width: 100%; }
  .svc-tabbar label { flex: 1 1 auto; text-align: center; padding: 13px 16px; font-size: .72rem; }
  .logo img { height: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .inner { padding: 56px var(--pad); }
  .statline { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .col { border-bottom: 1px solid var(--ink-border); }
  .band-sticker { width: 64px; height: 64px; top: 8px; }
  .hand-doodle { width: 120px; }
}
/* Very small phones (<=375px, e.g. 360px Galaxy/SE): the header primary CTA
   overflows the column (the nav's fixed content needs ~372px; EN clips +2px,
   the wider VI "Bắt đầu ngay" +20px). The drawer carries full nav and every
   page has in-body CTAs, so drop the header button at these widths only —
   it stays visible at 390 where it fits. Mirrors the existing >=960 hiding of
   the "Talk to us" link. CSS-only, no markup change, so no vi/ mirror needed. */
@media (max-width: 375px) {
  .nav-cta a.btn-primary { display: none; }
  .nav { gap: 10px; }
}
