/* Command Center marketing site, PN&CPS TECH LTD.
   One stylesheet for every page. Tokens first, then base, components, app mockup kit, motion, responsive.
   Direction: Control Room (see docs/DESIGN.md). Amber is reserved for "waiting for you". */

/* ------------------------------------------------------------------ */
/* 0. Fonts, self-hosted (Google Fonts files, SIL OFL 1.1, see assets/fonts/OFL-*.txt) */
/* ------------------------------------------------------------------ */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 88% 100%; font-display: swap; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 88% 100%; font-display: swap; src: url("../fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spline Sans Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/spline-sans-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spline Sans Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/spline-sans-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Archivo's ampersand reads as an 8 in "PN&CPS"; borrow the mono one for that single character. */
@font-face { font-family: "Amp"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/spline-sans-mono-latin.woff2") format("woff2"); unicode-range: U+0026; }

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

  /* Shell colors */
  --canvas: #0A0D13;
  --surface: #11161F;
  --raised: #181E2B;
  --line: #232B3A;
  --line-strong: #2F3A4E;
  --ink: #E8ECF4;
  --ink-2: #C2CADA;
  --muted: #98A3B8;
  --primary: #9DB8EC;
  --primary-wash: #1F2A42;
  --signal: #F2C46B;          /* waiting for you, nothing else */
  --signal-wash: #33280F;
  --ok: #6FD3A3;
  --ok-wash: #16302A;
  --danger: #FF9A92;
  --danger-wash: #3A1D1B;
  --focus: #9DB8EC;

  /* App mockup colors, copied from the real app (design-approved.html). Do not restyle. */
  --app-canvas: #10141D;
  --app-surface: #181E2B;
  --app-surface-2: #1D2433;
  --app-line: #2B3446;
  --app-ink: #E8ECF4;
  --app-ink-2: #C2CADA;
  --app-mute: #9BA6BB;
  --app-primary: #9DB8EC;
  --app-primary-wash: #1F2A42;
  --app-ok: #6FD3A3;
  --app-ok-wash: #16302A;
  --app-warn: #F2C46B;
  --app-warn-wash: #33280F;
  --app-danger: #FF9A92;
  --app-danger-wash: #3A1D1B;
  --app-off: #A7B0C2;
  --app-off-wash: #242B3A;

  /* Type */
  --font-sans: "Amp", "Archivo", "Segoe UI", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", Consolas, "Courier New", monospace;
  --fs-0: 0.8125rem;   /* 13 */
  --fs-1: 0.9375rem;   /* 15 */
  --fs-2: 1.0625rem;   /* 17 */
  --fs-3: 1.3125rem;   /* 21 */
  --fs-4: 1.625rem;    /* 26 */
  --fs-5: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);     /* 30 to 40 */
  --fs-6: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);    /* 36 to 56 */
  --fs-7: clamp(2.6rem, 1.4rem + 5.2vw, 5rem);       /* 42 to 80, hero */
  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.6;
  --track-display: -0.025em;

  /* Space (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section: clamp(72px, 9vw, 128px);
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1200px;
  --measure: 64ch;

  /* Radius */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 40px 80px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03);

  /* Z scale */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-backdrop: 30;
  --z-modal: 40;
  --z-toast: 50;
  --z-tooltip: 60;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 600ms;
}

/* ------------------------------------------------------------------ */
/* 2. Base                                                             */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-2);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: var(--track-display); line-height: var(--lh-snug); text-wrap: balance; font-stretch: 94%; }
h1 { font-size: var(--fs-7); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-6); line-height: 1.1; }
h3 { font-size: var(--fs-4); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-3); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
small { font-size: var(--fs-0); }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.86em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary-wash); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: var(--z-tooltip); padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--canvas); border-radius: var(--r-1); font-weight: 600; }
.skip-link:focus { top: var(--s-4); }

/* Text helpers */
.lead { font-size: var(--fs-3); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
.muted { color: var(--muted); }
.measure { max-width: var(--measure); }
.label { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--muted); letter-spacing: 0.01em; }
.arrow-link { font-weight: 600; white-space: nowrap; }
.arrow-link::after { content: " \2192"; }

/* ------------------------------------------------------------------ */
/* 3. Layout                                                           */
/* ------------------------------------------------------------------ */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.section-rule { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }

/* Section head: statement plus one paragraph, optional link on the right */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-7); align-items: end; margin-bottom: var(--s-7); }
.section-head h2 { max-width: 20ch; }
.section-head p { max-width: var(--measure); color: var(--ink-2); margin-top: var(--s-4); font-size: var(--fs-2); }
.section-head .arrow-link { align-self: end; padding-bottom: 0.2em; }
.section-head-center { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.section-head-center h2 { max-width: 24ch; }
.section-head-center p { margin-inline: auto; }

/* ------------------------------------------------------------------ */
/* 4. Buttons, kbd, badges                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; font: inherit; font-size: var(--fs-1); font-weight: 600; line-height: 1;
  color: var(--ink); background: transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn-primary:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn-primary kbd { color: rgba(10, 13, 19, 0.65); border-color: rgba(10, 13, 19, 0.25); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn-quiet { color: var(--ink-2); padding-inline: 12px; }
.btn-quiet:hover { color: var(--ink); background: var(--surface); }
.btn-sm { min-height: 36px; padding-inline: 14px; font-size: var(--fs-0); }
.btn-lg { min-height: 52px; padding-inline: 26px; font-size: var(--fs-2); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn kbd { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 5px; line-height: 1; }
.btn-group { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.btn-note { font-size: var(--fs-0); color: var(--muted); margin-top: var(--s-3); }

kbd.key { font-family: var(--font-mono); font-size: 0.8em; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.badge-signal { color: var(--signal); border-color: rgba(242, 196, 107, 0.35); background: var(--signal-wash); }
.badge-ok { color: var(--ok); border-color: rgba(111, 211, 163, 0.35); background: var(--ok-wash); }
.badge-danger { color: var(--danger); border-color: rgba(255, 154, 146, 0.35); background: var(--danger-wash); }
.badge-primary { color: var(--primary); border-color: rgba(157, 184, 236, 0.35); background: var(--primary-wash); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------------ */
/* 5. Figures: every illustration is a numbered figure                 */
/* ------------------------------------------------------------------ */
.fig { position: relative; margin: 0; }
.fig-frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow-3); overflow: hidden; }
.fig-frame::before, .fig-frame::after, .fig-ticks::before, .fig-ticks::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--line-strong); border-style: solid; pointer-events: none; z-index: 2;
}
.fig-frame::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; border-top-left-radius: var(--r-3); }
.fig-frame::after { right: -1px; top: -1px; border-width: 1px 1px 0 0; border-top-right-radius: var(--r-3); }
.fig-cap { display: flex; gap: var(--s-4); align-items: baseline; margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-0); color: var(--muted); line-height: 1.5; }
.fig-cap b { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.fig-cap span { max-width: 70ch; }
.fig-flat .fig-frame { box-shadow: none; }

/* ------------------------------------------------------------------ */
/* 6. Header                                                           */
/* ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(10, 13, 19, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s-5); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: var(--fs-2); letter-spacing: -0.01em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand-by { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: 0.02em; line-height: 1; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: var(--s-1); margin-left: var(--s-4); }
.site-nav a { color: var(--ink-2); font-size: var(--fs-1); font-weight: 500; padding: 8px 11px; border-radius: var(--r-1); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); text-decoration: none; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.nav-mobile-only { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Company logo (PN&CPS TECH). The file sets the width: swapping the logo is a file replacement. The file is drawn
   for 28 CSS px tall (or exact multiples); keep that height. */
.brand .company-logo { display: block; width: auto; height: 28px; }

/* Products menu: disclosure button plus panel (site.js section 1). Without JS it opens on hover and focus. */
.nav-menu { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-1); font-weight: 500; line-height: inherit; color: var(--ink-2); background: transparent; border: 0; padding: 8px 11px; border-radius: var(--r-1); cursor: pointer; }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-menu:has([aria-current="page"]) > .nav-trigger { color: var(--ink); background: var(--surface); }
.nav-chevron { flex: none; color: var(--muted); transition: transform var(--dur-1) var(--ease-out); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 13px); left: -8px; z-index: var(--z-dropdown); width: 440px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-3); box-shadow: var(--shadow-2), 0 0 0 1px rgba(0, 0, 0, 0.25);
  visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), visibility 0s linear var(--dur-1); }
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-menu.is-open .menu-panel,
html:not(.js) .nav-menu:hover .menu-panel,
html:not(.js) .nav-menu:focus-within .menu-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu-product { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 12px 14px; }
.menu-product img { width: 36px; height: 36px; }
.menu-product b { display: block; color: var(--ink); font-size: var(--fs-1); font-weight: 600; line-height: var(--lh-snug); }
.menu-product span { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fs-0); line-height: 1.45; text-wrap: pretty; }
.menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 6px 0; border-top: 1px solid var(--line); }
.menu-links li { list-style: none; }
.site-nav .menu-links a { display: block; padding: 8px 12px; color: var(--ink-2); font-size: var(--fs-1); font-weight: 500; border-radius: var(--r-1); }
.site-nav .menu-links a:hover { color: var(--ink); background: var(--raised); }
.site-nav .menu-links a[aria-current="page"] { color: var(--ink); background: var(--raised); }
.menu-next { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 12px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-0); line-height: 1.3; }
.menu-next::before { content: ""; flex: none; width: 12px; height: 12px; border: 1px dashed var(--line-strong); border-radius: 3px; }

/* ------------------------------------------------------------------ */
/* 7. Hero                                                             */
/* ------------------------------------------------------------------ */
.hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: var(--s-8); position: relative; }
.hero-copy { max-width: 820px; }
/* Product badge: names the product and its maker above a product headline */
.product-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-5); padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-0); line-height: 1.2; color: var(--muted); }
.product-badge img { flex: none; width: 22px; height: 22px; }
.product-badge b { color: var(--ink); font-size: var(--fs-1); font-weight: 600; }
.product-badge span { padding-left: 10px; border-left: 1px solid var(--line-strong); }
.product-badge a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.product-badge a:hover { color: var(--ink); text-decoration-color: currentColor; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: var(--s-5); max-width: 56ch; }
.hero .btn-group { margin-top: var(--s-6); }
.hero-fig { margin-top: clamp(40px, 6vw, 72px); }
.hero-fig .fig-frame { border-radius: var(--r-4); }
.hero-fig .fig-frame::before { border-top-left-radius: var(--r-4); }
.hero-fig .fig-frame::after { border-top-right-radius: var(--r-4); }
.hero-glow { position: absolute; inset: auto 0 0 0; height: 60%; background: radial-gradient(60% 50% at 50% 100%, rgba(157, 184, 236, 0.07), transparent 70%); pointer-events: none; }

/* ------------------------------------------------------------------ */
/* 8. Facts strip (proof without logos)                                */
/* ------------------------------------------------------------------ */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { list-style: none; padding: var(--s-5) var(--s-5) var(--s-5) 0; border-right: 1px solid var(--line); margin-right: var(--s-5); }
.facts li:last-child { border-right: 0; margin-right: 0; }
.facts b { display: block; font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.facts span { display: block; margin-top: 6px; font-size: var(--fs-0); color: var(--muted); font-family: var(--font-mono); }

/* ------------------------------------------------------------------ */
/* 9. Problem and answer                                               */
/* ------------------------------------------------------------------ */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.problem h2 { font-size: var(--fs-5); }
.problem p { color: var(--ink-2); margin-top: var(--s-4); max-width: 52ch; }
.problem-list { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.problem-list li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); color: var(--ink-2); }
.problem-list .dot { width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--line-strong); }
.problem-list .dot.signal { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-wash); }
/* The terminal pile: six title bars stacked askew */
.pile { position: relative; height: 300px; }
.pile-win { position: absolute; left: 0; right: 0; height: 110px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.pile-win .tb { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.pile-win .tb b { flex: none; }
.pile-win .tb i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pile-win .tb b { color: var(--ink-2); font-weight: 500; }
.pile-win .ln { height: 6px; margin: 10px 12px 0; border-radius: 3px; background: var(--line); }
.pile-win .ln.s { width: 55%; }
.pile-win .ln.q { background: var(--signal-wash); width: 70%; }

/* ------------------------------------------------------------------ */
/* 10. Steps (a real sequence, so it is numbered)                      */
/* ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; }
.step { position: relative; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); display: flex; flex-direction: column; gap: var(--s-4); }
.step-num { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--muted); }
.step-num::before { counter-increment: step; content: "Step " counter(step); }
.step h3 { font-size: var(--fs-3); }
.step p { color: var(--ink-2); font-size: var(--fs-1); }
.step-art { margin-top: auto; padding: var(--s-4); border: 1px solid var(--app-line); border-radius: var(--r-2); background: var(--app-canvas); color: var(--app-ink); font-size: 13px; line-height: 1.4; min-height: 150px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* ------------------------------------------------------------------ */
/* 11. Bento                                                           */
/* ------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
.tile { grid-column: span 2; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; min-height: 300px; }
.tile-wide { grid-column: span 3; }
.tile-tall { grid-row: span 2; }
.tile-art { flex: 1; padding: var(--s-4); background: var(--app-canvas); border-bottom: 1px solid var(--line); color: var(--app-ink); font-size: 13px; line-height: 1.4; display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
.tile-text { padding: var(--s-4) var(--s-5) var(--s-5); }
.tile-text h3 { font-size: var(--fs-2); letter-spacing: -0.01em; }
.tile-text p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-1); }

/* ------------------------------------------------------------------ */
/* 12. Timeline                                                        */
/* ------------------------------------------------------------------ */
.timeline { position: relative; padding: var(--s-5) var(--s-5) var(--s-5) 0; display: grid; gap: 0; }
.tl-row { display: grid; grid-template-columns: 72px 22px minmax(0, 1fr) auto; gap: 0 var(--s-3); align-items: start; padding: 10px 0 10px var(--s-5); position: relative; }
.tl-row::before { content: ""; position: absolute; left: calc(var(--s-5) + 72px + var(--s-3) + 10px); top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-row:first-child::before { top: 50%; }
.tl-row:last-child::before { bottom: 50%; }
.tl-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); margin: 7px 0 0 6px; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.tl-dot.ok { background: var(--ok); }
.tl-dot.run { background: var(--primary); }
.tl-dot.signal { background: var(--signal); }
.tl-body b { display: block; font-weight: 600; font-size: var(--fs-1); color: var(--ink); }
.tl-body span { display: block; color: var(--muted); font-size: var(--fs-0); margin-top: 2px; }
.tl-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.tl-meta.ok { color: var(--ok); }

/* ------------------------------------------------------------------ */
/* 13. Audit report card                                               */
/* ------------------------------------------------------------------ */
.report { padding: var(--s-5); display: grid; gap: var(--s-4); font-size: var(--fs-1); }
.report-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.report-head h4 { font-size: var(--fs-2); flex: 1; min-width: 200px; }
.verdict { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: var(--r-1); }
.verdict-pass { color: var(--canvas); background: var(--ok); }
.verdict-fail { color: var(--canvas); background: var(--danger); }
.findings { display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.sev { font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-align: center; padding: 4px 4px; border-radius: 4px; background: var(--raised); color: var(--ink-2); }
.sev-0 { background: var(--danger-wash); color: var(--danger); }
.sev-1 { background: var(--signal-wash); color: var(--signal); }
.sev-2 { background: var(--primary-wash); color: var(--primary); }
.finding b { display: block; font-weight: 600; color: var(--ink); }
.finding span { display: block; color: var(--muted); font-size: var(--fs-0); margin-top: 2px; }
.report-foot { display: flex; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-4); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* 14. Phone frame                                                     */
/* ------------------------------------------------------------------ */
.phone { width: 300px; max-width: 100%; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 40px; background: var(--app-canvas); padding: 14px; box-shadow: var(--shadow-3); }
.phone-screen { border-radius: 28px; background: var(--app-canvas); border: 1px solid var(--app-line); overflow: hidden; min-height: 560px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--app-ink); }
.phone-status { display: flex; justify-content: space-between; padding: 12px 20px 6px; font-family: var(--font-mono); font-size: 11px; color: var(--app-mute); }
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; border-bottom: 1px solid var(--app-line); font-weight: 600; }
.phone-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.phone-foot { padding: 10px 16px 18px; border-top: 1px solid var(--app-line); display: flex; justify-content: space-around; font-family: var(--font-mono); font-size: 11px; color: var(--app-mute); }
.phone-foot b { color: var(--app-ink); font-weight: 500; }

/* ------------------------------------------------------------------ */
/* 15. Security strip                                                  */
/* ------------------------------------------------------------------ */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.strip li { list-style: none; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.strip b { display: block; font-weight: 600; font-size: var(--fs-2); letter-spacing: -0.01em; }
.strip p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-1); }

/* ------------------------------------------------------------------ */
/* 17. Pricing                                                         */
/* ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.plan-featured { border-color: var(--line-strong); background: var(--raised); }
.plan-flag { position: absolute; top: -12px; left: var(--s-5); }
.plan h3 { font-size: var(--fs-3); }
.plan-for { color: var(--muted); font-size: var(--fs-0); margin-top: 2px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: var(--fs-5); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--muted); font-size: var(--fs-0); }
.plan-list { display: grid; gap: 8px; font-size: var(--fs-1); color: var(--ink-2); }
.plan-list li { list-style: none; display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan-list li::before { content: "\2713"; color: var(--ok); font-weight: 600; }
/* Planned, not in the early-access build: an open circle instead of the check, plus a Planned badge. */
.plan-list li.is-planned::before { content: "\25CB"; color: var(--muted); font-weight: 400; }
.plan-list .badge { font-size: 11px; padding: 3px 7px; margin-left: 4px; vertical-align: 1px; }
.badge-road { color: var(--ink-2); }
.plan-legend { margin-top: var(--s-5); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); color: var(--muted); font-size: var(--fs-0); }
.plan-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.plan-legend-yes { color: var(--ok); font-style: normal; font-weight: 600; }
.plan-legend-table { margin-top: 0; margin-bottom: var(--s-4); justify-content: flex-start; }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: var(--s-5); text-align: center; color: var(--muted); font-size: var(--fs-1); }
.consult-line { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.consult-line p { color: var(--ink-2); font-size: var(--fs-1); max-width: 72ch; }
.consult-line b { color: var(--ink); font-weight: 600; }
/* Monthly / yearly toggle: site.js swaps data-monthly / data-yearly on .price-value */
.toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); }
.toggle button { font: inherit; font-size: var(--fs-0); font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.toggle button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* 18. Changelog strip                                                 */
/* ------------------------------------------------------------------ */
.releases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.release { padding-top: var(--s-4); border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 8px; }
.release-meta { display: flex; gap: var(--s-3); align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.release-meta b { color: var(--ink-2); font-weight: 500; }
.release h3 { font-size: var(--fs-2); letter-spacing: -0.01em; }
.release p { color: var(--ink-2); font-size: var(--fs-1); }

/* ------------------------------------------------------------------ */
/* 19. FAQ                                                             */
/* ------------------------------------------------------------------ */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 18px 0; font-weight: 600; font-size: var(--fs-2); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--muted); flex: none; width: 24px; text-align: center; transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 48px 20px 0; color: var(--ink-2); font-size: var(--fs-1); max-width: 64ch; }

/* ------------------------------------------------------------------ */
/* 20. Final CTA                                                       */
/* ------------------------------------------------------------------ */
.cta { text-align: center; padding-block: var(--section); border-top: 1px solid var(--line); }
.cta h2 { margin-inline: auto; max-width: 20ch; }
.cta p { margin: var(--s-4) auto 0; max-width: 48ch; color: var(--ink-2); }
.cta .btn-group { justify-content: center; margin-top: var(--s-6); }

/* Maker: the company behind a product (Home, before the final CTA) */
.maker-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.maker-mark { display: block; width: auto; height: clamp(72px, 8vw, 112px); }
.maker-copy h2 { max-width: 20ch; }
.maker-copy p { margin-top: var(--s-4); max-width: var(--measure); color: var(--ink-2); }
.maker-copy .arrow-link { display: inline-block; margin-top: var(--s-5); }

/* ------------------------------------------------------------------ */
/* 21. Footer                                                          */
/* ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); font-size: var(--fs-1); color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.footer-brand p { margin-top: var(--s-3); max-width: 30ch; }
.footer-col h2 { font-size: var(--fs-0); font-weight: 600; color: var(--ink); letter-spacing: 0; line-height: var(--lh-snug); margin-bottom: var(--s-3); }
.footer-col ul { display: grid; gap: 8px; }
.footer-col li { list-style: none; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-col .footer-product { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.footer-product img { flex: none; width: 18px; height: 18px; }
.footer-col .footer-sub { margin: 10px 0 0 8px; padding-left: 17px; border-left: 1px solid var(--line); }
.footer-news { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.footer-news h2 { color: var(--ink); font-size: var(--fs-2); letter-spacing: -0.01em; line-height: var(--lh-snug); }
.footer-news p { margin-top: 4px; }
.footer-bottom { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); font-size: var(--fs-0); }
.footer-bottom .row { justify-content: space-between; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }
.email-dir { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 12px; }

/* ------------------------------------------------------------------ */
/* 22. Forms                                                           */
/* ------------------------------------------------------------------ */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: var(--fs-0); color: var(--muted); }
.input, .select, .textarea { width: 100%; font: inherit; font-size: var(--fs-1); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-2); padding: 11px 14px; min-height: 44px; transition: border-color var(--dur-1) var(--ease-out); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.textarea { min-height: 120px; resize: vertical; }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--danger); }
.field-error { display: none; font-size: var(--fs-0); color: var(--danger); }
.field.is-invalid .field-error { display: block; }
.input-row { display: flex; gap: var(--s-2); }
.input-row .input { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-1); color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.form-success { display: none; padding: var(--s-5); border: 1px solid rgba(111, 211, 163, 0.35); border-radius: var(--r-2); background: var(--ok-wash); color: var(--ink); }
.form-success b { display: block; color: var(--ok); margin-bottom: 4px; }
.form.is-done > :not(.form-success) { display: none; }
.form.is-done .form-success { display: block; }
.form-error { font-size: var(--fs-0); color: var(--danger); }
.form[aria-busy="true"] button[type="submit"] { cursor: progress; }
.divider { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); font-size: var(--fs-0); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Auth card, for login / signup / reset pages */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: var(--s-7) 0; }
.auth-card { width: min(100%, 420px); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); display: grid; gap: var(--s-5); }
.auth-card h1 { font-size: var(--fs-4); }
.auth-card .brand { justify-content: center; }
.auth-foot { text-align: center; font-size: var(--fs-0); color: var(--muted); }

/* Prose pages (legal, about) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-4); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h3 { font-size: var(--fs-3); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; margin-top: var(--s-3); }
.prose table { width: 100%; border-collapse: collapse; margin-top: var(--s-4); font-size: var(--fs-1); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Page hero for inner pages */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--s-7); }
.page-head h1 { font-size: var(--fs-6); max-width: 18ch; }
.page-head .lead { margin-top: var(--s-4); }
.page-head .label { display: block; margin-bottom: var(--s-4); }

/* ------------------------------------------------------------------ */
/* 23. App mockup kit (reads as the real app; fictional data only)     */
/* ------------------------------------------------------------------ */
.app { position: relative; display: grid; grid-template-rows: 44px 1fr; background: var(--app-canvas); color: var(--app-ink); font-family: var(--font-sans); font-size: 13px; line-height: 1.4; font-stretch: 100%; letter-spacing: 0; }
.app * { min-width: 0; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--app-surface); border-bottom: 1px solid var(--app-line); }
.app-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.app-logo i { width: 18px; height: 18px; border-radius: 5px; background: var(--app-primary); display: inline-block; }
.app-b { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--app-line); background: var(--app-surface-2); border-radius: 8px; height: 28px; padding: 0 10px; font-weight: 600; white-space: nowrap; color: var(--app-ink); }
.app-b.pri { background: var(--app-primary); color: var(--app-canvas); border-color: var(--app-primary); }
.app-b kbd, .app-kb { font-family: var(--font-mono); font-size: 11px; color: var(--app-mute); border: 1px solid var(--app-line); border-radius: 4px; padding: 0 4px; }
.app-b.pri kbd { color: rgba(16, 20, 29, 0.6); border-color: rgba(16, 20, 29, 0.25); }
.app-seg { display: inline-flex; border: 1px solid var(--app-line); border-radius: 8px; overflow: hidden; height: 28px; }
.app-seg span { display: inline-flex; align-items: center; padding: 0 9px; border-right: 1px solid var(--app-line); font-weight: 600; color: var(--app-ink-2); }
.app-seg span:last-child { border-right: 0; }
.app-seg span.on { background: var(--app-primary-wash); color: var(--app-primary); }
.app-fill { flex: 1; }
.app-stat { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.app-stat small { font-size: 10px; color: var(--app-mute); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.app-stat b { font-size: 13px; }
.app-stat b.w { color: var(--app-warn); }
.app-vr { width: 1px; height: 24px; background: var(--app-line); }
.app-body { display: grid; grid-template-columns: 212px 1fr; min-height: 520px; }
.app-side { background: var(--app-surface); border-right: 1px solid var(--app-line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.app-find { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--app-line); border-radius: 8px; padding: 6px 9px; color: var(--app-mute); background: var(--app-surface-2); margin-bottom: 6px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.app-h { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--app-mute); margin: 12px 6px 4px; display: flex; justify-content: space-between; }
.app-h .c { color: var(--app-warn); }
.app-s { display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.app-s.on { background: var(--app-primary-wash); }
.app-s .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-s .m { color: var(--app-mute); font-size: 11px; white-space: nowrap; }
.app-s .sub2 { grid-column: 2 / 4; color: var(--app-mute); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--app-off); }
.d.wait { background: var(--app-warn); box-shadow: 0 0 0 3px var(--app-warn-wash); }
.d.run { background: var(--app-ok); box-shadow: 0 0 0 3px var(--app-ok-wash); }
.d.rev { background: var(--app-primary); }
.d.done { background: var(--app-off); }
.chip { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--app-off-wash); color: var(--app-off); white-space: nowrap; }
.chip.ad { background: var(--app-primary-wash); color: var(--app-primary); }
.chip.rp { background: var(--app-ok-wash); color: var(--app-ok); }
.chip.wc { background: var(--app-warn-wash); color: var(--app-warn); }
.app-grid { display: grid; gap: 10px; padding: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(240px, 1fr); }
.cell { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.cell.ask { border-color: var(--app-warn); box-shadow: 0 0 0 1px var(--app-warn) inset; }
.cell-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--app-line); }
.cell-h .t { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-h .k { font-family: var(--font-mono); font-size: 11px; color: var(--app-mute); }
.cell-b { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow: hidden; }
.msg { background: var(--app-surface-2); border-radius: 10px; padding: 8px 10px; color: var(--app-ink-2); font-size: 12.5px; }
.msg.me { background: var(--app-primary-wash); color: var(--app-ink); align-self: flex-end; max-width: 88%; }
.msg.q { background: var(--app-warn-wash); color: var(--app-ink); border: 1px solid var(--app-warn); }
.msg.q b { color: var(--app-warn); }
.opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.opts span { border: 1px solid var(--app-line); background: var(--app-surface); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; }
.tool { display: flex; align-items: center; gap: 6px; color: var(--app-mute); font-size: 12px; }
.tool .ok { color: var(--app-ok); }
.tree { display: flex; flex-direction: column; gap: 6px; background: var(--app-surface-2); border-radius: 10px; padding: 8px 10px; }
.tree .r { display: grid; grid-template-columns: 12px 64px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 12px; }
.tree .n { font-weight: 700; color: var(--app-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg { height: 6px; border-radius: 3px; background: var(--app-off-wash); overflow: hidden; }
.pg i { display: block; height: 100%; background: var(--app-ok); border-radius: 3px; transition: width 1200ms var(--ease-out); }
.pg i.y { background: var(--app-warn); }
.tree .st { text-align: right; color: var(--app-mute); font-size: 11px; white-space: nowrap; }
.cmp { margin-top: auto; border: 1px solid var(--app-line); border-radius: 10px; background: var(--app-surface-2); padding: 7px 10px; display: flex; align-items: center; gap: 8px; color: var(--app-mute); font-size: 12px; }
.cmp .app-fill { color: var(--app-mute); }
.cf { display: flex; gap: 12px; color: var(--app-mute); font-size: 11px; padding: 6px 10px; border-top: 1px solid var(--app-line); }
.cf .app-fill { flex: 1; }
.cache { display: inline-flex; align-items: center; gap: 5px; }
.ring { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--app-ok) 0 70%, var(--app-off-wash) 70% 100%); }
.ring.low { background: conic-gradient(var(--app-warn) 0 18%, var(--app-off-wash) 18% 100%); }
.paper { flex: 1; background: #F2F4F8; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 7px; position: relative; min-height: 120px; }
.paper .hl { height: 10px; width: 55%; background: #1E3A6E; border-radius: 3px; }
.paper .ln { height: 6px; background: #DDE2EA; border-radius: 3px; }
.paper .ln.s { width: 70%; }
.paper .bx { height: 40px; background: #E8EEF8; border-radius: 6px; border: 1px solid #DDE2EA; }
.note { position: absolute; background: var(--app-warn); color: var(--app-canvas); font-weight: 800; font-size: 11px; border-radius: 50% 50% 50% 2px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.app-toast { position: absolute; right: 14px; top: 54px; width: 300px; max-width: calc(100% - 28px); background: var(--app-surface-2); border: 1px solid var(--app-warn); border-radius: 12px; padding: 10px 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; gap: 6px; z-index: var(--z-toast); }
.app-toast .row2 { display: flex; align-items: center; gap: 8px; }
.app-toast .t { font-weight: 700; flex: 1; }
.app-toast .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.app-toast .acts .app-b { height: 26px; padding: 0 9px; font-size: 12px; }
.app-toast .when { font-size: 11px; color: var(--app-mute); }
.app-toast.static { position: static; width: auto; max-width: 320px; }
.app-modal { width: 100%; max-width: 420px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8); }
.app-modal h4 { margin: 0; font-size: 14px; letter-spacing: 0; }
.app-modal p { color: var(--app-ink-2); font-size: 12.5px; }
.app-modal .mfoot { display: flex; justify-content: flex-end; gap: 8px; }
.app-tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--app-line); }
.app-tg:last-of-type { border-bottom: 0; }
.app-tg small { display: block; color: var(--app-mute); font-size: 11.5px; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: var(--app-ok); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--app-surface); }
.sw.off { background: var(--app-off-wash); }
.sw.off::after { right: auto; left: 2px; background: var(--app-off); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin: 6px 0 4px; }
.spark i { flex: 1; background: var(--app-primary); border-radius: 2px; opacity: 0.75; }
.spark i.hi { opacity: 1; background: var(--app-warn); }
.app-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.app-table th, .app-table td { padding: 5px 6px; border-bottom: 1px solid var(--app-line); text-align: left; color: var(--app-ink); font-weight: 500; }
.app-table th { color: var(--app-mute); font-weight: 600; }
.app-table td.num, .app-table th.num { text-align: right; font-family: var(--font-mono); }
.roster { display: grid; gap: 6px; }
.roster .dept { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--app-mute); margin: 6px 0 2px; }
.roster .who { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.roster .who i { width: 24px; height: 24px; border-radius: 50%; background: var(--app-off-wash); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--app-ink-2); }
.roster .who b { font-weight: 600; }
.roster .who small { color: var(--app-mute); font-size: 11px; }
.roster .who.lead i { background: var(--app-primary-wash); color: var(--app-primary); }
.sync { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.sync .pc { border: 1px solid var(--app-line); border-radius: 10px; padding: 10px; background: var(--app-surface); display: grid; gap: 4px; font-size: 12px; }
.sync .pc b { font-weight: 700; }
.sync .pc small { color: var(--app-mute); font-size: 11px; }
.sync .link { font-family: var(--font-mono); font-size: 11px; color: var(--app-ok); text-align: center; }

/* ------------------------------------------------------------------ */
/* 24. Motion                                                          */
/* ------------------------------------------------------------------ */
/* Reveal on scroll: content is visible by default. The .js class on <html> plus .reveal
   gives the enhancement a start state only when the script runs. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero choreography (site.js adds .is-live after load, then steps through states) */
.anim-hide { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.anim-hide.is-shown { opacity: 1; transform: none; }
.app-toast.anim-hide { transform: translateX(16px); }
.cell.ask.is-live-pulse { animation: cell-pulse 2.4s var(--ease-out) 2; }
@keyframes cell-pulse {
  0% { box-shadow: 0 0 0 1px var(--app-warn) inset, 0 0 0 0 rgba(242, 196, 107, 0.35); }
  60% { box-shadow: 0 0 0 1px var(--app-warn) inset, 0 0 0 10px rgba(242, 196, 107, 0); }
  100% { box-shadow: 0 0 0 1px var(--app-warn) inset, 0 0 0 0 rgba(242, 196, 107, 0); }
}
.d.wait.is-live-pulse { animation: dot-pulse 1.8s ease-out 3; }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 3px var(--app-warn-wash); }
  50% { box-shadow: 0 0 0 6px rgba(242, 196, 107, 0.18); }
  100% { box-shadow: 0 0 0 3px var(--app-warn-wash); }
}
.caret::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--app-mute); animation: caret 1s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .anim-hide { opacity: 1; transform: none; }
  .caret::after { animation: none; }
}

/* ------------------------------------------------------------------ */
/* 25. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid .cell:nth-child(n + 7) { display: none; }
  .app-bar .app-stat:nth-of-type(1), .app-bar .app-vr:nth-of-type(1) { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-wide { grid-column: span 1; }
  .tile-tall { grid-row: span 1; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .site-nav, .site-actions .btn-quiet { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-actions { margin-left: auto; }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 64px; padding: var(--s-3) var(--gutter) var(--s-5); margin: 0; background: var(--canvas); border-bottom: 1px solid var(--line); gap: 2px; }
  .site-header.is-open .site-nav a { padding: 12px 10px; font-size: var(--fs-2); }
  .site-header.is-open .site-nav .nav-mobile-only { display: block; }
  .site-header.is-open .site-nav { max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header.is-open .nav-trigger { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: var(--fs-2); }
  .site-header .menu-panel { position: static; width: auto; padding: 4px 0 10px; background: transparent; border: 0; border-radius: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .site-header .menu-panel::before { content: none; }
  .nav-menu:not(.is-open) .menu-panel { display: none; }
  .site-header .menu-product { padding: 6px 10px 12px; }
  .site-header.is-open .site-nav .menu-links a { padding: 10px 12px; font-size: var(--fs-1); }
  .site-header .menu-next { padding: 12px 10px 4px; }
  .maker-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .maker-mark { height: 64px; }
  .grid-2, .problem, .footer-news { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .arrow-link { align-self: start; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid .cell:nth-child(n + 5) { display: none; }
  .app-bar .app-seg, .app-bar .app-b:not(.pri) { display: none; }
  .steps, .releases, .strip { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pile { height: 260px; }
}
@media (max-width: 600px) {
  :root { --section: 64px; }
  .hero h1 { max-width: 12ch; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .cell:nth-child(n + 3) { display: none; }
  .app-bar .app-stat, .app-bar .app-vr { display: none; }
  .app .app-toast { display: none; }
  .bento, .plans, .facts { grid-template-columns: 1fr; }
  .facts li { border-right: 0; margin-right: 0; padding-right: 0; }
  .facts li:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .btn-group .btn { width: 100%; }
  .input-row { flex-direction: column; }
  .faq .faq-body { padding-right: 0; }
  .footer-bottom .row { flex-direction: column; align-items: flex-start; }
  .timeline { padding-right: var(--s-3); }
  .tl-row { grid-template-columns: 52px 22px minmax(0, 1fr); padding-left: var(--s-3); }
  .tl-row::before { left: calc(var(--s-3) + 52px + var(--s-3) + 10px); }
  .tl-meta { grid-column: 3; padding-top: 2px; }
  .report { padding: var(--s-4); }
  .phone { width: 280px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 2.4rem; }
  .btn { padding-inline: 16px; }
}
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; cursor: pointer; }
.select option { background: var(--surface); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* 26. Consultancy: workflow figure, services list, company facts      */
/* ------------------------------------------------------------------ */
/* Workflow figure: one row of steps on desktop, a column on phones. */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: clamp(16px, 2.4vw, 28px); background: var(--app-canvas); color: var(--app-ink); font-size: 13px; line-height: 1.4; counter-reset: flow; }
.flow > li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 14px 0 0; }
.flow > li + li { padding-left: 14px; border-left: 1px dashed var(--app-line); }
.flow-h { display: flex; align-items: center; gap: 8px; color: var(--app-mute); font-family: var(--font-mono); font-size: 11px; }
.flow-h::before { counter-increment: flow; content: counter(flow); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--app-surface-2); color: var(--app-ink-2); font-weight: 600; }
.flow-card { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--app-surface); border: 1px solid var(--app-line); }
.flow-card b { font-weight: 600; color: var(--app-ink); display: flex; align-items: center; gap: 8px; }
.flow-card small { color: var(--app-mute); font-size: 11.5px; }
.flow-card.is-ask { border-color: var(--app-warn); background: var(--app-warn-wash); }
.flow-card.is-ask b { color: var(--app-warn); }
.flow-who { color: var(--app-mute); font-size: 11px; }

/* Services list: ruled rows, name and summary on the left, deliverables on the right. */
.svc-list { list-style: none; border-top: 1px solid var(--line-strong); }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: var(--s-4) var(--s-8); padding-block: var(--s-6); border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.svc h3 { font-size: var(--fs-4); letter-spacing: -0.015em; line-height: var(--lh-snug); text-wrap: balance; }
.svc p { margin-top: var(--s-3); color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.svc .arrow-link { display: inline-block; margin-top: var(--s-4); }
.svc-gets { list-style: none; display: grid; gap: var(--s-2); align-content: start; }
.svc-gets li { display: grid; grid-template-columns: 14px 1fr; gap: var(--s-2); color: var(--ink-2); font-size: var(--fs-1); }
.svc-gets li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 1px; background: var(--primary); }
.svc-gets-h { margin-bottom: var(--s-3); padding-top: 6px; font-family: var(--font-mono); font-size: var(--fs-0); color: var(--muted); }

/* Company facts: a ruled two-column definition list. */
.co-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-6) var(--s-8); align-items: start; }
.co-facts h2 { max-width: 16ch; }
.co-facts > div > p { margin-top: var(--s-4); color: var(--ink-2); max-width: 46ch; }
.co-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
.co-dl dt, .co-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1); }
.co-dl dt { padding-right: var(--s-6); color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-0); padding-top: 14px; }
.co-dl dd { overflow-wrap: anywhere; }
.footer-contact { margin-top: var(--s-4); display: grid; gap: 4px; font-size: var(--fs-0); color: var(--muted); font-style: normal; }
.footer-contact a { color: var(--ink-2); }

@media (max-width: 1100px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .flow > li:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .svc, .co-facts { grid-template-columns: 1fr; }
  .svc { gap: var(--s-4); }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow > li, .flow > li + li, .flow > li:nth-child(4) { padding: 0 0 14px 0; border-left: 0; }
  .flow > li + li, .flow > li:nth-child(4) { padding-top: 14px; border-top: 1px dashed var(--app-line); }
  .co-dl { grid-template-columns: 1fr; }
  .co-dl dt { border-bottom: 0; padding-bottom: 0; }
}
