/* QS Prime — Fintech Precision redesign
   Palette limited to the existing Quillstone tokens:
   quill blue #0a6cc9 · deep navy #012d68 · stone grey #434e53
   and the site's existing neutrals. No new brand colours. */

body { margin: 0; }

.qs {
  --bg: #ffffff;
  --fg: #0d1b33;
  --muted: #f2f6fb;
  --mfg: #4f5b62;
  --border: #dbe3ec;
  --card: #ffffff;
  --primary: #0a6cc9;
  --pfg: #ffffff;
  --accent: #0a6cc9;
  --accent-soft: #e3effb;
  --navy: #012d68;
  --navy-fg: #ffffff;
  --stone: #434e53;
  --shadow: 0 1px 2px rgba(1, 45, 104, .06);
  --shadow-md: 0 18px 44px -24px rgba(1, 45, 104, .28);
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

.qs * { box-sizing: border-box; }
.qs h1, .qs h2, .qs h3, .qs h4, .qs p, .qs figure, .qs ul, .qs ol { margin: 0; }
.qs ul, .qs ol { padding: 0; list-style: none; }
.qs :where(a) { color: inherit; text-decoration: none; }
.qs :where(button, input, select, textarea) { font: inherit; color: inherit; }
.qs img { max-width: 100%; }
.qs ::selection { background: var(--accent-soft); color: var(--fg); }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }

.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; }
.num, .money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.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;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font: 500 13px 'Geist', sans-serif;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(29px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
}
.h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 600;
}
.lead {
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.65;
  color: var(--mfg);
}
.muted { color: var(--mfg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px;
  font: 500 14px 'Geist', sans-serif;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--pfg); }
.btn-primary:hover { opacity: .9; }
.btn-outline {
  background: var(--card); color: var(--fg);
  border-color: var(--border); box-shadow: var(--shadow);
}
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--muted); }
.btn-navy { background: var(--navy); color: var(--navy-fg); }
.btn-navy:hover { opacity: .9; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 12.5px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500;
}
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Release bar ---------- */
.release-bar { background: var(--navy); color: var(--navy-fg); font-size: 12px; }
.release-bar .wrap {
  min-height: 40px; display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; text-align: center;
}
.release-item { display: inline-flex; align-items: center; gap: 8px; }
.release-tag {
  font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 2px 6px;
  white-space: nowrap;
}
.release-item a {
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; gap: 4px;
}
.release-sep { width: 1px; height: 14px; background: rgba(255,255,255,.28); }
.release-bar .new-dot {
  width: 6px; height: 6px; border-radius: 99px; background: var(--pfg);
  box-shadow: 0 0 0 3px rgba(255,255,255,.16); flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(1,45,104,.35); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand-mark { width: 30px; height: 31px; object-fit: contain; display: block; }
.brand-name { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.brand-tag {
  display: block;
  font-family: 'Geist Mono', monospace; font-size: 9.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--mfg); margin-top: 3px; line-height: 1;
}
.training-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 28px; align-items: center; }
.nav-center { display: flex; align-items: center; gap: 1px; }
.nav-link {
  font-size: 13.5px; color: var(--mfg); padding: 8px 10px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--fg); background: var(--muted); }
.nav-link[aria-current="page"] { color: var(--fg); font-weight: 500; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px;
  padding: 0 11px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); box-shadow: var(--shadow); transition: background .15s, border-color .15s;
}
.wa-btn:hover { background: var(--muted); border-color: var(--accent); }
.wa-icon {
  width: 27px; height: 27px; border-radius: 99px; background: var(--accent-soft);
  color: var(--primary); display: grid; place-items: center; flex: none;
}
.wa-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.wa-main { font-size: 12.5px; font-weight: 600; }
.wa-sub { font-family: 'Geist Mono', monospace; font-size: 9.5px; color: var(--mfg); margin-top: 3px; white-space: nowrap; }
.header-cta { height: 44px; padding: 0 16px; font-size: 13.5px; }
.cta-short { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; }
.mobile-nav {
  display: none; border-top: 1px solid var(--border); background: var(--bg);
  padding: 6px 22px 18px; box-shadow: 0 22px 34px -28px rgba(1,45,104,.5);
}
.mobile-nav.open { display: block; }
.mobile-nav a.nav-link { display: block; padding: 13px 4px; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.mobile-nav a.nav-link:last-of-type { border-bottom: 0; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 68px 0 76px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; right: -8%; top: -12%; width: 58%; height: 110%;
  pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 62% 42%, #000 12%, transparent 68%);
  mask-image: radial-gradient(ellipse at 62% 42%, #000 12%, transparent 68%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 4.5vw, 56px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
  font-family: 'Geist Mono', monospace; font-size: 10.5px;
  letter-spacing: .03em; color: var(--fg); line-height: 1.3;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--primary); flex: none; }
.hero-title { max-width: 600px; }
.hero-sub { max-width: 560px; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.62; color: var(--mfg); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.micro-trust {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--mfg);
}
.micro-trust .sep { color: var(--border); }
.hero-note {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--mfg);
}
.hero-note svg { color: var(--primary); flex: none; }

/* ---------- Interactive POS window ---------- */
.pos-shell { width: 100%; max-width: 640px; justify-self: end; }
.pos-window {
  border: 1px solid var(--border); border-radius: 13px;
  background: var(--card); overflow: hidden; box-shadow: var(--shadow-md);
}
.pos-chrome {
  height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 13px; background: var(--muted); border-bottom: 1px solid var(--border);
}
.traffic { display: flex; gap: 5px; flex: none; }
.traffic span { width: 9px; height: 9px; border-radius: 99px; background: var(--border); display: block; }
.pos-title { font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--mfg); white-space: nowrap; }
.pos-chrome-spacer { flex: 1; }
.pos-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Geist Mono', monospace; font-size: 9.5px; letter-spacing: .04em;
  color: var(--primary); background: var(--accent-soft); border-radius: 99px;
  padding: 3px 8px; white-space: nowrap;
}
.pos-live .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--primary); }
.pos-window.is-offline .pos-live { background: var(--bg); border: 1px solid var(--border); color: var(--fg); }
.pos-connect {
  min-height: 38px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 7px 13px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.connection-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', monospace; font-size: 9.5px; color: var(--mfg);
}
.connection-state .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--primary); flex: none; }
.pos-window.is-offline .connection-state { color: var(--fg); }
.dumsor-control { display: flex; align-items: center; gap: 7px; }
.dumsor-label { font-size: 10.5px; color: var(--mfg); white-space: nowrap; }
.switch {
  position: relative; width: 34px; height: 19px; border-radius: 99px;
  background: var(--border); border: 1px solid var(--border); cursor: pointer; padding: 0;
  transition: background .18s, border-color .18s; flex: none;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  border-radius: 99px; background: var(--card); transition: transform .18s;
  box-shadow: 0 1px 2px rgba(1,45,104,.22);
}
.switch[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(15px); }
.pos-body { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 386px; }
.pos-catalog { padding: 11px; border-right: 1px solid var(--border); background: var(--card); }
.pos-cart { padding: 11px; background: var(--muted); display: flex; flex-direction: column; }
.pos-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--mfg); margin-bottom: 7px; min-height: 16px;
}
.clear-cart {
  border: 0; background: none; font-family: 'Geist Mono', monospace; font-size: 8.5px;
  color: var(--primary); cursor: pointer; padding: 2px 0;
}
.clear-cart:hover { text-decoration: underline; }
.pos-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 4px; padding: 0; margin-bottom: 5px; text-align: left;
  border: 1px solid var(--border); border-radius: 7px; background: var(--bg);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.pos-item:hover { border-color: var(--primary); background: var(--accent-soft); }
.pos-item:last-child { margin-bottom: 0; }
.pi-main {
  flex: 1; min-width: 0; border: 0; background: none; text-align: left;
  padding: 7px 8px; cursor: pointer; border-radius: 6px 0 0 6px;
}
.pos-item .qty { padding-right: 6px; }
.pos-item .pi-name { font-size: 11px; font-weight: 600; line-height: 1.25; display: block; }
.pos-item .pi-price { font-family: 'Geist Mono', monospace; font-size: 9.5px; color: var(--mfg); margin-top: 2px; display: block; }
.qty { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.qty button {
  width: 19px; height: 19px; border-radius: 4px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; display: grid; place-items: center;
  font: 600 12px 'Geist', sans-serif; line-height: 1; padding: 0;
}
.qty button:hover { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); }
.qty .qv { min-width: 13px; text-align: center; font-family: 'Geist Mono', monospace; font-size: 10px; }
.cart-empty {
  border: 1px dashed var(--border); border-radius: 7px; padding: 16px 8px;
  text-align: center; font-size: 10.5px; color: var(--mfg); margin-bottom: 8px;
}
.cart-lines { display: flex; flex-direction: column; gap: 3px; min-height: 24px; }
.cart-line { display: flex; justify-content: space-between; gap: 7px; font-size: 10px; line-height: 1.35; }
.cart-line .cl-name { color: var(--mfg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line .cl-amt { font-family: 'Geist Mono', monospace; white-space: nowrap; }
.pay-label { margin-top: 8px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pay-pill {
  height: 24px; border: 1px solid var(--border); background: var(--bg);
  border-radius: 5px; font-size: 9.5px; color: var(--mfg); cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.pay-pill:hover { border-color: var(--primary); }
.pay-pill.on { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.tax-box { margin-top: auto; padding-top: 7px; border-top: 1px solid var(--border); }
.tax-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 9.5px; color: var(--mfg); padding: 2px 0; line-height: 1.25;
}
.tax-row .tr-val { font-family: 'Geist Mono', monospace; white-space: nowrap; }
.tax-row.sum { border-top: 1px solid var(--border); margin-top: 3px; padding-top: 4px; color: var(--fg); }
.tax-row.total {
  border-top: 1px solid var(--border); margin-top: 4px; padding-top: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--fg);
}
.tax-row.total .tr-val { font-size: 13px; }
.pos-complete { height: 33px; margin-top: 7px; font-size: 11px; border-radius: 6px; }
.pos-foot {
  margin-top: 7px; font-family: 'Geist Mono', monospace; font-size: 8.5px;
  color: var(--mfg); text-align: center; line-height: 1.4;
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 26px 0 0; border-bottom: 1px solid var(--border); }
.sector-line { display: flex; align-items: center; gap: 8px; }
.sector-rail {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sector-track { display: flex; width: max-content; animation: sectorTick 36s linear infinite; }
.sector-rail:hover .sector-track { animation-play-state: paused; }
.sector-set { display: flex; gap: 8px; padding-right: 8px; }
@keyframes sectorTick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sector-track { animation: none; width: auto; }
  .sector-set { flex-wrap: wrap; row-gap: 8px; }
  .sector-set[aria-hidden] { display: none; }
  .sector-rail { -webkit-mask-image: none; mask-image: none; }
}
.sector-label {
  font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mfg); margin-right: 4px;
}
.sector-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--card);
  font-size: 11.5px; color: var(--fg); white-space: nowrap;
}
.sector-pill .dot { width: 4px; height: 4px; border-radius: 99px; background: var(--primary); flex: none; }
.trust-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 11px; overflow: hidden;
  background: var(--card); margin: 22px 0 26px;
}
.trust-pillar { display: flex; align-items: flex-start; gap: 11px; padding: 18px; border-right: 1px solid var(--border); }
.trust-pillar:last-child { border-right: 0; }
.trust-pillar .ico { width: 32px; height: 32px; border-radius: 7px; }
.trust-pillar h2 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.trust-pillar p { font-size: 11.5px; color: var(--mfg); line-height: 1.5; margin-top: 3px; }

/* ---------- Shared section furniture ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section-head {
  display: flex; flex-direction: column; gap: 12px; max-width: 700px;
  margin-bottom: 36px;
}
.section-head.split {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  max-width: none; gap: 32px;
}
.section-head.split > div { display: flex; flex-direction: column; gap: 12px; max-width: 660px; }
.ico {
  width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--border);
  display: grid; place-items: center; flex: none; background: var(--bg); color: var(--primary);
}
.ico-navy { background: var(--navy); color: var(--navy-fg); border-color: var(--navy); }
.ico-soft { background: var(--accent-soft); color: var(--primary); border-color: transparent; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px;
  padding: 0 9px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 11px; font-weight: 500; color: var(--fg); background: var(--bg);
  white-space: nowrap;
}
.badge-soft { background: var(--muted); border-color: transparent; }
.badge-blue { background: var(--accent-soft); color: var(--navy); border-color: transparent; }
.badge-navy { background: var(--navy); color: var(--navy-fg); border-color: transparent; }
.badge .dot { width: 5px; height: 5px; border-radius: 99px; background: currentColor; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.b-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow); min-width: 0;
}
.b-card:hover { border-color: var(--primary); }
.b-4 { grid-column: span 4; }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }
.b-6 { grid-column: span 6; }
.b-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.b-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.28; }
.b-desc { font-size: 13px; color: var(--mfg); line-height: 1.55; }
.b-desc strong { color: var(--fg); font-weight: 500; }
.b-visual { margin-top: auto; }
.status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.status-row:last-child { border-bottom: 0; }
.status-row .sr-label { color: var(--mfg); }
.status-row .sr-val { font-family: 'Geist Mono', monospace; font-size: 11px; text-align: right; }
.device-panel {
  border: 1px solid var(--border); border-radius: 9px; background: var(--bg);
  padding: 12px 14px;
}
.sync-meter { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 7px 0 6px; }
.sync-meter span { display: block; height: 100%; width: 72%; background: var(--primary); border-radius: 99px; }
.sync-note {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 9.5px; color: var(--mfg);
}
.mini-receipt {
  width: 100%; max-width: 236px; margin: 0 auto; background: var(--bg);
  border: 1px solid var(--border); border-radius: 5px; padding: 13px;
  font-family: 'Geist Mono', monospace; font-size: 9.5px; line-height: 1.55;
  box-shadow: 0 1px 2px rgba(1,45,104,.06);
}
.mini-receipt .mr-head { text-align: center; padding-bottom: 7px; border-bottom: 1px dashed var(--border); }
.mini-receipt .mr-store { font-family: 'Geist', sans-serif; font-size: 11px; font-weight: 600; }
.mini-receipt .mr-sub { font-size: 8px; color: var(--mfg); }
.mini-receipt .mr-row { display: flex; justify-content: space-between; gap: 6px; padding: 1px 0; }
.mini-receipt .mr-row.mr-tax { color: var(--mfg); font-size: 8.5px; }
.mini-receipt .mr-total { border-top: 1px dashed var(--border); margin-top: 5px; padding-top: 5px; font-weight: 600; }
.receipt-chips { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.receipt-chips .chip {
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px;
  font-family: 'Geist Mono', monospace; font-size: 8.5px; color: var(--mfg);
}
.eod-box { border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; background: var(--bg); }
.eod-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 34px; border-bottom: 1px solid var(--border); font-size: 12px;
}
.eod-line:last-child { border-bottom: 0; }
.eod-line .el-label { color: var(--mfg); }
.eod-line .el-val { font-family: 'Geist Mono', monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.eod-input-wrap { display: inline-flex; align-items: center; gap: 2px; }
.eod-input-wrap .cur { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--mfg); }
.eod-input {
  width: 96px; height: 26px; border: 1px solid var(--border); border-radius: 5px;
  background: var(--bg); padding: 0 6px; text-align: right;
  font-family: 'Geist Mono', monospace; font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.eod-input:focus { border-color: var(--primary); outline: 2px solid var(--accent-soft); }
.eod-status {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: 6px; margin-top: 8px;
  font-size: 11px; background: var(--muted); color: var(--mfg);
}
.eod-status .es-val { font-family: 'Geist Mono', monospace; font-weight: 600; color: var(--fg); }
.eod-status.balanced { background: var(--accent-soft); color: var(--primary); }
.eod-status.balanced .es-val { color: var(--primary); }
.pin-log { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 9px; }
.pin-log-title {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Geist Mono', monospace; font-size: 8.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mfg); margin-bottom: 5px;
}
.pin-entry { display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--mfg); padding: 2px 0; }
.pin-entry .pe-what { color: var(--fg); }
.pin-entry .pe-meta { font-family: 'Geist Mono', monospace; white-space: nowrap; }
.age-row {
  display: grid; grid-template-columns: 46px 1fr 64px; align-items: center;
  gap: 9px; font-size: 10px;
}
.age-row .ar-label { font-family: 'Geist Mono', monospace; color: var(--mfg); font-size: 9.5px; }
.age-row .ar-amt { font-family: 'Geist Mono', monospace; font-size: 10.5px; text-align: right; font-variant-numeric: tabular-nums; }
.age-track { height: 7px; border-radius: 99px; background: var(--muted); border: 1px solid var(--border); overflow: hidden; }
.age-track span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.age-total {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px;
}
.age-total .at-val { font-family: 'Geist Mono', monospace; font-weight: 600; }
.training-toggle {
  display: inline-flex; gap: 3px; padding: 3px; border-radius: 7px;
  background: var(--muted); border: 1px solid var(--border); width: fit-content;
}
.training-toggle button {
  height: 26px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent;
  font-size: 9.5px; color: var(--mfg); cursor: pointer;
}
.training-toggle button[aria-pressed="true"] {
  background: var(--card); color: var(--fg); font-weight: 600;
  box-shadow: 0 1px 2px rgba(1,45,104,.1), 0 0 0 1px var(--border);
}
.training-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.training-stat {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  background: var(--bg); display: flex; flex-direction: column; gap: 3px;
}
.training-stat .ts-k { font-family: 'Geist Mono', monospace; font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mfg); }
.training-stat .ts-v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.training-stat .ts-n { font-size: 9.5px; color: var(--mfg); }
.training-banner {
  display: flex; align-items: center; gap: 7px; margin-top: 9px;
  font-size: 10.5px; color: var(--mfg);
}
.training-banner strong { color: var(--primary); font-weight: 600; }

/* ---------- Products ---------- */
.products-section { background: var(--muted); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tabs {
  display: inline-flex; gap: 3px; padding: 4px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border); flex-wrap: wrap;
}
.filter-tab {
  height: 30px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent;
  font-size: 11.5px; color: var(--mfg); cursor: pointer; white-space: nowrap;
}
.filter-tab:hover { color: var(--fg); }
.filter-tab.on { background: var(--accent-soft); color: var(--navy); font-weight: 600; }
.filter-count { font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--mfg); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow); min-width: 0;
}
.product-card:hover { border-color: var(--primary); }
.product-card.wide { grid-column: span 2; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-icon {
  width: 44px; height: 44px; border-radius: 9px; overflow: hidden; flex: none;
  border: 1px solid var(--border); background: var(--bg);
}
.app-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.product-cat {
  font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mfg); margin-top: 2px;
}
.product-name { font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.product-desc { font-size: 13.5px; color: var(--mfg); line-height: 1.6; }
.product-divider { height: 1px; background: var(--border); }
.product-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.check-item { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.45; }
.check-item svg { flex: none; margin-top: 2px; color: var(--primary); }
.check-item strong { font-weight: 600; }
.check-item span { color: var(--mfg); }
.product-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.product-actions .btn { height: 34px; padding: 0 12px; font-size: 12px; }
.roadmap-card {
  margin-top: 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); padding: 20px 22px;
  display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 24px;
}
.roadmap-label { display: flex; flex-direction: column; gap: 4px; }
.roadmap-label .rl-title { font-size: 12px; font-weight: 600; white-space: nowrap; }
.roadmap-label .rl-sub { font-family: 'Geist Mono', monospace; font-size: 9px; color: var(--mfg); letter-spacing: .06em; text-transform: uppercase; }
.roadmap-item { display: flex; flex-direction: column; gap: 3px; padding-left: 20px; border-left: 1px solid var(--border); }
.roadmap-item .ri-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.roadmap-item h3 { font-size: 13px; font-weight: 600; }
.roadmap-item p { font-size: 11px; color: var(--mfg); line-height: 1.5; }

/* ---------- Story banner ---------- */
.story-band { padding: 0 0 96px; }
.story-card {
  position: relative; overflow: hidden; background: var(--navy); color: var(--navy-fg);
  border-radius: 14px; padding: clamp(28px, 4.5vw, 48px);
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.story-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 5%, transparent 72%);
}
.story-card > * { position: relative; z-index: 1; }
.story-kicker {
  font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}
.story-card .story-title {
  font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.03em;
  font-weight: 600; margin-top: 12px;
}
.story-card .story-copy { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.74); margin-top: 16px; }
.story-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: 13.5px; font-weight: 600; color: var(--navy-fg);
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px;
}
.story-link:hover { border-bottom-color: var(--navy-fg); }
.story-facts { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
.story-fact {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.22);
  font-size: 11.5px;
}
.story-fact .sf-k { color: rgba(255,255,255,.62); }
.story-fact .sf-v { font-family: 'Geist Mono', monospace; font-size: 10.5px; text-align: right; }

/* ---------- Licensing ---------- */
.license-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--muted); flex-wrap: wrap;
}
.license-callout .lc-main { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; }
.license-callout .lc-note { font-size: 11px; color: var(--mfg); }
.license-table {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--card); margin-top: 16px; box-shadow: var(--shadow);
}
.license-row {
  display: grid; grid-template-columns: 1.15fr 1.65fr .9fr .95fr;
  align-items: stretch; border-top: 1px solid var(--border);
}
.license-row:first-child { border-top: 0; }
.license-row.head { background: var(--muted); }
.license-cell {
  padding: 16px 18px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0;
}
.license-cell:last-child { border-right: 0; }
.license-head {
  font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mfg);
}
.license-name { font-size: 13.5px; font-weight: 600; }
.license-sub { font-size: 11px; color: var(--mfg); line-height: 1.45; }
.license-incl { font-size: 11.5px; color: var(--mfg); line-height: 1.5; }
.price-wrap { display: flex; align-items: baseline; gap: 6px; }
.price-prefix { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--mfg); }
.price-value {
  font-family: 'Geist Mono', monospace; font-size: 15px; font-weight: 600;
  color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.license-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.license-fine { font-size: 11px; color: var(--mfg); max-width: 520px; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-intro { display: flex; flex-direction: column; gap: 14px; }
.faq-intro .lead { font-size: 15px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px; padding: 0; background: none; border: 0;
  color: var(--fg); font: 500 14px 'Geist', sans-serif; text-align: left; cursor: pointer;
}
.faq-q:hover { color: var(--primary); }
.faq-q .faq-num {
  font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--mfg);
  margin-right: 10px;
}
.faq-q .faq-t { flex: 1; }
.chev { transition: transform .2s; flex: none; color: var(--mfg); }
.chev.on { transform: rotate(180deg); color: var(--primary); }
.faq-a { padding: 0 0 20px; font-size: 13.5px; color: var(--mfg); line-height: 1.7; max-width: 650px; }
.faq-a a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact band ---------- */
.contact-band { padding: 0 0 96px; }
.contact-card {
  background: var(--navy); color: var(--navy-fg); border-radius: 14px;
  padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px); align-items: center;
}
.contact-card .eyebrow { color: rgba(255,255,255,.65); }
.contact-card h2 { margin-top: 10px; }
.contact-card .lead { color: rgba(255,255,255,.74); margin-top: 10px; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-link {
  padding: 12px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px;
  display: flex; flex-direction: column; gap: 3px; transition: background .15s, border-color .15s;
}
.contact-link:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); }
.contact-link .cl-k { font-size: 10px; color: rgba(255,255,255,.6); }
.contact-link .cl-v { font-size: 12.5px; font-weight: 500; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.contact-actions .btn-outline { background: transparent; color: var(--navy-fg); border-color: rgba(255,255,255,.35); box-shadow: none; }
.contact-actions .btn-outline:hover { background: rgba(255,255,255,.08); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 13px; max-width: 300px; }
.footer-brand .brand { margin-bottom: 2px; }
.footer-brand p { font-size: 12px; color: var(--mfg); line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 0; font-size: 12px; }
.footer-contact a { padding: 4px 0; display: inline-block; }
.footer-contact a:hover { color: var(--primary); }
.footer-col h3 {
  font-family: 'Geist Mono', monospace; font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mfg); margin: 0 0 12px; font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col a { font-size: 12px; color: var(--fg); }
.footer-col a:hover { color: var(--primary); }
.footer-col .manual-pair { display: flex; gap: 5px; align-items: baseline; }
.footer-col .manual-pair .mp-label { font-size: 12px; color: var(--fg); flex: 1; min-width: 0; }
.footer-col .manual-pair .mp-sep { color: var(--border); font-size: 10px; }
.footer-col .manual-pair a { font-size: 10.5px; color: var(--mfg); white-space: nowrap; }
.footer-col .manual-pair a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 36px; padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: 11px; color: var(--mfg);
}
.footer-bottom .fb-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(1, 16, 38, .62);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px);
  overflow-y: auto; background: var(--card); color: var(--fg);
  border: 1px solid var(--border); border-radius: 14px; padding: 28px;
  box-shadow: 0 30px 70px -20px rgba(1, 16, 38, .5);
}
.modal-panel.modal-lg { max-width: 640px; }
.modal-panel.modal-receipt { max-width: 440px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 7px; background: var(--bg);
  display: grid; place-items: center; cursor: pointer; color: var(--mfg);
}
.modal-close:hover { background: var(--muted); color: var(--fg); }
.modal-head { display: flex; flex-direction: column; gap: 7px; padding-right: 32px; }
.modal-head h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.modal-head p { font-size: 13px; color: var(--mfg); line-height: 1.6; }
.modal-body { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.modal-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 10.5px; font-weight: 600; color: var(--mfg); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); padding: 9px 11px; font-size: 13px; color: var(--fg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); outline: 2px solid var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 76px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }
.modal-divider { height: 1px; background: var(--border); }
.modal-note {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--muted); font-size: 11px; color: var(--mfg); line-height: 1.55;
}
.modal-alt { font-size: 11.5px; color: var(--mfg); text-align: center; }
.modal-alt a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Download modal */
.dl-summary {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--muted);
}
.dl-app-icon {
  width: 42px; height: 42px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg); flex: none;
}
.dl-app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-summary .dl-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-summary .dl-name { font-size: 13px; font-weight: 600; }
.dl-summary .dl-ver { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--mfg); }
.os-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--muted); border: 1px solid var(--border); border-radius: 8px; }
.os-btn {
  height: 32px; border: 0; border-radius: 5px; background: transparent;
  font-size: 12px; color: var(--mfg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.os-btn[aria-pressed="true"] { background: var(--card); color: var(--fg); font-weight: 600; box-shadow: 0 1px 2px rgba(1,45,104,.1), 0 0 0 1px var(--border); }
.dl-help { border-top: 1px solid var(--border); padding-top: 12px; }
.dl-help summary {
  cursor: pointer; font-size: 12px; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.dl-help summary::-webkit-details-marker { display: none; }
.dl-help summary::after { content: "+"; font-family: 'Geist Mono', monospace; color: var(--mfg); font-size: 14px; }
.dl-help[open] summary::after { content: "\2212"; }
.dl-help .help-body { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.help-step { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.55; color: var(--mfg); }
.help-step .hs-num { font-family: 'Geist Mono', monospace; color: var(--primary); flex: none; width: 16px; }
.dl-selected { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--mfg); }
.dl-selected strong { color: var(--fg); font-weight: 500; }

/* Receipt modal */
.receipt-head { text-align: center; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.receipt-check {
  width: 38px; height: 38px; border-radius: 99px; background: var(--accent-soft);
  color: var(--primary); display: grid; place-items: center; margin-bottom: 2px;
}
.receipt-head h2 { font-size: 20px; letter-spacing: -.02em; }
.receipt-head p { font-size: 11.5px; color: var(--mfg); }
.receipt-paper {
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg);
  padding: 18px; font-family: 'Geist Mono', monospace; font-size: 10.5px; line-height: 1.65;
}
.receipt-paper .rp-store { text-align: center; padding-bottom: 9px; border-bottom: 1px dashed var(--border); }
.receipt-paper .rp-store strong { font-family: 'Geist', sans-serif; font-size: 14px; display: block; }
.receipt-paper .rp-store span { font-size: 9px; color: var(--mfg); }
.receipt-paper .rp-meta { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 9.5px; color: var(--mfg); }
.receipt-paper .rp-item { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.receipt-paper .rp-item .rp-qty { color: var(--mfg); }
.receipt-paper .rp-tax { color: var(--mfg); font-size: 9.5px; }
.receipt-paper .rp-total { display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--border); margin-top: 7px; padding-top: 7px; font-weight: 600; font-size: 12px; }
.receipt-paper .rp-paid { text-align: center; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 9.5px; color: var(--mfg); }
.receipt-paper .rp-paid strong { color: var(--primary); }
.receipt-note { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--mfg); }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Quote success */
.form-status {
  padding: 10px 12px; border-radius: 7px; font-size: 11.5px; line-height: 1.5;
  background: var(--accent-soft); color: var(--primary); border: 1px solid transparent;
}
.form-status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- About page ---------- */
.about-hero { padding: 72px 0 76px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.about-hero::before {
  content: ""; position: absolute; right: -6%; top: -20%; width: 46%; height: 120%;
  pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 8%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 50%, #000 8%, transparent 70%);
}
.about-hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.about-hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.about-hero h1 { font-size: clamp(32px, 4.3vw, 52px); letter-spacing: -.035em; }
.snapshot {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-md);
}
.snapshot-cell { padding: 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.snapshot-cell:nth-child(2n) { border-right: 0; }
.snapshot-cell:nth-last-child(-n+2) { border-bottom: 0; }
.snapshot-k { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: 'Geist Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--mfg); }
.snapshot-k .sn { color: var(--border); }
.snapshot-v { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.snapshot-v small { display: block; font-family: 'Geist Mono', monospace; font-size: 9.5px; color: var(--mfg); font-weight: 400; margin-top: 2px; letter-spacing: 0; }
.snapshot-foot { grid-column: span 2; padding: 12px 22px; display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--mfg); background: var(--muted); }
.snapshot-foot .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--primary); flex: none; }

/* Comparison */
.compare { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.compare-head, .compare-row { display: grid; grid-template-columns: .9fr 1.15fr 1.25fr; }
.compare-head { background: var(--muted); border-bottom: 1px solid var(--border); }
.compare-head > div { padding: 12px 16px; font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--mfg); }
.compare-head .ch-them { color: var(--mfg); }
.compare-head .ch-us { color: var(--primary); display: flex; align-items: center; gap: 6px; }
.compare-row { border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 14px 16px; border-right: 1px solid var(--border); font-size: 12px; line-height: 1.5; }
.compare-row > div:last-child { border-right: 0; }
.compare-row .cr-k { font-family: 'Geist Mono', monospace; font-size: 9.5px; letter-spacing: .04em; color: var(--mfg); text-transform: uppercase; }
.compare-row .cr-them { color: var(--mfg); }
.compare-row .cr-us { color: var(--fg); background: rgba(10,108,201,.035); display: flex; gap: 7px; align-items: flex-start; }
.compare-row .cr-us svg { color: var(--primary); flex: none; margin-top: 2px; }
.compare-row .cr-us strong { font-weight: 600; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.portrait-wrap { display: flex; flex-direction: column; gap: 10px; }
.portrait {
  position: relative; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--navy); aspect-ratio: 4 / 4.8; box-shadow: var(--shadow-md);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--navy-fg);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 38px 38px;
}
.portrait:not(.no-photo) .portrait-fallback { display: none; }
.portrait-monogram {
  width: 82px; height: 82px; border-radius: 99px; border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center; font-family: 'Geist Mono', monospace;
  font-size: 25px; letter-spacing: .02em; background: rgba(255,255,255,.06);
}
.portrait-fallback .pf-label {
  font-family: 'Geist Mono', monospace; font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.65); text-align: center; line-height: 1.6;
}
.portrait-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: var(--card); color: var(--fg); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px; display: flex; flex-direction: column; gap: 1px;
}
.portrait-badge .pb-name { font-size: 10.5px; font-weight: 600; }
.portrait-badge .pb-role { font-family: 'Geist Mono', monospace; font-size: 8px; color: var(--mfg); }
.portrait-caption { display: flex; justify-content: space-between; gap: 10px; font-family: 'Geist Mono', monospace; font-size: 9px; color: var(--mfg); }
.founder-copy { display: flex; flex-direction: column; gap: 14px; }
.founder-role { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.founder-copy p { font-size: 14.5px; line-height: 1.75; color: var(--mfg); }
.founder-copy p.strong { color: var(--fg); font-size: 16px; line-height: 1.65; font-weight: 500; letter-spacing: -.01em; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.proof-card { border: 1px solid var(--border); border-radius: 9px; background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.proof-card h3 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.proof-card p { font-size: 11.5px; line-height: 1.6; color: var(--mfg); }
.proof-card .pc-tag { font-family: 'Geist Mono', monospace; font-size: 8.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle {
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 168px;
  box-shadow: var(--shadow);
}
.principle:hover { border-color: var(--primary); }
.principle .ico { width: 38px; height: 38px; border-radius: 9px; }
.principle h3 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.principle p { font-size: 11.5px; color: var(--mfg); line-height: 1.6; }

/* Lineup */
.lineup { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.lineup-row { display: grid; grid-template-columns: 1.05fr 1.65fr .8fr; align-items: center; border-top: 1px solid var(--border); }
.lineup-row:first-child { border-top: 0; }
.lineup-row.head { background: var(--muted); }
.lineup-row.head > div { padding: 10px 18px; font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--mfg); }
.lineup-main { padding: 16px 18px; display: flex; align-items: center; gap: 11px; border-right: 1px solid var(--border); }
.lineup-main .app-icon { width: 36px; height: 36px; border-radius: 7px; }
.lineup-main .lm-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.lineup-main .lm-ver { font-family: 'Geist Mono', monospace; font-size: 9px; color: var(--mfg); margin-top: 2px; }
.lineup-desc { padding: 16px 18px; font-size: 11.5px; color: var(--mfg); line-height: 1.55; border-right: 1px solid var(--border); }
.lineup-links { padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.lineup-links a { font-size: 11.5px; font-weight: 500; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.lineup-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.roadmap-band { margin-top: 16px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 24px; align-items: center; padding: 20px 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .menu-btn { display: inline-flex; }
  .wa-sub { display: none; }
  .wa-btn { padding: 0 9px; }
  .hero-inner, .about-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .pos-shell { justify-self: stretch; max-width: 720px; }
  .hero::before, .about-hero::before { width: 80%; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col.manuals { grid-column: span 3; }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-4, .b-3, .b-2, .b-6 { grid-column: span 2; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card.wide { grid-column: span 1; }
  .story-card { grid-template-columns: 1fr; gap: 26px; }
  .contact-card { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { max-width: 560px; }
  .trust-pillars { grid-template-columns: 1fr; }
  .trust-pillar { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-pillar:last-child { border-bottom: 0; }
  .license-row { grid-template-columns: 1fr 1.4fr .9fr; }
  .license-row .license-cell:nth-child(3) { display: none; }
  .license-row.head .license-cell:nth-child(3) { display: none; }
  .roadmap-card { grid-template-columns: 1fr 1fr; }
  .roadmap-label { grid-column: span 2; }
  .roadmap-item:first-of-type { padding-left: 0; border-left: 0; }
  .founder-grid { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 360px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .compare-head, .compare-row { grid-template-columns: .85fr 1.1fr 1.2fr; }
  .lineup-row { grid-template-columns: 1.1fr 1.4fr; }
  .lineup-links { grid-column: span 2; flex-direction: row; padding-top: 0; border-top: 1px dashed var(--border); }
  .lineup-row.head > div:last-child { display: none; }
  .lineup-desc { border-right: 0; }
  .roadmap-band { grid-template-columns: 1fr 1fr; }
  .roadmap-band .roadmap-label { grid-column: span 2; }
}
@media (max-width: 760px) {
  .training-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  .about-hero { padding: 44px 0 56px; }
  .release-bar .wrap { gap: 8px; flex-direction: column; padding-top: 9px; padding-bottom: 9px; }
  .release-item { font-size: 10px; gap: 6px; }
  .release-item a { font-size: 10px; }
  .release-tag { font-size: 8.5px; padding: 1px 5px; }
  .release-sep { display: none; }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand-name { font-size: 13.5px; }
  .brand-tag { font-size: 8.5px; }
  .wa-btn { display: none; }
  .header-cta { height: 36px; padding: 0 11px; font-size: 12px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .micro-trust { gap: 7px; font-size: 9.5px; }
  .pos-body { grid-template-columns: 1fr; }
  .pos-catalog { border-right: 0; border-bottom: 1px solid var(--border); }
  .pos-window { border-radius: 10px; }
  .pos-chrome { padding: 0 10px; }
  .pos-title { overflow: hidden; text-overflow: ellipsis; }
  .pos-live { display: none; }
  .pos-connect { flex-wrap: wrap; }
  .product-feats { grid-template-columns: 1fr; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .filter-row { align-items: flex-start; flex-direction: column; }
  .roadmap-card { grid-template-columns: 1fr; }
  .roadmap-label { grid-column: auto; }
  .roadmap-item, .roadmap-item:first-of-type { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
  .license-row { grid-template-columns: 1fr; }
  .license-row .license-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .license-row .license-cell:last-child { border-bottom: 0; }
  .license-row .license-cell:nth-child(3) { display: none; }
  .license-row.head { display: none; }
  .price-wrap { gap: 6px; }
  .story-facts { margin-top: 4px; }
  .contact-links { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; max-width: none; }
  .footer-col.manuals { grid-column: span 2; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .snapshot-cell { padding: 18px; min-height: 106px; }
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .compare-head { display: none; }
  .compare-row > div { border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .compare-row > div:last-child { border-bottom: 0; }
  .compare-row .cr-k { border-bottom: 0; background: var(--muted); }
  .compare-row .cr-them, .compare-row .cr-us { display: block; }
  .compare-row .cr-them::before,
  .compare-row .cr-us::before {
    display: block; margin-bottom: 5px;
    font-family: 'Geist Mono', monospace; font-size: 8.5px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--mfg);
  }
  .compare-row .cr-them::before { content: "Foreign cloud software"; }
  .compare-row .cr-us::before { content: "Quillstone"; color: var(--primary); }
  .compare-row .cr-us svg { display: none; }
  .portrait { aspect-ratio: 1 / 1; }
  .portrait-wrap { max-width: 460px; }
  .principles { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .lineup-row { grid-template-columns: 1fr; }
  .lineup-main, .lineup-desc { border-right: 0; }
  .lineup-links { grid-column: auto; flex-direction: row; border-top: 1px dashed var(--border); padding-top: 12px; }
  .roadmap-band { grid-template-columns: 1fr; }
  .roadmap-band .roadmap-label { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .modal { padding: 10px; }
  .modal-panel { max-height: calc(100vh - 20px); padding: 22px 18px; }
  .receipt-actions { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-badge { font-size: 9.5px; }
  .sector-pill { font-size: 10.5px; }
  .snapshot { grid-template-columns: 1fr; }
  .snapshot-cell { border-right: 0; }
  .snapshot-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .snapshot-cell:last-child { border-bottom: 0; }
  .snapshot-foot { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-col.manuals { grid-column: auto; }
  .training-body { grid-template-columns: 1fr; }
  .story-card { padding: 24px 20px; }
  .contact-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .release-bar, .site-header, .mobile-nav, .site-footer, .modal-backdrop, .modal-close, .receipt-actions, .receipt-note { display: none !important; }
  .modal { position: static; padding: 0; }
  .modal-panel { max-width: none; border: 0; box-shadow: none; }
}

