/* SAMP ERP website — "Paper & Ink" look (2026-12-03).
   Loaded after site.css and theme.css. It re-sets the tokens and restyles every shared component,
   so all pages (home, inner pages, forms, account, payment, legal) take one look:
   warm paper canvas, deep ink panels with a soft lamp light, two-tone Archivo headlines,
   pill buttons, monochrome icons and hairline grids. Orange stays the one signal colour.
   Nothing here changes what a page says or does; hooks used by site.js and the audits are untouched. */

:root {
  --canvas: #f4f2ec;
  --paper: #ffffff;
  --paper-2: #efece4;
  --paper-3: #e6e2d8;
  --line: #e2ddd2;
  --line-2: #ebe7de;
  --ink: #111317;
  --ink-2: #2b2e35;
  --muted: #5f626a;
  --muted-2: #8e8f94;
  --tone: #9b9890;            /* second half of a two-tone headline, on paper */

  --ink-950: #07080b;
  --ink-900: #0b0d11;
  --ink-850: #101217;
  --ink-800: #15181e;
  --ink-700: #1f232b;

  --accent: #ff5b1f;
  --accent-2: #ff8a4c;
  --accent-text: #c03d0b;
  --accent-soft: #fdeee6;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: clamp(22px, 2.6vw, 38px);
  --shadow-s: 0 1px 2px rgba(17, 14, 6, .05);
  --shadow: 0 1px 2px rgba(17, 14, 6, .04), 0 18px 40px -18px rgba(17, 14, 6, .18);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, .10), 0 50px 100px -30px rgba(0, 0, 0, .45);
  --ring: 0 0 0 4px rgba(255, 91, 31, .2);
  --grid-line: rgba(17, 14, 6, .05);
  --panel-gap: clamp(8px, 1vw, 14px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url%28%23n%29'/%3E%3C/svg%3E");
}

body { background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #ffd6c2; color: var(--ink); }
a { color: var(--accent-text); }
.muted { color: var(--muted); }

/* ── Type ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-stretch: 100%; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.h-l { font-size: clamp(36px, 4.7vw, 66px); line-height: 1.0; letter-spacing: -0.045em; font-weight: 640; text-wrap: balance; }
.h-m { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.035em; font-weight: 640; text-wrap: balance; }
.serif, .dark .serif, .page-hero .serif, .x-hero .serif, .cta-band .serif, .avail-panel .serif, .avail-copy h2 .serif {
  font-family: var(--display); font-stretch: 100%; font-weight: inherit; letter-spacing: inherit; color: var(--tone); }
.dark .serif, .page-hero .serif, .cta-band .serif, .avail-panel .serif, .avail-copy h2 .serif, .x-docs .serif { color: rgba(255,255,255,.42); }
.lead { color: var(--muted); font-size: clamp(17.5px, 1.45vw, 20.5px); line-height: 1.6; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); gap: 9px; }
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dark .eyebrow, .page-hero .eyebrow { color: rgba(255,255,255,.6); }
.x-sec { gap: 10px; padding: 7px 13px 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55);
  font-size: 11.5px; letter-spacing: .14em; color: var(--ink-2); }
.x-sec::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dark .x-sec, .x-docs .x-sec, .x-hero .x-sec { color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.section-head h2, .x-split-head h2 { margin: 22px 0 18px; }
.section-head { margin-bottom: 64px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn { height: 50px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--font); letter-spacing: -0.005em; gap: 10px;
  transition: transform .25s var(--ease-out), background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease; }
.btn-primary { background: var(--accent); color: #170700; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 8px 20px -6px rgba(255,91,31,.55); }
.btn-primary:hover { background: #ff6b33; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 14px 30px -8px rgba(255,91,31,.65); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-light { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.42); }
.btn-wa { border-radius: 999px; }
.btn-sm { height: 40px; padding: 0 17px; font-size: 14.5px; border-radius: 999px; }
.link-arrow { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent-text); text-decoration: none; }

/* ── Header: one floating pill ─────────────────────────────────── */
.site-header .nav { max-width: calc(var(--wrap) + 24px); border-radius: 999px; padding: 0 8px 0 16px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(17,14,6,.08); box-shadow: 0 10px 30px -12px rgba(17,14,6,.18); }
.site-header.on-dark:not(.scrolled) .nav { background: rgba(14,16,21,.5); border-color: rgba(255,255,255,.09); }
.nav-links a { border-radius: 999px; font-weight: 550; color: var(--ink-2); }
.nav-links a { white-space: nowrap; }
/* seven menu items since the Android page (2026-12-06): a little tighter until the menu folds at 1080 px */
@media (min-width: 1081px) and (max-width: 1260px) { .nav-links { gap: 0; } .nav-links a { padding: 8px 9px; font-size: 14px; } }
.nav-links a[aria-current="page"] { box-shadow: none; border-radius: 999px; background: rgba(17,14,6,.06); color: var(--ink); }
.site-header.on-dark:not(.scrolled) .nav-links a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.site-header.on-dark:not(.scrolled) .nav-links a { color: rgba(255,255,255,.78); }
.site-header.on-dark:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav-cta .btn { height: 40px; }
.brand-name { letter-spacing: -0.01em; }
.x-progress { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ── Dark surfaces: ink, lamp light, grain ─────────────────────── */
.dark, .x-docs, .page-hero, .x-hero, .site-footer, .price-card.hl, .cta-band { --lamp: rgba(255, 128, 72, .16); }
.dark { background: var(--ink-950); color: #fff; }
.dark::before { background:
    radial-gradient(900px 520px at 85% -10%, var(--lamp), transparent 60%),
    radial-gradient(700px 480px at 0% 110%, rgba(255,255,255,.05), transparent 60%); }
.dark::after, .x-docs::after, .page-hero::after, .cta-band::after { content: ""; position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1; pointer-events: none; background-image: var(--noise); opacity: .045; mix-blend-mode: screen; display: block; }
/* Mid-page dark bands float as rounded panels on the paper. */
main > .section.dark, main > .x-docs, main > .x-drum {
  margin: 0 var(--panel-gap); border-radius: var(--radius-xl); }
main > .section.dark + .section, main > .x-docs + .section { padding-top: 128px; }
.dark h2, .dark h3, .x-docs h2 { color: #fff; }
.dark .lead, .x-docs .lead { color: rgba(255,255,255,.66); }

/* ── Inner page hero ───────────────────────────────────────────── */
.page-hero { background: var(--ink-950); padding: calc(var(--nav-h) + 96px) 0 88px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl); overflow: hidden; }
.page-hero::before { inset: 0; background-image:
    radial-gradient(1000px 520px at 78% -18%, rgba(255,128,72,.2), transparent 62%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
.page-hero h1 { font-size: clamp(40px, 5.8vw, 84px); line-height: .98; letter-spacing: -0.05em; font-weight: 640; max-width: 15em; text-wrap: balance; }
.page-hero .lead { color: rgba(255,255,255,.66); max-width: 640px; }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255,255,255,.5); }
.page-hero .crumbs a:first-child { color: var(--accent-2); }
.page-hero a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.page-hero .crumbs a { text-decoration: none; }
.page-hero .toc-pills a { border-radius: 999px; text-decoration: none; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.86); font-weight: 550; }
.page-hero .toc-pills a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.page-hero .avail-pill { border-radius: 999px; }
.page-hero .avail-pill .ap-item, .page-hero .avail-pill a.ap-item { text-decoration: none; }

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: 128px 0; }
.section-sm { padding: 80px 0; }
.section.tint, .tint { background: var(--paper-2); }
.x-split-head { margin-bottom: 64px; gap: 28px 72px; }

/* ── Cards, icons ───────────────────────────────────────────────── */
.card, .mini, .type-flow, .matrix-wrap, .form-card, .contact-item, .home-op, .acct-card, .step { border-radius: var(--radius-l); }
.card { background: var(--paper); border: 1px solid var(--line); box-shadow: none; padding: 30px; }
.card:hover { transform: translateY(-3px); border-color: #d3cdbf; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; letter-spacing: -0.02em; }
.card .list li::before { background: var(--accent); width: 5px; height: 5px; top: 10px; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--line); color: var(--ink); }
.icon-tile svg { width: 21px; height: 21px; }
.card:hover .icon-tile, .mini:hover .icon-tile { color: var(--accent-text); }
.dark .icon-tile, .x-docs .icon-tile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }
.c-indigo, .c-magenta, .c-amber, .c-green, .c-teal, .c-violet, .c-red, .c-sky, .c-slate { --c: var(--accent); }
.x-num { font-size: 11.5px; color: var(--muted-2); }
.tag, .price-card .tag { border-radius: 999px; font-size: 11.5px; padding: 5px 11px; background: var(--paper-2); color: var(--ink-2); letter-spacing: .1em; }
.callout { border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.callout.info { background: var(--paper); color: var(--ink-2); border-left: 3px solid var(--accent); }
.window { border-radius: 16px; border: 1px solid rgba(17,14,6,.12); box-shadow: var(--shadow-l); overflow: hidden; }
.window-bar { background: #f6f4ef; border-bottom: 1px solid var(--line); }

/* ticks: a fine orange tick in a ring */
.ticks { gap: 14px; }
.ticks li { padding-left: 32px; }
.ticks li::before, .x-docs .ticks li::before, .ticks.light li::before { top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background-color: transparent; border: 1px solid var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2470f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat; }
.ticks.light li::before, .x-docs .ticks li::before, .dark .ticks li::before { border-color: rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }

/* ═════════════════════════════ HOME: HERO ═════════════════════════════ */
.x-hero { background: var(--ink-950); border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 128px)) 0 clamp(72px, 8vw, 120px); }
.x-hero-grid { background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 20%, transparent 80%); }
.x-hero-glow { inset: -10% -10% auto; height: 110%;
  background: radial-gradient(760px 460px at 50% 6%, rgba(255,128,72,.24), transparent 64%),
              radial-gradient(900px 600px at 50% 62%, rgba(255,255,255,.05), transparent 64%); }
.x-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--noise); opacity: .05; mix-blend-mode: screen; }
.x-hero::after { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,255,255,.045), transparent 70%); }
.x-dim { display: none; }
.x-kicker { margin-bottom: 34px; padding: 8px 15px; color: rgba(255,255,255,.74); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); font-size: 11.5px; }
.x-title { font-size: clamp(50px, 8.4vw, 138px); line-height: .92; letter-spacing: -0.058em; font-weight: 660; font-stretch: 100%; }
.x-em { font-stretch: 100%; font-weight: 660; letter-spacing: -0.058em; color: var(--accent); padding-bottom: .06em; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .x-em, .x-em .x-w > span { background: linear-gradient(100deg, #ff5b1f 10%, #ff9a66 55%, #ffd2b8 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.x-hero-sub { margin-top: 36px; }
.x-lead { color: rgba(255,255,255,.66); font-size: clamp(17px, 1.45vw, 20px); }
.x-hero-actions { margin-top: 34px; }
.x-promises li { color: rgba(255,255,255,.56); font-size: 13.5px; }
.x-promises svg { color: var(--accent-2); }

/* the product window: tilts flat as it comes up and the screen settles (motion.js sets --tx, --ts, --u) */
.x-stage-wrap { margin-top: clamp(56px, 7vw, 96px); }
.x-stage { max-width: 1200px; }
.x-studio { --u: 1; }
/* the screen inside settles from a slight zoom as the window flattens (nothing is ever clipped off) */
.x-studio .studio-panel { overflow: hidden; }
.x-studio .studio-panel img { transform: scale(calc(1 + (1 - var(--u)) * .07)); transform-origin: 50% 0; transition: transform .1s linear; }
.home-studio.x-studio { border-radius: 16px; background: #0d0f14; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 60px 140px -20px rgba(0,0,0,.75), 0 0 160px -40px rgba(255,110,50,.35); }
.x-studio .studio-titlebar { background: #111319; border-bottom-color: rgba(255,255,255,.06); }
.x-lights i { width: 11px; height: 11px; }
.x-lights i:nth-child(1), .x-lights i:nth-child(2), .x-lights i:nth-child(3) { background: #2b2f38; }
.x-studio .studio-titlebar a { color: rgba(255,255,255,.6); text-decoration: none; }
.x-studio .studio-titlebar a:hover { color: #fff; }
.x-studio .studio-tabs { background: #0f1116; border-bottom-color: rgba(255,255,255,.06); padding: 8px 12px; }
.x-studio .studio-tabs button { border-radius: 999px; font-size: 11.5px; letter-spacing: .1em; padding: 8px 15px; }
.x-studio .studio-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.x-studio .studio-panel figcaption { border-radius: 999px; padding: 9px 16px; background: rgba(12,14,19,.82); }
.x-stage-note { color: rgba(255,255,255,.36); }
/* floating notes: dark glass, not white boxes */
.x-callout { background: rgba(18,20,26,.8); color: #fff; border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); border-radius: 14px; }
.x-callout b { color: #fff; font-family: var(--font); font-weight: 650; font-size: 14px; letter-spacing: -0.01em; }
.x-callout span:not(.x-cdot) { color: rgba(255,255,255,.58); }
.x-cdot { border-radius: 50%; width: 9px; height: 9px; background: #8fa8ff; box-shadow: 0 0 0 4px rgba(143,168,255,.16); }
.x-cdot.o { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,91,31,.18); }
.x-cdot.g { background: #2fd07a; box-shadow: 0 0 0 4px rgba(47,208,122,.18); }
.x-callout::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 3px, transparent 3px 7px); }

/* ═════════════════════════════ TICKER ═════════════════════════════ */
.x-ticker { background: transparent; color: var(--ink-2); border: 0; margin: 28px 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.x-ticker-track { animation-duration: 60s; }
.x-ticker-track span { padding: 12px 0 12px 26px; gap: 26px; font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.x-ticker-track span::after { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; transform: none; }

/* ═════════════════════════════ INDUSTRIES: an index ═════════════════════════════ */
.m-types { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.m-types li { border-bottom: 1px solid var(--line); }
.m-type { position: relative; display: grid; grid-template-columns: 56px 52px minmax(0, 1.1fr) minmax(0, 1fr) 44px; gap: 24px; align-items: center;
  padding: 30px 18px; color: var(--ink); text-decoration: none; border-radius: 18px; isolation: isolate;
  transition: padding .45s var(--ease-out), color .3s ease; }
.m-type::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: 18px; background: var(--paper);
  box-shadow: var(--shadow); opacity: 0; transform: scale(.985); transition: opacity .35s ease, transform .45s var(--ease-out); }
.m-type:hover { text-decoration: none; padding-left: 26px; padding-right: 26px; }
.m-type:hover::before { opacity: 1; transform: none; }
.m-type-n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted-2); }
.m-type .icon-tile { transition: background .3s ease, color .3s ease, border-color .3s ease; }
.m-type:hover .icon-tile { background: var(--accent); border-color: var(--accent); color: #170700; }
.m-type-main b { display: block; font-family: var(--display); font-size: clamp(20px, 1.9vw, 26px); font-weight: 640; letter-spacing: -0.03em; line-height: 1.15; }
.m-type-main span { display: block; margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.m-type-for { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; letter-spacing: .02em; color: var(--muted); }
.m-type-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink);
  transition: background .3s ease, color .3s ease, transform .45s var(--ease-out), border-color .3s ease; }
.m-type-go svg { width: 18px; height: 18px; }
.m-type:hover .m-type-go { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-45deg); }
.m-type.is-more .m-type-main b { color: var(--muted); }
.m-type.is-more .icon-tile { border-style: dashed; }

/* ═════════════════════════════ ONE BATCH (drum) ═════════════════════════════ */
.x-drum.dark { overflow: clip; padding-bottom: 40px; }
.x-drum .section-head { margin-bottom: 8px; }
.drum-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: 56px; position: relative; }
.drum-steps { list-style: none; margin: 0; padding: 0 0 14vh; position: relative; }
.drum-steps::before { content: ""; position: absolute; left: 0; top: 12vh; bottom: 12vh; width: 1px; background: rgba(255,255,255,.12); }
.drum-step { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 36px; position: relative;
  opacity: .28; transition: opacity .5s var(--ease-out, ease); }
.drum-step::before { content: ""; position: absolute; left: -4px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #2c2f38;
  transform: translateY(-50%); transition: background .4s, box-shadow .4s; }
.drum-step.is-active { opacity: 1; }
.drum-step.is-active::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(255,91,31,.16); }
.drum-num { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.drum-step h3 { color: #fff; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.06; letter-spacing: -0.035em; margin: 14px 0 14px; font-weight: 640; }
.drum-step p { color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.6; margin: 0 0 20px; max-width: 470px; }
.drum-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.drum-docs span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,.8); padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.03); }
.drum-stage { position: sticky; top: 0; height: 100vh; min-height: 560px; }
.drum-canvas { position: absolute; left: 0; right: 0; top: 2vh; width: 100%; height: calc(100% - 10vh - 128px); min-height: 400px; display: block; z-index: 2;
  opacity: 0; transition: opacity 1s var(--ease-out, ease); }
.drum-ready .drum-canvas { opacity: 1; }
/* A studio backdrop: a soft, neutral light behind the drum. The floor, its shadow and reflection are drawn in WebGL. */
.drum-glow { position: absolute; left: 50%; top: 40%; width: 115%; aspect-ratio: 1.25; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(222,228,240,.075), rgba(222,228,240,.022) 52%, transparent 78%); }
.drum-hint-narrow { display: none; }

/* Under the drum: the five steps as a track (a shortcut to each step) and the record that step made. */
.drum-rail { position: absolute; left: 0; right: 0; bottom: 8vh; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.drum-track { list-style: none; margin: 0; padding: 4px; display: inline-flex; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.drum-track li { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  color: rgba(255,255,255,.42); padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; user-select: none;
  transition: color .3s ease, background .35s ease; }
.drum-track li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin: 0 8px 1px 0; vertical-align: middle;
  background: currentColor; opacity: .55; transition: background .3s ease, opacity .3s ease; }
.drum-track li:hover { color: rgba(255,255,255,.85); }
.drum-track li.done { color: rgba(255,255,255,.72); }
.drum-track li.done::before { background: #2fd07a; opacity: 1; }
.drum-track li.on { background: #fff; color: var(--ink-950, #07080b); }
.drum-track li.on::before { background: var(--accent); opacity: 1; }
.drum-chips { display: grid; justify-items: center; margin-top: 14px; min-height: 62px; }
.drum-chip { grid-area: 1 / 1; display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center;
  padding: 11px 18px 11px 15px; border-radius: 14px; background: rgba(18,20,26,.78); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .45s var(--ease-out, ease); white-space: nowrap; }
.drum-chip.on { opacity: 1; transform: none; transition-delay: .2s; }
.drum-chip .dot { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: #2fd07a; box-shadow: 0 0 0 4px rgba(47,208,122,.16); }
.drum-chip b { color: #fff; font-size: 14px; font-weight: 650; }
.drum-chip small { color: rgba(255,255,255,.58); font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
.drum-flat { position: absolute; left: 10%; right: 10%; top: 12vh; aspect-ratio: 819 / 834; max-height: calc(100% - 12vh - 170px); margin: 0 auto;
  overflow: hidden; border-radius: 6px; z-index: 2; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.drum-flat canvas { width: 500%; height: 100%; display: block; transition: transform .6s var(--ease-out, ease); }
/* Without JS the stage has nothing to show: the five steps read as a plain list. */
.no-js .drum-stage, .no-js .drum-hint-wide, .no-js .drum-hint-narrow { display: none; }
.no-js .drum-grid { grid-template-columns: minmax(0, 1fr); }
.no-js .drum-step { min-height: 0; padding-top: 28px; padding-bottom: 28px; opacity: 1; }

/* ═════════════════════════════ FLOW ═════════════════════════════ */
.x-flow-sec { background: transparent; }
.x-flow-sec::before { display: none; }
.flow::before { height: 1px; top: 32px; background: var(--line); animation: none; }
.flow-pulse { display: block; }
.flow-step .node { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-s);
  transition: background .3s ease, border-color .3s ease, transform .4s var(--ease-out), box-shadow .3s ease; }
.flow-step:hover .node { border-color: var(--ink); transform: translateY(-2px); }
.flow-step[aria-selected="true"] .node { background: var(--ink); border-color: var(--ink); box-shadow: 0 14px 30px -10px rgba(17,14,6,.5); }
.flow-step[aria-selected="true"] .node svg { color: var(--accent-2); }
.flow-step .num { color: var(--muted-2); }
.flow-step[aria-selected="true"] .num { color: var(--accent-text); }
.flow-step .lbl { font-family: var(--font); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.flow-detail { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); padding: clamp(26px, 3.4vw, 44px); }
.flow-detail::before { display: none; }
.flow-detail h3 { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -0.035em; font-weight: 640; }
.doc-pill { border-radius: 12px; background: var(--canvas); border: 1px solid var(--line-2); font-weight: 550; }
.doc-pill svg { color: var(--accent-text); }

/* ═════════════════════════════ TOUR ═════════════════════════════ */
.x-tour-frame { border-radius: 18px; background: #0d0f14; border: 1px solid rgba(17,14,6,.14); box-shadow: var(--shadow-l); }
.x-frame-bar { height: 38px; background: #111319; border-bottom: 1px solid rgba(255,255,255,.06); }
.x-frame-bar em { color: rgba(255,255,255,.6); }
.x-frame-bar .x-lights i { background: #2b2f38; }
.x-tour-shots { background: #e9e7e1; }
.x-tour-progress { height: 2px; background: var(--line); }
.x-chapter h3 { font-size: clamp(28px, 2.7vw, 40px); letter-spacing: -0.04em; font-weight: 640; line-height: 1.04; }
.x-chapter-n { color: var(--muted-2); }
@media (min-width: 1081px) {
  html:not(.no-js) .x-chapter::before { border-radius: 50%; transform: translateY(-50%); background: var(--line); }
  html:not(.no-js) .x-chapter.is-active::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(255,91,31,.14); }
}

/* ═════════════════════════════ DOCUMENTS ═════════════════════════════ */
.x-docs { background: var(--ink-950); isolation: isolate; }
.x-docs::before { background-image: radial-gradient(900px 520px at 100% 0%, var(--lamp), transparent 60%),
  linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px; z-index: -1; }
.x-paper { border-radius: 3px; }
.x-stamp { border-radius: 999px; padding: 10px 18px; background: rgba(12,14,19,.7); }

/* ═════════════════════════════ MODULES: one hairline grid ═════════════════════════════ */
.x-bento { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.x-bento .card { border: 0; border-radius: 0; background: var(--paper); padding: 30px 28px 32px; }
.x-bento .card:hover { transform: none; box-shadow: none; background: #fffdf9; }
.x-bento .card::after { height: 2px; background: var(--accent); }
.x-bento .card h3 { font-size: 18px; margin-top: 22px; }
.x-ops { margin-top: 20px; gap: 20px; }
.home-op { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
.home-op::before, .home-op:nth-child(2)::before, .home-op:nth-child(3)::before { background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent); height: 2px; }

/* ═════════════════════════════ DATA, SAFETY, STATS ═════════════════════════════ */
.x-arch { border-radius: var(--radius-l); border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.x-specs { gap: 0 64px; }
.x-specs li { border-top-color: var(--line); padding: 34px 0; }
.x-spec-n { color: var(--accent-text); }
.x-specs h3 { font-size: 20px; letter-spacing: -0.025em; }
.stats { background: transparent; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px 36px 0; border-left: 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b, .stat:first-child b, .stat:nth-child(3) b { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: clamp(48px, 5.4vw, 80px);
  letter-spacing: -0.055em; color: var(--ink); }
.stat:first-child b { color: var(--accent); }

/* ═════════════════════════════ TRAINING ═════════════════════════════ */
.x-checklist { border-radius: var(--radius-l); box-shadow: var(--shadow); border-color: var(--line); }
.x-checklist li { min-height: 66px; color: var(--ink); }
.x-checklist span { background: var(--canvas); color: var(--muted-2); }
.x-checklist li:hover span { background: var(--ink); color: #fff; }

/* ═════════════════════════════ PRICING ═════════════════════════════ */
.price-card { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--paper); box-shadow: none; }
.price-card.hl { background: var(--ink-950); border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-l); isolation: isolate; }
.price-card.hl::before { right: -160px; top: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(255,110,50,.36), transparent); z-index: -1; }
.price-card.hl .tag { background: rgba(255,91,31,.14); color: var(--accent-2); }
.amt { font-stretch: 100%; font-weight: 620; letter-spacing: -0.05em; }
.price-card.hl .btn-cta { background: #fff; color: var(--ink); border-color: #fff; }
.price-card.hl .btn-cta:hover { background: #f1eee8; border-color: #f1eee8; }
.x-paid { border-radius: 999px; transform: rotate(8deg); padding: 9px 14px; }

/* ═════════════════════════════ FAQ ═════════════════════════════ */
.x-faq { background: transparent; }
.faq details { border-bottom-color: var(--line); }
.faq summary { font-family: var(--font); font-weight: 600; font-size: 18px; letter-spacing: -0.015em; padding: 26px 4px; }
.faq summary::after { border-radius: 50%; border-color: var(--line); background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111317' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { background-color: var(--accent); border-color: var(--accent); transform: rotate(45deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23170700' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq .ans { color: var(--muted); }

/* ═════════════════════════════ CTA: an ink panel with a warm light ═════════════════════════════ */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); color: #fff; background: var(--ink-950);
  box-shadow: var(--shadow-l); padding: clamp(44px, 6vw, 88px); }
.cta-band::before { opacity: 1; z-index: -1; -webkit-mask-image: none; mask-image: none;
  background-image: radial-gradient(700px 380px at 100% 120%, rgba(255,110,50,.5), transparent 65%),
                    radial-gradient(500px 300px at 0% -20%, rgba(255,255,255,.07), transparent 60%);
  background-size: auto; }
.cta-band h2 { color: #fff; font-size: clamp(34px, 4.4vw, 62px); letter-spacing: -0.045em; font-weight: 640; }
.cta-band p { color: rgba(255,255,255,.66); }
.cta-band .btn-primary { background: var(--accent); color: #170700; box-shadow: 0 10px 26px -8px rgba(255,91,31,.7); }
.cta-band .btn-primary:hover { background: #ff6b33; }

/* ═════════════════════════════ AVAILABILITY ═════════════════════════════ */
.avail { padding: 0 0 128px; }
.avail-panel { border-radius: var(--radius-xl); background: var(--ink-950); border: 0; position: relative; isolation: isolate; overflow: hidden; }
.avail-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 400px at 0% 0%, rgba(255,128,72,.16), transparent 60%); }
.avail-panel::after { display: none; }
.avail-copy .eyebrow { color: rgba(255,255,255,.6); }
.avail-tile { border-radius: 16px; background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.t-win .avail-ic, .t-in .avail-ic, .t-next .avail-ic, .t-ios .avail-ic { border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; }
.avail-badge { border-radius: 999px; }
.avail-badge.ok { background: rgba(47,208,122,.12); color: #7fe3ad; }
.avail-badge.soon { background: rgba(255,91,31,.12); color: var(--accent-2); }
.avail-badge.soon i { background: var(--accent); }
.avail-link { border-radius: 999px; }
.avail-pill svg, .page-hero .avail-pill svg { color: currentColor; opacity: .8; }
.avail-pill .ap-next, .avail-pill .ap-next svg { color: var(--accent-text); }
.page-hero .avail-pill .ap-next, .page-hero .avail-pill .ap-next svg { color: var(--accent-2); }

/* ═════════════════════════════ INNER PAGES ═════════════════════════════ */
.module { border-top-color: var(--line); }
.module-head h2 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -0.04em; font-weight: 640; }
.mini { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.mini:hover { border-color: var(--ink); transform: translateY(-2px); }
.mini h3 { font-size: 16.5px; letter-spacing: -0.015em; }
.type-section { border-top-color: var(--line); }
.type-flow { background: var(--paper); border: 1px solid var(--line); }
.type-flow .n { border-radius: 50%; background: var(--ink); color: #fff; }
.matrix-wrap { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--paper); overflow: auto; }
.matrix thead th { background: var(--canvas); }
.step { background: var(--paper); border: 1px solid var(--line); }
.step::before { border-radius: 50%; background: var(--ink); color: #fff; }
.feature-row .window { border-radius: 16px; }
.contact-item { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
.contact-item .icon-tile { background: var(--canvas); }
.legal-toc { border-radius: var(--radius); }
.legal-toc a.active { color: var(--accent-text); }
.doc h2.clause span:first-child { color: var(--accent-text); }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius-l); }
.field input, .field select, .field textarea { border-radius: 12px; border-color: var(--line); background: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc8b9; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
.seg label { border-radius: 999px; }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.stepper { border-radius: 999px; }
.stepper button { border-radius: 999px; }
.acct-card { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }

/* ═════════════════════════════ FOOTER ═════════════════════════════ */
.site-footer { background: var(--ink-950); margin: 128px var(--panel-gap) var(--panel-gap); border-radius: var(--radius-xl); isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 400px at 50% 120%, rgba(255,110,50,.2), transparent 65%); }
.site-footer a { color: rgba(255,255,255,.74); }
.site-footer a:hover { color: #fff; }
.foot-grid h4 { color: rgba(255,255,255,.42); }
.x-wordmark { font-stretch: 100%; font-weight: 700; letter-spacing: -0.045em; word-spacing: .12em; -webkit-text-stroke: 1px rgba(255,255,255,.12); }
.x-wordmark::before { background: repeating-linear-gradient(90deg, rgba(255,91,31,.45) 0 6px, transparent 6px 14px); }
/* the section just before the footer needs no bottom padding of its own */
main > .x-cta-sec, main > .section:last-child { padding-bottom: 0; }

/* ═════════════════════════════ REVEAL ═════════════════════════════ */
.reveal { transform: translateY(20px); filter: blur(4px); }
.reveal.in { transform: none; filter: none; }

/* ═════════════════════════════ RESPONSIVE ═════════════════════════════ */
@media (max-width: 1080px) {
  .m-type { grid-template-columns: 40px 48px minmax(0, 1fr) 40px; }
  .m-type-for { grid-column: 3; grid-row: 2; margin-top: -10px; }
  .m-type-go { grid-column: 4; grid-row: 1; }
}
@media (max-width: 959px) {
  /* Phone: the drum, its track, then the five steps as a row of swipe cards. The card in view turns the drum. */
  .drum-hint-wide { display: none; }
  .drum-hint-narrow { display: inline; }
  .drum-grid { grid-template-columns: minmax(0, 1fr); }
  .drum-stage { order: -1; position: relative; top: auto; height: clamp(360px, 54vh, 480px); min-height: 0; touch-action: pan-y; }
  .drum-canvas { top: 0; height: calc(100% - 52px); min-height: 0; }
  .drum-glow { top: 42%; width: 150%; }
  .drum-rail { bottom: 6px; }
  .drum-track li { font-size: 10px; letter-spacing: .06em; padding: 8px 9px; }
  .drum-track li::before { display: none; }
  .drum-chips { display: none; }
  .drum-flat { left: 0; right: 0; top: calc(50% - 26px); transform: translateY(-50%); width: min(74%, 290px); max-height: none; }
  .drum-steps { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 18px calc(-1 * var(--gutter)) 0; padding: 2px 0 6px var(--gutter); scroll-padding-left: var(--gutter); }
  .drum-steps::-webkit-scrollbar { display: none; }
  .drum-steps::before { display: none; }
  .drum-step { flex: 0 0 86%; min-height: 0; justify-content: flex-start; margin-right: 12px; padding: 22px 20px 20px; border-radius: 20px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); scroll-snap-align: start; opacity: 1;
    transition: border-color .3s ease, background .3s ease; }
  .drum-step:last-child { margin-right: var(--gutter); }
  .drum-step.is-active { border-color: rgba(255,91,31,.45); background: rgba(255,255,255,.06); }
  .drum-step::before { display: none; }
  .drum-step h3 { font-size: 22px; margin: 10px 0 10px; }
  .drum-step p { font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
  .drum-docs { gap: 6px; }
  .drum-docs span { font-size: 10.5px; padding: 5px 9px; }
}
@media (min-width: 641px) and (max-width: 959px) { .drum-step { flex-basis: 62%; } .drum-stage { height: clamp(420px, 52vh, 560px); } }
@media (max-width: 900px) {
  .site-header .nav { border-radius: 18px; }
  .nav-open .nav-links { border-radius: 20px; }
  .section { padding: 96px 0; }
  main > .section.dark + .section, main > .x-docs + .section { padding-top: 96px; }
  .avail { padding-bottom: 96px; }
  .site-footer { margin-top: 96px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .x-title { font-size: clamp(44px, 13vw, 66px); letter-spacing: -0.05em; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 60px; }
  .page-hero h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .h-l { font-size: clamp(32px, 9vw, 44px); }
  .section { padding: 80px 0; }
  main > .section.dark + .section, main > .x-docs + .section { padding-top: 80px; }
  .m-type { grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 14px; padding: 22px 8px; }
  .m-type:hover { padding-left: 14px; padding-right: 14px; }
  .m-type-n { display: none; }
  .m-type-main { grid-column: 2; }
  .m-type-for { grid-column: 2; grid-row: 2; margin-top: -6px; }
  .m-type-go { grid-column: 3; width: 36px; height: 36px; }
  .x-bento { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 28px 0; }
  .stat:nth-child(even) { padding-left: 18px; }
  .cta-band { padding: 36px 24px; }
  .x-studio .studio-panel img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .x-studio .studio-panel img { transform: none; }
  .drum-step, .drum-chip, .drum-canvas { transition: none; }
  .m-type, .m-type::before, .m-type-go { transition: none; }
}

/* The first section under an inner page hero (was an inline padding-top of 16–40px). */
.section.after-hero { padding-top: 72px; }
.window-bar { background: #f6f4ef; }
.window-bar i, .window-bar i:nth-child(1), .window-bar i:nth-child(2), .window-bar i:nth-child(3) { background: #d9d4c9; }
.window-bar em { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .section.after-hero { padding-top: 44px; } }

/* Header over a dark panel after scrolling (motion.js toggles .over-dark): keep the pill dark. */
.site-header.over-dark .nav { background: rgba(14,16,21,.66); border-color: rgba(255,255,255,.09); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.site-header.over-dark .brand-name { color: #fff; }
.site-header.over-dark .nav-toggle span { background: #fff; }
.site-header.over-dark .nav-signin { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; }
html:not(.nav-open) .site-header.over-dark .nav-links a { color: rgba(255,255,255,.8); }
html:not(.nav-open) .site-header.over-dark .nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
html:not(.nav-open) .site-header.over-dark .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }

/* ═════════════════════════════ FLOW LINES (flow.js) ═════════════════════════════
   The quiet animation on every page: lights run along the panel grid and drop a document at the next desk.
   The canvas sits behind the words (z-index -1 inside panels that isolate) and never takes a click. */
.flow-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.cta-band > .flow-canvas { position: absolute; }
.page-hero > .flow-canvas { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.x-hero > .flow-canvas { -webkit-mask-image: radial-gradient(ellipse 96% 82% at 50% 34%, #000 58%, transparent 96%);
  mask-image: radial-gradient(ellipse 96% 82% at 50% 34%, #000 58%, transparent 96%); }
@media (max-width: 640px) { .page-hero > .flow-canvas { -webkit-mask-image: none; mask-image: none; } }
@media print { .flow-canvas { display: none !important; } }

/* ═════════════════════════════ PHONE: SHORT PAGES (2026-12-04) ═════════════════════════════
   On a phone, grids of cards become one row you swipe through, with the next card peeking in, so each page is a
   few screens long instead of a long column. `.swipe` marks those grids in the page source; on wider screens it does
   nothing. `.mini-row` (features page) only groups the feature cards for that row. */
.mini-row { display: contents; }
.matrix-key { display: none; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  main > .section.dark + .section, main > .x-docs + .section { padding-top: 64px; }
  .form-shell { grid-template-columns: minmax(0, 1fr); }   /* a plain 1fr grew past a 360 px screen on the demo page */
  .section-head { margin-bottom: 32px; }

  .swipe { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    gap: 12px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 14px; scroll-padding-left: var(--gutter); align-items: stretch; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; min-width: 0; margin: 0; scroll-snap-align: start; }
  .swipe > .reveal { opacity: 1; transform: none; filter: none; transition: none; }

  /* home: industry types as cards */
  .m-types.swipe { border-top: 0; }
  .m-types.swipe > li { flex-basis: 76%; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
  .m-types.swipe .m-type, .m-types.swipe .m-type:hover { height: 100%; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    align-items: start; gap: 14px; padding: 20px 18px; }
  .m-types.swipe .m-type::before { display: none; }
  .m-types.swipe .icon-tile { grid-column: 1; grid-row: 1; }
  .m-types.swipe .m-type-go { grid-column: 2; grid-row: 1; justify-self: end; }
  .m-types.swipe .m-type-main { grid-column: 1 / -1; grid-row: 2; }
  .m-types.swipe .m-type-for { grid-column: 1 / -1; grid-row: 3; margin-top: 0; align-self: end; }

  /* home: the tour, one screen per card (the screenshot first, the bullet points left for the wide page) */
  .x-tour-steps.swipe > .x-chapter { display: flex; flex-direction: column; padding: 14px 14px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
  .x-chapter .ticks { display: none; }
  .x-chapter .x-inline-shot { order: -1; margin: 0 0 18px; border-radius: 12px; }
  .x-chapter-n { margin: 0 4px 8px; }
  .x-chapter .eyebrow, .x-chapter h3, .x-chapter > p { margin-left: 4px; margin-right: 4px; }
  .x-chapter h3 { font-size: 22px; margin-top: 8px; margin-bottom: 10px; }
  .x-chapter > p { font-size: 15px; line-height: 1.55; margin-bottom: 0; }

  /* home: departments, operations, guarantees */
  .x-bento.swipe { background: none; border: 0; border-radius: 0; gap: 12px; }
  .x-bento.swipe > .card { flex-basis: 70%; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 24px; }
  .x-bento.swipe > .card h3 { margin-top: 16px; }
  .x-ops.swipe { margin-top: 0; }
  .x-ops.swipe > .home-op { min-height: 0; }
  .x-specs.swipe > li { flex-basis: 80%; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
  .x-specs.swipe h3 { font-size: 18px; }

  .avail-tiles.swipe > li { flex-basis: 74%; }
  .avail-tiles.swipe .avail-tile { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; }
  .avail-tiles.swipe .avail-badge { grid-column: 1; }

  /* features: each module is its screenshot, then its feature cards in a row */
  .module { padding: 40px 0; gap: 18px; }
  .module-head h2 { font-size: 26px; margin: 14px 0 8px; }
  .module-body { gap: 14px; }
  .module-body .window { margin-bottom: 0; }
  .mini-row.swipe > .mini { flex-basis: 76%; padding: 18px; }

  /* industries: the flow of each type in two columns, and a compact comparison table */
  .type-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 14px 16px; }
  .type-flow li { padding: 6px 0; gap: 10px; font-size: 14px; line-height: 1.3; }
  .type-flow li + li::before { display: none; }
  .type-flow .n { width: 26px; height: 26px; font-size: 12px; }
  /* the type names move to a key above the table; the columns keep only their icons, so all five fit */
  .matrix-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: -8px 0 14px; padding: 0; }
  .matrix-key li { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--ink-2, var(--ink)); }
  .matrix-key .icon-tile { width: 24px; height: 24px; border-radius: 50%; }
  .matrix-key .icon-tile svg { width: 13px; height: 13px; }
  .matrix { min-width: 0; width: 100%; table-layout: fixed; }
  .matrix th, .matrix td { padding: 8px 2px; }
  .matrix .m-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .matrix thead th:first-child, .matrix tbody th { width: 44%; padding-left: 14px; padding-right: 6px; }
  .matrix thead th { font-size: 10.5px; }
  .matrix thead th .icon-tile { width: 30px; height: 30px; margin: 0 auto; }
  .matrix tbody th { font-size: 13px; line-height: 1.25; }
  .matrix tbody th small { display: none; }
  .matrix .yes { width: 24px; height: 24px; }

  /* the footer: the links in two columns */
  .site-footer { margin-top: 72px; padding-top: 52px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 18px; }
  .foot-grid > div:first-child, .foot-grid > div:last-child { grid-column: 1 / -1; }
  .foot-grid > div:first-child .foot-address + .foot-address:not(.foot-avail) { display: none; }
  .foot-grid > div:last-child ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
  .foot-grid ul { gap: 9px; }
  .foot-grid h4 { margin-bottom: 12px; }
  .foot-grid a { overflow-wrap: anywhere; }
}

/* ══ ANDROID APP PAGE (android.html, 2026-12-06) ═══════════════════════════════════════════
   The hero carries the download: a white card with the version, the QR code for desktop
   visitors and the SHA-256, beside a phone showing the app's Work screen (demo company).
   Phones get the card alone: no QR (they are already on the phone) and no screenshot. */
.apk-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: clamp(32px, 4vw, 64px); align-items: center; }
.apk-hero h1 { font-size: clamp(40px, 4.8vw, 70px); }
.apk-hero .btn-row { margin-top: 30px; }
.apk-hero-side { display: grid; grid-template-columns: minmax(0, 1fr) 236px; align-items: center; }
.apk-phone { position: relative; z-index: 0; grid-column: 2; grid-row: 1; margin: 0 0 0 -36px; padding: 8px; border-radius: 40px;
  background: linear-gradient(155deg, #3a3f4a, #121419 40%, #07080b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -30px rgba(0,0,0,.7); }
.apk-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.apk-phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #05060a; box-shadow: 0 0 0 2px rgba(255,255,255,.06); }
.apk-card { position: relative; z-index: 1; grid-column: 1; grid-row: 1; padding: 26px; border-radius: var(--radius-l); background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 90px -30px rgba(0,0,0,.75); }
.apk-card-head { display: flex; align-items: center; gap: 14px; }
.apk-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; }
.apk-ic svg { width: 22px; height: 22px; }
.apk-card h2 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -0.02em; }
.apk-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.apk-dl { width: 100%; justify-content: center; gap: 10px; margin-top: 20px; }
.apk-dl svg { width: 18px; height: 18px; }
.apk-qr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 16px; padding: 12px; border-radius: var(--radius); background: var(--canvas); border: 1px solid var(--line-2); }
.apk-qr-frame { display: block; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.apk-qr-code { display: block; width: 100%; height: auto; fill: var(--ink-950); }
.apk-qr p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.apk-qr b { color: var(--ink); }
.apk-facts { display: grid; margin: 14px 0 0; font-size: 13.5px; }
.apk-facts > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 10px 0 0; }
.apk-facts > div + div { margin-top: 10px; border-top: 1px solid var(--line-2); }
.apk-facts dt { padding-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.apk-facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.apk-sha code { display: block; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--ink-2); word-break: break-all; background: none; padding: 0; }
.apk-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink-2); font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.apk-copy svg { width: 14px; height: 14px; }
.apk-copy:hover { border-color: var(--ink); color: var(--ink); }
.apk-copy:focus-visible { outline: none; box-shadow: var(--ring); }
.no-js .apk-copy { display: none; }

.apk-callout { margin-top: 28px; }
.apk-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.apk-way { padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); }
.apk-way-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2);
  color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.apk-way-tag svg { width: 15px; height: 15px; color: var(--accent); }
.apk-way h3 { margin: 18px 0 6px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; }
.apk-need { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.apk-ol { counter-reset: apk; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.apk-ol li { counter-increment: apk; position: relative; padding-left: 42px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.apk-ol li::before { content: counter(apk); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.apk-note { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 14.5px; }
.apk-note svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.apk-places { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.apk-places p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.apk-feats .card h3 { margin-top: 18px; }

@media (max-width: 1080px) {
  .apk-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .apk-hero-side { max-width: 640px; }
}
@media (max-width: 640px) {
  .apk-hero h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .apk-hero .btn-row { display: none; }
  .apk-hero-side { display: block; }
  .apk-phone, .apk-qr { display: none; }
  .apk-card { margin-top: 6px; padding: 22px 20px; }
  .apk-ways.swipe { display: flex; gap: 12px; }   /* .apk-ways is a grid above, later in the file than .swipe */
  .apk-ways.swipe > .apk-way { flex-basis: 88%; padding: 22px 20px; }
  .apk-ways.swipe .apk-ol li { font-size: 14.5px; }
  .apk-feats.swipe > .card { flex-basis: 74%; padding: 22px 20px 24px; }
  .apk-places { align-items: flex-start; padding: 16px 18px; }
  .apk-places p { font-size: 14.5px; }
}

/* home: the Android app band (#android) */
.x-app-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.apk-phone.x-app-phone { grid-column: auto; grid-row: auto; justify-self: center; width: min(272px, 100%); margin: 0; }
.x-app-meta { margin: 18px 0 0; }
.x-app .btn svg { width: 18px; height: 18px; }
.avail-tile b a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.avail-tile b a:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) { .x-app-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .apk-phone.x-app-phone, .x-app .ticks { display: none; } }
