/* ============================================================
   قير — QEER
   Design system: "أسفلت" — editorial automotive noir
   Asphalt ink × bone × signal orange. Kufi display type.
   Hairlines, blueprint line-art, grain, ticker.
   ============================================================ */

:root {
  --ink: #101014;
  --ink-2: #1a1a21;
  --ink-3: #24242c;
  --bone: #f2efe8;
  --bone-2: #e9e5da;
  --white: #fbfaf6;
  --accent: #ff4d00;
  --accent-deep: #cc3d00;
  --muted: #62626c;
  --muted-2: #9a9aa4;
  --line: rgba(16, 16, 20, .16);
  --line-soft: rgba(16, 16, 20, .09);
  --line-inv: rgba(242, 239, 232, .18);
  --danger: #d1354f;
  --info: #2b6cb8;

  /* legacy aliases (markup compatibility) */
  --night: var(--ink);
  --pine: var(--ink);
  --pine-2: var(--ink-3);
  --emerald: var(--accent);
  --emerald-dark: var(--accent-deep);
  --sand: var(--accent);
  --sand-deep: var(--accent-deep);
  --paper: var(--bone);
  --card: var(--white);
  --ink-soft: var(--muted);

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 0 rgba(16,16,20,.05);
  --shadow-lg: 0 24px 48px -24px rgba(16, 16, 20, .35);

  --font-head: 'Noto Kufi Arabic', 'Almarai', sans-serif;
  --font-body: 'Almarai', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.5; font-weight: 700; letter-spacing: -.5px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { width: min(1240px, 92%); margin-inline: auto; }

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

/* numeric flavour */
.num, .stat .num, .car-num .v, .res-row .v, .big-figure .amount {
  font-variant-numeric: tabular-nums;
}

/* ---------- hairline divider ---------- */
.road-divider {
  height: 1px; border: none; margin: 0;
  background: var(--line);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--bone);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 34px;
  min-height: 76px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: inherit;
  line-height: 1;
}
.logo .logo-mark { width: 34px; height: 34px; flex: none; }
.logo b { color: var(--accent); font-weight: 800; }

.main-nav { display: flex; gap: 26px; flex: 1; }
.main-nav a {
  padding: 6px 0; font-size: .95rem; font-weight: 700;
  color: var(--muted); border-bottom: 2px solid transparent; transition: .18s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--accent); background: none; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); border-radius: 6px; padding: 6px 12px; font-size: 1.15rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 800; font-size: .98rem; transition: .18s; white-space: nowrap;
  font-family: var(--font-body); letter-spacing: 0;
}
.btn::after { content: "←"; font-weight: 400; transition: transform .18s; }
.btn:hover::after { transform: translateX(-4px); }
.btn.no-arrow::after, .btn-sm::after, .nav-toggle::after, .close-x::after { content: none; }

.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--ink); color: var(--bone); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-inv); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: 90px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: .18;
  mask-image: radial-gradient(700px 600px at 20% 10%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 600px at 20% 10%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted-2); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em;
  border: 1px solid var(--line-inv); border-radius: 3px;
  padding: 7px 16px; margin-bottom: 28px;
}
.hero .kicker::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; margin-bottom: 24px;
  line-height: 1.55;
}
.hero h1 .grad { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
.hero p.lead { font-size: 1.12rem; color: var(--muted-2); max-width: 33rem; margin-bottom: 34px; font-weight: 400; }
.hero p.lead b { color: var(--bone); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-art { position: relative; align-self: center; }
.hero-art svg { width: 100%; height: auto; }

.float-chip {
  position: absolute; background: var(--bone); color: var(--ink);
  border-radius: 4px; padding: 12px 18px;
  border-right: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
  font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 10px;
  animation: floaty 5s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.float-chip .dot { width: 8px; height: 8px; background: var(--accent); flex: none; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ticker / marquee */
.ticker {
  border-top: 1px solid var(--line-inv);
  border-bottom: 1px solid var(--line-inv);
  overflow: hidden; white-space: nowrap;
  background: var(--ink);
  position: relative;
}
.ticker-track {
  display: inline-flex; gap: 0;
  animation: tick 30s linear infinite;
  will-change: transform;
}
.ticker span {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 13px 22px 13px 0;
  color: var(--muted-2); font-weight: 700; font-size: .88rem; letter-spacing: .06em;
}
.ticker span::after { content: "✦"; color: var(--accent); font-size: .7rem; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* hero stats band */
.hero-stats { background: var(--ink); }
.hero-stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0;
}
.stat {
  text-align: right; padding: 30px 28px;
  border-left: 1px solid var(--line-inv);
}
.stat:last-child { border-left: none; }
.stat .num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--bone);
  line-height: 1.2;
}
.stat .num::after { content: ""; display: block; width: 26px; height: 3px; background: var(--accent); margin-top: 8px; }
.stat .lbl { font-size: .82rem; color: var(--muted-2); margin-top: 10px; font-weight: 700; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section.alt { background: var(--bone-2); }
.section-head { max-width: 46rem; margin: 0 0 56px; text-align: right; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); background: none; border-radius: 0;
  padding: 0; font-weight: 800; font-size: .8rem; letter-spacing: .18em;
  margin-bottom: 16px;
}
.section-head .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; line-height: 1.6; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.centered, .section-head.center { margin-inline: auto; text-align: center; }

/* ============ CARDS / GRIDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
/* fill the trailing empty mosaic cell on odd counts */
.grid-3::after, .grid-2::after { content: ""; background: var(--white); }
.grid-3.loose, .grid-2.loose { gap: 24px; background: none; border: none; }
.grid-3.loose::after, .grid-2.loose::after { content: none; }

.feature-card {
  background: var(--white); border: none; border-radius: 0;
  padding: 38px 32px; box-shadow: none; transition: .22s;
  position: relative;
}
.feature-card:hover { transform: none; box-shadow: none; background: var(--bone); }
.feature-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 3px;
  background: var(--accent); transition: width .3s;
}
.feature-card:hover::before { width: 100%; }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 0;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 22px; font-size: 1.3rem;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .95rem; }
.feature-card p b { color: var(--ink); }

/* ============ STEPS (editorial index) ============ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step {
  position: relative; background: var(--white); border: none;
  border-radius: 0; padding: 32px 28px 34px; box-shadow: none;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: static; display: block;
  width: auto; height: auto; border-radius: 0;
  background: none; color: var(--accent);
  font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  box-shadow: none; margin-bottom: 12px; line-height: 1;
}
.step h4 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* ============ COMPARISON TABLE ============ */
.compare-wrap { overflow-x: auto; border-radius: 0; box-shadow: none; border: 1px solid var(--ink); }
table.compare { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
table.compare th, table.compare td { padding: 20px 26px; text-align: right; border-bottom: 1px solid var(--line-soft); }
table.compare thead th {
  background: var(--ink); color: var(--bone);
  font-family: var(--font-head); font-size: .98rem; font-weight: 700;
}
table.compare thead th.hl { background: var(--accent); color: #fff; }
table.compare td.hl { background: rgba(255, 77, 0, .06); font-weight: 800; color: var(--ink); }
table.compare tr:last-child td { border-bottom: none; }
table.compare td { color: var(--muted); }
table.compare td:first-child { color: var(--ink); font-weight: 700; }
.yes { color: var(--accent-deep); font-weight: 800; }
.no { color: var(--danger); font-weight: 800; }

/* ============ LISTING CARDS ============ */
.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car-card {
  background: var(--white); border-radius: 0; overflow: hidden;
  border: 1px solid var(--line); box-shadow: none; transition: .22s;
  display: flex; flex-direction: column;
  position: relative;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.car-media {
  position: relative; aspect-ratio: 16/9.5; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--bone);
  background-size: 34px 34px, 34px 34px, auto;
  border-bottom: 1px solid var(--line);
}
.car-media svg { width: 82%; height: auto; }
.car-media .badge-status {
  position: absolute; top: 0; right: 0;
  background: var(--ink); color: var(--bone); font-weight: 700; font-size: .72rem;
  padding: 6px 14px; border-radius: 0; letter-spacing: .08em;
}
.car-media .badge-city {
  position: absolute; bottom: 12px; left: 14px;
  background: none; color: var(--muted); font-size: .76rem; font-weight: 700;
  padding: 0; border-radius: 0;
}
.car-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.car-body h3 { font-size: 1.15rem; line-height: 1.5; }
.car-body h3 span { color: var(--muted); font-weight: 400; }
.car-body .sub {
  color: var(--muted); font-size: .8rem; margin-top: -8px;
  letter-spacing: .02em;
}
.car-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.car-num { background: none; border-radius: 0; padding: 12px 14px; }
.car-num + .car-num { border-right: 1px solid var(--line); }
.car-num .v { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.car-num .k { font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.car-foot .paid { font-size: .78rem; color: var(--muted); }
.car-foot .paid b { color: var(--accent-deep); }

/* progress meter */
.pbar { height: 3px; background: var(--line-soft); border-radius: 0; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--accent); border-radius: 0; }

/* ============ FORMS ============ */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; margin-bottom: 8px; font-size: .9rem; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white); font-size: 1rem; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,77,0,.18); }
.input.err { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.field-error { color: var(--danger); font-size: .78rem; margin-top: 6px; display: none; font-weight: 700; }
.field-error.show { display: block; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 0;
  padding: 38px; box-shadow: none;
}

/* ============ WIZARD ============ */
.wizard-steps { display: flex; gap: 0; margin-bottom: 38px; border: 1px solid var(--line); background: var(--white); }
.wstep {
  flex: 1; text-align: right; position: relative;
  padding: 14px 18px 16px; font-size: .8rem; color: var(--muted); font-weight: 700;
  border-left: 1px solid var(--line);
}
.wstep:last-child { border-left: none; }
.wstep::before {
  content: "0" attr(data-n); position: static; transform: none;
  display: block; width: auto; height: auto; border-radius: 0;
  background: none; color: var(--muted-2); font-family: var(--font-head);
  font-weight: 800; font-size: 1.1rem; line-height: 1.3;
}
.wstep::after {
  content: ""; position: absolute; bottom: -1px; right: 0; height: 3px; width: 0;
  background: var(--accent); top: auto; transition: width .3s;
}
.wstep.done::before, .wstep.now::before { background: none; color: var(--accent); }
.wstep.done::after, .wstep.now::after { width: 100%; }
.wstep.now { color: var(--ink); font-weight: 800; }

/* ============ FAQ ============ */
.faq-item {
  background: none; border: none; border-bottom: 1px solid var(--line);
  border-radius: 0; margin-bottom: 0; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 4px; font-weight: 800; font-family: var(--font-head);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--accent);
  transition: .2s; flex: none; font-family: var(--font-body); font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 26px; color: var(--muted); }
.faq-item .faq-body b { color: var(--ink); }
.faq-item[open] { border-color: var(--ink); }
.faq-item[open] summary { color: var(--accent-deep); }

/* ============ CALCULATOR ============ */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-result {
  position: sticky; top: 106px;
  background: var(--ink);
  color: var(--bone); border-radius: 0; padding: 38px; box-shadow: none;
  border-right: 4px solid var(--accent);
}
.calc-result h3 { color: var(--bone); margin-bottom: 24px; font-size: 1.2rem; }
.res-row {
  display: flex; justify-content: space-between; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--line-inv); font-size: .93rem; color: var(--muted-2);
}
.res-row:last-of-type { border-bottom: none; }
.res-row .v { font-family: var(--font-head); font-weight: 800; color: var(--bone); white-space: nowrap; }
.res-row .v.gold { color: var(--accent); font-size: 1.2rem; }
.res-row .v.green { color: var(--accent); }
.res-note {
  margin-top: 20px; font-size: .78rem; color: var(--muted-2);
  background: var(--ink-2); border-radius: 0; padding: 14px 16px;
  border-right: 2px solid var(--line-inv);
}
.big-figure {
  text-align: right; background: none;
  border: 1px solid var(--line-inv); border-right: 3px solid var(--accent);
  border-radius: 0; padding: 20px 22px; margin-bottom: 22px;
}
.big-figure .amount { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1.3; }
.big-figure .cap { font-size: .82rem; color: var(--muted-2); font-weight: 700; }

/* ============ DASHBOARD ============ */
.dash-grid { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.dash-side { background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 26px; position: sticky; top: 106px; }
.dash-side .u-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.dash-side .u-phone { color: var(--muted); font-size: .84rem; margin-bottom: 16px; direction: ltr; text-align: right; }
.dash-nav { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-soft); }
.dash-nav button {
  text-align: right; background: none; border: none; border-bottom: 1px solid var(--line-soft);
  padding: 13px 6px; font-size: .93rem; color: var(--muted); font-weight: 700;
  border-radius: 0; transition: .15s;
}
.dash-nav button.active, .dash-nav button:hover { background: none; color: var(--accent-deep); padding-right: 12px; }

.status-chip {
  display: inline-block; padding: 4px 12px; border-radius: 2px;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.status-chip.review { background: var(--ink); color: var(--bone); }
.status-chip.active { background: var(--accent); color: #fff; }
.status-chip.sold { background: var(--bone-2); color: var(--muted); }
.status-chip.pending { background: none; color: var(--info); border: 1px solid var(--info); }

.list-row {
  display: flex; align-items: center; gap: 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: 0; padding: 18px 22px; margin-bottom: -1px;
}
.list-row .grow { flex: 1; }
.list-row h4 { font-size: 1rem; }
.list-row .meta { color: var(--muted); font-size: .82rem; }
.list-row .meta b { color: var(--accent-deep); }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: var(--muted-2); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.site-footer h4 {
  color: var(--bone); font-size: .82rem; margin-bottom: 16px;
  letter-spacing: .16em; font-weight: 700;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-brand .logo { color: var(--bone); }
.footer-brand p { font-size: .9rem; margin-top: 16px; max-width: 26rem; }
.footer-bottom {
  border-top: 1px solid var(--line-inv); padding: 20px 0; font-size: .78rem;
}
.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.trust-badge {
  border: 1px solid var(--line-inv); color: var(--muted-2); border-radius: 2px;
  font-size: .72rem; padding: 5px 12px; display: inline-flex; align-items: center; gap: 8px;
}
.trust-badge svg { width: 13px; height: 13px; color: var(--accent); }

/* ============ MISC ============ */
.notice {
  background: var(--white); border: 1px solid var(--line); border-right: 3px solid var(--accent);
  color: var(--ink); border-radius: 0; padding: 15px 18px; font-size: .88rem;
}
.notice.green { background: var(--white); border-color: var(--line); border-right-color: var(--accent); color: var(--ink); }
.notice.blue { background: var(--white); border-color: var(--line); border-right-color: var(--info); color: var(--ink); }

.toast {
  position: fixed; bottom: 28px; right: 50%; transform: translateX(50%) translateY(16px);
  background: var(--ink); color: var(--bone); padding: 15px 28px; border-radius: 3px;
  border-right: 3px solid var(--accent);
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .3s; z-index: 200;
  font-weight: 700; font-size: .92rem;
}
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }

.modal-back {
  position: fixed; inset: 0; background: rgba(16,16,20,.72);
  display: none; place-items: center; z-index: 150; padding: 20px;
}
.modal-back.open { display: grid; }
.modal {
  background: var(--bone); border-radius: 0; padding: 40px; width: min(500px, 100%);
  box-shadow: var(--shadow-lg); position: relative;
  border-top: 4px solid var(--accent);
}
.modal .close-x { position: absolute; top: 14px; left: 14px; background: none; border: none; font-size: 1.3rem; color: var(--muted); }

.page-hero {
  background: var(--ink); color: var(--bone);
  padding: 72px 0 60px; text-align: right;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 90px 90px; opacity: .16;
  mask-image: radial-gradient(600px 400px at 85% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(600px 400px at 85% 0%, #000, transparent 75%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero h1::after { content: ""; display: block; width: 54px; height: 4px; background: var(--accent); margin-top: 18px; }
.page-hero p { color: var(--muted-2); max-width: 40rem; margin: 0; }

.filters-bar {
  background: var(--white); border: 1px solid var(--ink); border-radius: 0;
  padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  box-shadow: none; margin-top: -32px; position: relative; z-index: 5;
}

.legal-doc { max-width: 60rem; margin-inline: auto; }
.legal-doc h2 {
  font-size: 1.2rem; margin: 40px 0 12px; color: var(--ink);
  padding-right: 14px; border-right: 3px solid var(--accent);
}
.legal-doc p, .legal-doc li { color: #3c3c44; font-size: .96rem; }
.legal-doc ul, .legal-doc ol { padding-right: 26px; margin: 8px 0; }
.legal-doc .updated { color: var(--muted); font-size: .82rem; }

.otp-boxes { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp-boxes input {
  width: 58px; height: 64px; text-align: center; font-size: 1.6rem; font-weight: 800;
  border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-head);
  background: var(--white); color: var(--ink);
}
.otp-boxes input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,77,0,.18); }

.upload-box {
  border: 1px dashed var(--line); border-radius: 0; padding: 24px 14px; text-align: center;
  color: var(--muted); cursor: pointer; transition: .18s; background: var(--white);
  font-size: .86rem;
}
.upload-box:hover { border-color: var(--accent); color: var(--ink); }
.upload-box.done { border: 1px solid var(--accent); background: rgba(255,77,0,.05); color: var(--ink); font-weight: 700; }

.cta-band {
  background: var(--ink);
  border-radius: 0; color: var(--bone); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  border-right: 5px solid var(--accent);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 70px 70px; opacity: .2;
  mask-image: radial-gradient(400px 300px at 10% 100%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(400px 300px at 10% 100%, #000, transparent 70%);
}
.cta-band h2 { font-size: 1.65rem; position: relative; }
.cta-band p { color: var(--muted-2); position: relative; margin-top: 6px; }
.cta-band .btn { position: relative; }

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line); }
.empty-state .big { font-size: 2rem; margin-bottom: 12px; color: var(--accent); font-family: var(--font-head); font-weight: 800; }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }
.empty-state .btn { margin-top: 18px; }

/* onboarding tour modal */
.tour-steps { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.tour-steps i { width: 8px; height: 8px; border-radius: 0; background: var(--line); }
.tour-steps i.on { background: var(--accent); width: 26px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero-grid, .calc-grid, .grid-3, .cars-grid, .dash-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-left: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-inv); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--bone);
    flex-direction: column; padding: 18px 24px; display: none;
    border-bottom: 3px solid var(--accent); gap: 4px; z-index: 95;
  }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .cars-grid, .calc-grid, .form-row, .form-row-3, .steps { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .section { padding: 60px 0; }
  .hero { padding-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn-ghost, .header-cta .btn-outline { display: none; }
  .cta-band { padding: 36px 26px; }
  .panel { padding: 26px 20px; }
  .wizard-steps { flex-wrap: wrap; }
  .wstep { min-width: 50%; border-bottom: 1px solid var(--line); }
  .stat { padding: 22px 18px; }
  .stat .num { font-size: 1.8rem; }
}
