/* =====================================================================
   AXURE — design system v3  (light-first, follows OS dark mode)
   Brand: green #8DC540 · blue #03ACED (from the logo)  ·  ink #0B1220
   Type: Bricolage Grotesque (display) · Geist (UI/body) · Geist Mono (serials)
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  /* brand (fixed) */
  --green: #8DC540;
  --blue: #03ACED;
  --grad: linear-gradient(90deg, var(--green), var(--blue));

  /* light theme */
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --sunken: #EDF0F4;
  --ink: #0B1220;
  --ink-2: #334055;
  --muted: #5A6577;
  --line: rgb(11 18 32 / .09);
  --line-2: rgb(11 18 32 / .16);
  --green-ink: #4A7A12;   /* AA on paper */
  --blue-ink: #02709F;    /* AA on paper */
  --danger: #B42318;
  --warn: #9A5B00;
  --btn-bg: #0B1220;
  --btn-fg: #FFFFFF;
  --band: #0B1220;        /* the dark band stays dark in both themes */
  --band-ink: #EAF0F7;
  --band-muted: #93A0B4;

  --sh-1: 0 1px 0 rgb(11 18 32 / .03), 0 1px 2px rgb(11 18 32 / .06);
  --sh-2: 0 1px 2px rgb(11 18 32 / .05), 0 14px 34px -14px rgb(11 18 32 / .22);
  --sh-3: 0 2px 4px rgb(11 18 32 / .05), 0 30px 60px -24px rgb(11 18 32 / .30);

  /* radius scale — varied on purpose */
  --r-xs: 6px; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* type */
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --ui: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-label: 13px; --fs-small: 15px; --fs-body: 17px; --fs-lead: 20px;
  --fs-h3: 22px; --fs-h2: clamp(30px, 3.6vw, 46px); --fs-display: clamp(42px, 6.2vw, 84px);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --max: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #070B14;
    --surface: #0D1422;
    --sunken: #0A111D;
    --ink: #EAF0F7;
    --ink-2: #BAC5D4;
    --muted: #8A97AB;
    --line: rgb(255 255 255 / .08);
    --line-2: rgb(255 255 255 / .15);
    --green-ink: #A6D86A;
    --blue-ink: #5CCBF6;
    --danger: #FF8A80;
    --warn: #F5B942;
    --btn-bg: #F4F7FB;
    --btn-fg: #0B1220;
    --band: #0D1422;
    --sh-1: 0 1px 0 rgb(0 0 0 / .3);
    --sh-2: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -14px rgb(0 0 0 / .7);
    --sh-3: 0 2px 4px rgb(0 0 0 / .4), 0 30px 60px -24px rgb(0 0 0 / .8);
  }
}

/* ---------- 2. Base + mobile-native baseline ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--ui);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.04; letter-spacing: -0.028em; margin: 0 0 .5em; text-wrap: balance; }
h3 { font-family: var(--ui); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
button, a, [role="button"], label, summary { touch-action: manipulation; }
button, [role="button"], .chip, .btn { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in oklab, var(--blue) 30%, transparent); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); } .dim { color: var(--muted); opacity: .85; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; margin: -1px; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 var(--fs-label)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- 3. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
  padding-top: env(safe-area-inset-top);
  view-transition-name: site-nav;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--display); letter-spacing: .07em; }
.brand img { width: 28px; height: 28px; }
.brand small { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); margin-left: 4px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: var(--fs-small); transition: color 150ms ease, background-color 150ms ease; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; background: var(--grad); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); place-items: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); background: var(--sunken); }
}
@media (max-width: 880px) {
  .menu-btn { display: grid; order: 3; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .hide-sm { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-links { display: none; position: absolute; inset: calc(64px + env(safe-area-inset-top)) 0 auto 0; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: var(--fs-body); }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  font: 550 var(--fs-small)/1 var(--ui); letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--sh-1); }
.btn-ghost, .btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover, .btn-outline:hover { background: var(--sunken); border-color: var(--line-2); }
  .btn-primary:hover { box-shadow: var(--sh-2); }
  .btn:hover svg, .link-arrow:hover svg { transform: translateX(3px); }
}

/* The quote button — the one "sexy" CTA. Ink pill + live brand ring + magnetic pull. */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn-quote {
  --pad: 26px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 var(--pad); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px/1 var(--ui); letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(11 18 32 / .2), 0 18px 40px -16px color-mix(in oklab, var(--blue) 55%, transparent);
  transition: box-shadow 250ms var(--ease-out);
  will-change: transform;
}
.btn-quote::before {           /* gradient ring */
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ring), var(--green), var(--blue), var(--green) 60%, var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-quote__inner { display: inline-flex; align-items: center; gap: 10px; transition: transform 160ms var(--ease-out); }
.btn-quote__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 30%, transparent); }
.btn-quote svg { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.btn-quote:active .btn-quote__inner { transform: scale(0.97); }
.btn-quote.sm { min-height: 40px; --pad: 16px; font-size: 14px; box-shadow: var(--sh-1); }
.btn-quote.sm .btn-quote__dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-quote:hover { box-shadow: 0 1px 2px rgb(11 18 32 / .2), 0 24px 50px -16px color-mix(in oklab, var(--blue) 70%, transparent); }
  .btn-quote:hover svg { transform: translateX(4px); }
  @media (prefers-reduced-motion: no-preference) {
    .btn-quote:hover::before, .btn-quote:focus-visible::before { animation: ring-spin 2.4s linear infinite; }
  }
}
@keyframes ring-spin { to { --ring: 360deg; } }

/* Mobile floating quote bar (coarse pointers only) */
.quote-dock {
  position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px; z-index: 45;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: var(--sh-3);
  translate: 0 140%; transition: translate 300ms var(--ease-out);
}
.quote-dock span { font-size: 14px; color: var(--ink-2); }
.quote-dock .btn-quote { min-height: 44px; --pad: 18px; font-size: 15px; }
.quote-dock.show { translate: 0 0; }
@media (pointer: coarse) and (max-width: 760px) { .quote-dock { display: flex; } }

/* ---------- 5. Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 920px); display: flex; align-items: center; padding: clamp(96px, 14vh, 150px) 0 clamp(72px, 10vh, 110px); overflow: clip; }
.hero-art {
  position: absolute; inset: 0 0 0 38%; z-index: -1;
  background: url('/img/hero-light.webp') left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
@media (prefers-color-scheme: dark) { .hero-art { background-image: url('/img/hero-dark.webp'); } }
.hero-copy { max-width: 900px; }
.hero h1 { font-size: var(--fs-display); font-weight: 680; letter-spacing: -0.035em; line-height: .98; margin: 22px 0 26px; }
.hero h1 .route-word { position: relative; display: inline-block; white-space: nowrap; }
.route-underline { position: absolute; left: 0; right: 0; bottom: -0.16em; height: .26em; width: 100%; overflow: visible; }
.route-underline path { fill: none; stroke: url(#routeGrad); stroke-width: 5; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.hero .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 38px; }
.hero-trust { margin-top: 30px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge-new { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: 14px; color: var(--ink-2); }
.badge-new b { font: 600 12px/1 var(--mono); letter-spacing: .06em; padding: 5px 9px; border-radius: var(--r-pill); color: #fff; background: var(--ink); }
@media (prefers-color-scheme: dark) { .badge-new b { color: var(--paper); } }
@media (hover: hover) and (pointer: fine) { .badge-new:hover { border-color: var(--line-2); } }
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-start; padding-top: 48px; padding-bottom: 300px; }
  .hero-art { inset: auto -10% 0 -10%; height: 330px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); background-position: 30% center; }
}

/* hero entrance (load) — one stagger, 60ms */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] { animation: enter 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
  .hero-art { animation: art-in 1100ms var(--ease-out) both; }
  .route-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1000ms var(--ease-in-out) 520ms forwards; }
}
@keyframes enter { from { opacity: 0; translate: 0 18px; filter: blur(4px); } }
@keyframes art-in { from { opacity: 0; scale: 1.04; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 6. Sections ---------- */
section { padding-block: clamp(80px, 11vw, 150px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; margin: 0; }

/* sector strip */
.sectors { border-block: 1px solid var(--line); }
.sectors ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sectors li { padding: 26px 22px; border-inline-start: 1px solid var(--line); }
.sectors li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.sectors strong { display: block; font: 650 34px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sectors span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .sectors ul { grid-template-columns: 1fr 1fr; } .sectors li { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; } .sectors li:nth-child(-n+2) { border-top: 0; } }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 14px/1 var(--ui); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip small { font: 500 12px var(--mono); opacity: .6; margin-left: 4px; }
@media (hover: hover) and (pointer: fine) { .chip:hover { color: var(--ink); border-color: var(--ink-2); } .chip[aria-pressed="true"]:hover { color: var(--paper); } }

/* suite index — rows, not a card grid */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.index-row a {
  position: relative; display: grid; align-items: center; gap: 20px;
  grid-template-columns: 44px minmax(180px, 1.1fr) minmax(0, 2fr) 120px 88px 24px;
  padding: 18px 12px; border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}
.index-row a::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--grad); clip-path: inset(0 100% 0 0); transition: clip-path 380ms var(--ease-out); }
.index-row .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); }
.index-row .ico svg { width: 22px; height: 22px; }
.index-row .name { font: 600 18px/1.25 var(--ui); letter-spacing: -0.012em; }
.index-row .tag { color: var(--ink-2); font-size: var(--fs-small); }
.index-row .cat { font: 500 13px var(--mono); color: var(--muted); }
.index-row .go { color: var(--muted); transition: transform 200ms var(--ease-out), color 150ms ease; }
.index-row .go svg { width: 18px; height: 18px; }
.index-row[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .index-row a:hover { background: var(--surface); }
  .index-row a:hover::before { clip-path: inset(0 0 0 0); }
  .index-row a:hover .go { transform: translateX(4px); color: var(--ink); }
}
@media (max-width: 860px) {
  .index-row a { grid-template-columns: 40px 1fr 20px; gap: 4px 14px; padding: 16px 0; }
  .index-row .ico { grid-row: span 2; width: 40px; height: 40px; }
  .index-row .tag { grid-column: 2; font-size: 14px; }
  .index-row .cat, .index-row .status { display: none; }
  .index-row .go { grid-row: 1 / span 2; grid-column: 3; }
}

/* status pill */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 500 12.5px/1.5 var(--ui); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live, .badge.paid, .badge.active, .badge.valid, .badge.won { color: var(--green-ink); border-color: color-mix(in oklab, var(--green) 40%, transparent); }
.badge.beta, .badge.pending, .badge.past_due, .badge.new, .badge.contacted { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 35%, transparent); }
.badge.soon, .badge.quoted { color: var(--blue-ink); border-color: color-mix(in oklab, var(--blue) 40%, transparent); }
.badge.failed, .badge.cancelled, .badge.suspended, .badge.revoked, .badge.expired, .badge.lost, .badge.invalid { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 35%, transparent); }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split h2 { font-size: var(--fs-h2); }
.split p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* deployment mini component */
.deploy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 8px; }
.deploy-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 18px; border-radius: var(--r-md); }
.deploy-opt + .deploy-opt { border-top: 1px solid var(--line); border-radius: 0; }
.deploy-opt.on { background: var(--sunken); border-radius: var(--r-md); border-top-color: transparent; }
.deploy-opt.on + .deploy-opt { border-top-color: transparent; }
.deploy-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 2px; }
.deploy-opt.on .radio { border: 6px solid var(--ink); }
.deploy-opt b { display: block; font-weight: 600; margin-bottom: 2px; }
.deploy-opt span { color: var(--muted); font-size: 14.5px; }
.deploy-opt em { font: normal 500 12px var(--mono); color: var(--muted); }

/* dark band (licensing) */
.band { background: var(--band); color: var(--band-ink); border-radius: clamp(0px, 3vw, 32px); margin-inline: clamp(0px, 2vw, 24px); overflow: clip; position: relative; }
.band .muted, .band p { color: var(--band-muted); }
.band h2 { color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.band-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--band-ink); }
.facts svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.facts small { display: block; color: var(--band-muted); font-size: 14.5px; }
.band .link-arrow { color: var(--band-ink); }

/* licence specimen (real component, also used on licence site) */
.licence-card {
  position: relative; border-radius: var(--r-lg); padding: 26px;
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
  border: 1px solid rgb(255 255 255 / .1); color: #EAF0F7;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
}
.licence-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.licence-card header img { width: 30px; height: 30px; }
.licence-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0 0 22px; font-size: 14.5px; }
.licence-card dt { color: #8592A6; }
.licence-card dd { margin: 0; font-weight: 500; }
.licence-key { font: 400 12.5px/1.55 var(--mono); word-break: break-all; padding: 14px; border-radius: var(--r-sm); background: rgb(0 0 0 / .35); color: #93A0B4; }
.licence-key b { color: var(--green); font-weight: 400; }
.licence-key i { color: var(--blue); font-style: normal; }
.licence-card .seal { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono); color: var(--green); }
.licence-card .seal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(141 197 64 / .18); }

/* steps — real ordered sequence, joined by a route line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps .marker { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.steps .marker b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--mono); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.steps .marker::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0 / 8px 2px repeat-x; }
.steps li:last-child .marker::after { display: none; }
.steps h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; max-width: 32ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 34px; } .steps .marker::after { display: none; } }

/* final CTA */
.final { text-align: left; }
.final-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 36px; align-items: end; padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line-2); }
.final h2 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -0.035em; margin: 0; max-width: 14ch; }
.final p { margin: 18px 0 0; color: var(--ink-2); }
@media (max-width: 760px) { .final-inner { grid-template-columns: 1fr; } }

/* ---------- 7. App detail ---------- */
.app-hero { padding-block: clamp(56px, 8vw, 100px) clamp(40px, 5vw, 60px); }
.app-hero .crumb { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.app-hero .crumb svg { width: 14px; height: 14px; rotate: 180deg; }
.app-hero .ico { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; margin: 34px 0 22px; color: var(--accent); background: color-mix(in oklab, var(--accent) 13%, transparent); }
.app-hero .ico svg { width: 32px; height: 32px; }
.app-hero h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 18px; }
.app-hero .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 56ch; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); }
.feat-grid li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.feat-grid svg { width: 20px; height: 20px; color: var(--green-ink); margin-top: 3px; }
@media (max-width: 700px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- 8. Forms / panels (quote, pay, checkout, status) ---------- */
.page-head { padding-block: clamp(56px, 8vw, 96px) 28px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 72px); }
.page-head p { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--sh-2); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-block: 28px clamp(80px, 10vw, 120px); }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label, .legend { display: block; font: 500 14.5px/1.3 var(--ui); margin-bottom: 8px; color: var(--ink); }
.field .hint, .hint { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.req { color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font: inherit; font-size: max(1rem, 1em);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus { outline: 0; border-color: var(--blue-ink); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue) 18%, transparent); }
.input:user-invalid, .input[aria-invalid="true"] { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; font: 500 14.5px/1.3 var(--ui); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-size: 15px; transition: border-color 150ms ease, background-color 150ms ease; }
.opt input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--sunken); }
.opt:has(input:focus-visible) { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.methods-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .methods, .methods-2 { grid-template-columns: 1fr; } }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; }
.method .box { display: flex; flex-direction: column; gap: 4px; padding: 16px; height: 100%; border-radius: var(--r-md); border: 1px solid var(--line-2); transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
.method .box strong { font-weight: 600; }
.method .box span { font-size: 13.5px; color: var(--muted); }
.method input:checked + .box { border-color: var(--ink); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--ink); }
.method input:focus-visible + .box { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.method input:disabled + .box { opacity: .45; cursor: not-allowed; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); margin: 4px 0 22px; }
.check input { margin-top: 4px; accent-color: var(--ink); width: 17px; height: 17px; }
.err { color: var(--danger); font-size: 13.5px; margin-top: 6px; }
.alert { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 15px; border: 1px solid; }
.alert.bad { color: var(--danger); background: color-mix(in oklab, var(--danger) 7%, transparent); border-color: color-mix(in oklab, var(--danger) 30%, transparent); }
.alert.good { color: var(--green-ink); background: color-mix(in oklab, var(--green) 9%, transparent); border-color: color-mix(in oklab, var(--green) 35%, transparent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary h3 { font-size: var(--fs-h3); }
.summary .line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font: 650 24px var(--display); font-variant-numeric: tabular-nums; }
.secure { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.secure svg { width: 16px; height: 16px; color: var(--green-ink); flex: none; }
.next-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15px; color: var(--ink-2); }
.next-steps li::before { counter-increment: n; content: counter(n); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); border: 1px solid var(--line-2); color: var(--ink); }
.next-steps b { color: var(--ink); display: block; font-weight: 600; }

/* status */
.status-wrap { max-width: 580px; margin: clamp(48px, 8vw, 88px) auto clamp(80px, 10vw, 120px); text-align: center; }
.status-wrap h1 { font-size: clamp(32px, 4vw, 44px); }
.orb { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--green), var(--blue), transparent 72%); -webkit-mask: radial-gradient(circle, transparent 50px, #000 51px); mask: radial-gradient(circle, transparent 50px, #000 51px); }
@media (prefers-reduced-motion: no-preference) { .orb::before { animation: spin 1.1s linear infinite; } }
.orb svg { width: 42px; height: 42px; }
.orb.ok::before { animation: none; background: var(--green); }
.orb.bad::before { animation: none; background: var(--danger); }
@keyframes spin { to { rotate: 360deg; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunken); }
td { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.stat.primary { background: color-mix(in oklab, var(--blue) 7%, var(--surface)); border-color: color-mix(in oklab, var(--blue) 25%, transparent); }
.stat .k { color: var(--muted); font-size: 13.5px; }
.stat .v { font: 650 30px/1.1 var(--display); letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink-2); padding: 0 12px; }
.pager .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 9. Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 32px; }
footer.site h4 { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
footer.site a { display: block; padding: 5px 0; color: var(--ink-2); }
footer.site a.brand { display: inline-flex; color: var(--ink); }
footer.site a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* PWA install prompt (only shown when the browser says it can install) */
.install { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-3); translate: -50% 160%; transition: translate 320ms var(--ease-out); max-width: calc(100% - 24px); }
.install.show { translate: -50% 0; }
.install img { width: 36px; height: 36px; border-radius: 9px; }
.install strong { font-size: 14.5px; display: block; }
.install small { color: var(--muted); font-size: 13px; }
.install .x { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; border-radius: 8px; }

/* ---------- 10. Scroll fade (native view timeline, IO fallback) ---------- */
@keyframes reveal { from { opacity: 0; translate: 0 28px; } }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .reveal-stagger > * { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .js-reveal .reveal, .js-reveal .reveal-stagger > * { opacity: 0; translate: 0 28px; transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out); }
  .js-reveal .reveal.in, .js-reveal .reveal-stagger > .in { opacity: 1; translate: none; }
}

/* ---------- 11. Cross-document view transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 180ms ease-out both vt-out; }
  ::view-transition-new(root) { animation: 260ms var(--ease-out) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 10px; } }

/* ---------- 12. Admin (shared tokens) ---------- */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.side { border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100dvh; background: var(--sunken); overflow-y: auto; }
.side .brand { margin: 0 10px 26px; }
.side .group { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 12px 8px; }
.side a.nav-i, .side button.nav-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); font: 500 14.5px var(--ui); border: 0; background: none; cursor: pointer; text-align: left; }
.side .nav-i svg { width: 18px; height: 18px; flex: none; }
.side .nav-i.on { background: color-mix(in oklab, var(--blue) 12%, transparent); color: var(--ink); box-shadow: inset 2px 0 0 var(--blue); }
.side .nav-i .count { margin-left: auto; font: 500 12px var(--mono); padding: 1px 7px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .side .nav-i:hover { background: var(--surface); color: var(--ink); } }
.admin main { padding: 30px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 30px; margin: 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.chart-bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart-bars .b i { display: block; width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: color-mix(in oklab, var(--blue) 70%, transparent); min-height: 2px; }
.chart-bars .b small { font: 500 11px var(--mono); color: var(--muted); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 880px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 2px; padding: 12px; }
  .side .brand { width: 100%; margin-bottom: 8px; }
  .side .group { display: none; }
  .side a.nav-i, .side button.nav-i { width: auto; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; }
}

/* ---------- Admin: payment settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: 1fr; } }
.set-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.set-head h2 { font: 600 19px/1.3 var(--ui); letter-spacing: -0.01em; margin: 0 0 4px; }
.set-head p { margin: 0; font-size: 14.5px; }
.secret-row { display: flex; gap: 8px; align-items: center; }
.secret-row .input { flex: 1; }
.secret-row .btn { flex: none; min-height: 50px; border-radius: var(--r-sm); }
.copy-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sunken); margin-bottom: 14px; font-size: 14px; }
.copy-row code { font-size: 13px; overflow-wrap: anywhere; }
.set-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; }
@media (max-width: 600px) { .copy-row { grid-template-columns: 1fr; } }
