/* ==========================================================================
   DESIGN TOKENS
   Palette: warm black + antique gold. One accent, spent deliberately.
   Fonts: Vazirmatn, self-hosted from /assets/fonts/ (variable font, Persian
   body/display), monospace for numbers — nothing is fetched from another
   origin, by requirement.
   ========================================================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #c0a165;
  --gold-2: #e3cd9a;   /* highlight / gradient top */
  --gold-3: #8a6f42;   /* shadow / gradient bottom */
  --ink: #060605;
  --surface: #121110;
  --surface-2: #1c1a17;
  --surface-3: #262320;
  --line: rgba(192, 161, 101, 0.16);
  --line-strong: rgba(192, 161, 101, 0.32);
  --ivory: #f4efe3;
  --muted: #a89d87;
  --muted-2: #6f6656;
  --danger: #e2685a;

  --font-body: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }

@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; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* film-grain texture — pure CSS/SVG, no external image request */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

.num {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 40;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 6, 5, 0.82);
  backdrop-filter: blur(10px);
  border-color: var(--line);
  padding: 12px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.nav__brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.nav__links { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
.nav__links a { text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--gold-2); }

/* ==========================================================================
   REVEAL ANIMATION SYSTEM
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 176px 0 96px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -280px; left: 50%;
  width: 900px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(192,161,101,0.20), rgba(192,161,101,0.05) 55%, transparent 75%);
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translateX(-52%) translateY(0) scale(1); }
  to   { transform: translateX(-48%) translateY(24px) scale(1.06); }
}

.hero__grid {
  position: absolute; inset: -10% -10% auto -10%;
  height: 620px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 10%, transparent 72%);
  opacity: 0.5;
  animation: pan 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes pan { from { background-position: 0 0, 0 0; } to { background-position: 128px 64px, 128px 64px; } }

.hero__inner { position: relative; z-index: 2; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  direction: ltr;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(192,161,101,0.08), transparent);
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 22px;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn.btn--gold {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(192,161,101,0.55);
}
.btn.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn.btn--gold:hover::after { transform: translateX(120%); }
.btn.btn--ghost {
  color: var(--ivory);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.02);
}
.btn.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* trust strip */
.trust {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.trust span { display: flex; align-items: center; gap: 8px; }
.trust b { color: var(--gold-2); font-family: var(--font-mono); direction: ltr; }

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.section { padding: 100px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section__kicker {
  font-family: var(--font-mono); direction: ltr; font-size: 12px; letter-spacing: 0.14em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 14px; display: block;
}
.section__head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.section__head p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ==========================================================================
   PACKAGE SHOWCASE (spotlight selector — replaces the old card grid)
   ========================================================================== */
.showcase__selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.showcase__tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.showcase__tab-index { font-family: var(--font-mono); direction: ltr; font-size: 11px; color: var(--muted-2); }
.showcase__hint { display: none; }
.showcase__tab:hover { color: var(--ivory); }
.showcase__tab.is-active { color: var(--gold-2); border-bottom-color: var(--gold); font-weight: 700; }
.showcase__tab.is-active .showcase__tab-index { color: var(--gold); }

.showcase__stage { position: relative; margin-top: 40px; min-height: 420px; }

.showcase__panel {
  display: none;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
}
.showcase__panel.is-active {
  display: grid;
  animation: panelIn 0.6s var(--ease);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .showcase__panel.is-active { grid-template-columns: 1fr; text-align: center; }
}

.showcase__visual { display: flex; justify-content: center; }

.dial--lg { width: 200px; height: 200px; }
.dial--lg circle { stroke-width: 6; }
.dial--lg .fill { stroke-dasharray: 314; stroke-dashoffset: 314; }
.dial__label--lg { font-size: 13px; color: var(--gold-2); line-height: 1.6; font-weight: 700; }

.showcase__content .card__badge { margin-bottom: 16px; }
.showcase__content h3 { font-size: 28px; margin: 0 0 8px; font-weight: 800; }
.showcase__content .card__tagline { font-size: 14.5px; margin-bottom: 20px; }
.showcase__content .card__price { font-size: 40px; margin-bottom: 20px; }
.showcase__content .card__desc { max-width: 520px; margin-bottom: 22px; }
@media (max-width: 760px) {
  .showcase__content .card__desc { max-width: none; }
  .showcase__content .card__price { justify-content: center; display: flex; align-items: baseline; gap: 4px; }
}

ul.included.included--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
}
@media (max-width: 760px) { ul.included.included--inline { justify-content: center; } }

/* ==========================================================================
   PACKAGE CARDS (legacy card look — still used nowhere directly but kept
   for shared class names like .card__badge/.card__price/.card__desc above)
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.6), 0 0 0 1px rgba(192,161,101,0.12);
}

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.card__tagline { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.6; }

/* radial dial — signature element, evokes a precision-instrument gauge */
.dial { flex-shrink: 0; width: 60px; height: 60px; position: relative; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 5; }
.dial circle.track { stroke: var(--surface-3); }
.dial circle.fill {
  stroke: url(#dialGradient);
  stroke-linecap: round;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.dial__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--muted-2); text-align: center;
}

.card__price {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 32px;
  font-weight: 800;
}
.card__price small { font-family: var(--font-body); direction: rtl; unicode-bidi: isolate; font-size: 13px; font-weight: 400; color: var(--muted); margin-inline-start: 6px; }

.card__desc { color: var(--muted); font-size: 14px; margin: 0; }

.card__badge {
  display: inline-flex; align-self: flex-start;
  font-size: 11px; color: var(--gold-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px 12px;
  font-family: var(--font-mono); direction: ltr;
}

details.card__details { border-top: 1px solid var(--line); padding-top: 14px; }
details.card__details summary {
  cursor: pointer; list-style: none; font-size: 13px; color: var(--gold-2);
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
details.card__details summary::-webkit-details-marker { display: none; }
details.card__details summary::after {
  content: "+"; font-size: 16px; transition: transform 0.3s var(--ease); color: var(--muted);
}
details.card__details[open] summary::after { transform: rotate(45deg); }
ul.included {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ivory);
}
ul.included li { display: flex; align-items: center; gap: 10px; }
ul.included li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.card__meta { font-size: 11.5px; color: var(--muted-2); font-family: var(--font-mono); direction: ltr; text-align: left; margin-top: -4px; }

/* ==========================================================================
   NAV — mobile burger
   ========================================================================== */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--gold-2); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO — constellation visual
   ========================================================================== */
.hero__constellation {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7;
}
.hero__constellation svg { width: 100%; height: 100%; }
.constellation-dots circle { animation: dotPulse 3.5s ease-in-out infinite; transform-origin: center; }
.constellation-dots circle:nth-child(2n) { animation-delay: -1.2s; }
.constellation-dots circle:nth-child(3n) { animation-delay: -2.1s; }
@keyframes dotPulse { 0%, 100% { opacity: 0.55; r: var(--r, 3); } 50% { opacity: 1; } }
.constellation-lines line { stroke-dasharray: 6 4; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }

/* ==========================================================================
   ALT SECTION BACKGROUND (gradient shift instead of a hairline rule)
   ========================================================================== */
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(192,161,101,0.035) 30%, rgba(192,161,101,0.035) 70%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head--right { text-align: right; margin-inline: 0; max-width: 560px; }

/* ==========================================================================
   PROCESS STEPS — alternating timeline, not a generic centered grid
   ========================================================================== */
.process { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.process__step {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.process__step:last-child { border-bottom: none; }
.process__step--reverse { grid-template-columns: 100px 1fr; }
.process__index {
  font-family: var(--font-mono); direction: ltr; font-size: 42px; font-weight: 800;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.7;
}
.process__body h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.process__body p { margin: 0; color: var(--muted); font-size: 14px; max-width: 560px; }

/* ==========================================================================
   UNIFIED CONFIGURATOR — checkboxes for everything, live sticky summary
   ========================================================================== */
.configurator {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .configurator { grid-template-columns: 1fr; } }

.configurator__form { display: flex; flex-direction: column; gap: 30px; }

.config-block h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--ivory); margin: 0 0 16px;
}
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }

.check-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.check-card:hover { border-color: var(--gold); color: var(--ivory); }
.check-card input { accent-color: var(--gold); width: 17px; height: 17px; flex-shrink: 0; }
.check-card:has(input:checked),
.check-card.is-checked {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(192,161,101,0.16), rgba(192,161,101,0.04));
  color: var(--ivory);
}

.baseline-note { margin: 14px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.8; }

.stepper { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 8px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--gold-2); font-size: 16px; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.stepper button:hover { background: rgba(192,161,101,0.12); transform: scale(1.06); }
.stepper output { font-family: var(--font-mono); direction: ltr; min-width: 24px; text-align: center; font-size: 15px; }

.configurator__summary {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--ink) 130%);
  padding: 32px;
  position: sticky;
  top: 90px;
}
.configurator__summary .label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.configurator__summary .complexity {
  display: inline-block; margin-bottom: 20px; font-size: 12px; color: var(--gold-2);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 14px; font-family: var(--font-mono); direction: ltr;
}
.summary-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
/* author `display` rules beat the UA's [hidden]{display:none} regardless of specificity —
   without this, JS setting .hidden=true on a summary-row has no visual effect at all */
.summary-row[hidden] { display: none; }
.summary-row b { font-size: 18px; color: var(--gold); direction: ltr; unicode-bidi: isolate; }
.configurator__summary .btn { width: 100%; justify-content: center; margin-top: 18px; }
.hint-small { margin-top: 14px; font-size: 11.5px; color: var(--muted-2); text-align: center; }
/* no `display` set here on purpose — this element's `hidden` attribute is toggled from JS
   (main.js), and an author `display` rule would beat the UA's [hidden]{display:none} */
.store-hint { margin-top: 10px; font-size: 11.5px; color: var(--gold-2); line-height: 1.8; }

@media (max-width: 900px) {
  .configurator__summary { position: static; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 2px; }
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}
.faq__item summary {
  cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--ivory);
  display: flex; align-items: center; justify-content: space-between; user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 20px; color: var(--gold); transition: transform 0.3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 14px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  padding: 90px 0;
  background: linear-gradient(135deg, rgba(192,161,101,0.14), rgba(192,161,101,0.02));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  text-align: center;
}
.cta__inner h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; font-weight: 800; }
.cta__inner p { color: var(--muted); margin: 0 0 28px; }

/* ==========================================================================
   TABLES (still used inside PDF-less contexts if any remain)
   ========================================================================== */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { text-align: right; color: var(--muted); font-weight: 500; font-size: 12px; padding: 12px; border-bottom: 1px solid var(--line-strong); }
tbody td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
td.price, th.price { text-align: left; font-family: var(--font-mono); direction: ltr; }

/* ==========================================================================
   PRINTABLE QUOTE SHEET — hidden on screen, shown only for window.print()
   ========================================================================== */
.print-sheet { display: none; }
@page { size: A4; margin: 0; }

@media print {
  /* hide everything except the print sheet via display:none (not visibility:hidden) —
     visibility:hidden keeps hidden siblings in layout, so the browser paginated the
     full (tall) homepage height into several blank pages after the real content */
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet {
    display: block; padding: 50px 54px;
    background: var(--ink); color: var(--ivory); font-family: var(--font-body);
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .print-sheet__eyebrow {
    display: inline-block; font-size: 11px; letter-spacing: 0.14em; color: var(--gold-2);
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 16px; margin-bottom: 22px;
  }
  .print-sheet__title {
    font-size: 27px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .print-sheet__meta { font-size: 12px; color: var(--muted); margin-bottom: 30px; }
  .print-sheet table { width: 100%; border-collapse: collapse; }
  .print-sheet thead th { text-align: right; font-size: 10.5px; color: var(--muted); font-weight: 700; padding: 9px 8px; border-bottom: 1px solid var(--line-strong); }
  .print-sheet thead th:last-child, .print-sheet td:last-child { text-align: left; }
  .print-sheet td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .print-sheet td:last-child { color: var(--gold); font-weight: 700; }
  .print-sheet__terms { margin-top: 26px; font-size: 11px; color: var(--muted); }
  .print-sheet__contact { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
  .print-sheet__contact-label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
  .print-sheet__contact a { display: inline-block; margin-inline-end: 18px; margin-bottom: 6px; font-size: 12px; color: var(--gold-2); text-decoration: none; }
  .print-sheet__contact-url { direction: ltr; unicode-bidi: isolate; display: inline-block; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { padding: 48px 0 72px; color: var(--muted-2); font-size: 13px; text-align: center; }
.footer-note { margin-top: 8px; font-size: 11.5px; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-pill {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--gold-2);
  font-size: 13px; text-decoration: none; transition: all 0.25s;
}
.contact-pill:hover { border-color: var(--gold); color: var(--gold); background: rgba(192,161,101,0.08); }

/* ================================================================
   DASHBOARD
   ================================================================ */
.dash { padding: 40px 0 100px; }
.dash__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dash__header h1 { font-size: 21px; margin: 0; font-weight: 800; }
.dash__header .right { display: flex; align-items: center; gap: 16px; }
.dash__header a.public-link { font-size: 13px; color: var(--gold-2); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; transition: all 0.25s; }
.dash__header a.public-link:hover { background: rgba(192,161,101,0.08); }

.panel {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 15px; margin: 0 0 18px; color: var(--gold-2); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel h2::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  background: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ivory); padding: 10px 12px; font-family: var(--font-body); font-size: 14px; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input[type="number"] { font-family: var(--font-mono); direction: ltr; text-align: left; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, button:focus-visible, a:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,161,101,0.18);
}

.matrix-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix-table th, .matrix-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matrix-table th { color: var(--muted); font-weight: 500; text-align: center; font-size: 11px; }
.matrix-table td:first-child, .matrix-table th:first-child { text-align: right; min-width: 200px; }
.matrix-table input {
  width: 64px; text-align: center; background: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 6px; color: var(--ivory); padding: 6px 4px; font-family: var(--font-mono);
}
.matrix-table input.feature-name { width: 100%; text-align: right; font-family: var(--font-body); }

.onboard-hint {
  font-size: 13px; color: var(--muted); background: rgba(192,161,101,0.06);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 22px;
}

.tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.tab {
  background: none; border: none; color: var(--muted); font-family: var(--font-body);
  font-size: 13.5px; padding: 10px 16px; cursor: pointer; border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--ivory); }
.tab.is-active { color: var(--gold-2); border-bottom-color: var(--gold); font-weight: 700; }

.panel-intro { font-size: 13px; color: var(--muted); margin: -6px 0 18px; }

.cell-toggle { text-align: center; }
.feature-check {
  width: 20px; height: 20px; accent-color: var(--gold); cursor: pointer;
}
.feature-name-cell { min-width: 220px; }

.advanced-details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.advanced-details summary { cursor: pointer; color: var(--gold-2); font-size: 13.5px; margin-bottom: 12px; user-select: none; }

.pdf-panel { text-align: center; padding: 44px 24px; }
.pdf-panel .panel-intro { max-width: 440px; margin: 0 auto 24px; }
.pdf-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.pkg-block { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.pkg-block h3 { margin: 0 0 12px; font-size: 14px; color: var(--gold); }

.preview-table td.price, .preview-table th.price { text-align: left; font-family: var(--font-mono); direction: ltr; }

button.primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  color: var(--ink); border: none; border-radius: 999px; padding: 13px 30px;
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 24px -10px rgba(192,161,101,0.6);
}
button.primary:hover { transform: translateY(-2px); }

.save-bar { position: sticky; bottom: 0; background: linear-gradient(to top, var(--ink) 65%, transparent); padding: 24px 0 8px; display: flex; align-items: center; gap: 16px; }

.flash { border-radius: 10px; padding: 14px 18px; font-size: 13px; margin-bottom: 22px; }
.flash.success { background: rgba(192,161,101,0.1); border: 1px solid var(--gold); color: var(--gold-2); }
.flash.error { background: rgba(226,104,90,0.1); border: 1px solid var(--danger); color: var(--danger); }
.flash ul { margin: 8px 0 0; padding-inline-start: 20px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.login-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 36px; width: 320px; position: relative; z-index: 2;
}
.login-card h1 { font-size: 17px; margin: 0 0 22px; font-weight: 800; }
.login-card input {
  width: 100%; background: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ivory); padding: 11px 14px; margin-bottom: 16px; font-family: var(--font-body);
}
.login-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,161,101,0.18); }

.hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.badge-partner { font-size: 10px; color: var(--danger); border: 1px solid var(--danger); border-radius: 4px; padding: 2px 8px; margin-inline-start: 8px; font-weight: 400; }

/* ================================================================
   MOBILE — designed separately, not just compressed
   ================================================================ */
@media (max-width: 760px) {
  .hero { padding: 128px 0 56px; }
  .hero__constellation { opacity: 0.4; }
  .section, .cta { padding: 56px 0; }

  /* nav becomes a burger + full-width dropdown */
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0;
    background: rgba(6,6,5,0.98);
    border-bottom: 1px solid var(--line-strong);
    padding: 8px 24px 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }

  /* process steps: stack index above body, no fixed left column */
  .process__step, .process__step--reverse {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .process__index { font-size: 32px; }
  .process__body p { max-width: none; }

  /* showcase: selector scrolls horizontally instead of wrapping/breaking —
     edge fade + a visible scrollbar make it obvious there's more to see */
  .showcase__selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
    -webkit-mask-image: linear-gradient(to left, transparent, black 24px, black calc(100% - 24px), transparent);
    mask-image: linear-gradient(to left, transparent, black 24px, black calc(100% - 24px), transparent);
    padding-bottom: 10px;
  }
  .showcase__selector::-webkit-scrollbar { height: 4px; }
  .showcase__selector::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
  .showcase__selector::-webkit-scrollbar-track { background: transparent; }
  .showcase__tab { flex-shrink: 0; padding: 12px 16px; }
  .showcase__hint {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--muted-2); margin: 2px 0 20px;
  }
  .showcase__hint svg { width: 14px; height: 14px; animation: hintNudge 1.6s ease-in-out infinite; }
  @keyframes hintNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
  .showcase__stage { min-height: 0; margin-top: 8px; }

  /* configurator: full-width checkboxes, summary becomes a bottom sheet */
  .check-grid { grid-template-columns: 1fr 1fr; }
  .configurator__summary {
    position: sticky; bottom: 0; top: auto;
    margin: 0 -24px -56px; border-radius: 0;
    border-inline: none; border-bottom: none;
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 32px -12px rgba(0,0,0,0.6);
  }

  .cta__inner .hero__cta { flex-direction: column; align-items: stretch; }
  .cta__inner .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .check-grid { grid-template-columns: 1fr; }
  .trust { gap: 16px; font-size: 12px; }
}
