/*
  styles.css - the only stylesheet for xirag.com (S96-T2 rebuild, S96-T3 fixes, S96-T5 upgrade:
  mega-menu and mobile menu, filterable module grid, scripted workflow preview in the hero, the
  Trust trace, module pages under /products/, the Xirag Payments page; S96-T6: the module grid
  became one dense grid of app tiles with two-tone glyphs, without thumbnails).
  Why: one dark-first, on-brand look for every page, with light mode and reduced motion.
  Layout rule: every grid uses minmax(0, 1fr) columns and min-width: 0 children, long tokens wrap
  (overflow-wrap: anywhere), so nothing scrolls sideways from 360 px to 1920 px.
  Connects to: every HTML page of the site (linked as /styles.css); main.js toggles .js, .is-in,
  .is-open, .is-active, .is-hidden, .is-shown, .is-paused, .is-bad and sets --mx/--my on .glow
  elements.
  Input: prefers-color-scheme, prefers-reduced-motion. Output: page styling.
  Brand source: docs/company/xirag-brand-guidelines.html (tokens lines 5-47, colour lines 498-551,
  grounds lines 757-783, wordmark lines 554-566) and apps/web/styles.css lines 4-54.
  No inline styles anywhere, so the CSP keeps style-src to 'self' and Google Fonts.
*/

/* ---------- Tokens: dark ground by default, light ground under prefers-color-scheme ---------- */
:root {
  color-scheme: dark light;
  --paper: #121212; --surface: #1c1c1c; --surface-2: #201f1d; --surface-3: #262523;
  --ink: #F2F0EC; --ink-soft: #F0EEEA; --stone: #a8a29b; --border: #333230;
  --hanko: #E2565C; --hanko-hover: #EF7278; --hanko-rgb: 226, 86, 92; --on-hanko: #121212;
  --wing-1: #F0EEEA; --wing-2: #D6D2CB; --ok: #6fbf8e; --ok-rgb: 111, 191, 142;
  --grid-line: rgba(240, 238, 234, 0.05); --glass: rgba(18, 18, 18, 0.86);
  --font-word: "Shippori Mincho", serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --radius: 14px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    --paper: #ffffff; --surface: #ffffff; --surface-2: #faf9f7; --surface-3: #f2f0ec;
    --ink: #1A1A1A; --ink-soft: #2B2B2B; --stone: #70757a; --border: #e2e0dc;
    --hanko: #B7282E; --hanko-hover: #96201F; --hanko-rgb: 183, 40, 46; --on-hanko: #ffffff;
    --wing-1: #2B2B2B; --wing-2: #141414; --ok: #1f7a46; --ok-rgb: 31, 122, 70;
    --grid-line: rgba(26, 26, 26, 0.05); --glass: rgba(255, 255, 255, 0.9);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(var(--hanko-rgb), 0.28); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
@media (min-width: 1700px) { .wrap { max-width: 1320px; } }
.mono { font-family: var(--font-mono); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Links: an underline that grows from the left on hover and focus. */
a { color: var(--hanko); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; }
a:hover, a:focus-visible { background-size: 100% 1px; color: var(--hanko-hover); }
:focus-visible { outline: 2px solid var(--hanko); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--hanko); color: var(--on-hanko); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--on-hanko); }

/* ---------- Lockup: mark + wordmark + hanko dot (guidelines sections 01, 04, 06, 07) ----------
   .lockup-sm is the primary lockup (lines 595-599) scaled as one unit by 26/34; header and footer
   use the same class so the two logos are identical. */
.lockup { display: inline-flex; align-items: center; color: var(--ink); background: none; flex-shrink: 0; }
.lockup:hover, .lockup:focus-visible { color: var(--ink); }
.mark { flex-shrink: 0; overflow: visible; }
.mark .w1 { fill: var(--wing-1); }
.mark .w2 { fill: var(--wing-2); }
.word { font-family: var(--font-word); font-weight: 600; letter-spacing: 0; line-height: 1; }
.dot { flex-shrink: 0; align-self: flex-start; border-radius: 50%; background: var(--hanko); }
.lockup-sm .mark { width: 26px; height: 34px; }
.lockup-sm .word { font-size: 1.7rem; margin-left: 7px; }
.lockup-sm .dot { width: 9px; height: 9px; margin: 5px 0 0 6px; }

/* ---------- Header: sticky glass bar, desktop mega-menu, mobile drawer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bar { display: flex; align-items: center; gap: 10px 18px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.bar .lockup { margin-right: auto; }
.site-nav { order: 3; width: 100%; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 0.92rem; }
.nav > li > a, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; color: var(--stone); background: none; border: 0; cursor: pointer; }
.nav > li > a:hover, .nav > li > a:focus-visible, .nav-trigger:hover, .nav-trigger:focus-visible, .nav-trigger[aria-expanded="true"] { color: var(--ink); }
.nav-trigger .chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu-toggle { display: none; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; font-size: 0.86rem; }
.menu-toggle .bars { width: 16px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.button.small .xs { display: inline; }
@media (max-width: 479px) { .button.small .xs { display: none; } }
/* Mega panel: products by category. Without JS it opens on hover and focus-within. */
.mega { display: none; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.js .has-mega:hover .mega, .js .has-mega:focus-within .mega { display: none; }
.js .has-mega.is-open .mega { display: block; }
.mega-grid { display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.mega-grid > * { min-width: 0; }
.mega-h { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hanko); margin-bottom: 6px; }
.mega-grid a { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); background: none; }
.mega-grid a:hover, .mega-grid a:focus-visible { background: rgba(var(--hanko-rgb), 0.08); color: var(--ink); }
.mega-grid a b { display: block; font-weight: 600; font-size: 0.9rem; }
.mega-grid a small { display: block; color: var(--stone); font-size: 0.78rem; line-height: 1.4; }
.mega-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--stone); }
@media (min-width: 1000px) {
  .site-nav { order: 0; width: auto; }
  .bar .lockup { margin-right: 18px; }
  .site-nav { margin-right: auto; }
  .has-mega { position: static; }
  .mega { position: absolute; left: 0; right: 0; top: 100%; padding: 28px 0 24px; background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
  .mega-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
  .mega-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px 0 18px; }
  .js .nav { flex-direction: column; gap: 0; font-size: 1rem; }
  .js .nav > li { border-top: 1px solid var(--border); }
  .js .nav > li > a, .js .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 2px; color: var(--ink); }
  .mega { padding: 4px 0 14px; }
}
.accent-line { height: 2px; background: linear-gradient(90deg, transparent, rgba(var(--hanko-rgb), 0.9), var(--wing-2), rgba(var(--hanko-rgb), 0.9), transparent) 0 0 / 200% 100%; animation: accent-flow 8s linear infinite; opacity: 0.8; }
@keyframes accent-flow { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; background: var(--hanko); color: var(--on-hanko); font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.button:hover, .button:focus-visible { background: var(--hanko-hover); color: var(--on-hanko); transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(var(--hanko-rgb), 0.7); }
.button .arrow { transition: transform .25s var(--ease); }
.button:hover .arrow, .button:focus-visible .arrow { transform: translateX(4px); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.button.ghost:hover, .button.ghost:focus-visible { box-shadow: inset 0 0 0 1px var(--hanko), 0 10px 30px -12px rgba(var(--hanko-rgb), 0.6); color: var(--ink); }
.button.small { padding: 8px 16px; font-size: 0.86rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Shared text pieces ---------- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hanko); margin-bottom: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--hanko); background: rgba(var(--hanko-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.35); white-space: nowrap; }
.badge.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.fine { margin-top: 18px; font-size: 0.82rem; color: var(--stone); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: radial-gradient(ellipse 60% 55% at 75% 10%, rgba(var(--hanko-rgb), 0.14), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000, transparent 75%); }
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
@media (min-width: 1040px) { .hero .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .hero { padding: 88px 0 104px; } }
.hero h1 { font-family: var(--font-word); font-weight: 600; font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: 0; }
.hero h1 .hl { color: var(--hanko); }
.hero .lead { margin-top: 20px; max-width: 54ch; font-size: 1.12rem; color: var(--stone); }
.hero .actions { margin-top: 30px; }
.hero .chips { margin-top: 30px; }

/* ---------- UI mock-ups: one window chrome and a small kit of app parts, shared by the hero
   preview and every module page. All data inside is fictional and labelled as such. ---------- */
.win { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(var(--hanko-rgb), 0.06); overflow: hidden; font-size: 0.86rem; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); min-width: 0; }
.win-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.win-title { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.74rem; color: var(--stone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 16px; min-width: 0; }
.ui-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.ui-t { font-size: 1rem; font-weight: 600; }
.ui-sub { color: var(--stone); font-size: 0.78rem; }
.ui-list { display: grid; gap: 6px; }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); min-width: 0; }
.ui-row > span { min-width: 0; overflow-wrap: anywhere; }
.ui-row .grow { flex: 1; }
.ui-row.is-sel { box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.55); background: rgba(var(--hanko-rgb), 0.07); }
.ui-av { flex-shrink: 0; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.7rem; font-weight: 600; color: var(--on-hanko); background: var(--hanko); }
.ui-av.alt { background: var(--wing-2); color: var(--paper); }
.ui-tag { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; color: var(--stone); box-shadow: inset 0 0 0 1px var(--border); white-space: nowrap; }
.ui-tag.ok { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(var(--ok-rgb), 0.5); }
.ui-tag.hot { color: var(--hanko); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.5); }
.ui-split { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .ui-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.ui-pipe { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ui-pipe li { font-family: var(--font-mono); font-size: 0.7rem; padding: 4px 9px; border-radius: 6px; color: var(--stone); box-shadow: inset 0 0 0 1px var(--border); }
.ui-pipe li.done { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(var(--ok-rgb), 0.5); }
.ui-pipe li.now { color: var(--on-hanko); background: var(--hanko); box-shadow: none; }
.ui-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 0.8rem; }
.ui-kv dt { color: var(--stone); font-family: var(--font-mono); font-size: 0.72rem; padding-top: 2px; }
.ui-kv dd { margin: 0; overflow-wrap: anywhere; }
.ui-amount { font-family: var(--font-word); font-size: 1.6rem; font-weight: 600; }
.ui-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ui-cal span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--stone); text-align: center; }
.ui-cal div { position: relative; min-height: 110px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.ui-ev { position: absolute; left: 3px; right: 3px; padding: 4px 6px; border-radius: 6px; font-size: 0.68rem; line-height: 1.25; color: var(--ink); background: rgba(var(--hanko-rgb), 0.18); box-shadow: inset 2px 0 0 var(--hanko); overflow: hidden; }
.ui-ev.t1 { top: 8px; height: 34px; } .ui-ev.t2 { top: 44px; height: 40px; } .ui-ev.t3 { top: 64px; height: 38px; }
.ui-ev.soft { background: rgba(214, 210, 203, 0.14); box-shadow: inset 2px 0 0 var(--wing-2); }
.ui-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 6px 0; }
.ui-bars i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(var(--hanko-rgb), 0.55); }
.ui-bars i:nth-child(1) { height: 30%; } .ui-bars i:nth-child(2) { height: 55%; } .ui-bars i:nth-child(3) { height: 42%; } .ui-bars i:nth-child(4) { height: 70%; } .ui-bars i:nth-child(5) { height: 62%; } .ui-bars i:nth-child(6) { height: 88%; } .ui-bars i:nth-child(7) { height: 74%; }
.ui-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.ui-stats div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); min-width: 0; }
.ui-stats b { display: block; font-size: 1.1rem; } .ui-stats small { color: var(--stone); font-size: 0.7rem; }
.ui-bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 0.8rem; }
.ui-bubble.me { margin-left: auto; background: rgba(var(--hanko-rgb), 0.14); box-shadow: none; }
.ui-code { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.ui-code .k { color: var(--stone); } .ui-code .h { color: var(--hanko); } .ui-code .g { color: var(--ok); }
.ui-otp { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 0.18em; }
.ui-check { display: inline-grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--border); }
.ui-check.on { background: var(--hanko); box-shadow: none; }
.ui-check.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--on-hanko); border-bottom: 2px solid var(--on-hanko); transform: rotate(-45deg) translate(1px, -1px); }
.mock-cap { margin-top: 10px; font-size: 0.78rem; color: var(--stone); }

/* ---------- Hero workflow preview: five module steps, an agent suggestion, a person approving ---------- */
.preview, .shot { margin: 0; min-width: 0; }
.pv-steps { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.pv-steps::-webkit-scrollbar { display: none; }
.pv-tab { flex: 1 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 0; background: none; color: var(--stone); font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.pv-tab b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--border); }
.pv-tab[aria-selected="true"] { color: var(--ink); background: rgba(var(--hanko-rgb), 0.1); }
.pv-tab[aria-selected="true"] b { background: var(--hanko); color: var(--on-hanko); box-shadow: none; }
.pv-tab.is-done b { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(var(--ok-rgb), 0.6); }
.no-js-hide { display: none; }
.js .no-js-hide { display: flex; }
.pv-panel { padding: 16px; min-height: 340px; }
.js .pv-panel { display: none; }
.js .pv-panel.is-active { display: block; animation: pv-in .5s var(--ease); }
.pv-panel + .pv-panel { border-top: 1px solid var(--border); }
.js .pv-panel + .pv-panel { border-top: 0; }
@keyframes pv-in { from { opacity: 0; transform: translateY(8px); } }
.pv-mod { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hanko); }
.pv-mod svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-suggest { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--hanko-rgb), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.3); }
.pv-bot { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--hanko); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.45); }
.pv-bot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pv-suggest p { font-size: 0.82rem; } .pv-suggest small { color: var(--stone); font-size: 0.72rem; }
.pv-approve { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.78rem; }
/* The two approval states share one grid cell: "waiting" fades out, "approved" fades in after
   1.8 s. Without JS (and with reduced motion) only "approved" shows. */
.pv-state { display: inline-grid; }
.pv-state > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pv-approve .wait { color: var(--stone); box-shadow: inset 0 0 0 1px var(--border); visibility: hidden; }
.pv-approve .done { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(var(--ok-rgb), 0.55); }
.js .pv-panel.is-active .pv-approve .wait { visibility: visible; animation: pv-out .3s ease 1.8s forwards; }
.js .pv-panel.is-active .pv-approve .done { opacity: 0; animation: pv-show .4s var(--ease) 1.8s forwards; }
@keyframes pv-out { to { opacity: 0; visibility: hidden; } }
@keyframes pv-show { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.pv-progress { height: 2px; background: var(--border); }
.pv-progress i { display: block; height: 100%; width: 0; background: var(--hanko); }
.js .preview.is-playing .pv-progress i { animation: pv-bar 6s linear forwards; }
.js .preview.is-held .pv-progress i { animation: none; width: 0; }
@keyframes pv-bar { to { width: 100%; } }
.pv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 12px; }
.pv-foot p { font-size: 0.78rem; color: var(--stone); max-width: 60ch; }
.pv-play { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; font-size: 0.78rem; }

/* ---------- Sections ---------- */
section.band { padding: 88px 0; position: relative; }
section.band.tight { padding: 56px 0; }
section.band.alt { background: var(--surface-2); }
@media (prefers-color-scheme: light) { section.band.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } }
.section-intro { max-width: 720px; margin-bottom: 36px; }
.section-intro h2 { font-family: var(--font-word); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-intro p { margin-top: 14px; color: var(--stone); font-size: 1.05rem; }
.group-title { margin: 44px 0 16px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }

/* Proof strip: one line of facts that are true today, no invented numbers. */
.strip { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius); overflow: hidden; background: var(--border); box-shadow: inset 0 0 0 1px var(--border); }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip li { padding: 18px 20px; background: var(--surface); min-width: 0; }
.strip b { display: block; font-family: var(--font-word); font-size: 1.5rem; font-weight: 600; }
.strip span { color: var(--stone); font-size: 0.86rem; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; overflow-wrap: break-word; transition: box-shadow .3s, transform .3s var(--ease); }
.card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; position: relative; }
.card p { color: var(--stone); font-size: 0.95rem; position: relative; }
.card .icon { display: block; width: 40px; height: 40px; padding: 8px; margin-bottom: 16px; border-radius: 10px; color: var(--hanko); background: rgba(var(--hanko-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.3); position: relative; }
.icon svg, .ico { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Pointer glow, only on interactive tiles (module tiles, industry cards); no tilt on text. */
.glow::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--hanko-rgb), 0.16), transparent 70%); }
.glow:hover::before { opacity: 1; }
.glow:hover { box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.45), 0 18px 40px -24px rgba(var(--hanko-rgb), 0.6); }

/* ---------- Modules (S96-T6 redesign): filter chips and one dense grid of app tiles ----------
   What: the 14 module tiles of index.html #apps in a single grid, no per-category groups and no
   thumbnails. Columns: 1 below 640 px, 2 from 640, 3 from 1024, 4 from 1280. Every tile has the
   same structure (icon and tag row, name and arrow row, a one-liner clamped to two lines with a
   two-line minimum) and rows stretch, so tiles in a row share one height.
   The early-access tile (.mt-cta) closes the last row in the "All" view: 14 tiles leave 2 free
   cells at 4 columns (span 2), 1 at 3 columns (span 1) and 0 at 2 columns, where it takes a full
   row of its own (span 2). main.js hides it while a category filter is on.
   Connects to: main.js setupFilters (.is-hidden, .is-shown on .mt and .mt-cta), the g-* glyph
   symbols in the index.html sprite (.mt-g, .ac, .dots) and .glow (pointer glow, above). */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: var(--stone); font-size: 0.86rem; box-shadow: inset 0 0 0 1px var(--border); transition: color .2s, box-shadow .2s, background-color .2s; }
.filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.5); }
.filter:focus-visible { border-radius: 999px; }
.filter[aria-pressed="true"] { color: var(--on-hanko); background: var(--hanko); box-shadow: none; }
.filter .n { margin-left: 6px; font-family: var(--font-mono); font-size: 0.72rem; opacity: 0.8; }
.mt-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mt-cta { grid-column: span 2; } }
@media (min-width: 1024px) { .mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mt-cta { grid-column: span 1; } }
@media (min-width: 1280px) { .mt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mt-cta { grid-column: span 2; } }
/* Static grid (S96-T7): the two lanes (.mt-track > .mt-lane) are display: contents, so their
   tiles are direct grid cells of .mt-train in the original order (lane 1, then lane 2 and the
   early-access tile). This is the view without JS, under reduced motion and as the base of the
   filtered view. role="list" on each lane keeps list semantics despite display: contents.
   main.js's copies of the lanes (.mt-dup) never show outside the train. */
.mt-track, .mt-lane { display: contents; }
.mt-train:not(.is-train) .mt-dup { display: none; }
.mt-lane > li { display: flex; min-width: 0; }
.mt-lane > li.is-hidden { display: none; }
/* Filter reflow: tiles that stay or come back fade and rise in (re-triggered by main.js). */
.js .mt-lane > li.is-shown { animation: mt-in .32s var(--ease) both; }
@keyframes mt-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ---------- Module train (S96-T7, owner: "keep the modules running from right to left like a train") ----------
   What: with .is-train (added by main.js setupTrain only when JS runs, motion is allowed and the
   "All" filter is on) each .mt-track is one row of carriages: the lane of tiles plus its
   aria-hidden copy, side by side. The keyframes move the track from translateX(0) to -50%,
   linear and infinite: transform only, so the GPU composites it and no JS loop runs.
   Seam: every tile has a fixed width and each lane carries its 16 px gap as padding-right after
   its last tile, so one lane is exactly n x (tile + 16 px) wide and the copy is identical. -50%
   of the track is therefore exactly one lane, and at the loop point the copy stands where the
   original started: no gap and no jump.
   Speeds: track A (7 tiles) 48 s and track B (7 tiles + early access) 58 s per loop, about
   45 and 42 px per second, so the rows drift slightly apart and stay readable.
   Pause: hovering a row or focusing a link in it pauses that row; main.js adds .is-paused
   (global rule below) while the section is off-screen. The edge fade is a mask on .mt-train,
   whose overflow is hidden, so the moving tracks never widen the page.
   Connects to: index.html #apps, main.js setupTrain and setupFilters (.is-train, .is-filtered,
   .is-paused, .mt-dup). */
.js .mt-train.is-train { display: block; overflow: hidden; padding: 8px 0 26px; margin-bottom: -18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.is-train .mt-track { display: flex; width: max-content; animation: mt-run 48s linear infinite; will-change: transform; }
.is-train .mt-track-b { margin-top: 16px; animation-duration: 58s; animation-direction: reverse; } /* owner: one line moves the opposite way (left to right) */
.is-train .mt-track:hover, .is-train .mt-track:focus-within { animation-play-state: paused; }
.is-train .mt-lane { display: flex; gap: 16px; padding-right: 16px; }
.is-train .mt-lane > li { flex: 0 0 auto; width: 288px; }
.is-train .mt-lane > .mt-cta { width: 320px; }
@media (max-width: 639px) { .is-train .mt-lane > li { width: 256px; } .is-train .mt-lane > .mt-cta { width: 272px; } }
@keyframes mt-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Filtered view: a category chip other than "All" stops the train (main.js swaps .is-train for
   .is-filtered) and the matching tiles sit in one centred, wrapping row of fixed-width tiles. */
.mt-train.is-filtered { display: flex; flex-wrap: wrap; justify-content: center; }
.mt-train.is-filtered .mt-lane > li { flex: 0 1 288px; }
/* The tile: the whole tile is the link. Rows: icon + category tag, name + arrow, one-liner. */
.mtile { position: relative; flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ico tag" "name go" "line line"; align-content: start; padding: 18px 18px 20px; border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
.mtile:hover, .mtile:focus-visible { color: var(--ink); background: var(--surface); transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.6), 0 0 0 3px rgba(var(--hanko-rgb), 0.12), 0 18px 36px -22px rgba(var(--hanko-rgb), 0.7); }
.mtile:focus-visible { border-radius: var(--radius); }
.mt-ico, .mt-name, .mt-tag, .mt-line { position: relative; } /* above the .glow overlay */
.mt-ico { grid-area: ico; justify-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, var(--surface-3), var(--surface-2)); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .25s; }
.mtile:hover .mt-ico, .mtile:focus-visible .mt-ico { box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.45); }
.mt-g { display: block; width: 24px; height: 24px; fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mt-g .ac { stroke: var(--hanko); }
.mt-g .dots { stroke-width: 2.6; }
.mt-tag { grid-area: tag; align-self: start; justify-self: end; margin-left: 10px; padding: 2px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.5; letter-spacing: 0.03em; white-space: nowrap; color: var(--stone); box-shadow: inset 0 0 0 1px var(--border); }
.mt-name { grid-area: name; margin-top: 14px; font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.mt-go { grid-area: go; align-self: end; margin: 0 0 1px 10px; font-size: 1.05rem; line-height: 1.35; color: var(--hanko); opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .25s var(--ease); }
.mtile:hover .mt-go, .mtile:focus-visible .mt-go { opacity: 1; transform: none; }
@media (hover: none) { .mt-go { opacity: 0.75; transform: none; } }
.mt-line { grid-area: line; margin-top: 6px; min-height: 3em; color: var(--stone); font-size: 0.88rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* Early-access tile: fills the last row; brand tint, not a module. */
.mt-cta-in { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(var(--hanko-rgb), 0.12), rgba(var(--hanko-rgb), 0.03) 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.35); }
.mt-cta-h { font-family: var(--font-word); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.mt-cta-p { color: var(--stone); font-size: 0.88rem; line-height: 1.5; }
.app-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--hanko); background: rgba(var(--hanko-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.3); }
.app-ico .ico { width: 20px; height: 20px; }

/* ---------- Trust trace (signature section) ---------- */
.trace { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .trace { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; } }
.trace > * { min-width: 0; }
.tr-steps { display: grid; gap: 8px; counter-reset: tr; }
.tr-step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; width: 100%; padding: 14px 16px; text-align: left; border: 0; border-radius: 12px; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .25s, background-color .25s; }
.tr-step:hover { box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.4); }
.tr-step[aria-selected="true"] { background: rgba(var(--hanko-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.6); }
.tr-num { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--font-mono); font-size: 0.78rem; color: var(--hanko); box-shadow: inset 0 0 0 1px rgba(var(--hanko-rgb), 0.5); }
.tr-step[aria-selected="true"] .tr-num { background: var(--hanko); color: var(--on-hanko); }
.tr-step b { font-weight: 600; } .tr-step small { color: var(--stone); font-size: 0.82rem; }
.tr-panel { padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.js .tr-panel { display: none; }
.js .tr-panel.is-active { display: block; animation: pv-in .45s var(--ease); }
.tr-panel + .tr-panel { margin-top: 12px; }
.js .tr-panel + .tr-panel { margin-top: 0; }
.tr-panel h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tr-panel > p { color: var(--stone); font-size: 0.92rem; margin-bottom: 14px; }
.tr-corr { display: inline-block; padding: 1px 6px; border-radius: 4px; background: rgba(var(--hanko-rgb), 0.14); color: var(--hanko); }
.chain { margin-top: 28px; padding: 22px; border-radius: 16px; background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(var(--hanko-rgb), 0.08), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.chain-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.chain-head h3 { font-size: 1.05rem; } .chain-head p { color: var(--stone); font-size: 0.86rem; max-width: 62ch; }
.links { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link { position: relative; padding: 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-mono); font-size: 0.72rem; min-width: 0; transition: box-shadow .3s; }
.link b { display: block; font-family: var(--font-body); font-size: 0.86rem; margin-bottom: 6px; }
.link dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; }
.link dt { color: var(--stone); } .link dd { margin: 0; overflow-wrap: anywhere; }
.link .st { display: inline-block; margin-top: 8px; color: var(--ok); }
.link.is-bad { box-shadow: inset 0 0 0 1.5px var(--hanko); }
.link.is-bad .st { color: var(--hanko); }
.link.is-edit .amt { color: var(--hanko); }

/* ---------- Industries ---------- */
.industry h3 { font-family: var(--font-word); font-size: 1.35rem; }
.industry .uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; }
.industry .uses li { font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 8px; border-radius: 6px; color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- Payments teaser and Payments page ---------- */
.teaser { display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: 20px; background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(var(--hanko-rgb), 0.14), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.teaser > * { min-width: 0; }
@media (min-width: 900px) { .teaser { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 40px; } }
.teaser h2 { font-family: var(--font-word); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0 12px; }
.teaser p { color: var(--stone); }
.teaser .actions { margin-top: 22px; }
.features { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.features li { min-width: 0; overflow-wrap: break-word; padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; font-weight: 500; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.features li small { display: block; margin-top: 4px; color: var(--stone); font-weight: 400; font-size: 0.8rem; }
.dev { display: grid; gap: 28px; padding: 28px; border-radius: 18px; background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(var(--hanko-rgb), 0.1), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.dev > * { min-width: 0; }
@media (min-width: 900px) { .dev { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding: 36px; } }
.dev h3 { font-family: var(--font-word); font-weight: 600; font-size: 1.35rem; margin-bottom: 16px; }
.checks li { position: relative; padding: 8px 0 8px 28px; color: var(--stone); font-size: 0.95rem; border-top: 1px solid var(--border); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--hanko); border-bottom: 2px solid var(--hanko); transform: rotate(-45deg); }
.checks b { color: var(--ink); font-weight: 600; }
.phases li { position: relative; padding: 0 0 18px 22px; color: var(--stone); font-size: 0.92rem; border-left: 1px solid var(--border); margin-left: 6px; }
.phases li:last-child { padding-bottom: 0; }
.phases li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--hanko); }
.phases .code { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--hanko); }
.note { margin-top: 28px; padding: 18px 20px; max-width: 860px; border-radius: 10px; color: var(--stone); font-size: 0.92rem; background: rgba(var(--hanko-rgb), 0.06); box-shadow: inset 3px 0 0 var(--hanko); }

/* ---------- Trust tiles: compact, no motion on text ---------- */
.tile h3 { font-size: 1rem; } .tile p { font-size: 0.9rem; }
.tile .icon { width: 36px; height: 36px; padding: 7px; margin-bottom: 12px; }
.tile .icon svg { width: 20px; height: 20px; }

/* ---------- Module pages ---------- */
.mod-hero { position: relative; overflow: hidden; padding: 40px 0 72px; background: radial-gradient(ellipse 60% 60% at 80% 0%, rgba(var(--hanko-rgb), 0.12), transparent 70%); }
.mod-hero .wrap { display: grid; gap: 36px; align-items: center; }
.mod-hero .wrap > * { min-width: 0; }
@media (min-width: 1000px) { .mod-hero .wrap { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } .mod-hero { padding: 56px 0 96px; } }
.crumbs { margin-bottom: 24px; font-size: 0.84rem; color: var(--stone); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.crumbs a { color: var(--stone); } .crumbs a:hover { color: var(--ink); }
.mod-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mod-title .app-ico { width: 52px; height: 52px; border-radius: 14px; }
.mod-title .app-ico .ico { width: 26px; height: 26px; }
.mod-hero h1 { font-family: var(--font-word); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.mod-hero .lead { margin-top: 18px; max-width: 56ch; font-size: 1.1rem; color: var(--stone); }
.mod-hero .badge { margin-top: 18px; }
.mod-hero .actions { margin-top: 26px; }
.status { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .status { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.status > * { min-width: 0; }
.status h2 { font-family: var(--font-word); font-weight: 600; font-size: 1.5rem; margin-bottom: 14px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-flex; padding: 6px 12px; border-radius: 999px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); background: none; font-size: 0.88rem; }
.related a:hover, .related a:focus-visible { box-shadow: inset 0 0 0 1px var(--hanko); color: var(--ink); }

/* ---------- Company facts, CTA ---------- */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 32px; margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 140px minmax(0, 1fr); } }
.facts dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); padding-top: 12px; }
.facts dd { margin: 0; padding: 2px 0 12px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
@media (min-width: 640px) { .facts dd { padding-top: 10px; } }
.facts address { font-style: normal; }
.cta { display: grid; gap: 28px; padding: 40px 24px; border-radius: 20px; background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(var(--hanko-rgb), 0.18), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.cta > * { min-width: 0; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 48px; align-items: center; } }
.cta.solo { text-align: center; } .cta.solo .actions { justify-content: center; }
@media (min-width: 900px) { .cta.solo { grid-template-columns: minmax(0, 1fr); } }
.cta h2 { font-family: var(--font-word); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta p { margin: 14px 0 24px; max-width: 54ch; color: var(--stone); }
.cta.solo p { margin-left: auto; margin-right: auto; }

/* ---------- Footer: sitemap columns, then the lockup and legal line ---------- */
.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--border); color: var(--stone); font-size: 0.88rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } }
.foot-grid > * { min-width: 0; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-brand p { margin-top: 14px; max-width: 34ch; }
.foot-h { margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.foot-grid li + li { margin-top: 6px; }
.site-footer a { color: var(--stone); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.8rem; }

/* ---------- Plain pages (privacy, 404) ---------- */
.page { padding: 64px 0 96px; }
.prose { max-width: 720px; }
.prose h1 { font-family: var(--font-word); font-weight: 600; font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 20px; }
.prose h2 { font-size: 1.2rem; font-weight: 600; margin: 36px 0 10px; }
.prose p { color: var(--stone); }
.prose p + p { margin-top: 12px; }
/* S96-T11: bulleted lists inside prose (privacy.html, registration section); lists are reset globally. */
.prose ul { margin: 10px 0 12px; padding-left: 1.3em; list-style: disc; color: var(--stone); }
.prose ul li + li { margin-top: 6px; }
.prose .draft { display: inline-block; margin-bottom: 18px; }
.prose .button { margin-top: 28px; }
.prose .related { margin-top: 28px; }
.lost-mark { width: 46px; height: 60px; margin-bottom: 24px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Scroll reveal: only when main.js runs (html.js), so content shows without JS ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------- Reduced motion: no animation, transition or transform; the preview does not autoplay ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mtile:hover, .mtile:focus-visible, .button:hover, .button:focus-visible { transform: none; }
  .mt-go { transform: none; }
  /* Module train: main.js never adds .is-train here (the static grid shows); if the setting
     changes while a row is mid-way, this keeps every tile reachable until main.js resets it. */
  .js .mt-train.is-train { overflow-x: auto; }
  .js .pv-panel.is-active .pv-approve .wait { visibility: hidden; }
  .js .pv-panel.is-active .pv-approve .done { opacity: 1; }
}

/* Header button: no flex gap, so 'Register for early access' keeps a single word space (owner review 2026-10-30). */
.button.small { gap: 0; }

/* ---------- Industry pages (S96-T8 Education; S96-T10 shared by BFSI, Ecommerce, Logistics) ----------
   What: the pieces only industries/*.html use; everything else on those pages reuses the
   module-page kit above (.mod-hero, .win, .card, .tile, .teaser, .features, .cta).
   .journey is the hero's six-step journey (for Education: enquiry, admission, fees, classes,
   exams, certificate; each industry page has its own six steps):
   six steps in 3 columns below 560 px and one row of 6 above, where a hanko line fills along the
   row. Each step lights for 2 s of a 12 s CSS loop (staggered animation-delay); no JS, transform-
   free, and the reduced-motion block above (animation: none) leaves every step and the line still.
   .planned is the small "Planned" note on each capability card (owner rule 2026-10-30: industries
   carry no status label; future capabilities may say "Planned").
   .ind-* are the generic names (S96-T10); the .edu-* names are kept as aliases so nothing that
   still uses them breaks. Connects to: industries/bfsi.html, education.html, ecommerce.html,
   logistics.html. Input: none. Output: styling. */
.edu-eyebrow, .ind-eyebrow { margin: 0; }
.mod-hero .edu-h1, .mod-hero .ind-h1 { margin-top: 16px; }
.journey { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; padding: 4px 0 2px; }
@media (min-width: 560px) {
  .journey { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .journey::before, .journey::after { content: ""; position: absolute; top: 21px; left: 8%; height: 2px; }
  .journey::before { right: 8%; background: var(--border); }
  .journey::after { width: 0; background: var(--hanko); animation: jn-line 12s linear infinite; }
}
@keyframes jn-line { to { width: 84%; } }
.jn { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 0.68rem; color: var(--stone); overflow-wrap: anywhere; }
.jn-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--stone); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border), 0 0 0 0 rgba(var(--hanko-rgb), 0); animation: jn-lit 12s infinite; }
.jn-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jn:nth-child(2) .jn-dot { animation-delay: 2s; } .jn:nth-child(3) .jn-dot { animation-delay: 4s; } .jn:nth-child(4) .jn-dot { animation-delay: 6s; } .jn:nth-child(5) .jn-dot { animation-delay: 8s; } .jn:nth-child(6) .jn-dot { animation-delay: 10s; }
@keyframes jn-lit {
  0%, 14% { color: var(--on-hanko); background: var(--hanko); box-shadow: inset 0 0 0 1px var(--hanko), 0 0 0 6px rgba(var(--hanko-rgb), 0.18); }
  20%, 100% { color: var(--stone); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border), 0 0 0 0 rgba(var(--hanko-rgb), 0); }
}
.edu-log, .ind-log { margin-top: 16px; }
.planned { margin-top: 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--stone); }
.card p.planned { font-size: 0.7rem; }
@media (min-width: 1000px) { .features.edu-fees, .features.ind-pay { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
