/* ==========================================================================
   Acme Systems — site styles
   Palette "Graphite & Signal": warm graphite ground, bone-white ink, one signal
   colour (chartreuse) for actions and data in motion; paper for product chapters.
   ========================================================================== */

/* Geist (SIL Open Font License), self-hosted */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin.woff2") format("woff2-variations"), url("../fonts/geist-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: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2-variations"), url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --ground: #0b0c0e;
  --ground-2: #131518;
  --ground-3: #1b1e22;
  --ground-4: #252931;
  --ink: #f2f1ec;
  --muted: #a6a7a2;
  --faint: #8b8d87;
  --signal: #d9f95d;
  --signal-hover: #e6ff7c;
  --paper: #ecebe4;
  --paper-2: #e2e0d7;
  --paper-ink: #121316;
  --paper-muted: #55564f;
  --ok: #4cc38a;
  --warn: #f5b544;
  --danger: #f2655b;
  --info: #7fb4f0;
  --line: rgb(242 241 236 / 0.09);
  --line-strong: rgb(242 241 236 / 0.16);
  --paper-line: rgb(18 19 22 / 0.1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --nav-h: 68px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.6rem, 1.3rem + 5.2vw, 5.25rem);
  --fs-title: clamp(2rem, 1.15rem + 3.7vw, 4.5rem);
  --fs-title-md: clamp(2rem, 1.25rem + 2.3vw, 3.4rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: var(--ground-4) var(--ground);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; min-height: 100vh; overflow-x: clip; font-size: 1rem; line-height: 1.55; background: var(--ground); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { caret-color: var(--signal); }
::selection { background: var(--signal); color: var(--ground); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible { outline-color: var(--paper-ink); }
[hidden] { display: none !important; }
.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; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.8125rem; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.accent { color: var(--signal); }

.i { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--xs { width: 0.875rem; height: 0.875rem; }
.i--sm { width: 0.875rem; height: 0.875rem; }
.i--md { width: 1.25rem; height: 1.25rem; }

/* ---------------------------------------------------------------- Layout */
.shell { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { position: relative; padding-block: clamp(96px, 12vw, 176px); }
.bg-2 { background: var(--ground-2); }
.block { margin-top: clamp(56px, 6vw, 80px); }
.split { display: grid; gap: clamp(40px, 5vw, 80px); }
.split > * { min-width: 0; }
@media (min-width: 1024px) {
  .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.sticky { position: relative; }
@media (min-width: 1024px) { .sticky { position: sticky; top: calc(var(--nav-h) + 32px); } }

/* ---------------------------------------------------------------- Type */
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }
.title { font-size: var(--fs-title); line-height: 1; letter-spacing: -0.035em; }
.title--md { font-size: var(--fs-title-md); line-height: 1.02; }
.tone { display: block; color: var(--muted); }
.paper .tone { color: var(--paper-muted); }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 38rem; }
.intro { max-width: 72rem; }
.intro .lede, .split .lede { margin-top: 24px; }
.intro--center { text-align: center; margin-inline: auto; }
.intro--center .lede { margin-inline: auto; }
.h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.note { margin-top: 12px; max-width: 70ch; font-size: 0.875rem; color: var(--faint); }
.note--center { text-align: center; margin-inline: auto; max-width: 60ch; }
.paper .note, .paper .hint { color: var(--paper-muted); }
.hint { margin-bottom: 12px; font-size: 0.875rem; color: var(--muted); }
/* SplitText masks: leave room for descenders */
.split-line, .split-line-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 20px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; user-select: none;
  transition: background-color 0.3s var(--ease-quart), color 0.3s, box-shadow 0.3s, transform 0.2s var(--ease-quart), translate 0.5s var(--ease-quart);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn--lg { height: 52px; padding-inline: 28px; font-size: 16px; }
.btn--sm { height: 36px; padding-inline: 14px; font-size: 14px; }
.btn--block { width: 100%; margin-top: 24px; }
.btn--primary { background: var(--signal); color: var(--ground); box-shadow: 0 8px 30px -12px rgb(217 249 93 / 0.6); }
.btn--primary:hover { background: var(--signal-hover); }
.btn--secondary { background: rgb(242 241 236 / 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--secondary:hover { background: rgb(242 241 236 / 0.12); }
.btn__arrow { transition: transform 0.3s var(--ease-quart); }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ---------------------------------------------------------------- Progress + skip */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress__bar { height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 10; padding: 8px 16px; border-radius: 999px; background: var(--signal); color: var(--ground); font-size: 14px; font-weight: 500; transform: translateY(-96px); }
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
.nav__bar { transition: background-color 0.5s var(--ease-quart), box-shadow 0.5s, backdrop-filter 0.5s; }
.nav.is-scrolled .nav__bar, .nav.is-menu .nav__bar {
  background: rgb(11 12 14 / 0.8); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; border-radius: 6px; }
.logo__mark { width: 28px; height: 28px; }
.logo__name { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.nav__links { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 4px; height: 40px; padding-inline: 14px;
  border-radius: 999px; font-size: 15px; color: var(--muted); transition: color 0.2s;
}
.nav__link:hover, .dropdown.is-open > .nav__link, .is-active > .nav__link, .nav__link.is-active { color: var(--ink); }
.nav__dot {
  position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--signal);
  transform: translateX(-50%) scale(0); opacity: 0; transition: transform 0.3s, opacity 0.3s;
}
.is-active > .nav__link .nav__dot, .nav__link.is-active .nav__dot { transform: translateX(-50%) scale(1); opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
.nav__toggle:hover { background: rgb(242 241 236 / 0.07); }
@media (min-width: 1024px) { .nav__toggle { display: none; } }

.dropdown { position: relative; }
.dropdown__chev { transition: transform 0.3s var(--ease-expo); }
.dropdown.is-open .dropdown__chev { transform: rotate(180deg); }
.dropdown__panel {
  position: absolute; left: 50%; top: 100%; width: 340px; padding-top: 12px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.3s var(--ease-expo), transform 0.3s var(--ease-expo), visibility 0.3s;
}
.dropdown__panel--wide { width: 560px; }
.dropdown.is-open .dropdown__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__list { padding: 8px; border-radius: 16px; background: var(--ground-2); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgb(0 0 0 / 0.8); }
.dropdown__list--grid { display: grid; grid-template-columns: 1fr 1fr; }
.dropdown__item { display: block; padding: 12px 14px; border-radius: 12px; transition: background-color 0.2s; }
.dropdown__item:hover, .dropdown__item:focus-visible { background: rgb(242 241 236 / 0.06); }
.dropdown__item strong { display: block; font-size: 15px; font-weight: 500; }
.dropdown__item span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

.mmenu { position: fixed; inset: var(--nav-h) 0 0; overflow-y: auto; background: var(--ground); padding: 16px 16px 40px; }
@media (min-width: 1024px) { .mmenu { display: none !important; } }
.mmenu__group { padding-block: 16px; border-bottom: 1px solid var(--line); }
.mmenu__title { margin-bottom: 4px; font-size: 14px; color: var(--faint); }
.mmenu__link { display: flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.mmenu__link--sm { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.mmenu__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }

/* ---------------------------------------------------------------- Shared app surfaces */
.app {
  background: var(--ground-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -24px rgb(0 0 0 / 0.7);
}
.paper .app { background: #fbfaf6; border-color: var(--paper-line); color: var(--paper-ink); box-shadow: 0 24px 50px -28px rgb(18 19 22 / 0.35); }
.app__bar, .app__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; box-shadow: 0 1px 0 var(--line); }
.paper .app__toolbar { box-shadow: 0 1px 0 var(--paper-line); }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: 0.15; }
.app__title { font-size: 13px; font-weight: 500; opacity: 0.8; }
.app__name { font-size: 14px; font-weight: 500; }
.app__tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app__bar .sample-tag { margin-left: auto; }
.sample-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 12px; line-height: 1; color: var(--muted); background: rgb(242 241 236 / 0.06); white-space: nowrap; }
.paper .sample-tag { color: var(--paper-muted); background: rgb(18 19 22 / 0.06); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: rgb(76 195 138 / 0.15); color: var(--ok); }
.pill--warn { background: rgb(245 181 68 / 0.15); color: var(--warn); }
.pill--danger { background: rgb(242 101 91 / 0.15); color: var(--danger); }
.pill--info { background: rgb(127 180 240 / 0.15); color: var(--info); }
.pill--neutral { background: rgb(242 241 236 / 0.07); color: var(--muted); }
.pill--signal { background: rgb(217 249 93 / 0.15); color: var(--signal); }
.paper .pill--ok { background: rgb(31 138 87 / 0.12); color: #17784a; }
.paper .pill--warn { background: rgb(185 119 14 / 0.14); color: #8f5a06; }
.paper .pill--danger { background: rgb(194 57 47 / 0.12); color: #a52d24; }
.paper .pill--info { background: rgb(46 108 181 / 0.12); color: #235a9a; }
.paper .pill--neutral { background: rgb(18 19 22 / 0.07); color: var(--paper-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: rgb(242 241 236 / 0.07); font-size: 14px; }

.meter { height: 6px; border-radius: 999px; background: rgb(242 241 236 / 0.1); overflow: hidden; }
.meter__fill { height: 100%; border-radius: inherit; }
.meter__fill--warn { background: var(--warn); }
.meter__fill--signal { background: var(--signal); }
.meter__fill--ink { background: rgb(242 241 236 / 0.7); }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 12px; }
.bars--tall { height: 160px; margin-top: 0; }
.bars__bar { flex: 1; border-radius: 3px; background: currentColor; opacity: 0.2; }
.bars__bar.is-last { background: var(--signal); opacity: 1; }

.table-scroll { overflow-x: auto; scrollbar-width: thin; }
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.table th { padding: 8px 0; text-align: left; font-weight: 400; color: var(--paper-muted); }
.table td { padding: 10px 12px 10px 0; border-top: 1px solid var(--paper-line); vertical-align: middle; }
.table--dark { min-width: 440px; }
.table--dark th { color: var(--muted); font-size: 12px; }
.table--dark td { border-top-color: var(--line); padding-block: 8px; }
.table .c { text-align: center; }
.table .r { text-align: right; }
.table .pl { padding-left: 16px; }
.table .sub { display: block; font-size: 12px; color: var(--paper-muted); }
.paper .muted { color: var(--paper-muted); }

.anim-in { animation: feed-in 0.6s var(--ease-expo) both; }
.panel-in { animation: panel-in 0.5s var(--ease-expo); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse-dot 2.4s var(--ease-quart) infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgb(217 249 93 / 0.45); } 70%, 100% { box-shadow: 0 0 0 10px rgb(217 249 93 / 0); } }
@keyframes flow { to { stroke-dashoffset: -24; } }

.switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--ground-4); transition: background-color 0.3s; }
.switch span { position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform 0.3s var(--ease-expo); }
.switch.is-on { background: var(--ok); }
.switch.is-on span { transform: translateX(16px); }
.switch--sm { width: 36px; height: 20px; flex-shrink: 0; }
.switch--sm span { width: 16px; height: 16px; }
.switch--sm.is-signal { background: var(--signal); }
.switch--sm.is-signal span { background: var(--ground); }
.switch-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 112px)); }
.hero__lede { margin-top: 28px; max-width: 36rem; color: var(--muted); }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; } }
.hero__stage { position: relative; margin-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(96px, 12vw, 160px); }
.hero__glow {
  position: absolute; left: 50%; top: 33%; z-index: -1; width: min(980px, 100%); height: 520px; transform: translateX(-50%);
  border-radius: 50%; opacity: 0.4; filter: blur(64px); pointer-events: none;
  background: radial-gradient(closest-side, rgb(217 249 93 / 0.16), transparent);
}
.hero__perspective { position: relative; perspective: 1600px; }
.hero__tilt { position: relative; max-width: 920px; margin-inline: auto; transform-origin: top; transform-style: preserve-3d; }
.hero__lines { position: absolute; left: -16%; top: -6%; width: 132%; height: 112%; display: none; pointer-events: none; color: var(--signal); }
.line-base { stroke: currentColor; stroke-opacity: 0.14; stroke-width: 1.5; }
.line-flow { stroke: currentColor; stroke-opacity: 0.8; stroke-width: 1.5; stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }

.console__body { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 340px; }
.console__side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 16px; box-shadow: 1px 0 0 var(--line); color: var(--faint); }
.console__side span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.console__side .is-on { background: rgb(242 241 236 / 0.08); color: var(--ink); }
.console__main { min-width: 0; padding: 16px; }
@media (min-width: 640px) { .console__main { padding: 20px; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 12px; border-radius: 12px; background: rgb(242 241 236 / 0.04); }
.stat dt { font-size: 12px; color: var(--muted); }
.stat__v { margin-top: 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__s { font-size: 12px; color: var(--faint); }
.console__feedhead { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 14px; font-weight: 500; }
.console__live { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.feed { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.feed__row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 13px; opacity: 0.7; }
.feed__row.is-new { opacity: 1; background: rgb(242 241 236 / 0.05); animation: feed-in 0.7s var(--ease-expo); }
.feed__icon { color: var(--muted); }
.feed__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .pill { display: none; }
@media (min-width: 640px) { .feed .pill { display: inline-flex; } }

.float { position: absolute; display: none; padding: 16px; }
@media (min-width: 1280px) { .float { display: block; } .hero__lines { display: block; } }
.float { background: var(--ground-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7); }
.float--a { left: -19%; top: 2%; width: 240px; }
.float--b { right: -18%; top: -4%; width: 256px; }
.float--c { left: -21%; bottom: 2%; width: 256px; }
.float--d { right: -20%; bottom: 0; width: 240px; }
.float__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.float__big { margin-top: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.float__sub { margin-top: 2px; font-size: 12px; color: var(--faint); }
.float__label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.float__text { margin-top: 8px; font-size: 14px; font-weight: 500; }
.float__ok { margin-top: 4px; font-size: 12px; color: var(--ok); }
.float .meter { margin-top: 12px; }

/* ---------------------------------------------------------------- Problem */
.problem { position: relative; overflow-x: clip; }
.problem__inner { padding-block: clamp(96px, 12vw, 160px); align-items: center; }
@media (min-width: 1024px) {
  .problem__pin, .eco__pin { display: flex; align-items: center; min-height: 100vh; }
  .problem__inner, .eco__inner { padding-block: 48px; }
}
.problem__resolve { margin-top: 40px; max-width: 26rem; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.problem__stage { position: relative; }
.problem__frame { position: absolute; inset: -16px; display: none; border-radius: 22px; background: rgb(242 241 236 / 0.03); box-shadow: inset 0 0 0 1px var(--line-strong); }
.problem__links { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
.problem__links path { stroke: var(--signal); stroke-width: 0.35; vector-effect: non-scaling-stroke; }
@media (min-width: 1024px) { .problem__frame, .problem__links { display: block; } }
.fragments { position: relative; display: grid; gap: 12px; }
@media (min-width: 640px) { .fragments { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fragments { grid-template-columns: repeat(3, 1fr); } }
.fragment { display: flex; flex-direction: column; gap: 24px; padding: 20px; will-change: transform; }
@media (min-width: 1024px) { .fragment { min-height: 200px; } }
.fragment > div { margin-top: auto; }
.fragment h3 { font-size: 17px; letter-spacing: -0.015em; }
.fragment p { margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.icon-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(242 241 236 / 0.06); }

/* ---------------------------------------------------------------- Ecosystem */
.eco__inner { padding-block: clamp(96px, 12vw, 160px); align-items: center; }
.eco__detail { display: none; min-height: 132px; margin-top: 40px; }
@media (min-width: 1024px) { .eco__detail { display: block; } }
.eco__detail-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.eco__detail-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--signal); color: var(--ground); }
.eco__detail .lede { margin-top: 12px; max-width: 26rem; }
.eco__diagram { position: relative; display: none; width: 100%; max-width: 640px; aspect-ratio: 1; margin-inline: auto; }
@media (min-width: 1024px) { .eco__diagram { display: block; } }
.eco__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco__ring { stroke: var(--line); stroke-width: 0.25; }
.eco__spoke { stroke: var(--line-strong); stroke-width: 0.3; transition: stroke 0.4s; }
.eco__spoke.is-lit { stroke: rgb(217 249 93 / 0.55); }
.eco__flow { stroke: var(--signal); stroke-width: 0.6; stroke-linecap: round; stroke-dasharray: 0.6 5; animation: flow 1.6s linear infinite; opacity: 0; transition: opacity 0.4s; }
.eco__flow.is-lit { opacity: 1; }
.eco__hub {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  transform: translate(-50%, -50%); border-radius: 28px; background: var(--ground-3);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgb(217 249 93 / 0.25);
}
.eco__hub-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.eco__hub-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.eco__node {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; transform: translate(-50%, -50%);
  border-radius: 999px; background: var(--ground-3); box-shadow: 0 0 0 1px var(--line-strong);
  font-size: 14px; font-weight: 500; white-space: nowrap; opacity: 0.35;
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s, opacity 0.5s;
}
.eco__node:hover { background: var(--ground-4); }
.eco__node.is-lit { opacity: 1; }
.eco__node.is-active { background: var(--signal); color: var(--ground); box-shadow: 0 10px 30px -10px rgb(217 249 93 / 0.6); }
.eco__node-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(242 241 236 / 0.07); }
.eco__node.is-active .eco__node-icon { background: rgb(11 12 14 / 0.15); }
.eco__list { position: relative; display: grid; gap: 12px; }
.eco__list::before { content: ""; position: absolute; left: 33px; top: 24px; bottom: 24px; width: 1px; background: var(--line-strong); }
.eco__li { position: relative; display: flex; gap: 16px; padding: 16px; border-radius: 16px; background: var(--ground-3); }
.eco__li-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--signal); color: var(--ground); }
.eco__li h3 { font-size: 16px; letter-spacing: -0.01em; }
.eco__li p { margin-top: 4px; font-size: 15px; line-height: 1.35; color: var(--muted); }
@media (min-width: 1024px) { .eco__list { display: none; } }

/* ---------------------------------------------------------------- Feature lists */
.features { display: grid; gap: 32px 40px; margin-top: clamp(64px, 7vw, 96px); }
@media (min-width: 640px) { .features--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features--4 { grid-template-columns: repeat(4, 1fr); } }
.features h3, .features dt { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.features p, .features dd { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.paper .features p, .paper .features dd { color: var(--paper-muted); }
.features--stack { gap: 20px; margin-top: 40px; }
.features--stack p { margin-top: 4px; }

/* ---------------------------------------------------------------- Workflow */
.wf__grid { display: grid; }
.wf__grid > * { min-width: 0; }
@media (min-width: 1024px) { .wf__grid { grid-template-columns: minmax(0, 1fr) 280px; } }
.wf__main { padding: 16px; }
@media (min-width: 640px) { .wf__main { padding: 24px; } }
.wf__nodes { display: flex; flex-direction: column; }
@media (min-width: 768px) { .wf__nodes { flex-direction: row; align-items: stretch; } }
.wf__item { display: flex; flex-direction: column; }
@media (min-width: 768px) { .wf__item { flex: 1; flex-direction: row; align-items: center; } }
.wf__node {
  position: relative; width: 100%; padding: 16px; border-radius: 16px; text-align: left; background: var(--ground-3);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
@media (min-width: 768px) { .wf__node { min-height: 150px; } }
.wf__node:hover, .wf__node.is-selected { background: var(--ground-4); }
.wf__node.is-selected { box-shadow: 0 0 0 1px var(--line-strong); }
.wf__node.is-active { box-shadow: 0 0 0 2px var(--signal); transform: scale(1.02); }
.wf__kind { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.wf__dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(242 241 236 / 0.2); transition: background-color 0.3s; }
.is-done .wf__dot { background: var(--ok); }
.is-active .wf__dot { background: var(--signal); }
.wf__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 16px; border-radius: 12px; background: rgb(242 241 236 / 0.07); transition: background-color 0.3s, color 0.3s; }
.is-done .wf__icon, .is-active .wf__icon { background: var(--signal); color: var(--ground); }
.wf__title { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.wf__link { position: relative; width: 1px; height: 24px; margin-inline: auto; background: var(--line-strong); }
@media (min-width: 768px) { .wf__link { width: 24px; height: 1px; margin: 0 6px; flex-shrink: 0; } }
@media (min-width: 1024px) { .wf__link { width: 32px; } }
.wf__link i { position: absolute; inset: 0; background: var(--signal); transform: scaleY(0); transform-origin: top; transition: transform 0.7s var(--ease-expo); }
@media (min-width: 768px) { .wf__link i { transform: scaleX(0); transform-origin: left; } }
.wf__link i.is-on { transform: none; }
.wf__log { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--ground); }
.wf__log-title { font-size: 12px; color: var(--muted); }
.wf__log-list { margin-top: 8px; display: grid; gap: 6px; font-size: 13px; }
.wf__log-list li { display: flex; gap: 12px; }
.wf__aside { padding: 20px; background: rgb(11 12 14 / 0.6); box-shadow: inset 0 1px 0 var(--line); }
@media (min-width: 1024px) { .wf__aside { box-shadow: inset 1px 0 0 var(--line); } }
.wf__aside-title { margin-top: 4px; font-weight: 600; letter-spacing: -0.01em; }
.wf__config { margin-top: 16px; display: grid; gap: 12px; font-size: 14px; }
.wf__config dt { color: var(--faint); }
.wf__config dd { margin-top: 2px; }

/* ---------------------------------------------------------------- Paper chapters */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .lede.muted { color: var(--paper-muted); }
.paper--top { border-radius: 28px 28px 0 0; }
.paper--bottom { border-radius: 0 0 28px 28px; padding-top: 0; }
@media (min-width: 640px) { .paper--top { border-radius: 40px 40px 0 0; } .paper--bottom { border-radius: 0 0 40px 40px; } }
.rule { height: 1px; background: var(--paper-line); }
.inventory__intro { padding-top: clamp(96px, 12vw, 176px); }

.summary { display: grid; gap: 12px; }
@media (min-width: 640px) { .summary { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .summary { grid-template-columns: 1fr; } }
.summary__card { padding: 16px 20px; border-radius: 16px; background: var(--paper-2); }
.summary__card dt { font-size: 14px; color: var(--paper-muted); }
.summary__v { margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.summary__s { font-size: 12px; color: var(--paper-muted); }
.inv-main { order: -1; }
@media (min-width: 1024px) { .inv-main { order: 0; } }

/* Invoice */
.steps { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps__s { padding: 4px 10px; border-radius: 999px; font-weight: 500; background: rgb(18 19 22 / 0.06); color: var(--paper-muted); transition: background-color 0.5s, color 0.5s; }
.steps__s.is-on { background: var(--paper-ink); color: var(--paper); }
.steps__sep { width: 12px; height: 1px; background: rgb(18 19 22 / 0.2); }
.ibtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgb(18 19 22 / 0.07); transition: background-color 0.2s; }
.ibtn:hover { background: rgb(18 19 22 / 0.12); }
.ibtn--dark { background: var(--paper-ink); color: var(--paper); }
.ibtn--dark:hover { background: #000; }
.invoice__doc { position: relative; padding: 20px; }
@media (min-width: 640px) { .invoice__doc { padding: 32px; } }
.invoice__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.invoice__h { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.invoice__no { margin-top: 4px; font-size: 14px; color: var(--paper-muted); }
.invoice__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; font-size: 14px; }
@media (min-width: 640px) { .invoice__meta { grid-template-columns: repeat(4, 1fr); } }
.invoice__meta .span2 { grid-column: span 2; }
.invoice__meta dt { color: var(--paper-muted); }
.invoice__meta dd:first-of-type { margin-top: 4px; }
.invoice__doc .table-scroll { margin-top: 24px; }
.qty { display: flex; align-items: center; justify-content: center; gap: 4px; }
.qty__n { width: 32px; text-align: center; font-weight: 500; }
.qty__btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; }
.qty__btn:hover { background: rgb(18 19 22 / 0.07); }
.qty__btn[disabled] { opacity: 0.3; pointer-events: none; }
.qty__btn--lg { width: 32px; height: 32px; }
.invoice__foot { display: grid; gap: 24px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--paper-line); }
@media (min-width: 640px) { .invoice__foot { grid-template-columns: 1fr 1fr; } }
.invoice__controls { display: grid; align-content: start; gap: 12px; font-size: 14px; }
.invoice__controls label, .inv-filters label { display: grid; gap: 4px; }
.invoice__controls span { color: var(--paper-muted); }
.paper select, .paper input[type="search"] {
  height: 40px; padding-inline: 12px; border: 0; border-radius: 8px; background: rgb(18 19 22 / 0.05); color: var(--paper-ink); font-size: 14px;
}
.paper select:disabled { opacity: 0.6; }
.totals { display: grid; align-content: start; gap: 8px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; }
.totals dt { color: var(--paper-muted); }
.totals__total { margin-top: 8px; padding-top: 12px; align-items: baseline; border-top: 1px solid var(--paper-line); }
.totals__total dt { color: var(--paper-ink); font-weight: 500; }
.totals__total dd { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.totals .paid { color: #17784a; }
.invoice__note { margin-top: 24px; font-size: 12px; color: var(--paper-muted); }
.stamp {
  position: absolute; right: 24px; top: 96px; padding: 4px 12px; border-radius: 8px; transform: rotate(-10deg);
  font-size: 24px; font-weight: 700; letter-spacing: 0.04em; color: #17784a; box-shadow: inset 0 0 0 2px #17784a;
  animation: stamp 0.5s var(--ease-expo); pointer-events: none;
}
@media (min-width: 640px) { .stamp { right: 40px; top: 40px; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-10deg) scale(1.6); } }

/* Stock flow */
.flow__svg { display: none; width: 100%; }
.flow__track { stroke: rgb(18 19 22 / 0.14); stroke-width: 2; fill: none; }
.flow__dash { stroke: var(--paper-ink); stroke-width: 2; fill: none; opacity: 0.35; stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
.flow__node { fill: var(--paper-ink); }
.flow__core { fill: var(--signal); }
.flow__label { font-size: 17px; font-weight: 600; fill: var(--paper-ink); }
.flow__note { font-size: 15px; fill: var(--paper-muted); }
.flow__crate { fill: var(--signal); stroke: var(--paper-ink); stroke-width: 2; }
.flow__crate-line { stroke: var(--paper-ink); stroke-width: 1.5; }
.flow__list { display: grid; gap: 8px; }
.flow__list li { display: flex; align-items: center; gap: 12px; }
.flow__li-node { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; background: var(--paper-ink); }
.flow__li-node i { width: 10px; height: 10px; border-radius: 2px; background: var(--signal); }
.flow__li-label { font-weight: 500; }
.flow__li-note { margin-left: auto; font-size: 14px; color: var(--paper-muted); }
@media (min-width: 768px) { .flow__svg { display: block; } .flow__list { display: none; } }

/* Inventory app */
.inv-filters { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 0; }
@media (min-width: 768px) { .inv-filters { flex-direction: row; align-items: center; } }
.search { position: relative; flex: 1; }
.search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--paper-muted); pointer-events: none; }
.search input { width: 100%; padding-left: 36px !important; }
.search input::placeholder { color: var(--paper-muted); }
.inv-filters__sel { display: flex; gap: 8px; }
.inv-filters__sel label { flex: 1; }
.inv-grid { display: grid; }
.inv-grid > * { min-width: 0; }
@media (min-width: 1280px) { .inv-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.inv-table { padding: 12px 16px 16px; }
.inv-table .table { min-width: 680px; }
.row-actions { display: inline-flex; gap: 4px; }
.empty { display: grid; place-items: center; gap: 8px; padding: 40px 0; text-align: center; font-size: 14px; color: var(--paper-muted); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--paper-ink); text-decoration: underline; }
.inv-aside { padding: 20px; background: rgb(226 224 215 / 0.6); }
@media (min-width: 1280px) { .inv-aside { box-shadow: inset 1px 0 0 var(--paper-line); } }
.inv-aside__title { font-size: 14px; font-weight: 500; }
.moves { margin: 12px 0 16px; display: grid; gap: 10px; font-size: 13px; line-height: 1.35; }
.moves__li { display: flex; gap: 10px; }
.moves__dot { width: 6px; height: 6px; margin-top: 6px; flex-shrink: 0; border-radius: 50%; background: rgb(18 19 22 / 0.4); }
.moves__li--in .moves__dot { background: #17784a; }
.moves__li--alert .moves__dot { background: #b9770e; }
.moves__li--alert span { font-weight: 500; }
.moves__bell { display: inline; margin-right: 4px; vertical-align: -2px; color: #8f5a06; }
.faint-paper { color: var(--paper-muted); }

/* ---------------------------------------------------------------- Custom software */
.custom { overflow: hidden; }
.config { border: 0; margin-inline: 0; padding: 0; }
.config__legend { padding: 0; font-size: var(--fs-lede); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-size: 15px; background: rgb(242 241 236 / 0.07); transition: background-color 0.2s, color 0.2s; }
.chip:hover span { background: rgb(242 241 236 / 0.12); }
.chip input:checked + span { background: var(--ink); color: var(--ground); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.ba { position: relative; display: grid; place-items: center; min-height: 420px; margin-top: 32px; }
@media (min-width: 1024px) { .ba { min-height: 520px; } }
.ba__generic { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ba__generic li {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--ground-3); box-shadow: 0 0 0 1px var(--line-strong); font-size: 14px; opacity: 0;
}
.ba__generic .i { color: var(--muted); }
.ba__unified { position: relative; width: 100%; max-width: 880px; }
.need__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--signal); color: var(--ground); }
.need__body { display: grid; gap: 16px; padding: 16px; }
@media (min-width: 640px) { .need__body { padding: 24px; } }
@media (min-width: 768px) { .need__body { grid-template-columns: 1.2fr 1fr; } }
.need__summary { font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; }
.need__who { margin: 20px 0 8px; }
.need__modules { display: grid; gap: 8px; }
.need__modules li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--ground-3); font-size: 15px; }
.checklist { display: grid; column-gap: 32px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; align-items: center; gap: 12px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 18px; letter-spacing: -0.01em; }
.checklist li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* ---------------------------------------------------------------- Showcase / dashboard */
.showcase { overflow-x: clip; }
.showcase__wrap { position: relative; }
.showcase__glow { position: absolute; inset: -80px -40px 40px; opacity: 0.6; filter: blur(64px); pointer-events: none; background: radial-gradient(50% 40% at 50% 30%, rgb(217 249 93 / 0.1), transparent); }
.showcase__wrap > [data-mask] { position: relative; }
.dash__search { display: none; flex: 1; align-items: center; gap: 8px; height: 32px; padding-inline: 12px; border-radius: 8px; background: rgb(242 241 236 / 0.05); font-size: 14px; color: var(--faint); }
@media (min-width: 640px) { .dash__search { display: flex; } }
.dash__grid { display: grid; }
.dash__grid > * { min-width: 0; }
@media (min-width: 768px) { .dash__grid { grid-template-columns: 200px minmax(0, 1fr); } }
.dash__tabs { display: flex; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
@media (min-width: 768px) { .dash__tabs { flex-direction: column; padding: 12px; box-shadow: 1px 0 0 var(--line); } }
.dash__tab { display: flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.dash__tab:hover { background: rgb(242 241 236 / 0.05); color: var(--ink); }
.dash__tab.is-on { background: rgb(242 241 236 / 0.09); color: var(--ink); }
.dash__panel { min-height: 420px; padding: 12px; }
@media (min-width: 640px) { .dash__panel { padding: 20px; } }
.dstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1024px) { .dstats { grid-template-columns: repeat(4, 1fr); } }
.dstats--col { grid-template-columns: 1fr !important; align-content: start; }
.dstat { padding: 16px; border-radius: 12px; background: rgb(242 241 236 / 0.04); }
.dstat dt { font-size: 12px; color: var(--muted); }
.dstat__v { margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.dstat__s { font-size: 12px; color: var(--faint); }
.dstat__s.ok { color: var(--ok); }
.dstat__s.warn { color: var(--warn); }
.dgrid { display: grid; gap: 12px; margin-top: 12px; }
.dgrid > * { min-width: 0; }
.dgrid:first-child { margin-top: 0; }
@media (min-width: 1024px) { .dgrid { grid-template-columns: 1.6fr 1fr; } .dgrid--even { grid-template-columns: 1fr 1fr; } }
.dcard { padding: 16px; border-radius: 12px; background: rgb(242 241 236 / 0.04); }
.dcard__t { font-size: 14px; font-weight: 500; }
.dcard__b { margin-top: 12px; }
.dline { width: 100%; height: 160px; }
.dline__area { fill: var(--signal); opacity: 0.08; }
.dline__stroke { fill: none; stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rlist { display: grid; gap: 10px; font-size: 14px; }
.rlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rlist + .small { margin-top: 16px; }
.mlist { display: grid; gap: 12px; font-size: 14px; }
.mlist__row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.flows li { display: flex; align-items: center; gap: 12px; padding-block: 10px; font-size: 14px; border-top: 1px solid var(--line); }
.flows li:first-child { border-top: 0; }
.flows__txt { flex: 1; min-width: 0; }
.flows__txt strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flows__txt span { font-size: 12px; }
.pillars { display: grid; gap: 32px; max-width: 1000px; margin: 64px auto 0; text-align: center; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars dt { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pillars dd { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------------------------------------------------------------- Industries */
.ind-list { border-block: 1px solid var(--line); }
.ind-item + .ind-item { border-top: 1px solid var(--line); }
.ind-item__btn { display: flex; align-items: center; gap: 16px; width: 100%; padding-block: 16px; text-align: left; color: var(--muted); transition: color 0.2s; }
@media (min-width: 1024px) { .ind-item__btn { padding-block: 20px; } }
.ind-item__btn:hover, .ind-item.is-on .ind-item__btn { color: var(--ink); }
.ind-item.is-on .ind-item__icon { color: var(--signal); }
.ind-item__label { flex: 1; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .ind-item__label { font-size: 24px; } }
.ind-item__arrow { opacity: 0; transform: translateX(-8px); transition: transform 0.3s var(--ease-expo), opacity 0.3s; }
.ind-item.is-on .ind-item__arrow { opacity: 1; transform: none; }
.ind-item__btn:hover .ind-item__arrow { opacity: 0.6; transform: none; }
.ind-item__panel { padding-bottom: 24px; }
@media (min-width: 1024px) { .ind-item__panel { display: none; } }
.ind-detail-wrap { display: none; }
@media (min-width: 1024px) { .ind-detail-wrap { display: block; } }
.ind-detail { position: sticky; top: calc(var(--nav-h) + 40px); padding: 40px; border-radius: 22px; background: var(--ground-2); }
.ind-detail__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 32px; border-radius: 16px; background: var(--signal); color: var(--ground); }
.ind-detail__dl { display: grid; gap: 24px; }
.ind-detail__dl dt { font-size: 14px; color: var(--faint); }
.ind-detail__dl dd { margin-top: 6px; }
.ind-detail__problem, .ind-detail__solution { font-size: var(--fs-lede); line-height: 1.5; }
.ind-detail__solution { color: var(--muted); }

/* ---------------------------------------------------------------- Process timeline */
.timeline { position: relative; }
.timeline__track, .timeline__fill { position: absolute; top: 0; bottom: 0; left: 19px; width: 1px; }
.timeline__track { background: var(--line-strong); }
.timeline__fill { background: var(--signal); transform-origin: top; }
@media (min-width: 1024px) { .timeline__track, .timeline__fill { left: calc(33.333% + 19px); } }
.stage { position: relative; display: grid; gap: 16px; padding-bottom: 56px; }
.stage:last-child { padding-bottom: 0; }
@media (min-width: 1024px) { .stage { grid-template-columns: 1fr 2fr; gap: 0; padding-bottom: 80px; } }
.stage__aside { display: none; padding-right: 48px; }
@media (min-width: 1024px) { .stage__aside { display: block; } .stage__name--m, .stage__sum-m { display: none; } }
.stage__aside .stage__name { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1; letter-spacing: -0.035em; }
.stage__aside p { margin-top: 12px; }
.stage__body { position: relative; padding-left: 64px; }
.stage__dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: var(--ground); font-size: 14px; font-weight: 600; }
.stage__name--m { font-size: 30px; letter-spacing: -0.03em; }
.stage__sum-m { margin-top: 4px; }
.stage__detail { margin-top: 16px; }
@media (min-width: 1024px) { .stage__detail { margin-top: 6px; } }
.stage__rec { margin: 24px 0 8px; }

/* ---------------------------------------------------------------- Trust */
.principles { display: grid; column-gap: 40px; }
@media (min-width: 640px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { padding-block: 24px; border-top: 1px solid var(--line); }
.principles h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.015em; }
.principles p { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------------------------------------------------------------- Final CTA */
.final { position: relative; overflow-x: clip; padding-block: clamp(120px, 16vw, 240px); }
.final__glow {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1100px, 120vw); height: 620px; margin: -310px 0 0 calc(min(1100px, 120vw) / -2);
  border-radius: 50%; opacity: 0.7; filter: blur(64px); pointer-events: none;
  background: radial-gradient(closest-side, rgb(217 249 93 / 0.14), transparent);
}
.final__inner { text-align: center; }
.final__title { max-width: 16ch; margin-inline: auto; }
.final .lede { margin: 28px auto 0; max-width: 34rem; }
.final__cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------------------------------------------------------------- Footer */
.footer { padding: 80px 0 40px; box-shadow: 0 -1px 0 var(--line); }
.footer__grid { display: grid; gap: 48px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__brand { max-width: 22rem; }
.footer__brand p { margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer__h { font-size: 14px; font-weight: 400; color: var(--faint); }
.footer__list { display: grid; gap: 10px; margin-top: 16px; font-size: 15px; }
.footer__list a { color: var(--muted); transition: color 0.2s; }
.footer__list a:hover { color: var(--ink); }
.footer__word { margin-top: 96px; font-size: clamp(3.5rem, 14vw, 13rem); font-weight: 600; line-height: 0.8; letter-spacing: -0.06em; color: rgb(242 241 236 / 0.06); user-select: none; }
.footer__base { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

/* ---------------------------------------------------------------- Print: sample invoice only */
@media print {
  html.print-invoice body * { visibility: hidden !important; }
  html.print-invoice [data-print-invoice], html.print-invoice [data-print-invoice] * { visibility: visible !important; }
  html.print-invoice [data-print-invoice] { position: absolute; inset: 0 auto auto 0; width: 100%; background: #fff; color: #000; }
  html.print-invoice [data-print-invoice] button, html.print-invoice [data-print-invoice] select { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
