/* ============================================================
   ErgoTime, product pages on raveng.it (Italian / English)
   Adapted from site/stoptime/stoptime.css of StopTime: same visual
   language (paper / ink tokens, plates on grid paper, one accent).
   Extends the RAVENG "Dark Fortress" design system (/css/raveng.css).
   Product accents from DesignSystem tokens (DESIGN.md, dark theme):
   guardia #F2C512, segnale #F04B4B, sicuro #3CC186, pannello #182233,
   carta #0E1420, inchiostro-2 #C0C9D6, inchiostro-3 #8593A6, acciaio #5C6B80.
   ============================================================ */

:root {
  --et-guard: #F2C512;
  --et-guard-soft: rgba(242, 197, 18, 0.10);
  --et-guard-line: rgba(242, 197, 18, 0.32);
  --et-signal: #F04B4B;
  --et-safe: #3CC186;
  --et-panel: #182233;
  --et-paper: #0E1420;
  --et-paper2: #151D2C;
  --et-ink: #EDF1F6;
  --et-ink2: #C0C9D6;
  --et-ink3: #8593A6;
  --et-line: #2A3547;
  --et-steel: #5C6B80;
}

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

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

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

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

/* --- Draft banner (remove at publication) --- */
.et-draft {
  position: relative;
  z-index: 5;
  margin-top: 72px;
  padding: 10px 0;
  background: repeating-linear-gradient(135deg, rgba(242,197,18,0.16) 0 14px, rgba(242,197,18,0.06) 14px 28px);
  border-top: 1px solid var(--et-guard-line);
  border-bottom: 1px solid var(--et-guard-line);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--et-ink);
  text-align: center;
}
.et-draft strong { color: var(--et-guard); }

/* --- Placeholder marks ⟨…⟩ --- */
.et-ph {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--et-guard);
  background: var(--et-guard-soft);
  border: 1px dashed var(--et-guard-line);
  border-radius: 6px;
  padding: 0 6px;
  white-space: normal;
}

/* --- Verification status badges --- */
.et-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.et-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.et-status--v { color: var(--et-safe); }
.et-status--s { color: var(--et-guard); }
.et-status--u { color: var(--et-signal); }

/* --- Hero --- */
.et-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0;
}
.et-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;
}
.et-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;
}
.et-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}
.et-hero__brand {
  display: flex; align-items: center; gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.et-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);
}
.et-hero__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.et-hero__platform {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-top: 6px;
}
.et-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);
}
.et-hero__title em { font-style: normal; color: var(--et-guard); }
.et-hero__desc { color: var(--et-ink2); font-size: var(--text-lg); line-height: 1.65; max-width: 620px; margin-bottom: var(--space-xl); }
.et-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: var(--space-xl) 0; }
.et-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.et-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(--et-ink2);
  background: rgba(24,34,51,0.5);
}
.et-hero__visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.et-hero__visual .et-phone--back {
  position: absolute;
  right: 2%;
  top: 70px;
  transform: rotate(6deg);
  opacity: 0.9;
}
.et-hero__visual .et-phone--front { position: relative; z-index: 2; transform: translateX(-12%) rotate(-3deg); }

/* Availability box: replaces the App Store link until the app is published. */
.et-store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px;
  max-width: 100%;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--et-guard-line);
  background: var(--et-guard-soft);
  color: var(--et-ink2);
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.25;
}
.et-store svg { width: 22px; height: 22px; flex-shrink: 0; }
.et-store strong { display: block; color: var(--white); font-weight: 600; }

/* --- Phone frame --- */
.et-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;
}
.et-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1304;
  border-radius: 38px;
  background: var(--et-paper);
}
.et-phone--sm { width: 230px; border-radius: 40px; padding: 8px; }
.et-phone--sm img { border-radius: 33px; }
/* Screenshot placeholder: a frame with a caption until captures of the candidate build exist. */
.et-shot {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  width: 100%;
  aspect-ratio: 600 / 1304;
  border-radius: 38px;
  background:
    linear-gradient(rgba(133,147,166,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133,147,166,0.08) 1px, transparent 1px),
    var(--et-paper);
  background-size: 16px 16px, 16px 16px, auto;
  border: 1px dashed var(--et-line);
  padding: 28px 18px;
  text-align: center;
  color: var(--et-ink3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.5;
  transition: opacity 0.35s ease;
}
.et-phone--sm .et-shot { border-radius: 33px; }
.et-shot.is-swapping { opacity: 0; }
.et-shot__tag { color: var(--et-guard); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }
.et-shot__name { color: var(--et-ink); font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); }
.et-shot__note { color: var(--et-ink3); }
.et-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) --- */
.et-stats .stat__number .unit { font-size: 0.45em; color: var(--et-guard); margin-left: 4px; font-weight: 700; }
.et-stats .stat__label { line-height: 1.5; }

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

/* --- Four sections grid --- */
.et-sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.et-section-card { padding: var(--space-xl); position: relative; }
.et-section-card__tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-bottom: var(--space-md);
}
.et-section-card__tag--free { color: var(--et-safe); border: 1px solid rgba(60,193,134,0.4); }
.et-section-card__tag--paid { color: var(--et-guard); border: 1px solid var(--et-guard-line); }
.et-section-card h3 { font-size: var(--text-xl); margin-bottom: 8px; }

/* --- Steps (interactive walkthrough) --- */
.et-steps { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-3xl); align-items: center; }
.et-steps__list { display: grid; gap: 8px; counter-reset: et-step; }
.et-step {
  text-align: left;
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 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;
  color: inherit;
  font: inherit;
}
.et-step:hover { border-color: var(--border-medium); }
.et-step[aria-selected="true"] {
  border-color: var(--et-guard-line);
  background: linear-gradient(135deg, rgba(242,197,18,0.07), rgba(24,34,51,0.6));
}
.et-step__num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--slate);
  line-height: 1.2;
}
.et-step[aria-selected="true"] .et-step__num { color: var(--et-guard); }
.et-step__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: var(--white); display: block; margin-bottom: 2px; }
.et-step__desc { color: var(--et-ink2); font-size: var(--text-sm); line-height: 1.6; display: block; }
.et-step__moment { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--et-guard); margin-left: 6px; }
.et-steps__screen { position: relative; display: flex; justify-content: center; }
.et-steps__progress { height: 2px; background: var(--border-subtle); border-radius: 2px; margin-top: var(--space-lg); overflow: hidden; }
.et-steps__progress span { display: block; height: 100%; width: 10%; background: var(--et-guard); transition: width 0.4s var(--ease-out-expo); }

/* --- Method cards --- */
.et-method { position: relative; padding: var(--space-xl); display: flex; flex-direction: column; gap: 8px; }
.et-method__tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 12px;
  font-family: var(--font-mono); font-weight: 800; font-size: var(--text-base);
  color: var(--et-paper);
  background: var(--et-guard);
  margin-bottom: var(--space-md);
  align-self: flex-start;
}
.et-method h3 { font-size: var(--text-lg); }
.et-method__src { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--slate); line-height: 1.55; }
.et-method__status { margin-top: auto; padding-top: var(--space-md); display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Technical drawing (SVG "tavola") --- */
.et-plate {
  background: var(--et-paper2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.et-plate::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(133,147,166,0.35) 0.7px, transparent 0.8px);
  background-size: 8px 8px;
  opacity: 0.35;
  pointer-events: none;
}
.et-plate svg { position: relative; width: 100%; height: auto; }
.et-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(--et-ink2); line-height: 1.6; }
.et-plate__caption b { font-family: var(--font-display); color: var(--white); white-space: nowrap; }
.et-plate text { font-family: 'JetBrains Mono', monospace; }
.et-draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.et-plate.is-visible .et-draw { animation: et-draw 1.6s var(--ease-out-quart) forwards; }
.et-plate .et-fade { opacity: 0; }
.et-plate.is-visible .et-fade { animation: et-fade 0.6s ease forwards; }
@keyframes et-draw { to { stroke-dashoffset: 0; } }
@keyframes et-fade { to { opacity: 1; } }

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

/* --- Calculator widget --- */
.et-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);
}
.et-calc__inputs { padding: var(--space-2xl); display: grid; gap: var(--space-lg); }
.et-calc__output { padding: var(--space-2xl); background: var(--et-paper); border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: var(--space-lg); }
.et-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-bottom: 8px; }
.et-field__label { font-size: var(--text-sm); color: var(--et-ink2); }
.et-field__label i { font-family: var(--font-mono); font-style: italic; color: var(--white); margin-right: 6px; }
.et-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; }
.et-field__value small { color: var(--slate); font-weight: 500; font-size: 0.7em; margin-left: 3px; }
.et-field__help { font-size: var(--text-xs); color: var(--slate); margin-top: 6px; line-height: 1.5; }
.et-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer;
}
.et-range:focus-visible { outline: 2px solid var(--et-guard); outline-offset: 4px; border-radius: 4px; }
.et-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--et-guard) var(--pct, 50%), rgba(108,122,137,0.35) var(--pct, 50%)); }
.et-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(108,122,137,0.35); }
.et-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--et-guard); }
.et-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--et-guard); margin-top: -9px; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.et-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--et-guard); box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.et-calc__num, .et-calc__select { width: 100%; padding: 0.6rem 0.9rem; 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-sm); }
.et-calc__num:focus, .et-calc__select:focus { outline: none; border-color: var(--et-guard); box-shadow: 0 0 0 3px var(--et-guard-soft); }
.et-calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.et-calc__big { font-family: var(--font-mono); font-weight: 800; font-size: var(--text-4xl); color: var(--white); line-height: 1; }
.et-calc__big small { font-size: 0.38em; color: var(--slate); margin-left: 6px; }
.et-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; }
.et-calc__twin { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.et-calc__steps { list-style: none; display: grid; gap: 6px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--et-ink2); line-height: 1.55; counter-reset: et-cs; }
.et-calc__steps li { padding-left: 26px; position: relative; }
.et-calc__steps li::before { counter-increment: et-cs; content: counter(et-cs); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(242,197,18,0.12); color: var(--et-guard); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.et-calc__steps li.is-penalty { color: var(--et-ink); }
.et-calc__steps li.is-penalty::before { background: rgba(240,75,75,0.18); color: var(--et-signal); }
/* RWL bar: from the load constant down to RWL, with the mass mark. */
.et-bar { position: relative; height: 14px; border-radius: 7px; background: rgba(108,122,137,0.25); overflow: visible; margin: 6px 0 22px; }
.et-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--et-guard); transition: width 0.4s var(--ease-out-expo); }
.et-bar__mass { position: absolute; top: -5px; width: 2px; height: 24px; background: var(--et-ink); transition: left 0.4s var(--ease-out-expo); }
.et-bar__mass::after { content: attr(data-label); position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--et-ink3); white-space: nowrap; }
.et-bar__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--et-ink3); margin-top: 4px; }
.et-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; }
.et-verdict--ok { color: var(--et-safe); background: rgba(60,193,134,0.08); }
.et-verdict--ko { color: var(--et-signal); background: rgba(240,75,75,0.08); }
.et-verdict--na { color: var(--slate); background: transparent; border-style: dashed; }
.et-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; }
.et-calc__note .et-status { font-size: 9.5px; padding: 1px 7px; }

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

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

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

/* --- Reference masses table (replaces the StopTime seal) --- */
.et-mref { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.et-mref__box { border: 1px solid var(--et-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); }
.et-mref__box p { color: var(--et-ink2); line-height: 1.75; }
.et-mref__box p + p { margin-top: var(--space-md); }
.et-mref__row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-md); align-items: center; padding: 10px 0; border-top: 1px solid var(--border-subtle); font-size: var(--text-sm); color: var(--et-ink2); }
.et-mref__row:first-child { border-top: none; }
.et-mref__kg { font-family: var(--font-mono); font-weight: 800; font-size: var(--text-xl); color: var(--white); }
.et-mref__kg small { font-size: 0.5em; color: var(--slate); margin-left: 2px; }

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

/* --- Notice / warnings --- */
.et-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));
}
.et-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(--et-signal); }
.et-notice h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.et-notice p, .et-notice li { color: var(--et-ink2); font-size: var(--text-sm); line-height: 1.7; }
.et-notice ul { padding-left: 1.1rem; margin-top: 8px; display: grid; gap: 4px; }

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

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

/* --- Legal / doc pages --- */
.et-doc { max-width: 860px; margin: 0 auto; }
.et-doc .et-privacy { grid-template-columns: repeat(2, 1fr); }
.et-doc .article h2 { scroll-margin-top: 110px; }
.et-doc .article h3, .et-anchor { scroll-margin-top: 110px; }
.et-anchor { display: block; }
.et-doc .article .et-callout { border: 1px solid var(--et-guard-line); background: var(--et-guard-soft); border-radius: var(--radius-md); padding: var(--space-lg) var(--space-xl); margin: var(--space-xl) 0; }
.et-doc .article .et-callout p:last-child { margin-bottom: 0; }
.et-doc .article .et-callout--draft { border-color: rgba(240,75,75,0.4); background: rgba(240,75,75,0.06); }
.et-doc .article code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.et-doc .article blockquote { border-left: 3px solid var(--et-guard); padding: var(--space-md) var(--space-lg); margin: var(--space-lg) 0; color: var(--et-ink2); background: rgba(24,34,51,0.35); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.et-doc .article blockquote p { margin-bottom: 0; line-height: 1.7; }
.et-doc .article table { width: 100%; }
.et-doc .article td, .et-doc .article th { vertical-align: top; overflow-wrap: break-word; }
.et-doc .article table td:first-child { white-space: normal; }
.et-doc .article p { line-height: 1.75; }
.et-updated { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--slate); letter-spacing: 0.04em; margin-top: var(--space-md); }
.et-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.et-table-wrap table { min-width: 560px; }
.et-terms-index { margin: var(--space-2xl) 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: var(--space-lg) 0; }
.et-terms-index ol { list-style: none; padding: 0; columns: 2; column-gap: var(--space-xl); }
.et-terms-index li { break-inside: avoid; padding: 5px 0; font-size: var(--text-sm); }
.et-contract-text p, .et-contract-text li { overflow-wrap: anywhere; }
.et-commercial-notes { margin-top: var(--space-xl); }
.et-commercial-notes p { font-size: var(--text-sm); }
.et-commercial-notes a, .et-footnote a { text-decoration: underline; text-underline-offset: 3px; }
.et-table-wrap:focus-visible, .et-subnav a:focus-visible, .faq-item summary:focus-visible, .et-step:focus-visible { outline: 2px solid var(--et-guard); outline-offset: 4px; }
.et-refresh-gap { margin-top: var(--space-3xl); }

/* Support page: contact cards and checklists */
.et-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.et-contact .card { padding: var(--space-xl); }
.et-contact a.card__title { display: block; font-size: var(--text-lg); word-break: break-word; }
.et-checklist { counter-reset: et-ck; list-style: none; display: grid; gap: var(--space-md); }
.et-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(--et-ink2); font-size: var(--text-sm); line-height: 1.7; }
.et-checklist li::before { counter-increment: et-ck; content: counter(et-ck, decimal-leading-zero); position: absolute; left: 20px; top: var(--space-lg); font-family: var(--font-mono); font-weight: 800; color: var(--et-guard); }
.et-checklist strong { color: var(--white); }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .et-paths { grid-template-columns: repeat(3, 1fr); }
  .et-privacy, .et-sections { grid-template-columns: repeat(2, 1fr); }
  .et-eq { grid-template-columns: repeat(7, auto); }
}
@media (max-width: 1024px) {
  .et-hero__grid, .et-split, .et-steps, .et-mref, .et-calc { grid-template-columns: 1fr; }
  .et-hero__visual { min-height: 520px; }
  .et-steps__screen { order: -1; }
  .et-calc__output { border-left: none; border-top: 1px solid var(--border-subtle); }
  .et-rack { grid-template-columns: 1fr 1fr; }
  .et-contact { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .et-plans { grid-template-columns: 1fr; }
  .et-rack { grid-template-columns: 1fr; }
  .et-paths { grid-template-columns: 1fr 1fr; }
  .et-eq { grid-template-columns: repeat(3, auto); gap: var(--space-sm); }
  .et-eq__op { line-height: 1; }
  .et-hero { padding-top: var(--space-3xl); }
  .et-calc__twin, .et-calc__pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .et-hero__visual { min-height: 0; }
  .et-hero__visual .et-phone--back { display: none; }
  .et-hero__visual .et-phone--front { transform: none; }
  .et-phone { width: 240px; }
  .et-phone--sm { width: 210px; }
  .et-privacy, .et-doc .et-privacy, .et-sections { grid-template-columns: 1fr; }
  .et-paths { grid-template-columns: 1fr; }
  .et-notice { grid-template-columns: 1fr; padding: var(--space-xl); }
  .et-calc__inputs, .et-calc__output { padding: var(--space-xl); }
  .et-step { grid-template-columns: 40px 1fr; padding: var(--space-md); }
  .et-hero__icon { width: 68px; height: 68px; }
  .et-mref__box { padding: var(--space-xl) var(--space-lg); }
  .et-plan { padding: var(--space-xl); }
  .et-plate { padding: var(--space-md); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .et-plate svg { min-width: 560px; }
  .et-plate__caption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter) - 2 * var(--space-md)); grid-template-columns: 1fr; gap: 4px; }
  .et-terms-index ol { columns: 1; }
  .et-draft { margin-top: 64px; padding: 8px var(--gutter, 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .et-draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .et-plate .et-fade { opacity: 1 !important; animation: none !important; }
  .et-shot { transition: none; }
  .et-bar__fill, .et-bar__mass { transition: none; }
}

/* The shared close tween retains opacity:0; keep links readable on every reopening. */
.nav__mobile.is-open a { opacity: .9 !important; transform: none !important; }
@media (max-width: 1024px) {
  .nav__mobile { padding: 100px 24px 36px; overflow-y: auto; justify-content: flex-start; gap: 12px; }
  .nav__mobile a { flex-shrink: 0; }
}
