/* ============================================================================
   Trony PC Trade-In 2026 — microsite stylesheet
   Every value comes from tokens.css through var(). The two @media breakpoints
   are the only literals (a media query cannot read a custom property).
   Layout follows the Figma frames: 1440 desktop (content column 900) and 390
   mobile (24 px gutters). Pages without a mobile frame use the same mobile
   rules as the ones that have one.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--color-brand); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: var(--focus-ring-offset);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-5);
  top: calc(-1 * var(--nav-height));
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-brand);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-button);
}
.skip-link:focus { top: var(--space-5); }

/* ── Placeholder + stub markers (Rule 139) ───────────────────────────────── */
.segnaposto {
  background-color: var(--color-placeholder-bg);
  color: var(--color-placeholder-ink);
  outline: var(--border-width) dashed var(--color-placeholder-border);
  outline-offset: var(--space-1);
}
.site-footer .segnaposto, .cookie-consent .segnaposto {
  background-color: transparent;
  color: inherit;
  outline-color: var(--color-placeholder-bg);
}
.stub-notice {
  font-size: var(--text-xs);
  line-height: var(--leading-lead);
  background: var(--color-stub-bg);
  color: var(--color-stub-ink);
  border-radius: var(--radius-input);
  padding: var(--space-2) var(--space-4);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height);
  padding: 0 var(--button-pad-x);
  border-radius: var(--radius-button);
  border: var(--border-width) solid transparent;
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  line-height: var(--leading-button);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition: filter var(--transition-fast);
}
.btn:hover:not(:disabled) { filter: brightness(0.94); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-ink); }
.btn--primary:disabled { background: var(--color-primary-disabled); cursor: not-allowed; }
.btn--secondary { border-color: var(--color-secondary); color: var(--color-secondary); background: var(--color-surface); }
.btn--secondary:disabled { border-color: var(--color-secondary-disabled); color: var(--color-secondary-disabled); cursor: not-allowed; }
.btn--on-dark { border-color: var(--color-on-dark); color: var(--color-on-dark); }
.btn--edit {
  border-color: var(--color-brand);
  color: var(--color-brand);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}
.btn[aria-busy="true"] { cursor: progress; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--color-nav-bg);
  height: var(--nav-height);
  padding: 0 var(--nav-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 30;
}
.site-nav__logo { display: block; flex-shrink: 0; }
.brand-logo { width: var(--brand-logo-width); height: var(--brand-logo-height); }
.site-nav__links { display: flex; gap: var(--nav-link-gap); list-style: none; margin: 0; padding: 0; }
.site-nav__link { color: var(--color-on-dark); text-decoration: none; white-space: nowrap; }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { text-decoration: underline; }

.site-nav__hamburger {
  display: none;
  position: relative;
  width: var(--burger-w);
  height: var(--burger-h);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.site-nav__hamburger span {
  position: absolute;
  right: 0;
  height: var(--burger-bar-h);
  background: var(--color-on-dark);
  border-radius: var(--radius-bar);
  transition: transform var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast), width var(--transition-fast);
}
.site-nav__hamburger span:nth-child(1) { top: 0; width: var(--burger-w); }
.site-nav__hamburger span:nth-child(2) { top: var(--burger-mid-top); width: var(--burger-mid-w); }
.site-nav__hamburger span:nth-child(3) { top: var(--burger-bottom-top); width: var(--burger-w); }
.site-nav__hamburger.is-active span:nth-child(1) { top: var(--burger-mid-top); width: var(--burger-x-w); transform: rotate(45deg); }
.site-nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.site-nav__hamburger.is-active span:nth-child(3) { top: var(--burger-mid-top); width: var(--burger-x-w); transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--color-overlay);
  backdrop-filter: blur(var(--blur-overlay));
  -webkit-backdrop-filter: blur(var(--blur-overlay));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 20;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  width: min(var(--drawer-width), 100%);
  background: var(--color-surface);
  padding: var(--space-11);
  transform: translateX(100%);
  transition: transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 25;
  overflow-y: auto;
  visibility: hidden;
}
.nav-drawer.is-open { transform: none; visibility: visible; }
.nav-drawer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--drawer-link-gap); }
.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--color-brand);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-nav-mobile);
  line-height: normal;
  text-decoration: none;
}
.nav-drawer__chevron { width: var(--chevron-nav-w); height: var(--chevron-nav-h); color: var(--color-brand); flex-shrink: 0; }

/* ── Reference bar ───────────────────────────────────────────────────────── */
.ref-bar {
  background: var(--color-surface-light);
  min-height: var(--ref-bar-height);
  padding: 0 var(--nav-pad-x);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ref-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  line-height: var(--leading-ref);
  color: var(--color-text-strong);
}
.ref-bar__value { font-weight: var(--font-weight-semibold); color: var(--color-brand); }

/* ── Hero + band (index, promo-closed) ───────────────────────────────────── */
.hero {
  background: var(--color-hero-bg);
  color: var(--color-on-dark);
  min-height: var(--hero-height);
  padding: var(--hero-pad-y) var(--hero-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-9);
}
.hero__heading { display: flex; flex-direction: column; gap: var(--space-4); }
.hero__title { font-weight: var(--font-weight-bold); font-size: var(--text-hero); line-height: var(--leading-hero); max-width: var(--maxw-hero-h1); }
.hero__text { font-size: var(--text-lead); line-height: var(--leading-lead); max-width: var(--maxw-hero-p); }
.hero__actions { display: flex; gap: var(--hero-action-gap); flex-wrap: wrap; }

.band {
  background: var(--color-band-bg);
  min-height: var(--band-min-height);
  padding: var(--space-6) var(--hero-pad-x);
  display: flex;
  align-items: center;
}
.band p { font-size: var(--text-xs); line-height: var(--leading-lead); color: var(--color-text-strong); }

/* ── Content column ──────────────────────────────────────────────────────── */
.column { width: min(var(--maxw-content), calc(100% - 2 * var(--gutter-desktop))); margin: 0 auto; }

.section-heading { display: flex; flex-direction: column; gap: var(--space-3); }
.section-heading h2 { font-weight: var(--font-weight-bold); font-size: var(--text-h2); line-height: var(--leading-none); color: var(--color-brand); }
.section-heading--narrow p { max-width: var(--maxw-section-p); }

.how { padding: var(--how-pad-top) 0 var(--how-pad-bottom); display: flex; flex-direction: column; gap: var(--space-11); }
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.how-card {
  background: var(--color-surface-light);
  border-radius: var(--radius-card);
  padding: var(--how-card-pad-y) var(--space-11);
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}
.how-card__icon { width: var(--icon-card); height: var(--icon-card); color: var(--color-brand); }
.how-card__body { display: flex; flex-direction: column; gap: var(--space-3); }
.how-card h3 { font-weight: var(--font-weight-semibold); font-size: var(--text-h3); line-height: var(--leading-heading); color: var(--color-brand); }

.faq { padding-bottom: var(--faq-pad-bottom); display: flex; flex-direction: column; gap: var(--space-12); }
.faq-list { display: flex; flex-direction: column; gap: var(--faq-gap); }
.faq-item {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-card-stroke);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--faq-pad-x);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-h4);
  line-height: var(--leading-heading);
  color: var(--color-brand);
}
.faq-chevron { width: var(--chevron-w); height: var(--chevron-h); flex-shrink: 0; color: var(--color-brand); transition: transform var(--transition-fast); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--answer-transition); }
.faq-answer p { padding-top: var(--space-6); max-width: var(--faq-answer-max); }
.faq__more { display: flex; justify-content: center; }

.track {
  background: var(--color-track-bg);
  color: var(--color-on-dark);
  padding: var(--track-pad-y) var(--gutter-desktop);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}
.track .section-heading { align-items: center; text-align: center; }
.track .section-heading h2 { color: var(--color-on-dark); }
.track .section-heading p { max-width: var(--maxw-section-p); }
.track__form { width: min(var(--maxw-track-input), 100%); display: flex; flex-direction: column; gap: var(--space-7); }
.track__inputs { display: flex; flex-direction: column; gap: var(--space-7); }
.track__form .input { border-color: var(--color-surface); }
.track__actions { display: flex; justify-content: center; }
.track .form-alert { background: var(--color-surface); }
.track .stub-notice { text-align: center; }

.closed-notice { padding-top: var(--closed-pad-top); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-ink);
  padding: var(--footer-pad-y) var(--hero-pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
}
.site-footer__body { font-size: var(--text-xs); line-height: var(--leading-lead); }
.site-footer__links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer__links a { color: inherit; font-size: var(--text-xs); line-height: var(--leading-lead); }

/* ── Form pages ──────────────────────────────────────────────────────────── */
.page { padding: var(--section-pad-top) 0 var(--section-pad-bottom); display: flex; flex-direction: column; gap: var(--space-11); }
.stack, form.step { display: flex; flex-direction: column; gap: var(--space-11); }
.page-heading { display: flex; flex-direction: column; gap: var(--space-3); }
.page-heading h1 { font-weight: var(--font-weight-bold); font-size: var(--text-h1); line-height: var(--leading-h1); color: var(--color-brand); }
.page-heading .intro-strong { color: var(--color-text-strong); }
.page-heading__paras { display: flex; flex-direction: column; gap: var(--space-6); }

.card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-card-stroke);
  border-radius: var(--radius-card);
  padding: var(--card-pad-y) var(--card-pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}
.card--tight { padding-top: var(--card-pad-y-tight); padding-bottom: var(--card-pad-y-tight); }
.card--sign { gap: var(--card-gap-sign); }
.card--otp { gap: var(--card-gap-otp); }
.card--gap-20 { gap: var(--space-7); }
.card--gap-32 { gap: var(--space-10); }
.card--gap-36 { gap: var(--space-11); }
.card--gap-8 { gap: var(--space-2); }
.card--flush { gap: 0; }

.card-heading { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2) 0; }
.card-heading--plain { padding: 0; gap: var(--space-4); }
.card-heading--gap-16 { gap: var(--space-5); }
.card-heading h2 { font-weight: var(--font-weight-semibold); font-size: var(--text-h3); line-height: var(--leading-heading); color: var(--color-brand); }
.card-heading--row { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-5); }
.card-heading__paras { display: flex; flex-direction: column; gap: var(--space-6); }

.details-card {
  background: var(--color-surface-light);
  border-radius: var(--radius-panel);
  padding: var(--details-pad-y) var(--space-9);
  display: flex;
  flex-direction: column;
  gap: var(--details-gap);
  font-size: var(--text-lead);
}
.details-card__label { line-height: var(--leading-button); color: var(--color-text); }
.details-card__value { font-weight: var(--font-weight-bold); line-height: var(--leading-none); color: var(--color-brand); }

.actions-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); }
.actions-row--end { justify-content: flex-end; }
.actions-inline { display: flex; gap: var(--inline-btn-gap); flex-wrap: wrap; }

/* Wizard steps: one connector line behind the dots (dot fill hides it) */
.wizard { display: flex; flex-direction: column; gap: var(--space-4); }
.wizard-steps {
  position: relative;
  background: var(--color-surface-light);
  border-radius: var(--radius-card);
  padding: var(--wizard-pad-y) var(--wizard-pad-x);
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
}
.wizard-steps::before {
  content: "";
  position: absolute;
  top: calc(var(--wizard-pad-y) + var(--step-dot) / 2);
  left: calc(var(--wizard-pad-x) + var(--step-item) / 2);
  right: calc(var(--wizard-pad-x) + var(--step-item) / 2);
  height: var(--border-width);
  background: var(--color-step-line);
}
.wizard-steps__item { position: relative; width: var(--step-item); display: flex; flex-direction: column; align-items: center; gap: var(--wizard-label-gap); text-align: center; }
.wizard-steps__dot {
  position: relative;
  width: var(--step-dot);
  height: var(--step-dot);
  border-radius: var(--radius-pill);
  border: var(--border-width-step) solid var(--color-brand-deep);
  background: var(--color-surface-light);
  color: var(--color-brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-h1);
}
.wizard-steps__label { font-weight: var(--font-weight-medium); font-size: var(--text-sm); line-height: normal; color: var(--color-brand-deep); }
.wizard-steps__item.is-done .wizard-steps__dot { background: var(--color-nav-bg); border-color: var(--color-nav-bg); color: var(--color-on-dark); }
.wizard-steps__item.is-current .wizard-steps__dot { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-dark); }
.wizard__mobile-label { display: none; font-weight: var(--font-weight-medium); font-size: var(--text-sm); color: var(--color-brand-deep); }

/* Fields */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--column-gap); row-gap: var(--space-7); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; gap: var(--space-7); }
.form-stack--bank { gap: var(--stack-gap-bank); }

.field { display: flex; flex-direction: column; gap: var(--field-gap); min-width: 0; }
.field__label { font-weight: var(--font-weight-semibold); line-height: var(--leading-none); color: var(--color-brand); }
.field__reward { color: var(--color-brand); font-weight: var(--font-weight-semibold); }

.input {
  width: 100%;
  height: var(--input-height);
  padding: 0 var(--space-5);
  border: var(--border-width) solid var(--color-input-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  line-height: var(--leading-none);
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--color-text-muted); opacity: 1; }
.input[readonly] { color: var(--color-text-muted); }
.input[aria-invalid="true"] { border-color: var(--color-error); }
select.input { cursor: pointer; }
select.input.is-empty { color: var(--color-text-muted); }

.input-wrap { position: relative; }
.input-wrap--icon .input { padding-right: var(--input-icon-space); }
.input-wrap__icon { position: absolute; right: var(--space-5); top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-brand); }
.input-wrap__icon--chevron { width: var(--chevron-w); height: var(--chevron-h); }
.input-wrap__icon--chevron-sm { width: var(--chevron-sm-w); height: var(--chevron-sm-h); }
.input-wrap__icon--calendar { width: var(--calendar-w); height: var(--calendar-h); }
.input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute; right: 0; top: 0; width: var(--date-picker-hit); height: 100%; opacity: 0; cursor: pointer;
}
.input-wrap__prefix { position: absolute; left: var(--space-5); top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.input-wrap--prefix .input { padding-left: var(--euro-pad-left); }

.info-btn {
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: var(--info-dot);
  height: var(--info-dot);
  border-radius: var(--radius-pill);
  border: var(--border-width-info) solid var(--color-brand);
  background: var(--color-surface);
  color: var(--color-brand);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-none);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.info-pop { font-size: var(--text-sm); }

.phone-group { display: grid; grid-template-columns: var(--phone-prefix-w) minmax(0, 1fr); gap: var(--space-2); }

.field-error { color: var(--color-error); }
.form-warning {
  background: var(--color-warning-bg);
  border: var(--border-width) solid var(--color-warning-border);
  color: var(--color-warning-ink);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-5);
}
.form-alert {
  border: var(--border-width) solid var(--color-error);
  color: var(--color-error);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
}

/* Checkboxes: custom 30 px box; checked = 20 px brand square */
.check { display: flex; gap: var(--check-gap); align-items: center; cursor: pointer; }
.check--16 { gap: var(--space-5); }
.check__box { position: relative; flex-shrink: 0; width: var(--checkbox-size); height: var(--checkbox-size); }
.check__box input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.check__box span {
  position: absolute;
  inset: 0;
  border: var(--border-width) solid var(--color-input-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  pointer-events: none;
}
.check__box input:checked + span::after {
  content: "";
  position: absolute;
  left: var(--check-inner-offset);
  top: var(--check-inner-offset);
  width: var(--checkbox-inner);
  height: var(--checkbox-inner);
  border-radius: var(--radius-check-inner);
  background: var(--color-brand);
}
.check__box input:focus-visible + span { outline: var(--focus-ring-width) solid var(--color-focus); outline-offset: var(--focus-ring-offset); }
.check__box input:disabled { cursor: not-allowed; }
.check__text--muted { color: var(--color-text-muted); }
.check-list { display: flex; flex-direction: column; gap: var(--space-6); }
.check-list .check { padding: var(--space-1) 0; }
.check--consent { padding: var(--space-3) 0; align-items: flex-start; }

/* Checklist ("Before you start") */
.checklist { display: flex; flex-direction: column; gap: var(--space-8); }
.checklist-card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-card-stroke);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--checklist-pad-x);
}
.checklist-card .check { padding: var(--checklist-check-pad-y) var(--checklist-check-pad-x); gap: var(--checklist-text-gap); align-items: flex-start; max-width: var(--maxw-form); }
.checklist-card__text { display: flex; flex-direction: column; gap: var(--space-2); }
.checklist-card__title { font-weight: var(--font-weight-semibold); font-size: var(--text-h4); line-height: var(--leading-heading); color: var(--color-brand); }
.checklist__more { color: var(--color-text-strong); }
.checklist__more a { text-decoration: none; }
.checklist__more a:hover { text-decoration: underline; }
.checklist__links-mobile { display: none; }

/* Upload drop zones (upload-widget.js) */
.upload-block { display: flex; flex-direction: column; gap: var(--space-4); }
.dropzone {
  border: var(--border-width) dashed var(--color-footer-bg);
  border-radius: var(--radius-input);
  min-height: var(--dropzone-height);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--dropzone-gap);
  text-align: center;
  cursor: pointer;
  background: var(--color-surface);
}
.dropzone.is-dragover { background: var(--color-surface-light); }
.dropzone__icon { width: var(--dropzone-icon-w); height: var(--dropzone-icon-h); color: var(--color-brand); }
.dropzone__text { display: flex; flex-direction: column; gap: var(--dropzone-text-gap); align-items: center; }
.dropzone__title { font-weight: var(--font-weight-semibold); line-height: var(--leading-none); color: var(--color-brand); }
.dropzone__hint { color: var(--color-text-muted); }
.upload-chip-list { display: flex; flex-direction: column; gap: var(--space-2); }
.upload-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: var(--border-width) solid var(--color-card-stroke);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface-light);
}
.upload-filename { overflow-wrap: anywhere; }
.upload-status__remove { background: none; border: 0; padding: var(--space-1); cursor: pointer; color: var(--color-brand); }
.upload-max-note { color: var(--color-text-muted); }

/* Review */
.review-rows { display: flex; flex-direction: column; margin: 0; }
.review-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--review-row-pad-y) 0;
  border-bottom: var(--border-width) solid var(--color-card-stroke);
}
.review-row dt { width: var(--review-label-w); flex-shrink: 0; font-weight: var(--font-weight-semibold); line-height: var(--leading-none); color: var(--color-brand-deep); }
.review-row dd { margin: 0; flex: 1; min-width: 0; line-height: var(--leading-none); overflow-wrap: anywhere; }
.review-row--docs { border-bottom: 0; align-items: flex-start; padding-top: var(--space-4); }
.doc-thumbs { display: flex; flex-wrap: wrap; gap: var(--thumbs-gap); padding: var(--thumbs-pad-y) 0; }
.doc-thumb { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--thumb-w); }
.doc-thumb__img { width: var(--thumb-w); height: var(--thumb-h); border-radius: var(--radius-thumb); background: var(--color-thumb-bg); object-fit: cover; }
.doc-thumb__name { font-size: var(--text-sm); line-height: normal; overflow-wrap: anywhere; }

/* Transfer preview (step 6) */
.transfer-preview { display: flex; flex-direction: column; gap: var(--transfer-gap); padding: var(--space-7) 0; }
.transfer-preview h2 { font-weight: var(--font-weight-semibold); font-size: var(--text-h3); line-height: var(--leading-heading); color: var(--color-brand-deep); }
.transfer-preview__doc {
  max-height: var(--transfer-doc-max-h);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--text-transfer);
  line-height: normal;
  color: var(--color-text-strong);
}
.transfer-preview__doc .muted { color: var(--color-text-muted); }
.signed-status { color: var(--color-brand); font-weight: var(--font-weight-semibold); }

/* OTP */
.otp-cells { display: grid; grid-template-columns: repeat(6, var(--otp-cell-w)); gap: var(--otp-gap); }
.otp-cell {
  width: 100%;
  height: var(--otp-cell-h);
  border: var(--border-width) solid var(--color-input-border);
  border-radius: var(--radius-input);
  text-align: center;
  font-size: var(--text-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand);
  background: var(--color-surface);
  padding: 0;
}
.otp-cell[aria-invalid="true"] { border-color: var(--color-error); }
.otp-resend { display: flex; flex-direction: column; gap: var(--inline-btn-gap); align-items: flex-start; }

/* Turnstile placeholder: WP2 renders the widget here (Rule 137). Takes no space until then. */
.turnstile-slot:empty { display: none; }

/* ── Cookie banner (buy-and-try template behaviour) ───────────────────────── */
.cookie-consent { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--color-nav-bg); color: var(--color-on-dark); }
.cookie-consent__inner {
  width: min(var(--maxw-content), calc(100% - 2 * var(--gutter-mobile)));
  margin: 0 auto;
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.cookie-consent__text { font-size: var(--text-xs); line-height: var(--leading-lead); }
.cookie-consent__text a { color: inherit; }
.cookie-consent__btn {
  flex-shrink: 0;
  height: var(--button-height);
  padding: 0 var(--button-pad-x);
  border-radius: var(--radius-button);
  border: var(--border-width) solid var(--color-on-dark);
  background: transparent;
  color: var(--color-on-dark);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

/* ── Desktop nav collapses to the drawer ─────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav { padding: 0 var(--gutter-mobile); }
  .site-nav__links { display: none; }
  .site-nav__hamburger { display: block; }
}

/* ── Mobile (Figma 390 frames) ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .column { width: calc(100% - 2 * var(--gutter-mobile)); }
  .ref-bar { padding: 0 var(--gutter-mobile); }

  .hero { min-height: var(--hero-height-mobile); padding: 0 var(--gutter-mobile) var(--hero-pad-bottom-mobile); justify-content: flex-end; gap: var(--space-12); }
  .hero__heading { gap: var(--hero-heading-gap-mobile); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .band { padding: var(--space-6) var(--gutter-mobile); }

  .section-heading h2 { font-size: var(--text-h1-mobile); line-height: var(--leading-h1); }
  .how { padding: var(--space-13) 0; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-card { background: var(--color-surface); border: var(--border-width) solid var(--color-card-stroke); padding: var(--how-card-pad-y-mobile) var(--gutter-mobile); }
  .how-card h3 { font-size: var(--text-h4); }
  .how-card p, .faq-answer p, .section-heading p { color: var(--color-text-strong); }
  .track .section-heading p { color: var(--color-on-dark); }
  .faq { padding-bottom: var(--faq-pad-bottom-mobile); }
  .faq-item { padding: var(--gutter-mobile); }
  .faq__more .btn { width: 100%; }
  .track { padding: var(--track-pad-y) var(--gutter-mobile); }
  .track__form { width: 100%; gap: var(--track-form-gap-mobile); }
  .track__actions .btn { width: 100%; }
  .closed-notice { padding-top: var(--space-13); }

  .site-footer { padding: var(--footer-pad-mobile-y) var(--gutter-mobile); gap: var(--hero-action-gap); }

  .page { padding: var(--space-13) 0; }
  .page--compact-top { padding-top: var(--page-pad-top-compact-mobile); }
  .page-heading h1 { font-size: var(--text-h1-mobile); }

  .card { padding: var(--card-pad-mobile-y) var(--card-pad-mobile-x); gap: var(--card-gap-mobile); }
  .card--roomy-mobile { padding-top: var(--card-pad-y); padding-bottom: var(--card-pad-y); }
  .card--confirm-mobile { padding: var(--how-card-pad-y-mobile) var(--card-pad-mobile-x) var(--card-pad-y); gap: var(--card-gap); }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .actions-row { flex-direction: column-reverse; align-items: stretch; gap: var(--space-3); }
  .actions-row--end { flex-direction: column; }
  .actions-row .btn, .actions-inline .btn { width: 100%; }

  .wizard-steps { padding: var(--space-7) var(--space-4); }
  .wizard-steps::before { top: calc(var(--space-7) + var(--step-dot) / 2); left: calc(var(--space-4) + var(--step-dot)); right: calc(var(--space-4) + var(--step-dot)); }
  .wizard-steps__item { width: auto; }
  .wizard-steps__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .wizard__mobile-label { display: block; }

  .checklist { gap: var(--space-5); }
  .checklist-card { padding: var(--space-8) var(--space-9); }
  .checklist-card .check { padding: 0; flex-direction: column-reverse; }
  .checklist__more { color: var(--color-text); }
  .checklist__more a { color: inherit; pointer-events: none; }
  .checklist__links-mobile { display: flex; flex-direction: column; gap: var(--space-3); }
  .checklist__links-mobile .btn { width: 100%; }

  .card-heading--row { flex-wrap: wrap; }
  .review-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .review-row dt { width: auto; }

  .otp-cells { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--otp-gap-mobile); }
  .otp-cell { height: var(--otp-cell-h-mobile); }
  .otp-resend { align-items: stretch; }
  .otp-resend .btn { width: 100%; }

  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
}
