/* ============================================================
   StopTime — product pages on raveng.it
   Extends the RAVENG "Dark Fortress" design system (/css/raveng.css).
   Product accents come from the app palette (DesignSystem/Tokens):
   guard #F2C512, signal #F04B4B, safe #3CC186, panel #182233.
   ============================================================ */

:root {
  --st-guard: #F2C512;
  --st-guard-soft: rgba(242, 197, 18, 0.10);
  --st-guard-line: rgba(242, 197, 18, 0.32);
  --st-signal: #F04B4B;
  --st-safe: #3CC186;
  --st-panel: #182233;
  --st-paper: #0E1420;
  --st-ink2: #C0C9D6;
  --st-ink3: #8593A6;
}

/* --- Navigation fit between 1025 and 1379 px (product links: firmaCDC, PerizIA 4.0, StopTime) --- */
@media (min-width: 1025px) and (max-width: 1199px) {
  .nav__links { gap: 0.95rem; }
  .nav__link { font-size: 0.8rem; }
  .nav__cta { padding: 0.55rem 1rem; font-size: 0.8rem; }
}
@media (min-width: 1200px) and (max-width: 1379px) {
  .nav__links { gap: 1.3rem; }
  .nav__link { font-size: 0.88rem; }
}

/* --- Nav accent --- */
.nav__link--stoptime,
.nav__mobile a.nav__link--stoptime { color: var(--st-guard); }

/* --- Anchor targets clear the fixed navigation --- */
main [id] { scroll-margin-top: 96px; }

/* --- Utilities --- */
.st-accent { color: var(--st-guard); }
.st-safe { color: var(--st-safe); }
.st-signal { color: var(--st-signal); }
.st-mono { font-family: var(--font-mono); }
.st-lead { font-size: var(--text-lg); color: var(--ice); font-weight: 300; line-height: 1.6; }
.st-muted { color: var(--slate); }
.st-small { font-size: var(--text-sm); }
.st-center { text-align: center; }
.st-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.st-section-head { margin-bottom: var(--space-3xl); }
.st-section-head .card__desc { max-width: 680px; }
.st-section-head.st-center .card__desc { margin: 0 auto; }
.st-surface { background: var(--surface-0); }
sub, sup { font-size: 0.72em; line-height: 0; }

/* --- Patent pill --- */
.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--st-guard-soft);
  border: 1px solid var(--st-guard-line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--st-guard);
  max-width: 100%;
}
.st-pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--st-guard);
  flex-shrink: 0;
  animation: st-pulse 2.2s ease-in-out infinite;
}
.st-pill__text { white-space: normal; line-height: 1.4; }
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --- Hero --- */
.st-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--space-4xl) + 80px) 0 var(--space-4xl);
}
.st-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,122,137,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,122,137,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.st-hero::after {
  content: '';
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -120px;
  background: radial-gradient(circle, rgba(242,197,18,0.10) 0%, rgba(230,57,70,0.06) 35%, transparent 70%);
  pointer-events: none;
}
.st-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}
.st-hero__brand {
  display: flex; align-items: center; gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.st-hero__icon {
  width: 88px; height: 88px;
  border-radius: 22.5%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}
.st-hero__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.st-hero__platform {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-top: 6px;
}
.st-hero__title {
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.st-hero__title em { font-style: normal; color: var(--st-guard); }
.st-hero__desc { color: var(--st-ink2); font-size: var(--text-lg); line-height: 1.65; max-width: 620px; margin-bottom: var(--space-xl); }
.st-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: var(--space-xl) 0; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  color: var(--st-ink2);
  background: rgba(24,34,51,0.5);
}
.st-hero__visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.st-hero__visual .st-phone--back {
  position: absolute;
  right: 2%;
  top: 70px;
  transform: rotate(6deg);
  opacity: 0.9;
}
.st-hero__visual .st-phone--front { position: relative; z-index: 2; transform: translateX(-12%) rotate(-3deg); }

/* App Store availability badge (not a link until the app is live) */
.st-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-medium);
  color: var(--st-ink2);
  font-size: var(--text-sm);
  line-height: 1.25;
}
.st-store svg { width: 22px; height: 22px; flex-shrink: 0; }
.st-store strong { display: block; color: var(--white); font-weight: 600; }

/* --- Phone frame --- */
.st-phone {
  width: 270px;
  max-width: 100%;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a4254 0%, #1b2130 40%, #0f131c 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 80px rgba(0,0,0,0.55),
    0 8px 20px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.st-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1304;
  border-radius: 38px;
  background: var(--st-paper);
}
.st-phone--sm { width: 230px; border-radius: 40px; padding: 8px; }
.st-phone--sm img { border-radius: 33px; }
.st-figcap {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--slate);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* --- Stats (reuse .stats) --- */
.st-stats .stat__number .unit { font-size: 0.45em; color: var(--st-guard); margin-left: 4px; font-weight: 700; }

/* --- Problem / solution --- */
.st-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: start; }
.st-split--plate { grid-template-columns: 0.8fr 1.2fr; }
.st-split > *, .st-steps > *, .st-hero__grid > *, .st-patent > *, .st-calc > * { min-width: 0; }
.st-formula {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  white-space: nowrap;
  color: var(--white);
  background: var(--st-panel);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--st-guard);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0;
  overflow-x: auto;
}
.st-formula small { display: block; white-space: normal; font-size: var(--text-xs); color: var(--slate); margin-top: 8px; letter-spacing: 0.02em; }
.st-list { list-style: none; display: grid; gap: var(--space-md); }
.st-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--st-ink2); font-size: var(--text-sm); line-height: 1.7; }
.st-list li::before { content: '◆'; color: var(--st-guard); font-size: 0.8em; line-height: 2.1; }
.st-list--x li::before { content: '—'; color: var(--slate); }
.st-list strong { color: var(--white); font-weight: 600; }

/* --- Steps (interactive walkthrough) --- */
.st-steps { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-3xl); align-items: center; }
.st-steps__list { display: grid; gap: 10px; counter-reset: st-step; }
.st-step {
  text-align: left;
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(24,34,51,0.35);
  transition: border-color var(--duration-base), background var(--duration-base), transform var(--duration-base);
  cursor: pointer;
}
.st-step:hover { border-color: var(--border-medium); }
.st-step[aria-selected="true"] {
  border-color: var(--st-guard-line);
  background: linear-gradient(135deg, rgba(242,197,18,0.07), rgba(24,34,51,0.6));
}
.st-step__num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--slate);
  line-height: 1.2;
}
.st-step[aria-selected="true"] .st-step__num { color: var(--st-guard); }
.st-step__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--white); display: block; margin-bottom: 4px; }
.st-step__desc { color: var(--st-ink2); font-size: var(--text-sm); line-height: 1.65; display: block; }
.st-steps__screen { position: relative; display: flex; justify-content: center; }
.st-steps__screen .st-phone img { transition: opacity 0.35s ease; }
.st-steps__screen .st-phone img.is-swapping { opacity: 0; }
.st-steps__progress { height: 2px; background: var(--border-subtle); border-radius: 2px; margin-top: var(--space-lg); overflow: hidden; }
.st-steps__progress span { display: block; height: 100%; width: 20%; background: var(--st-guard); transition: width 0.4s var(--ease-out-expo); }

/* --- Trigger cards --- */
.st-trigger { position: relative; padding: var(--space-xl); }
.st-trigger__tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-family: var(--font-mono); font-weight: 800; font-size: var(--text-lg);
  color: var(--st-paper);
  background: var(--st-guard);
  margin-bottom: var(--space-lg);
}
.st-trigger__note { margin-top: var(--space-md); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--st-guard); letter-spacing: 0.04em; }

/* --- Technical drawing (SVG "tavola") --- */
.st-plate {
  background: var(--st-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.st-plate::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(133,147,166,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133,147,166,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.st-plate svg { position: relative; width: 100%; height: auto; }
.st-plate__caption { position: relative; margin-top: var(--space-md); display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); font-size: var(--text-sm); color: var(--st-ink2); line-height: 1.6; }
.st-plate__caption b { font-family: var(--font-display); color: var(--white); white-space: nowrap; }
.st-plate text { font-family: 'JetBrains Mono', monospace; }
.st-draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.st-plate.is-visible .st-draw { animation: st-draw 1.6s var(--ease-out-quart) forwards; }
.st-plate .st-fade { opacity: 0; }
.st-plate.is-visible .st-fade { animation: st-fade 0.6s ease forwards; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
@keyframes st-fade { to { opacity: 1; } }

/* --- Equation strip --- */
.st-eq { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; align-items: center; gap: var(--space-lg); margin: var(--space-2xl) 0; }
.st-eq__cell { text-align: center; }
.st-eq__val { font-family: var(--font-mono); font-weight: 800; font-size: var(--text-3xl); color: var(--white); line-height: 1; }
.st-eq__val small { font-size: 0.45em; color: var(--slate); margin-left: 4px; }
.st-eq__lab { margin-top: 8px; font-size: var(--text-sm); color: var(--slate); font-family: var(--font-mono); letter-spacing: 0.02em; }
.st-eq__op { font-family: var(--font-mono); font-size: var(--text-2xl); color: var(--st-guard); text-align: center; }
.st-eq__cell--result .st-eq__val { color: var(--st-guard); }

/* --- Calculator widget --- */
.st-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-card);
}
.st-calc__inputs { padding: var(--space-2xl); display: grid; gap: var(--space-xl); }
.st-calc__output { padding: var(--space-2xl); background: var(--st-paper); border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: var(--space-lg); }
.st-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-bottom: 10px; }
.st-field__label { font-size: var(--text-sm); color: var(--st-ink2); }
.st-field__label i { font-family: var(--font-mono); font-style: italic; color: var(--white); margin-right: 6px; }
.st-field__value { font-family: var(--font-mono); font-weight: 700; color: var(--white); font-size: var(--text-lg); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.st-field__value small { color: var(--slate); font-weight: 500; font-size: 0.7em; margin-left: 3px; }
.st-field__help { font-size: var(--text-xs); color: var(--slate); margin-top: 8px; line-height: 1.5; }
.st-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer;
}
.st-range:focus-visible { outline: 2px solid var(--st-guard); outline-offset: 4px; border-radius: 4px; }
.st-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--st-guard) var(--pct, 50%), rgba(108,122,137,0.35) var(--pct, 50%)); }
.st-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(108,122,137,0.35); }
.st-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--st-guard); }
.st-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--st-guard); margin-top: -9px; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.st-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--st-guard); box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.st-calc__num { width: 100%; padding: 0.7rem 1rem; background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--white); font-family: var(--font-mono); font-size: var(--text-base); }
.st-calc__num:focus { outline: none; border-color: var(--st-guard); box-shadow: 0 0 0 3px var(--st-guard-soft); }
.st-calc__big { font-family: var(--font-mono); font-weight: 800; font-size: var(--text-4xl); color: var(--white); line-height: 1; }
.st-calc__big small { font-size: 0.38em; color: var(--slate); margin-left: 6px; }
.st-calc__kicker { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.st-calc__steps { list-style: none; display: grid; gap: 6px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--st-ink2); line-height: 1.55; counter-reset: st-cs; }
.st-calc__steps li { padding-left: 26px; position: relative; }
.st-calc__steps li::before { counter-increment: st-cs; content: counter(st-cs); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(242,197,18,0.12); color: var(--st-guard); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.st-verdict { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--radius-md); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: var(--text-sm); border: 2px solid currentColor; align-self: flex-start; }
.st-verdict--ok { color: var(--st-safe); background: rgba(60,193,134,0.08); }
.st-verdict--ko { color: var(--st-signal); background: rgba(240,75,75,0.08); }
.st-verdict--na { color: var(--slate); background: transparent; border-style: dashed; }
.st-calc__note { font-size: var(--text-xs); color: var(--slate); line-height: 1.6; border-top: 1px solid var(--border-subtle); padding-top: var(--space-md); margin-top: auto; }

/* --- Calculator rack --- */
.st-rack { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.st-rack__group h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.st-rack__group > p { font-size: var(--text-xs); color: var(--slate); margin-bottom: var(--space-lg); font-family: var(--font-mono); }
.st-rack__item { padding: var(--space-md) 0; border-top: 1px solid var(--border-subtle); }
.st-rack__item strong { display: block; color: var(--white); font-weight: 600; font-size: var(--text-sm); }
.st-rack__item span { display: block; color: var(--slate); font-size: var(--text-xs); line-height: 1.55; margin-top: 2px; }
.st-rack__item code { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--st-guard); background: var(--st-guard-soft); padding: 2px 8px; border-radius: 6px; }

/* --- Gallery --- */
.st-gallery { display: flex; gap: var(--space-2xl); justify-content: center; flex-wrap: wrap; }
.st-gallery figure { display: flex; flex-direction: column; align-items: center; }

/* --- Paths (Impara) --- */
.st-paths { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
.st-path { padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: rgba(24,34,51,0.4); }
.st-path__level { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-guard); }
.st-path__title { font-family: var(--font-display); font-weight: 700; color: var(--white); margin: 6px 0; line-height: 1.25; }
.st-path__count { font-size: var(--text-xs); color: var(--slate); }

/* --- Seal --- */
.st-patent { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-3xl); align-items: center; }
.st-seal { width: 100%; max-width: 300px; margin: 0 auto; }
.st-seal svg { width: 100%; height: auto; overflow: visible; }
.st-seal text { font-family: 'JetBrains Mono', monospace; font-weight: 700; fill: var(--st-guard); }
.st-seal .st-seal__hand { transform-origin: 150px 150px; transform: rotate(0deg); }
.st-seal.is-visible .st-seal__hand { animation: st-hand 1.8s cubic-bezier(0.1, 0.8, 0.2, 1) forwards; }
.st-seal.is-visible .st-seal__guilloche { animation: st-draw 2.2s var(--ease-out-quart) forwards; }
.st-seal .st-seal__guilloche { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); }
@keyframes st-hand { from { transform: rotate(-300deg); } to { transform: rotate(0deg); } }
.st-patent__box { border: 1px solid var(--st-guard-line); background: linear-gradient(135deg, rgba(242,197,18,0.06), rgba(24,34,51,0.2)); border-radius: var(--radius-lg); padding: var(--space-2xl); }
.st-patent__box p { color: var(--st-ink2); line-height: 1.75; }
.st-patent__box p + p { margin-top: var(--space-md); }
.st-patent__en { font-size: var(--text-sm); color: var(--slate) !important; font-style: italic; }

/* --- Pricing --- */
.st-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.st-plan { padding: var(--space-2xl); }
.st-plan--main { border-color: var(--st-guard-line); }
.st-plan__name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--white); }
.st-plan__price { font-family: var(--font-mono); font-weight: 800; font-size: var(--text-3xl); color: var(--white); margin: var(--space-md) 0 4px; line-height: 1.1; }
.st-plan__price small { font-size: 0.4em; color: var(--slate); font-weight: 500; }
.st-plan__sub { font-size: var(--text-sm); color: var(--st-guard); margin-bottom: var(--space-lg); }
.st-footnote { font-size: var(--text-xs); color: var(--slate); line-height: 1.6; margin-top: var(--space-xl); }

/* --- Notice / warnings --- */
.st-notice {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240,75,75,0.25);
  background: linear-gradient(135deg, rgba(240,75,75,0.06), rgba(24,34,51,0.3));
}
.st-notice__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(240,75,75,0.12); color: var(--st-signal); }
.st-notice h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.st-notice p, .st-notice li { color: var(--st-ink2); font-size: var(--text-sm); line-height: 1.7; }
.st-notice ul { padding-left: 1.1rem; margin-top: 8px; display: grid; gap: 4px; }

/* --- Privacy strip --- */
.st-privacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.st-privacy__item { padding: var(--space-xl); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: rgba(60,193,134,0.03); }
.st-privacy__item svg { color: var(--st-safe); margin-bottom: var(--space-md); }
.st-privacy__item strong { display: block; color: var(--white); margin-bottom: 4px; font-family: var(--font-display); }
.st-privacy__item span { font-size: var(--text-sm); color: var(--slate); line-height: 1.6; }

/* --- Sub-page nav (product tabs) --- */
.st-subnav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--space-xl);
}
.st-subnav a {
  font-size: var(--text-sm);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--st-ink2);
  transition: border-color var(--duration-base), color var(--duration-base);
}
.st-subnav a:hover { border-color: var(--st-guard-line); color: var(--white); }
.st-subnav a[aria-current="page"] { border-color: var(--st-guard); color: var(--st-guard); background: var(--st-guard-soft); }

/* --- Legal / doc pages --- */
.st-doc { max-width: 860px; margin: 0 auto; }
.st-doc .st-privacy { grid-template-columns: repeat(2, 1fr); }
.st-doc .article h2 { scroll-margin-top: 110px; }
.st-doc .article table td:first-child { color: var(--white); font-weight: 500; white-space: nowrap; }
.st-doc .article h2 .st-art { display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--st-guard); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.st-doc .article .st-callout { border: 1px solid var(--st-guard-line); background: var(--st-guard-soft); border-radius: var(--radius-md); padding: var(--space-lg) var(--space-xl); margin: var(--space-xl) 0; }
.st-doc .article .st-callout p:last-child { margin-bottom: 0; }
.st-doc .article code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.st-updated { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--slate); letter-spacing: 0.04em; margin-top: var(--space-md); }
.st-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-table-wrap table { min-width: 560px; }

/* Support page: contact cards */
.st-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.st-contact .card { padding: var(--space-xl); }
.st-contact a.card__title { display: block; font-size: var(--text-lg); word-break: break-word; }
.st-checklist { counter-reset: st-ck; list-style: none; display: grid; gap: var(--space-md); }
.st-checklist li { position: relative; padding: var(--space-lg) var(--space-lg) var(--space-lg) 64px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: rgba(24,34,51,0.35); color: var(--st-ink2); font-size: var(--text-sm); line-height: 1.7; }
.st-checklist li::before { counter-increment: st-ck; content: counter(st-ck, decimal-leading-zero); position: absolute; left: 20px; top: var(--space-lg); font-family: var(--font-mono); font-weight: 800; color: var(--st-guard); }
.st-checklist strong { color: var(--white); }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .st-paths { grid-template-columns: repeat(3, 1fr); }
  .st-privacy { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .st-hero__grid, .st-split, .st-steps, .st-patent, .st-calc { grid-template-columns: 1fr; }
  .st-hero__visual { min-height: 520px; }
  .st-steps__screen { order: -1; }
  .st-calc__output { border-left: none; border-top: 1px solid var(--border-subtle); }
  .st-rack { grid-template-columns: 1fr 1fr; }
  .st-contact { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .st-plans { grid-template-columns: 1fr; }
  .st-rack { grid-template-columns: 1fr; }
  .st-paths { grid-template-columns: 1fr 1fr; }
  .st-eq { grid-template-columns: 1fr; gap: var(--space-sm); }
  .st-eq__op { line-height: 1; }
  .st-hero { padding-top: calc(var(--space-3xl) + 80px); }
}
@media (max-width: 640px) {
  .st-hero__visual { min-height: 0; }
  .st-hero__visual .st-phone--back { display: none; }
  .st-hero__visual .st-phone--front { transform: none; }
  .st-phone { width: 240px; }
  .st-phone--sm { width: 210px; }
  .st-privacy, .st-doc .st-privacy { grid-template-columns: 1fr; }
  .st-paths { grid-template-columns: 1fr; }
  .st-notice { grid-template-columns: 1fr; padding: var(--space-xl); }
  .st-calc__inputs, .st-calc__output { padding: var(--space-xl); }
  .st-step { grid-template-columns: 40px 1fr; padding: var(--space-md); }
  .st-hero__icon { width: 68px; height: 68px; }
  .st-patent__box { padding: var(--space-xl) var(--space-lg); }
  .st-plan { padding: var(--space-xl); }
  .st-plate { padding: var(--space-md); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .st-plate svg { min-width: 580px; }
  .st-plate__caption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter) - 2 * var(--space-md)); }
  .st-plate__caption { grid-template-columns: 1fr; gap: 4px; }
  .st-doc .article table td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .st-pill__dot { animation: none; }
  .st-draw, .st-seal__guilloche { stroke-dashoffset: 0 !important; animation: none !important; }
  .st-plate .st-fade { opacity: 1 !important; animation: none !important; }
  .st-seal .st-seal__hand { animation: none !important; transform: none !important; }
  .st-steps__screen .st-phone img { transition: none; }
}
