/* ==========================================================================
   NOVENTRA SOFTWARE LTD — site.css
   Design system v2. Product-grade dark UI: hairline borders, barely-there
   elevation, no drop shadows, precision typography, restrained colour.
   Colour appears in exactly one place — the nine category marks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Neutral ramp — dark is the designed-first theme */
  --n-1000: #08080a;
  --n-950: #0c0d0f;
  --n-900: #101113;
  --n-850: #16171a;
  --n-800: #1c1e21;
  --n-700: #26282c;

  --w-100: #f5f6f7;
  --w-70: #b4b8bf;
  --w-50: #8b8f98;
  --w-35: #787d89;

  /* Brand */
  --brand: #ff5a1f;
  --brand-deep: #b23608;

  /* The nine — a controlled warm-to-cool arc, one hue per category.
     Deliberately mid-saturation: a rainbow reads cheap, an arc reads designed. */
  --c1: #dd6835;
  --c2: #c87d22;
  --c3: #a8882f;
  --c4: #5d9a59;
  --c5: #469589;
  --c6: #4a8fbb;
  --c7: #6a80d0;
  --c8: #8f6fca;
  --c9: #bd62ab;

  /* Semantic — DARK */
  --bg: var(--n-1000);
  --bg-raised: rgba(255, 255, 255, 0.022);
  --bg-card: var(--n-950);
  --bg-solid: var(--n-900);
  --bg-inset: #050506;

  --fg: var(--w-100);
  --fg-muted: var(--w-50);
  --fg-faint: var(--w-35);

  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.045);
  --line-strong: rgba(255, 255, 255, 0.13);

  --accent: var(--brand);
  --accent-fg: #0b0b0d;
  --accent-wash: rgba(255, 90, 31, 0.1);
  --accent-line: rgba(255, 90, 31, 0.35);

  --ok: #3fb950;
  --warn: #d29922;

  /* Top highlight — the 1px light catch that makes surfaces feel physical */
  --edge: linear-gradient(to bottom, rgba(255, 255, 255, 0.09), transparent 42%);

  /* Type */
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-hero: clamp(2.6rem, 1.55rem + 4.6vw, 4.75rem);
  --t-h1: clamp(2.15rem, 1.5rem + 2.9vw, 3.5rem);
  --t-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --t-h3: clamp(1.15rem, 1.05rem + 0.42vw, 1.4rem);
  --t-lead: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --t-body: 0.9375rem; /* 15px — the Linear-grade reading size */
  --t-sm: 0.875rem;
  --t-xs: 0.8125rem;
  --t-label: 0.75rem;

  /* Space */
  --gutter: clamp(1.15rem, 0.7rem + 2vw, 2.5rem);
  --shell: 1200px;
  --shell-wide: 1400px;
  --sec: clamp(4.5rem, 2.6rem + 8vw, 8rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-raised: rgba(9, 9, 11, 0.024);
  --bg-card: #fbfbfc;
  --bg-solid: #f4f4f6;
  --bg-inset: #f7f7f9;

  --fg: #0d0e10;
  --fg-muted: #5c6068;
  --fg-faint: #666a73;

  --line: rgba(9, 9, 11, 0.1);
  --line-soft: rgba(9, 9, 11, 0.06);
  --line-strong: rgba(9, 9, 11, 0.18);

  --accent: var(--brand-deep);
  --accent-fg: #ffffff;
  --accent-wash: rgba(178, 54, 8, 0.07);
  --accent-line: rgba(178, 54, 8, 0.3);

  --ok: #1a7f37;
  --warn: #7d5805;

  --edge: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent 42%);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-fg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Atmosphere: one wide, very faint glow. No grain, no grid — restraint is
   the point of this system. */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  translate: -50% 0;
  width: min(1500px, 150vw);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.035), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.05), transparent 62%);
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.shell--wide { max-width: var(--shell-wide); }
.shell--narrow { max-width: 780px; }

.section { padding-block: var(--sec); position: relative; }
.section--ruled { border-top: 1px solid var(--line-soft); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--fg);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  font-size: var(--t-sm);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* --------------------------------------------------------------------------
   4. TYPE
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.t-hero {
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -0.036em;
  font-weight: 600;
}

.t-h1 { font-size: var(--t-h1); letter-spacing: -0.032em; line-height: 1.04; }
.t-h2 { font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1.08; }
.t-h3 { font-size: var(--t-h3); letter-spacing: -0.022em; line-height: 1.25; }

/* legacy display aliases kept so every page keeps working */
.display { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.036em; font-weight: 600; }
.h-xl { font-size: var(--t-h1); letter-spacing: -0.032em; }
.h-lg { font-size: var(--t-h2); letter-spacing: -0.03em; }
.h-md { font-size: var(--t-h3); }
.h-sm { font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.35; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--fg-muted);
  letter-spacing: -0.014em;
  max-width: 46ch;
}
.lede { font-size: var(--t-lead); line-height: 1.55; color: var(--fg-muted); letter-spacing: -0.014em; max-width: 46ch; }

.prose-muted { color: var(--fg-muted); max-width: 62ch; }
.accent { color: var(--accent); }
.dim { color: var(--fg-muted); }

/* Eyebrow label */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-faint);
  text-transform: none;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.tag--plain::before { display: none; }
.tag--accent { color: var(--accent); }

.idx {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

/* Section header */
.sec-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  max-width: 62ch;
}

.sec-head--split { max-width: none; }

@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: end;
  }
}

.sec-head__title { font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1.08; }
.sec-head__aside { color: var(--fg-muted); max-width: 44ch; }

/* --------------------------------------------------------------------------
   5. BUTTONS & LINKS
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1.05rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--fg);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--edge);
  opacity: 0.6;
  pointer-events: none;
}

.btn:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
[data-theme="light"] .btn:hover { background: rgba(9, 9, 11, 0.045); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: transparent;
  font-weight: 500;
}
.btn--primary:hover { background: #ffffff; border-color: transparent; }
[data-theme="light"] .btn--primary:hover { background: #000000; }
.btn--primary::before { opacity: 0; }

.btn--brand {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}
.btn--brand:hover { background: var(--accent); filter: brightness(1.08); border-color: transparent; }
.btn--brand::before { opacity: 0; }

.btn--lg { height: 2.85rem; padding-inline: 1.35rem; font-size: var(--t-body); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--bg-raised); border-color: var(--line); }

/* legacy alias */
.btn--solid { background: var(--fg); color: var(--bg); border-color: transparent; }
.btn--solid:hover { background: #fff; }
[data-theme="light"] .btn--solid:hover { background: #000; }
.btn--solid::before { opacity: 0; }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}
.arrow-link:hover { color: var(--accent); gap: 0.62rem; }

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent-line);
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 3.9rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.55rem; flex: none; }

.brand__mark { width: 24px; height: 24px; flex: none; }
.brand__mark .mk-n { fill: var(--fg); transition: fill 0.25s var(--ease); }
.brand__mark .mk-box { stroke: var(--fg); opacity: 0.28; }
.brand:hover .mk-n { fill: var(--accent); }

.brand__text { display: flex; align-items: baseline; gap: 0.42rem; }
.brand__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.028em; }
.brand__suffix {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-faint);
  letter-spacing: 0;
}

.nav__links { display: none; align-items: center; gap: 0.15rem; list-style: none; padding: 0; }

@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__link {
  display: block;
  padding: 0.42rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  font-weight: 450;
  color: var(--fg-muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__link:hover { color: var(--fg); background: var(--bg-raised); }
.nav__link[aria-current="page"] { color: var(--fg); }

.nav__actions { display: flex; align-items: center; gap: 0.4rem; flex: none; }

.nav__cta { display: none; height: 2.1rem; padding-inline: 0.85rem; font-size: var(--t-xs); }
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  color: var(--fg-muted);
  transition: color 0.18s, background-color 0.18s, border-color 0.18s;
}
.icon-btn:hover { color: var(--fg); background: var(--bg-raised); border-color: var(--line); }

.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="light"] .theme-toggle .ico-sun { display: block; }
[data-theme="light"] .theme-toggle .ico-moon { display: none; }

.menu-btn { display: grid; }
@media (min-width: 900px) { .menu-btn { display: none; } }

.menu-btn__bars { position: relative; width: 14px; height: 8px; }
.menu-btn__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 3.9rem 0 0;
  z-index: 99;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.45s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

.mobile-menu__link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.2rem; font-weight: 500; letter-spacing: -0.025em;
  opacity: 0; transform: translateY(8px);
}
.mobile-menu.is-open .mobile-menu__link { animation: rise 0.45s var(--ease) forwards; }
.mobile-menu__link:nth-child(1) { animation-delay: 0.04s; }
.mobile-menu__link:nth-child(2) { animation-delay: 0.08s; }
.mobile-menu__link:nth-child(3) { animation-delay: 0.12s; }
.mobile-menu__link:nth-child(4) { animation-delay: 0.16s; }
.mobile-menu__link:nth-child(5) { animation-delay: 0.2s; }
.mobile-menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.6rem; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 2rem + 6vw, 7rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 1.85rem;
  padding-inline: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: var(--t-xs);
  color: var(--fg-muted);
  margin-bottom: 1.6rem;
  transition: border-color 0.2s, color 0.2s;
}
.hero__badge:hover { border-color: var(--line-strong); color: var(--fg); }
.hero__badge b { color: var(--fg); font-weight: 500; }

.hero__title {
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
  max-width: 17ch;
}

.hero__title .grad {
  background: linear-gradient(180deg, var(--fg) 42%, color-mix(in srgb, var(--fg) 62%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Two-column hero: copy left, the nine marks right. Stacks under 1040px. */
.hero__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4rem); align-items: center; }

@media (min-width: 1040px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 4.5rem;
  }
  .hero__title { max-width: 13ch; }
  .hero__sub { max-width: 44ch; }
}

.hero__sub {
  margin-top: 1.4rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 52ch;
  letter-spacing: -0.014em;
}

.hero__actions { margin-top: 2.1rem; }

.pulse {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--t-xs); color: var(--fg-muted);
}
.pulse__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none; position: relative;
}
.pulse__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* Hero stat strip */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line-soft);
}
.stat { background: var(--bg); padding: 1.15rem 1.25rem; display: grid; gap: 0.3rem; }
.stat__val { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat__key { font-size: var(--t-xs); color: var(--fg-faint); }

/* --------------------------------------------------------------------------
   8. THE NINE — icon wall (the hero's visual anchor)
   -------------------------------------------------------------------------- */

.iconwall {
  position: relative;
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bg-card);
  overflow: hidden;
}

[data-theme="light"] .iconwall {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(9, 9, 11, 0.035), transparent 60%),
    var(--bg-card);
}

.iconwall::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--edge);
  pointer-events: none;
}

.iconwall__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 0.35rem + 1.1vw, 1rem);
  max-width: 380px;
  margin-inline: auto;
}

.appicon {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24%;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: float 7s var(--ease-io) infinite;
  animation-delay: var(--delay, 0s);
  transition: transform 0.4s var(--ease);
}

.appicon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
}

.appicon:hover { transform: translateY(-6px) scale(1.03); }

.appicon svg {
  width: 42%;
  height: 42%;
  color: #fff;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.appicon__label {
  position: absolute;
  inset-inline: 0;
  bottom: -1.55rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-faint);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  white-space: nowrap;
}

.appicon:hover .appicon__label { opacity: 1; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.iconwall__caption {
  position: relative;
  margin-top: 2.6rem;
  text-align: center;
  font-size: var(--t-sm);
  color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   9. SURFACES: cards, bento, category grid
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  display: grid;
  gap: 0.6rem;
  align-content: start;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--edge);
  pointer-events: none;
}

.card:hover { border-color: var(--line); background: var(--bg-solid); }

.card__icon {
  width: 2.15rem; height: 2.15rem;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--fg);
  margin-bottom: 0.55rem;
}
.card__icon svg { width: 1.05rem; height: 1.05rem; }

.card__title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
.card__body { font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.6; }

.grid-2 { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* Category grid — nine tiles, each carrying its own hue */
.cat-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

.cat {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  display: grid;
  gap: 0.55rem;
  align-content: start;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(90% 70% at 12% 0%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.cat:hover::before { opacity: 1; }
.cat:hover { border-color: color-mix(in srgb, var(--tint) 40%, transparent); background: var(--bg-solid); }

.cat__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; }

.cat__mark {
  width: 2.35rem; height: 2.35rem;
  border-radius: 26%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex: none;
}
.cat__mark svg { width: 1.1rem; height: 1.1rem; color: #fff; }

.cat__num { font-family: var(--font-mono); font-size: var(--t-label); color: var(--fg-faint); }

.cat__name { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
.cat__desc { font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.6; }

.cat__tags { display: flex; flex-wrap: wrap; gap: 0.32rem; margin-top: 0.45rem; }

.chip {
  font-size: 0.75rem;
  color: var(--fg-faint);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.16rem 0.42rem;
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s;
}
.cat:hover .chip { border-color: var(--line); color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   10. STEPS / SPEC LIST / PILLS
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 0.9rem; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  display: grid;
  gap: 0.5rem;
  align-content: start;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--edge); pointer-events: none; }
.step:hover { border-color: var(--line); background: var(--bg-solid); }

.step__num {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.step__title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.022em; }
.step__body { font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.6; }

.spec-list { list-style: none; padding: 0; border-top: 1px solid var(--line-soft); }
.spec-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem; padding-block: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-sm);
}
.spec-list__k { color: var(--fg-faint); flex: none; }
.spec-list__v { text-align: right; color: var(--fg); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pill {
  font-size: var(--t-xs);
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--fg-muted);
  background: var(--bg-raised);
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--line-strong); color: var(--fg); }

.split { display: grid; gap: clamp(2rem, 1.4rem + 3vw, 4rem); align-items: start; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   11. APP CARDS
   -------------------------------------------------------------------------- */

.app-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
@media (min-width: 1000px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }

.app {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  display: grid; gap: 0.85rem; align-content: start;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.app::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--edge); pointer-events: none; }
.app:hover { border-color: var(--line); background: var(--bg-solid); }

.app__head { display: flex; align-items: center; gap: 0.8rem; }

.app__glyph {
  width: 2.6rem; height: 2.6rem; flex: none;
  display: grid; place-items: center;
  border-radius: 26%;
  background: linear-gradient(160deg, var(--tint, var(--n-800)), color-mix(in srgb, var(--tint, var(--n-800)) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
}
.app__glyph svg { width: 1.15rem; height: 1.15rem; color: #fff; }

.app__name { font-size: 1rem; font-weight: 600; letter-spacing: -0.022em; line-height: 1.3; }
.app__cat { font-size: var(--t-xs); color: var(--fg-faint); margin-top: 0.1rem; }
.app__body { font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.6; }

.app__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 0.85rem; border-top: 1px solid var(--line-soft);
}

.status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--t-xs); color: var(--fg-faint); }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.status--build { color: var(--accent); }
.status--review { color: var(--warn); }
.status--live { color: var(--ok); }

.store-links { display: flex; gap: 0.3rem; }
.store-link {
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--line-soft); border-radius: 6px;
  color: var(--fg-faint);
  transition: color 0.2s, border-color 0.2s;
}
.store-link:hover { color: var(--fg); border-color: var(--line-strong); }
.store-link[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

.notice {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  display: grid; gap: 0.7rem;
  background: var(--bg-card);
  overflow: hidden;
}
.notice::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--edge); pointer-events: none; }

/* --------------------------------------------------------------------------
   12. MARQUEE
   -------------------------------------------------------------------------- */

.marquee {
  --speed: 52s;
  overflow: hidden;
  display: flex;
  user-select: none;
  padding-block: 0.9rem;
  border-block: 1px solid var(--line-soft);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; flex: none; min-width: 100%; gap: 2.4rem; padding-right: 2.4rem;
  animation: slide var(--speed) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 2.4rem;
  font-size: var(--t-xs); color: var(--fg-faint); white-space: nowrap;
}
.marquee__item::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--fg-faint); opacity: 0.55; flex: none; }

/* --------------------------------------------------------------------------
   13. CTA
   -------------------------------------------------------------------------- */

.cta { position: relative; border-top: 1px solid var(--line-soft); overflow: hidden; }

.cta__inner {
  position: relative;
  padding-block: clamp(4rem, 2.6rem + 5vw, 7rem);
  display: grid; gap: 1.4rem;
  justify-items: center; text-align: center;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -55%; left: 50%; translate: -50% 0;
  width: min(900px, 110vw); aspect-ratio: 1.6;
  background: radial-gradient(ellipse at center, var(--accent-wash), transparent 62%);
  pointer-events: none;
}

.cta__title { font-size: var(--t-h1); letter-spacing: -0.032em; line-height: 1.05; max-width: 18ch; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line-soft); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); font-size: var(--t-sm); }

.footer__grid { display: grid; gap: 2.4rem; padding-bottom: 3rem; }
@media (min-width: 780px) { .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; } }

.footer__brand-col { display: grid; gap: 1rem; align-content: start; max-width: 32ch; }
.footer__col-title { font-size: var(--t-xs); font-weight: 500; color: var(--fg); margin-bottom: 0.9rem; letter-spacing: -0.01em; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer__list a { color: var(--fg-muted); font-size: var(--t-sm); transition: color 0.18s; }
.footer__list a:hover { color: var(--fg); }
.footer__addr { font-style: normal; color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.65; }

.footer__legal {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.footer__fineprint { font-size: var(--t-xs); color: var(--fg-faint); }

.footer__statutory {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.2rem 2.4rem;
  color: var(--fg-faint);
  font-size: var(--t-xs);
  line-height: 1.7;
  max-width: 96ch;
}

/* --------------------------------------------------------------------------
   15. PAGE HEADERS
   -------------------------------------------------------------------------- */

.page-head {
  padding-top: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.page-head__inner { position: relative; z-index: 1; display: grid; gap: 1rem; }
.page-head__title { font-size: var(--t-h1); letter-spacing: -0.034em; line-height: 1.05; }
.page-head__glow { display: none; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: var(--t-xs); color: var(--fg-faint); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: 0.45; }

/* --------------------------------------------------------------------------
   16. LONG-FORM DOCUMENTS
   -------------------------------------------------------------------------- */

.doc-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } }

.doc-toc { display: none; }
@media (min-width: 1000px) {
  .doc-toc { display: block; position: sticky; top: 5.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
}
.doc-toc__title { font-size: var(--t-xs); color: var(--fg-faint); margin-bottom: 0.85rem; }
.doc-toc ol { list-style: none; padding: 0; display: grid; gap: 0.05rem; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: flex; gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  margin-left: -0.6rem;
  border-radius: 6px;
  font-size: var(--t-xs); line-height: 1.45; color: var(--fg-faint);
  transition: color 0.2s, background-color 0.2s;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); opacity: 0.6; flex: none; }
.doc-toc a:hover { color: var(--fg); background: var(--bg-raised); }
.doc-toc a.is-active { color: var(--fg); background: var(--bg-raised); }
.doc-toc a.is-active::before { color: var(--accent); opacity: 1; }

.doc { max-width: 72ch; counter-reset: sec; }

.doc__meta {
  display: grid; gap: 0.4rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  border-radius: var(--r-md);
  margin-bottom: 2.75rem;
}
.doc__meta-row { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: var(--t-xs); color: var(--fg-muted); }
.doc__meta-row b { color: var(--fg-faint); font-weight: 400; min-width: 9.5rem; }

.doc section { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--line-soft); scroll-margin-top: 6rem; }
.doc section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.doc h2 {
  counter-increment: sec;
  font-size: var(--t-h3);
  font-weight: 600; letter-spacing: -0.024em; line-height: 1.3;
  margin-bottom: 1rem;
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.3rem; align-items: baseline;
}
.doc h2::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 400;
  color: var(--accent);
}

.doc h3 { font-size: var(--t-body); font-weight: 600; letter-spacing: -0.015em; margin-top: 1.75rem; margin-bottom: 0.5rem; color: var(--fg); }
.doc p { color: var(--fg-muted); margin-bottom: 0.95rem; line-height: 1.72; font-size: var(--t-sm); }
.doc ul, .doc ol { color: var(--fg-muted); margin: 0 0 1.15rem; padding-left: 0; list-style: none; display: grid; gap: 0.5rem; font-size: var(--t-sm); }
.doc ul li { position: relative; padding-left: 1.15rem; line-height: 1.65; }
.doc ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-faint); }
.doc ol { counter-reset: li; }
.doc ol li { counter-increment: li; position: relative; padding-left: 1.6rem; line-height: 1.65; }
.doc ol li::before { content: counter(li) "."; position: absolute; left: 0; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--fg-faint); padding-top: 0.1em; }
.doc li strong, .doc p strong { color: var(--fg); font-weight: 600; }
.doc a:not(.btn):not(.arrow-link) {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 0.18em; text-decoration-thickness: 1px;
  text-decoration-color: var(--accent-line);
}
.doc a:not(.btn):not(.arrow-link):hover { text-decoration-color: currentColor; }
.doc code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-solid); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0.08em 0.32em; }

.callout {
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.3rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout__label { font-family: var(--font-mono); font-size: var(--t-label); color: var(--accent); display: block; margin-bottom: 0.4rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); margin-bottom: 1.4rem; -webkit-overflow-scrolling: touch; }
.doc table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--t-xs); }
.doc th, .doc td { text-align: left; padding: 0.72rem 0.9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; }
.doc thead th { font-weight: 500; color: var(--fg-faint); background: var(--bg-raised); white-space: nowrap; }
.doc tbody tr:last-child td { border-bottom: 0; }
.doc td { color: var(--fg-muted); }
.doc td:first-child { color: var(--fg); }

/* --------------------------------------------------------------------------
   17. FORMS
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 0.95rem; }
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: var(--t-xs); color: var(--fg-muted); }
.field__label .req { color: var(--accent); }

.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.62rem 0.8rem;
  font-size: var(--t-sm);
  letter-spacing: -0.011em;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
}

.field-row { display: grid; gap: 0.95rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-xs); color: var(--fg-muted); line-height: 1.55; }
.consent input { width: 1rem; height: 1rem; margin-top: 0.15rem; flex: none; accent-color: var(--accent); cursor: pointer; }
.form__note { font-size: var(--t-xs); color: var(--fg-faint); line-height: 1.6; }

/* --------------------------------------------------------------------------
   18. CONTACT CHANNELS
   -------------------------------------------------------------------------- */

.inbox {
  position: relative;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  display: grid; gap: 0.55rem; align-items: start;
  overflow: hidden;
}
.inbox::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--edge); pointer-events: none; }

.inbox__addr {
  font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 600; letter-spacing: -0.028em; line-height: 1.2;
  color: var(--fg); word-break: break-word;
  transition: color 0.2s;
}
.inbox__addr:hover { color: var(--accent); }
.inbox__note { font-size: var(--t-sm); line-height: 1.6; color: var(--fg-muted); max-width: 58ch; }

.channels {
  display: grid; gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line-soft);
}
.channel { background: var(--bg); padding: 1rem 1.2rem; display: grid; gap: 0.25rem; transition: background-color 0.25s; }
.channel:hover { background: var(--bg-card); }
.channel__label { font-size: var(--t-xs); color: var(--fg-faint); }
.channel__value { font-size: var(--t-body); font-weight: 500; letter-spacing: -0.018em; word-break: break-word; }
.channel a.channel__value { transition: color 0.2s; }
.channel a.channel__value:hover { color: var(--accent); }
.channel__hint { font-size: var(--t-xs); color: var(--fg-faint); line-height: 1.55; }

.channel__value--subject {
  font-family: var(--font-mono);
  font-size: var(--t-sm); font-weight: 400;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.channel__value--subject::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.channel a.channel__value--subject:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.1rem; cursor: pointer; list-style: none;
  font-size: var(--t-body); font-weight: 500; letter-spacing: -0.018em; line-height: 1.4;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; background: currentColor;
  clip-path: polygon(46% 0, 54% 0, 54% 46%, 100% 46%, 100% 54%, 54% 54%, 54% 100%, 46% 100%, 46% 54%, 0 54%, 0 46%, 46% 46%);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding-bottom: 1.25rem; color: var(--fg-muted); max-width: 68ch; line-height: 1.7; font-size: var(--t-sm); }
.faq__body p + p { margin-top: 0.75rem; }
.faq details[open] .faq__body { animation: fadeUp 0.35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   20. MOTION
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-load] { opacity: 0; animation: fadeUpIn 0.8s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   21. UTILITIES
   -------------------------------------------------------------------------- */

.stack-sm { display: grid; gap: 0.55rem; }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.8rem; }
.mt-md { margin-top: 1.4rem; }
.mt-lg { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------------------
   22. PREFERENCES
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .app__foot { flex-wrap: wrap; }
  .doc h2 { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .spec-list li { flex-direction: column; gap: 0.15rem; }
  .spec-list__v { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-load] { opacity: 1 !important; transform: none !important; }
  .marquee__track, .appicon { animation: none !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .site-header, .site-footer, .doc-toc, .mobile-menu, .cta, .btn, .iconwall { display: none !important; }
  .doc { max-width: none; }
  .doc a { color: #000; text-decoration: underline; }
  .doc section { break-inside: avoid-page; }
  .doc h2 { break-after: avoid; }
  [data-reveal], [data-load] { opacity: 1 !important; transform: none !important; }
}
