/* ==========================================================================
   UniPOS — one stylesheet, no build step, no framework.
   --------------------------------------------------------------------------
   Ordered: tokens · reset · layout · type · controls · components · sections ·
   pricing · forms · utilities · motion · print.

   The identity comes from the product, not from a template: the deep green and
   amber are the xpos brand seeds, the surfaces are receipt paper, and the
   recurring device is a torn receipt edge drawn in CSS rather than shipped as
   an image. No web font is loaded — the system stack costs nothing, never
   flashes, and will still exist in a decade.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Brand. Deep green carries authority; amber is the single accent and is
     never used for text on a light surface — it fails contrast there, so
     --accent-ink exists for that case. */
  --brand: #1b5e20;
  --brand-strong: #103c15;
  --brand-tint: #e7f0e5;
  --brand-tint-strong: #cfe3cc;
  --accent: #f9a825;
  --accent-ink: #7a4e00;
  --accent-tint: #fdf1d8;

  /* Surfaces. Warm off-white, like the paper a bill is printed on. */
  --paper: #fbfaf5;
  --surface: #ffffff;
  --surface-sunk: #f3f2ec;
  --surface-dark: #10201a;
  --surface-dark-2: #16302340;

  /* Ink */
  --ink: #10201a;
  --ink-soft: #40544a;
  --ink-faint: #63756a;
  --ink-inverse: #f2f6ef;
  --ink-inverse-soft: #b9c9ba;

  --line: #dde3d8;
  --line-soft: #eaeee5;
  --line-dark: #2c4534;

  --danger: #ba1a1a;

  /* Space — a 4px rhythm. */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(16 32 26 / 6%), 0 2px 8px rgb(16 32 26 / 4%);
  --shadow: 0 2px 4px rgb(16 32 26 / 6%), 0 12px 28px rgb(16 32 26 / 8%);
  --shadow-lg: 0 4px 8px rgb(16 32 26 / 8%), 0 24px 56px rgb(16 32 26 / 12%);

  --wrap: 1180px;
  --prose: 68ch;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --step-display: clamp(2.35rem, 1.55rem + 3.3vw, 4.15rem);
  --step-h2: clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem);
  --step-h3: clamp(1.15rem, 1.06rem + 0.42vw, 1.4rem);
  --step-lead: clamp(1.1rem, 1.03rem + 0.36vw, 1.32rem);
  --step-body: 1.0625rem;
  --step-small: 0.9rem;
  --step-tiny: 0.8125rem;

  --ease: cubic-bezier(0.32, 0.72, 0.3, 1);

  /* The torn receipt edge, as a mask. Two repeating gradients cut a row of
     scallops out of the bottom of a block. Drawn rather than downloaded, so it
     inherits whatever colour the section already has. */
  --receipt-teeth: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8bd88c;
    --brand-strong: #a6f2a4;
    --brand-tint: #17301a;
    --brand-tint-strong: #1f4223;
    --accent: #f9a825;
    --accent-ink: #f2b760;
    --accent-tint: #33270e;

    --paper: #0d1310;
    --surface: #151d17;
    --surface-sunk: #101710;
    --surface-dark: #080d0a;

    --ink: #e6ebe4;
    --ink-soft: #a9b6a6;
    --ink-faint: #8b9a89;
    --ink-inverse: #eef3ec;
    --ink-inverse-soft: #b0c1b1;

    --line: #2a362b;
    --line-soft: #202a21;
    --line-dark: #24382a;

    --danger: #ffb4ab;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow: 0 2px 4px rgb(0 0 0 / 40%), 0 12px 28px rgb(0 0 0 / 45%);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 45%), 0 24px 56px rgb(0 0 0 / 55%);
  }
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background-color: var(--paper);
  /* A faint ledger grid. Two 1px lines at 32px, at 3% ink — visible as texture,
     invisible as pattern. */
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

@media (min-width: 60rem) {
  body {
    font-size: 1.125rem;
  }
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Stronger than any component rule, so an element JavaScript has not yet enabled
   (the navigation toggle) can never flash into view. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s3);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-display);
  letter-spacing: -0.032em;
}

h2 {
  font-size: var(--step-h2);
  letter-spacing: -0.026em;
}

h3 {
  font-size: var(--step-h3);
}

h4 {
  font-size: 1.05rem;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 var(--s4);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

strong {
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s6) 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.section {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.section--tight {
  padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

.section--sunk {
  background: var(--surface-sunk);
  border-block: 1px solid var(--line-soft);
}

.section__head {
  max-width: var(--prose);
  margin-bottom: var(--s6);
}

/* A page heading is not a hero headline. At the display size a 68ch measure wraps
   an h1 to four enormous lines and pushes the content people came for off the
   first screen. */
.section__head h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem);
}

.section--flush-top {
  padding-top: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  font-size: var(--step-tiny);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  font-size: var(--step-lead);
  color: var(--ink-soft);
  max-width: var(--prose);
}

.grid {
  display: grid;
  gap: var(--s5);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
}

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split--wide-right {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .split--flip > :first-child {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   4. Controls
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--brand);
  --btn-ink: #fff;
  --btn-line: var(--brand);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--btn-line);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-line: var(--accent);
  --btn-ink: var(--surface-dark);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-ink: var(--brand);
  --btn-line: var(--brand);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-line: var(--line);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-ink: var(--ink-inverse);
  --btn-line: #ffffff59;
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.85rem 1.85rem;
  font-size: 1.06rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

/* Utilities rather than inline style attributes: the Content-Security-Policy this
   site ships with forbids inline styles, and a policy with an exception in it is
   not a policy. */
.btn-row--center {
  justify-content: center;
}

.btn-row--spaced {
  margin-top: var(--s6);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  padding-bottom: 1px;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.16s var(--ease);
}

.link-arrow:hover {
  border-bottom-color: var(--brand);
  text-decoration: none;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Skip link, header, navigation
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: var(--s4);
  top: var(--s4);
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: translateY(0);
}

.announce {
  background: var(--surface-dark);
  color: var(--ink-inverse);
  font-size: var(--step-small);
}

.announce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s2) var(--s4);
  padding: 0.7rem var(--s5);
  text-align: center;
}

.announce__text {
  margin: 0;
}

.announce__cta {
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
}

.announce__dismiss {
  position: absolute;
  right: var(--s3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-inverse-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.announce__dismiss:hover {
  background: #ffffff1f;
  color: #fff;
}

.announce:has(.announce__dismiss) {
  position: relative;
  padding-inline: 3rem;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
}

.brand b {
  font-weight: 750;
}

.brand i {
  font-style: normal;
  color: var(--brand);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Progressive enhancement: without JavaScript the navigation is simply a list
   and every link is reachable. site.js sets data-nav="collapsed", which is what
   turns the list into a disclosure — so the collapsed state can never strand a
   visitor whose scripts did not run. */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.masthead[data-nav] .nav-toggle {
  display: inline-flex;
}

.masthead[data-nav="collapsed"] .site-nav {
  display: none;
}

.masthead[data-nav="expanded"] .site-nav {
  flex-basis: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-bottom: var(--s3);
  border-top: 1px solid var(--line-soft);
}

.masthead[data-nav="expanded"] .site-nav li {
  border-bottom: 1px solid var(--line-soft);
}

.masthead[data-nav="expanded"] .site-nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 0;
}

.masthead[data-nav="expanded"] .site-nav .nav-cta {
  margin-top: var(--s3);
}

@media (min-width: 56rem) {
  .masthead[data-nav] .nav-toggle {
    display: none;
  }

  .masthead[data-nav="collapsed"] .site-nav,
  .masthead[data-nav="expanded"] .site-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--s2) var(--s5);
    padding-bottom: 0;
    border-top: 0;
  }

  .masthead[data-nav="expanded"] .site-nav li {
    border-bottom: 0;
  }

  .masthead[data-nav="expanded"] .site-nav a {
    display: inline;
    padding: 0.4rem 0;
  }

  .masthead[data-nav="expanded"] .site-nav .nav-cta {
    margin-top: 0;
  }
}

/* `.site-nav a` outranks `.btn` on specificity, so without this the navigation's
   call to action inherits muted link colour and loses its contrast on the amber
   fill. Restating the button's own ink is the fix. */
.site-nav .nav-cta .btn {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  color: var(--btn-ink);
  border-bottom-color: var(--btn-line);
}

/* --------------------------------------------------------------------------
   6. The receipt edge — the site's signature
   -------------------------------------------------------------------------- */

.torn {
  position: relative;
  padding-bottom: calc(var(--s7) + var(--receipt-teeth));
  -webkit-mask-image:
    linear-gradient(#000 0 0),
    radial-gradient(circle at 50% 0, transparent 51%, #000 52%);
  -webkit-mask-size: 100% calc(100% - var(--receipt-teeth)), var(--receipt-teeth) var(--receipt-teeth);
  -webkit-mask-position: top left, bottom left;
  -webkit-mask-repeat: no-repeat, repeat-x;
  mask-image:
    linear-gradient(#000 0 0),
    radial-gradient(circle at 50% 0, transparent 51%, #000 52%);
  mask-size: 100% calc(100% - var(--receipt-teeth)), var(--receipt-teeth) var(--receipt-teeth);
  mask-position: top left, bottom left;
  mask-repeat: no-repeat, repeat-x;
}

/* A dashed rule with a centred glyph, the way a bill separates its totals. */
.rule {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-block: var(--s6);
  color: var(--ink-faint);
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--line);
}

/* --------------------------------------------------------------------------
   7. Cards and content blocks
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card > :last-child {
  margin-bottom: 0;
}

.card--link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.card--link:hover {
  transform: translateY(-3px);
  border-color: var(--brand-tint-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.card h3 {
  margin-bottom: var(--s2);
}

.card p {
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s4);
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand);
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card__more {
  margin-top: auto;
  padding-top: var(--s4);
  font-weight: 650;
  font-size: var(--step-small);
  color: var(--brand);
}

.card--link:hover .card__more::after {
  transform: translateX(3px);
}

.card__more::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.16s var(--ease);
}

/* A capability entry: label, honest readiness, one line of plain explanation. */
.caps {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.cap {
  padding: var(--s4) 0 var(--s4) var(--s5);
  border-left: 3px solid var(--brand-tint-strong);
}

.cap h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: var(--s1);
  font-size: 1.03rem;
}

.cap p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.tag {
  display: inline-block;
  padding: 0.14em 0.6em;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 0.12em;
}

.tag--soon {
  background: var(--surface-sunk);
  color: var(--ink-faint);
}

.ticks {
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--s2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.1rem;
  height: 0.6rem;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.stat-row li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-row li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(60rem 32rem at 82% -8%, var(--brand-tint) 0%, transparent 62%),
    radial-gradient(40rem 26rem at 4% 4%, var(--accent-tint) 0%, transparent 58%);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin-bottom: var(--s4);
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  /* An amber rule under the phrase, drawn as a background so it wraps with the
     text instead of clipping at a line break. Kept to a stroke rather than a
     block: a translucent slab behind the words muddies them on a dark surface. */
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--accent) 70%, transparent) 0.11em,
    transparent 0.11em
  );
  padding-bottom: 0.05em;
}

.hero__copy {
  font-size: var(--step-lead);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: var(--s5);
}

.hero__note {
  font-size: var(--step-small);
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   9. Product illustrations
   -------------------------------------------------------------------------- */

.figure {
  margin: 0;
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.figure figcaption {
  margin-top: var(--s3);
  font-size: var(--step-tiny);
  color: var(--ink-faint);
  text-align: center;
}

.figure--framed svg {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   10. Dark band — the offline story
   -------------------------------------------------------------------------- */

.band-dark {
  background: var(--surface-dark);
  color: var(--ink-inverse);
  background-image:
    radial-gradient(46rem 26rem at 88% 0%, #1b5e2059 0%, transparent 60%),
    radial-gradient(34rem 22rem at 0% 100%, #f9a8251f 0%, transparent 62%);
}

.band-dark h2,
.band-dark h3 {
  color: #fff;
}

.band-dark p,
.band-dark li {
  color: var(--ink-inverse-soft);
}

.band-dark .eyebrow {
  color: var(--accent);
}

.band-dark .lead {
  color: var(--ink-inverse);
}

.band-dark a:not(.btn) {
  color: var(--accent);
}

.band-dark .ticks li::before {
  border-color: var(--accent);
}

.band-dark .cap {
  border-left-color: #ffffff2e;
}

.band-dark .stat-row {
  color: var(--ink-inverse-soft);
}

/* --------------------------------------------------------------------------
   11. Pricing — plans, period switch, comparison
   -------------------------------------------------------------------------- */

/* The billing-period switch is two radio inputs and two labels. The inputs sit
   outside the visible control because a sibling combinator has to reach the
   cards from them: `#period-monthly:checked ~ .plans` is what actually swaps the
   prices. No JavaScript is involved, so the control works in a page whose
   scripts failed, and it cannot fall out of step with the data. */
.period-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.period-switch {
  display: inline-flex;
  gap: var(--s1);
  margin: 0 auto var(--s6);
  padding: var(--s1);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.pricing-block {
  text-align: center;
}

.plans {
  text-align: left;
}

.period-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 2.6rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
  /* Kept on one line: "Billed / yearly" wrapping inside a pill reads as a fault
     rather than a control. On a narrow screen the pill gives up padding instead. */
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

@media (max-width: 27rem) {
  .period-switch {
    display: flex;
    width: 100%;
  }

  .period-switch__option {
    flex: 1;
    padding-inline: 0.6rem;
    font-size: 0.85rem;
  }

  .period-switch__hint {
    font-size: 0.65rem;
  }
}

.period-switch__hint {
  padding: 0.1em 0.5em;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--surface-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#period-annual:checked ~ .period-switch label[for="period-annual"],
#period-monthly:checked ~ .period-switch label[for="period-monthly"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

#period-annual:focus-visible ~ .period-switch label[for="period-annual"],
#period-monthly:focus-visible ~ .period-switch label[for="period-monthly"] {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

#period-annual:checked ~ .plans [data-period="monthly"],
#period-monthly:checked ~ .plans [data-period="annual"] {
  display: none;
}

.plans {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr));
  /* Stretched, not start-aligned: cards of equal height let the support line sit
     on one baseline across the row, which is what `.plan__support`'s auto top
     margin is for. */
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.plan.is-recommended {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow);
}

/* A quoted plan takes the full row under the priced ones. Left as a fourth column it
   either squeezes the three that carry numbers or sits orphaned in a second row.
   Its blocks are then dealt into three columns so the band fills evenly instead of
   leaving a hole under a short first column. */
.plan--quoted {
  grid-column: 1 / -1;
  background: var(--surface-sunk);
}

@media (min-width: 56rem) {
  .plan--quoted {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    column-gap: var(--s6);
    align-items: start;
  }

  /* Every block is placed explicitly. Left to auto-placement, grid keeps a cursor that
     only moves forward, so the second and third columns would start below wherever the
     first column had reached — the stagger reads as a layout fault. Rows that have no
     block collapse to nothing, so a plan missing one of these degrades cleanly. */
  .plan--quoted > .plan__name { grid-area: 1 / 1; }
  .plan--quoted > .plan__badges { grid-area: 2 / 1; }
  .plan--quoted > .plan__audience { grid-area: 3 / 1; }
  .plan--quoted > .plan__prices { grid-area: 4 / 1; }
  .plan--quoted > .plan__trial { grid-area: 5 / 1; }
  .plan--quoted > .plan__setup { grid-area: 6 / 1; }
  .plan--quoted > .plan__cta { grid-area: 7 / 1; }

  .plan--quoted > .plan__summary { grid-area: 1 / 2 / 3 / 3; }
  .plan--quoted > .plan__limits { grid-area: 3 / 2 / 5 / 3; }

  .plan--quoted > .plan__features-title { grid-area: 1 / 3; }
  .plan--quoted > .plan__features { grid-area: 2 / 3 / 6 / 4; }
  .plan--quoted > .plan__support { grid-area: 6 / 3 / 8 / 4; }

  .plan--quoted > .plan__prices {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .plan--quoted > .plan__cta .btn {
    width: auto;
  }

  .plan--quoted > .plan__support {
    margin-top: var(--s4);
  }
}

.plan__name {
  margin-bottom: var(--s2);
  font-size: 1.35rem;
}

.plan__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s3);
}

.plan__badge,
.plan__availability,
.plan__offer {
  display: inline-block;
  padding: 0.16em 0.62em;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.plan__badge {
  background: var(--brand);
  color: #fff;
}

.plan__availability {
  background: var(--surface-sunk);
  color: var(--ink-faint);
  border: 1px solid var(--line);
}

.plan--quoted .plan__availability {
  background: var(--surface);
}

.plan__offer {
  background: var(--accent-tint);
  color: var(--accent-ink);
}

.plan__audience {
  margin-bottom: var(--s4);
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.plan__prices {
  margin-bottom: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 2px dashed var(--line);
}

.plan__price {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.15rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.plan__symbol {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan__figure {
  font-size: clamp(2.2rem, 1.9rem + 1.1vw, 2.85rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.plan__price--custom .plan__figure {
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.85rem);
  grid-column: 1 / -1;
}

.plan__basis,
.plan__term {
  grid-column: 1 / -1;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.plan__term {
  margin-top: 0.15rem;
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

.plan__trial,
.plan__setup {
  margin: 0 0 var(--s2);
  font-size: var(--step-small);
  font-weight: 650;
  color: var(--brand);
}

.plan__setup {
  color: var(--ink-faint);
  font-weight: 500;
}

.plan__cta {
  margin: var(--s4) 0;
}

.plan__cta .btn {
  width: 100%;
}

.plan__summary {
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.plan__limits {
  margin: 0 0 var(--s4);
  padding: var(--s3) 0;
  list-style: none;
  border-block: 1px solid var(--line-soft);
  font-size: var(--step-small);
}

.plan__limits li + li {
  margin-top: var(--s1);
}

.plan__limit-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plan__note {
  color: var(--ink-faint);
  font-size: var(--step-tiny);
}

.plan__features-title {
  margin-bottom: var(--s2);
  font-size: var(--step-tiny);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan__features {
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
  font-size: var(--step-small);
}

.plan__features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--s2);
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

.plan__support {
  margin: auto 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

/* Comparison table. On a narrow screen it scrolls sideways inside a focusable,
   labelled region — the honest answer for four columns of prices, and one an
   AT user and a keyboard user can both reach. */
.compare-scroll {
  overflow-x: auto;
  margin-bottom: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--step-small);
}

.compare th,
.compare td {
  padding: 0.7rem var(--s3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.compare thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  font-size: var(--step-tiny);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.compare thead th.is-recommended {
  color: var(--brand);
}

.compare tbody th[scope="row"] {
  font-weight: 550;
  min-width: 13rem;
}

.compare td {
  text-align: center;
  width: 7.5rem;
}

.compare__group th {
  background: var(--surface-sunk);
  font-size: var(--step-tiny);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.compare__desc {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

.compare__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--ink-faint);
}

.compare .tick {
  display: inline-block;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

.compare .is-no {
  color: var(--ink-faint);
}

.compare .is-planned {
  font-size: var(--step-tiny);
  color: var(--ink-faint);
  font-style: italic;
}

/* Offers */
.offers {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  margin: 0 0 var(--s5);
  padding: 0;
  list-style: none;
  text-align: left;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.offer__badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: var(--s3);
  padding: 0.22em 0.7em;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--surface-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.offer__headline {
  margin-bottom: var(--s2);
  font-size: 1.18rem;
}

.offer__desc {
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.offer__scope {
  margin-bottom: var(--s3);
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

.offer__terms {
  margin-top: auto;
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

.offer__terms summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink-soft);
}

.offer__terms p {
  margin: var(--s2) 0 0;
  font-size: var(--step-tiny);
}

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-tiny);
  color: var(--ink-faint);
  text-align: left;
  max-width: var(--prose);
}

.notes li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: var(--s1);
}

.notes li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0.15em;
}

/* Shown only if the runtime catalog cannot be used. The pre-rendered prices
   stay exactly as the build left them — a visitor sees valid pricing, and this
   says plainly that it may not be the newest. */
.catalog-fallback {
  display: none;
  gap: var(--s3);
  align-items: flex-start;
  margin-bottom: var(--s5);
  padding: var(--s4);
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: var(--step-small);
  text-align: left;
}

[data-catalog-status="stale"] .catalog-fallback {
  display: flex;
}

.catalog-fallback p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. FAQ, tables of plain content
   -------------------------------------------------------------------------- */

.faq {
  max-width: var(--prose);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) 0;
  font-size: 1.06rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > p,
.faq details > ul {
  margin: 0 0 var(--s4);
  padding-right: var(--s6);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--s4);
  max-width: 38rem;
}

.field {
  display: grid;
  gap: var(--s2);
}

.field label,
.choice-set legend {
  font-weight: 650;
  font-size: var(--step-small);
}

.field .hint {
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}

.choice-set {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-set legend {
  padding: 0;
  margin-bottom: var(--s2);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.choice:hover {
  border-color: var(--brand-tint-strong);
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.choice input {
  margin-top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brand);
  flex: none;
}

.choice span {
  display: block;
  font-weight: 650;
}

.choice small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: var(--step-tiny);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

.form__note {
  margin: 0;
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface-dark);
  color: var(--ink-inverse-soft);
  padding-block: var(--s7) var(--s5);
  font-size: var(--step-small);
}

.site-footer h2 {
  font-size: var(--step-tiny);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-inverse);
  margin-bottom: var(--s3);
}

.site-footer a {
  color: var(--ink-inverse-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: var(--s2);
}

.site-footer .brand {
  color: #fff;
  margin-bottom: var(--s3);
}

.site-footer .brand i {
  color: var(--accent);
}

.footer__grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  margin-bottom: var(--s6);
}

.footer__grid > :first-child {
  grid-column: 1 / -1;
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }

  .footer__grid > :first-child {
    grid-column: auto;
  }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  padding-top: var(--s5);
  border-top: 1px solid #ffffff1f;
  font-size: var(--step-tiny);
}

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.center {
  text-align: center;
}

.center .lead,
.center .notes {
  margin-inline: auto;
}

.prose {
  max-width: var(--prose);
}

.stack > * + * {
  margin-top: var(--s4);
}

.no-wrap {
  white-space: nowrap;
}

.breadcrumb {
  padding-block: var(--s4) 0;
  font-size: var(--step-tiny);
  color: var(--ink-faint);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--ink-faint);
}

/* The closing conversion band. */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  color: #ffffffdb;
  max-width: 48ch;
  margin-inline: auto;
}

.cta-band .btn-row {
  justify-content: center;
  margin-bottom: var(--s3);
}

.cta-band .btn--outline {
  --btn-ink: #fff;
  --btn-line: #ffffff6b;
}

.cta-band small {
  color: #ffffffb8;
  font-size: var(--step-tiny);
}

/* --------------------------------------------------------------------------
   16. Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   17. Print — a page someone hands to a colleague
   -------------------------------------------------------------------------- */

@media print {
  .masthead,
  .announce,
  .site-footer,
  .cta-band,
  .skip,
  .period-switch {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .plan,
  .offer,
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #999;
  }

  /* Print every billing period, since the interactive switch is gone. */
  .plans [data-period] {
    display: grid !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}
