/* ==========================================================================
   Tashteeby — tashteeby.com
   Navy & gold. Arabic-first (RTL) with an English mirror via logical properties.
   ========================================================================== */

:root {
  --navy-950: #040e24;
  --navy-900: #061534;
  --navy-800: #0b2454;
  --navy-700: #123268;
  --navy-600: #1b3f80;

  --gold-300: #f5cf6f;
  --gold-400: #e8b547;
  --gold-500: #d4a23a;
  --gold-600: #c18f2a;
  --gold-ink: #3b2a05;

  --paper: #fbf8f1;
  --cream: #f6f1e4;
  --cream-2: #ede6d3;
  --ink: #101728;
  --ink-2: #3c465a;
  --muted: #5f6879;
  --paper-line: #e2dbc8;

  --on-navy: #f6f1e4;
  --on-navy-muted: #b4bdd0;
  --on-navy-faint: #7c88a3;
  --line: rgba(246, 241, 228, 0.12);
  --line-strong: rgba(246, 241, 228, 0.22);

  --success: #4cb57f;

  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-display-en: "Fraunces", "Iowan Old Style", Georgia, serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-phone: 0 40px 80px -20px rgba(2, 8, 24, 0.75), 0 0 0 1px rgba(246, 241, 228, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--navy-900);
  color: var(--on-navy);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; }

.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Display type ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
html[dir="ltr"] .display { font-family: var(--font-display-en); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; font-variation-settings: "opsz" 96; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--gold-400); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
}
html[dir="ltr"] .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-400); border-radius: 2px; }

.section-head { max-width: 46rem; display: grid; gap: 0.9rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); color: var(--on-navy); }
.section-head p { color: var(--on-navy-muted); font-size: 1.05rem; max-width: 40rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.on-paper .section-head h2 { color: var(--ink); }
.on-paper .section-head p { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-400) 55%, var(--gold-600));
  box-shadow: 0 10px 30px -10px rgba(232, 181, 71, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(232, 181, 71, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { color: var(--on-navy); border-color: var(--line-strong); background: rgba(246, 241, 228, 0.04); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-ink { color: var(--on-navy); background: var(--navy-900); }
.btn-ink:hover { background: var(--navy-800); transform: translateY(-2px); }

/* ---------- Scroll progress + header ---------- */
.progress { position: fixed; inset-block-start: 0; inset-inline-start: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); z-index: 60; pointer-events: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 21, 52, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(6, 21, 52, 0.86); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--on-navy); }
html[dir="ltr"] .brand { font-family: var(--font-body); letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6); }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.55rem 0.85rem; border-radius: 999px; color: var(--on-navy-muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--on-navy); background: rgba(246, 241, 228, 0.06); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--on-navy);
  font-weight: 600; font-size: 0.85rem; transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--gold-400); color: var(--gold-300); }
.lang-toggle svg { width: 16px; height: 16px; }
.nav .btn-gold { min-height: 40px; padding: 0 1.1rem; font-size: 0.88rem; display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; }
.menu-btn svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .btn-gold { display: inline-flex; }
  .menu-btn { display: none; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: rgba(6, 21, 52, 0.96); }
.mobile-menu.open { display: block; }
.mobile-menu .wrap { display: grid; gap: 0.25rem; padding-block: 0.75rem 1rem; }
.mobile-menu a { padding: 0.8rem 0.5rem; border-radius: 10px; color: var(--on-navy-muted); font-weight: 500; }
.mobile-menu a:hover { color: var(--on-navy); background: rgba(246, 241, 228, 0.06); }
.mobile-menu .btn { margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 55% at 15% 10%, rgba(27, 63, 128, 0.55), transparent 60%),
  radial-gradient(45% 45% at 85% 80%, rgba(232, 181, 71, 0.16), transparent 60%),
  radial-gradient(70% 60% at 70% 20%, rgba(18, 50, 104, 0.6), transparent 65%),
  linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(rgba(246, 241, 228, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 228, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; } }

.hero-copy { display: grid; gap: 1.4rem; max-width: 40rem; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); color: var(--on-navy); }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(120deg, var(--gold-300), var(--gold-400) 50%, var(--gold-600)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-navy-muted); max-width: 34rem; }
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; transform: translateY(110%); animation: rise 0.9s var(--ease-out) forwards; }
.hero-line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-copy > *:not(h1) { opacity: 0; animation: fade-up 0.9s var(--ease-out) 0.35s forwards; }
.hero-copy > .stores { animation-delay: 0.5s; }
.hero-copy > .trust { animation-delay: 0.65s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-cta .btn { min-height: 52px; padding: 0 1.6rem; font-size: 1rem; }
.stores { display: grid; gap: 0.75rem; grid-template-columns: 1fr; max-width: 34rem; }
@media (min-width: 540px) { .stores { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.store {
  container-type: inline-size;
  display: flex; align-items: center; gap: 0.7rem; min-height: 64px; padding: 0.7rem 0.9rem;
  border-radius: 16px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(246, 241, 228, 0.08), rgba(246, 241, 228, 0.03));
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}
.store svg { width: 30px; height: 30px; fill: var(--on-navy); flex: none; }
.store div { display: grid; line-height: 1.2; min-width: 0; }
.store small { font-size: 0.72rem; color: var(--on-navy-muted); }
.store strong { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.store .pill { margin-inline-start: auto; flex: none; }
@container (max-width: 300px) { .store .pill { display: none; } }
a.store:hover { transform: translateY(-2px); border-color: var(--gold-400); background: linear-gradient(180deg, rgba(232, 181, 71, 0.16), rgba(232, 181, 71, 0.05)); }
.store.soon { opacity: 0.78; cursor: default; }
.store.soon svg { fill: var(--on-navy-muted); }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid rgba(232, 181, 71, 0.4); color: var(--gold-300); font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(76, 181, 127, 0.25); }
.pill.muted { border-color: var(--line-strong); color: var(--on-navy-muted); }

.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; color: var(--on-navy-muted); font-size: 0.85rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); }

/* ---------- Phone mockups ---------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1400px; }
.hero-visual .ring { position: absolute; width: min(520px, 90vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(232, 181, 71, 0.18);
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(232, 181, 71, 0.35) 85%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 18s linear infinite; }
.hero-visual .ring.two { width: min(400px, 70vw); animation-direction: reverse; animation-duration: 26s; border-color: rgba(246, 241, 228, 0.1); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual .glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 181, 71, 0.22), transparent 65%); filter: blur(20px); }

.phone {
  position: relative; width: 300px; height: 620px; border-radius: 46px;
  background: linear-gradient(160deg, #2b3550, #0c1428 40%, #050a18);
  padding: 12px; box-shadow: var(--shadow-phone);
  transform-style: preserve-3d; will-change: transform;
}
.phone::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(246, 241, 228, 0.35), rgba(246, 241, 228, 0.05) 40%, rgba(232, 181, 71, 0.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.phone .island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 999px; background: #050a18; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f6f4ee; color: var(--ink); font-size: 12px; line-height: 1.4; display: flex; flex-direction: column; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 35%); }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 54px 18px 8px; font-weight: 600; font-size: 13px; }
.app-bar .ic { width: 28px; height: 28px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.app-bar .ic svg { width: 14px; height: 14px; }
.app-hero { margin: 6px 14px 0; padding: 16px 16px 14px; border-radius: 20px; color: var(--on-navy);
  background: linear-gradient(140deg, #1b3f80, #0b2454 55%, #061534); box-shadow: 0 14px 30px -14px rgba(2, 24, 61, 0.7); position: relative; overflow: hidden; }
.app-hero::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 181, 71, 0.35), transparent 60%); }
.app-hero .label { font-size: 10.5px; color: var(--on-navy-muted); display: flex; justify-content: space-between; }
.app-hero .label b { color: var(--gold-300); font-weight: 600; }
.app-total { margin-top: 6px; font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: #fff; }
html[dir="ltr"] .app-total { font-family: var(--font-body); }
.app-total small { font-size: 12px; font-weight: 500; color: var(--gold-300); margin-inline-start: 4px; }
.app-hero .sub { margin-top: 6px; font-size: 10.5px; color: var(--on-navy-muted); }
.app-chart { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; margin: 12px 14px 0; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 8px 20px -14px rgba(16, 23, 40, 0.35); }
.donut { width: 112px; height: 112px; }
.donut circle { fill: none; stroke-width: 12; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 0 1000; transition: stroke-dasharray 1.2s var(--ease-out); }
.donut .track { stroke: #efe9da; stroke-dasharray: 1000 0; }
.donut text { font-family: var(--font-body); font-weight: 600; fill: var(--ink); }
.legend { display: grid; gap: 5px; font-size: 10.5px; }
.legend li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 6px; color: var(--ink-2); }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: block; }
.legend b { font-weight: 600; color: var(--ink); }
.app-rows { margin: 10px 14px 0; display: grid; gap: 6px; }
.app-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; font-size: 11px; }
.app-row .tile { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fbf1d9; color: #9a6f14; }
.app-row .tile svg { width: 13px; height: 13px; }
.app-row .bar { height: 3px; border-radius: 2px; background: #efe9da; margin-top: 4px; overflow: hidden; }
.app-row .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); border-radius: 2px; }
.app-row b { font-weight: 600; }
.app-cta { margin: auto 14px 16px; padding: 11px; border-radius: 14px; text-align: center; font-weight: 600; font-size: 12px; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-400) 60%, var(--gold-600)); box-shadow: 0 8px 18px -8px rgba(232, 181, 71, 0.7); }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); } 50% { transform: translateY(-14px); } }

/* Estimate & BOQ mockups */
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; border-radius: 12px; font-size: 11.5px; }
.form-row .stepper { display: inline-flex; align-items: center; gap: 8px; }
.form-row .stepper span { width: 22px; height: 22px; border-radius: 7px; background: #f0ede4; display: grid; place-items: center; font-weight: 600; color: var(--ink-2); }
.form-row .stepper b { min-width: 30px; text-align: center; font-weight: 600; }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 8px 14px 0; }
.q { padding: 9px 10px; border-radius: 12px; background: #fff; border: 1.5px solid transparent; font-size: 11px; }
.q b { display: block; font-weight: 600; }
.q small { color: var(--muted); font-size: 9.5px; }
.q.on { border-color: var(--gold-400); background: #fff8e6; }
.q.on b { color: #9a6f14; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 14px 0; padding: 3px; border-radius: 10px; background: #e9e4d6; font-size: 10.5px; }
.seg span { text-align: center; padding: 5px; border-radius: 8px; color: var(--ink-2); }
.seg span.on { background: var(--navy-800); color: #fff; font-weight: 600; }
.foot-total { margin: auto 14px 16px; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 14px; background: var(--navy-900); color: var(--on-navy); font-size: 11px; }
.foot-total b { font-size: 15px; color: var(--gold-300); }
.trade { margin: 0 14px; background: #fff; border-radius: 14px; overflow: hidden; }
.trade + .trade { margin-top: 7px; }
.trade-h { display: grid; grid-template-columns: 26px 1fr auto 14px; gap: 8px; align-items: center; padding: 9px 10px; font-size: 11.5px; }
.trade-h b { font-weight: 600; }
.trade-h .tile { width: 26px; height: 26px; border-radius: 8px; background: #e4eaf5; color: var(--navy-700); display: grid; place-items: center; }
.trade-h .tile svg { width: 13px; height: 13px; }
.trade-h .chev { color: var(--muted); font-size: 12px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 7px 10px; border-top: 1px solid #f0ede4; font-size: 10.5px; }
.line span { color: var(--muted); font-size: 9.5px; }
.line b { font-weight: 600; }
.chip { display: inline-block; padding: 1px 6px; border-radius: 999px; background: #fbf1d9; color: #9a6f14; font-size: 8.5px; font-weight: 600; margin-inline-start: 4px; vertical-align: middle; }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--line); background: rgba(4, 14, 36, 0.55); }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.6rem 1rem; display: grid; gap: 0.2rem; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat b { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--gold-300); line-height: 1.1; }
html[dir="ltr"] .stat b { font-family: var(--font-body); letter-spacing: -0.02em; }
.stat span { color: var(--on-navy-muted); font-size: 0.9rem; }
@media (max-width: 759px) { .stat:nth-child(2) { border-inline-end: 0; } .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* How it works */
.steps { margin-top: 3rem; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.75rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(246, 241, 228, 0.05), rgba(246, 241, 228, 0.02)); display: grid; gap: 0.9rem; align-content: start; }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 10px 20px -10px rgba(232, 181, 71, 0.7); }
.step h3 { font-size: 1.2rem; color: var(--on-navy); }
.step p { color: var(--on-navy-muted); font-size: 0.95rem; }
.step-art { margin-top: 0.4rem; padding: 0.9rem; border-radius: 14px; background: rgba(4, 14, 36, 0.6); border: 1px solid var(--line); display: grid; gap: 0.5rem; font-size: 0.8rem; color: var(--on-navy-muted); }
.step-art .k { display: flex; justify-content: space-between; align-items: center; }
.step-art .k b { color: var(--on-navy); font-weight: 600; }
.step-art .bar { height: 6px; border-radius: 3px; background: rgba(246, 241, 228, 0.1); overflow: hidden; }
.step-art .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.step-art .opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.step-art .opts span { text-align: center; padding: 0.35rem 0.2rem; border-radius: 8px; border: 1px solid var(--line); font-size: 0.72rem; }
.step-art .opts span.on { border-color: var(--gold-400); color: var(--gold-300); background: rgba(232, 181, 71, 0.12); }

/* Features bento */
.bento { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .wide { grid-column: span 2; } }
.feature { position: relative; overflow: hidden; padding: 1.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(246, 241, 228, 0.035); display: grid; gap: 0.75rem; align-content: start; transition: border-color 0.3s, transform 0.3s var(--ease-out); }
.feature:hover { border-color: rgba(232, 181, 71, 0.45); transform: translateY(-3px); }
.feature::after { content: ""; position: absolute; inset: auto auto -40% -20%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 181, 71, 0.14), transparent 65%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.feature:hover::after { opacity: 1; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-300); background: rgba(232, 181, 71, 0.12); border: 1px solid rgba(232, 181, 71, 0.25); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; color: var(--on-navy); }
.feature p { color: var(--on-navy-muted); font-size: 0.95rem; }
.feature .tag { position: absolute; inset-block-start: 1.1rem; inset-inline-end: 1.1rem; }
.trades { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.trades span { padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.78rem; color: var(--on-navy); }

/* Paper (BOQ + prices) */
.paper-section { background: var(--paper); color: var(--ink); position: relative; }
.paper-section::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }
.boq-grid { margin-top: 3rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .boq-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; } }
.sheet { background: #fff; border: 1px solid var(--paper-line); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(16, 23, 40, 0.35), 0 2px 0 var(--paper-line); padding: 3.1rem 1.5rem 1.5rem; position: relative; }
.sheet::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold-300), var(--gold-600)); border-radius: 6px 0 0 6px; }
html[dir="ltr"] .sheet::before { border-radius: 6px 0 0 6px; }
html[dir="rtl"] .sheet::before { border-radius: 0 6px 6px 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--paper-line); }
.sheet-head h3 { font-size: 1.1rem; }
.sheet-head small { color: var(--muted); font-size: 0.8rem; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sheet th { text-align: start; font-weight: 500; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; padding: 0.7rem 0.4rem 0.4rem; border-bottom: 1px solid var(--paper-line); }
.sheet td { padding: 0.6rem 0.4rem; border-bottom: 1px dashed var(--paper-line); vertical-align: top; }
.sheet td:not(:first-child), .sheet th:not(:first-child) { text-align: end; white-space: nowrap; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; padding-top: 0.8rem; }
.sheet .edited { display: inline-block; margin-inline-start: 0.4rem; padding: 0 0.45rem; border-radius: 999px; background: #fbf1d9; color: #9a6f14; font-size: 0.68rem; font-weight: 600; vertical-align: middle; }
.sheet td small { display: block; color: var(--muted); font-size: 0.74rem; }
.sheet .stamp { position: absolute; inset-inline-end: 1.2rem; top: 1.1rem; padding: 0.25rem 0.6rem; border: 1.5px solid var(--gold-600); color: var(--gold-600); border-radius: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; transform: rotate(-4deg); }
html[dir="rtl"] .sheet .stamp { transform: rotate(4deg); }
.boq-copy { display: grid; gap: 1rem; }
.boq-copy h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); color: var(--ink); }
.boq-copy p { color: var(--ink-2); font-size: 1.05rem; }
.checks { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-2); }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--gold-600); margin-top: 3px; }

/* Screens gallery */
.gallery { margin-top: 3rem; display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem var(--gutter) 2rem; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > figure { flex: none; scroll-snap-align: center; margin: 0; display: grid; gap: 1rem; justify-items: center; }
.gallery figcaption { color: var(--on-navy-muted); font-size: 0.9rem; text-align: center; max-width: 18rem; }
.gallery figcaption b { display: block; color: var(--on-navy); font-weight: 600; }
@media (min-width: 1040px) { .gallery { justify-content: center; overflow: visible; } .gallery > figure:nth-child(2) { transform: translateY(-1.5rem); } }
.phone.small { width: 270px; height: 560px; }
.phone.small .screen { font-size: 11px; }

/* Prices */
.ticker { --gap: 2.5rem; margin-top: 2.5rem; overflow: hidden; border-block: 1px solid var(--paper-line); background: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: var(--gap); width: max-content; padding: 0.85rem 0; animation: ticker 55s linear infinite; }
html[dir="ltr"] .ticker-track { animation-name: ticker-ltr; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; font-size: 0.9rem; color: var(--ink-2); }
.ticker-item b { color: var(--ink); font-weight: 600; }
.ticker-item i { font-style: normal; color: var(--gold-600); font-weight: 600; }
.ticker-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); align-self: center; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes ticker-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.price-grid { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 620px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--paper-line); box-shadow: 0 10px 24px -20px rgba(16, 23, 40, 0.5); }
.price-card > b { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--ink); }
.price-card > small { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 0.8rem; }
.price-card .v { grid-column: 2; grid-row: 1 / span 2; text-align: end; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.price-card .v small { display: block; font-size: 0.72rem; color: var(--gold-600); font-weight: 600; }
.price-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.88rem; }
.price-meta .src { display: inline-flex; align-items: center; gap: 0.5rem; }
.price-meta .src b { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 0.4rem; border-radius: 6px; background: var(--navy-900); color: var(--gold-300); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.link { color: var(--navy-700); font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.link:hover { border-bottom-color: currentColor; }
.link svg { width: 16px; height: 16px; }
html[dir="ltr"] .link svg { transform: scaleX(-1); }

/* Premium */
.premium { position: relative; margin-top: 3rem; border-radius: var(--r-xl); padding: 1px; background: linear-gradient(140deg, rgba(232, 181, 71, 0.8), rgba(232, 181, 71, 0.15) 40%, rgba(246, 241, 228, 0.15) 70%, rgba(232, 181, 71, 0.6)); }
.premium-inner { border-radius: calc(var(--r-xl) - 1px); background: linear-gradient(160deg, var(--navy-800), var(--navy-900) 60%, var(--navy-950)); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 2rem; overflow: hidden; position: relative; }
.premium-inner::before { content: ""; position: absolute; inset: auto -10% -50% auto; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 181, 71, 0.25), transparent 65%); pointer-events: none; }
@media (min-width: 900px) { .premium-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.premium h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--on-navy); }
.premium .lead { color: var(--on-navy-muted); margin-top: 0.75rem; }
.perks { margin-top: 1.5rem; display: grid; gap: 0.8rem; }
@media (min-width: 560px) { .perks { grid-template-columns: 1fr 1fr; } }
.perks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.perks .ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--gold-300); background: rgba(232, 181, 71, 0.12); border: 1px solid rgba(232, 181, 71, 0.25); }
.perks .ico svg { width: 17px; height: 17px; }
.perks b { display: block; font-weight: 600; color: var(--on-navy); font-size: 0.95rem; }
.perks span { color: var(--on-navy-muted); font-size: 0.85rem; }
.price-box { position: relative; border-radius: var(--r-lg); padding: 1.75rem; background: rgba(4, 14, 36, 0.55); border: 1px solid var(--line-strong); display: grid; gap: 0.9rem; text-align: center; justify-items: center; }
.price-box .from { color: var(--on-navy-muted); font-size: 0.85rem; }
.price-box .amount { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; color: var(--gold-300); line-height: 1; }
html[dir="ltr"] .price-box .amount { font-family: var(--font-body); letter-spacing: -0.03em; }
.price-box .amount small { font-size: 1rem; color: var(--on-navy-muted); font-weight: 500; margin-inline-start: 0.3rem; }
.price-box .fine { color: var(--on-navy-faint); font-size: 0.78rem; max-width: 20rem; }
.price-box .btn { width: 100%; max-width: 20rem; }

/* FAQ */
.faq { margin-top: 2.5rem; max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0.25rem; font-weight: 600; font-size: 1.05rem; color: var(--on-navy); transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-300); }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.3s var(--ease-out), background 0.3s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: rgba(232, 181, 71, 0.15); border-color: var(--gold-400); color: var(--gold-300); }
.faq .answer { padding: 0 0.25rem 1.3rem; color: var(--on-navy-muted); max-width: 42rem; }

/* Follow */
.follow { text-align: center; }
.socials { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.socials a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(246, 241, 228, 0.04); font-size: 0.92rem; font-weight: 500; transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out); }
.socials a:hover { border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Download band */
.band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4rem); text-align: center; background: linear-gradient(160deg, var(--navy-700), var(--navy-900) 55%, var(--navy-950)); border: 1px solid var(--line); display: grid; gap: 1.25rem; justify-items: center; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(232, 181, 71, 0.25), transparent 70%); pointer-events: none; }
.band > * { position: relative; }
.band img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7); }
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--on-navy); }
.band p { color: var(--on-navy-muted); max-width: 32rem; }
.band .stores { max-width: 34rem; width: 100%; }
.disclaimer { margin: 2rem auto 0; max-width: 46rem; text-align: center; color: var(--on-navy-faint); font-size: 0.8rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-950); padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 0.8rem; max-width: 22rem; color: var(--on-navy-muted); font-size: 0.9rem; }
.footer-col h4 { color: var(--on-navy); font-size: 0.9rem; margin-bottom: 0.9rem; }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: var(--on-navy-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; color: var(--on-navy-faint); font-size: 0.8rem; }
.footer-bottom .oz { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-bottom .oz b { color: var(--gold-300); letter-spacing: 0.08em; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(27, 63, 128, 0.5), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; display: grid; gap: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--on-navy); }
.page-hero .lead { color: var(--on-navy-muted); font-size: 1.1rem; max-width: 40rem; }
.crumbs { display: flex; gap: 0.5rem; align-items: center; color: var(--on-navy-faint); font-size: 0.85rem; }
.crumbs a:hover { color: var(--gold-300); }

.legal-body { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.legal-card { max-width: 48rem; margin-inline: auto; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.legal-card .updated { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--paper-line); width: 100%; }
.legal-card article { padding-top: 1rem; font-size: 1rem; line-height: 1.85; color: var(--ink-2); }
.legal-card article h2 { font-size: 1.15rem; color: var(--ink); margin: 1.75rem 0 0.5rem; padding-inline-start: 0.85rem; border-inline-start: 3px solid var(--gold-400); }
.legal-card article p + p { margin-top: 0.75rem; }
.legal-card article a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-card .app-id { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 6px; background: var(--cream-2); font-size: 0.9em; }

/* Prices page */
.prices-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-top: 2rem; }
.search { position: relative; flex: 1 1 260px; max-width: 26rem; }
.search input { width: 100%; min-height: 48px; padding: 0 1rem; padding-inline-start: 2.8rem; border-radius: 999px; border: 1px solid var(--paper-line); background: #fff; color: var(--ink); font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
.search input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18); }
.search svg { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips button { min-height: 38px; padding: 0 0.95rem; border-radius: 999px; border: 1px solid var(--paper-line); background: #fff; color: var(--ink-2); font-size: 0.85rem; font-weight: 500; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chips button:hover { border-color: var(--gold-500); }
.chips button.on { background: var(--navy-900); color: var(--gold-300); border-color: var(--navy-900); }
.table-wrap { margin-top: 1.5rem; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--paper-line); background: #fff; box-shadow: 0 20px 40px -30px rgba(16, 23, 40, 0.5); }
.prices-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.prices-table th { text-align: start; padding: 0.9rem 1.1rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; background: var(--cream); border-bottom: 1px solid var(--paper-line); position: sticky; top: 0; }
.prices-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid #efeade; vertical-align: middle; }
.prices-table tr:last-child td { border-bottom: 0; }
.prices-table tr:hover td { background: #fffdf7; }
.prices-table .name b { display: block; font-weight: 600; color: var(--ink); }
.prices-table .name small { color: var(--muted); font-size: 0.78rem; }
.prices-table .cat { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.prices-table .unit { color: var(--ink-2); white-space: nowrap; }
.prices-table .price { text-align: end; white-space: nowrap; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.prices-table .price small { color: var(--gold-600); font-weight: 600; font-size: 0.75rem; margin-inline-start: 0.25rem; }
.prices-table th.price { text-align: end; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.prices-cta { margin-top: 2.5rem; display: grid; gap: 1rem; align-items: center; padding: 1.5rem; border-radius: var(--r-lg); background: var(--navy-900); color: var(--on-navy); border: 1px solid var(--line); }
@media (min-width: 720px) { .prices-cta { grid-template-columns: 1fr auto; } }
.prices-cta h3 { font-size: 1.2rem; }
.prices-cta p { color: var(--on-navy-muted); font-size: 0.92rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; color: transparent; background: linear-gradient(120deg, var(--gold-300), var(--gold-600)); -webkit-background-clip: text; background-clip: text; }

/* ---------- Reveal on scroll (visible at rest, animates in when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .hero-line > span { transform: none; }
  .hero-copy > *:not(h1) { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .hero-visual .ring { display: none; }
}

/* ---------- Calculator page ---------- */
.calc { display: grid; gap: 1.5rem; align-items: start; padding-block: 0 clamp(4rem, 8vw, 6rem); }
@media (min-width: 980px) { .calc { grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 2rem; } .calc-result { position: sticky; top: 92px; } }
.panel { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); display: grid; gap: 1.4rem; }
.panel h2 { font-size: 1.25rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel .hint { color: var(--muted); font-size: 0.85rem; }
.field { display: grid; gap: 0.6rem; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.field-label small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.text-input { width: 100%; min-height: 50px; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--paper-line); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.text-input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.18); }

.area-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.area-value { display: inline-flex; align-items: baseline; gap: 0.35rem; min-width: 8.5rem; padding: 0.4rem 0.9rem; border-radius: 14px; background: #fff; border: 1px solid var(--paper-line); }
.area-value input { width: 4.2rem; border: 0; background: transparent; font: inherit; font-size: 1.35rem; font-weight: 700; color: var(--ink); text-align: center; padding: 0; }
.area-value input:focus { outline: none; }
.area-value span { color: var(--muted); font-size: 0.85rem; }
input[type="range"].range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; direction: ltr; }
input[type="range"].range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-400) var(--p, 20%), var(--cream-2) var(--p, 20%)); }
input[type="range"].range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--cream-2); }
input[type="range"].range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold-400); }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--navy-900); border: 3px solid var(--gold-300); box-shadow: 0 6px 14px -6px rgba(2, 24, 61, 0.7); cursor: pointer; }
input[type="range"].range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-900); border: 3px solid var(--gold-300); cursor: pointer; }
input[type="range"].range:focus-visible { outline: none; }
input[type="range"].range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.3); }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; margin-top: -0.4rem; direction: ltr; }

.steppers { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .steppers { grid-template-columns: 1fr 1fr; } }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem; border-radius: 14px; background: #fff; border: 1px solid var(--paper-line); }
html[dir="rtl"] .stepper-row { padding: 0.6rem 0.9rem 0.6rem 0.6rem; }
.stepper-row label { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.stepper-ctl { display: inline-flex; align-items: center; gap: 0.25rem; }
.stepper-ctl button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--paper-line); background: var(--cream); color: var(--ink); font-size: 1.1rem; font-weight: 600; display: grid; place-items: center; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.stepper-ctl button:hover:not(:disabled) { background: #fff; border-color: var(--gold-500); }
.stepper-ctl button:active:not(:disabled) { transform: scale(0.94); }
.stepper-ctl button:disabled { opacity: 0.35; cursor: default; }
.stepper-ctl .val { min-width: 2.2rem; text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--ink); }

.qcards { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .qcards { grid-template-columns: repeat(4, 1fr); } }
.qcard { text-align: start; padding: 0.85rem 0.9rem; border-radius: 14px; border: 1.5px solid var(--paper-line); background: #fff; display: grid; gap: 0.2rem; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out); }
.qcard b { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.qcard small { color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.qcard:hover { border-color: var(--gold-500); transform: translateY(-1px); }
.qcard.on { border-color: var(--gold-500); background: #fff8e6; box-shadow: 0 10px 24px -18px rgba(232, 181, 71, 0.9); }
.qcard.on b { color: #9a6f14; }
.qcard .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-line); margin-bottom: 0.3rem; }
.qcard.on .dot { background: var(--gold-500); box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.25); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--cream-2); }
.segmented button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.segmented button.on { background: var(--navy-900); color: var(--gold-300); box-shadow: 0 6px 14px -8px rgba(2, 24, 61, 0.8); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; padding-top: 0.4rem; border-top: 1px solid var(--paper-line); }
.btn-paper { color: var(--ink); background: #fff; border-color: var(--paper-line); }
.btn-paper:hover { border-color: var(--gold-500); }
.btn-paper.ok { border-color: var(--success); color: #1f6b44; }

.calc-result { display: grid; gap: 1rem; }
.result-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); color: var(--on-navy); background: linear-gradient(150deg, var(--navy-600), var(--navy-800) 50%, var(--navy-950)); border: 1px solid rgba(232, 181, 71, 0.35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); display: grid; gap: 1rem; }
.result-card::after { content: ""; position: absolute; inset: auto -25% -55% auto; width: 65%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 181, 71, 0.32), transparent 62%); pointer-events: none; }
.result-card > * { position: relative; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--on-navy-muted); font-size: 0.85rem; }
.result-head .pill { border-color: rgba(232, 181, 71, 0.5); }
.result-total { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.05; color: #fff; letter-spacing: -0.01em; }
html[dir="ltr"] .result-total { font-family: var(--font-body); letter-spacing: -0.03em; }
.result-total small { font-size: 1rem; font-weight: 600; color: var(--gold-300); margin-inline-start: 0.4rem; letter-spacing: 0; }
.result-sub { color: var(--on-navy-muted); font-size: 0.9rem; }
.result-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.kpi { padding: 0.7rem 0.8rem; border-radius: 14px; background: rgba(4, 14, 36, 0.5); border: 1px solid var(--line); display: grid; gap: 0.15rem; }
.kpi span { color: var(--on-navy-faint); font-size: 0.72rem; }
.kpi b { font-weight: 700; font-size: 1rem; color: var(--on-navy); white-space: nowrap; }
.kpi b small { font-size: 0.7rem; color: var(--gold-300); font-weight: 600; margin-inline-start: 0.2rem; }
@media (max-width: 420px) { .result-kpis { grid-template-columns: 1fr 1fr; } .result-kpis .kpi:first-child { grid-column: span 2; } }

.breakdown { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.5rem); border: 1px solid var(--paper-line); display: grid; gap: 1rem; }
.breakdown-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.breakdown-head h3 { font-size: 1.05rem; }
.breakdown-head p { color: var(--muted); font-size: 0.85rem; }
.breakdown .donut { width: 88px; height: 88px; }
.trade-list { display: grid; gap: 0.55rem; }
.trade-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 0.7rem; align-items: center; }
.trade-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--cream); }
.trade-ico svg { width: 15px; height: 15px; }
.trade-top { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.9rem; }
.trade-top b { font-weight: 700; }
.trade-bar { height: 5px; border-radius: 3px; background: var(--cream-2); overflow: hidden; margin-top: 4px; }
.trade-bar i { display: block; height: 100%; border-radius: 3px; transition: width 0.4s var(--ease-out); }
.trade-pct { min-width: 2.6rem; text-align: end; color: var(--muted); font-size: 0.8rem; }

.locked { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: rgba(246, 241, 228, 0.04); padding: 1.25rem; display: grid; gap: 0.9rem; }
.locked-lines { display: grid; gap: 0.45rem; filter: blur(3px); opacity: 0.55; pointer-events: none; user-select: none; }
.locked-lines div { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; font-size: 0.8rem; color: var(--on-navy-muted); }
.locked-copy { display: grid; gap: 0.5rem; }
.locked-copy h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; color: var(--on-navy); }
.locked-copy h3 svg { width: 18px; height: 18px; color: var(--gold-300); }
.locked-copy p { color: var(--on-navy-muted); font-size: 0.88rem; }
.locked .stores { max-width: none; }
.calc-meta { color: var(--on-navy-faint); font-size: 0.78rem; display: grid; gap: 0.3rem; }

.calc-result { scroll-margin-top: 90px; }
.calc-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px)); background: rgba(6, 21, 52, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); box-shadow: 0 -20px 40px -30px rgba(0, 0, 0, 0.9); }
.calc-sticky-total { display: grid; line-height: 1.2; }
.calc-sticky-total span { color: var(--on-navy-muted); font-size: 0.72rem; }
.calc-sticky-total b { font-size: 1.25rem; font-weight: 700; color: var(--gold-300); }
.calc-sticky-total b small { font-size: 0.75rem; color: var(--on-navy-muted); font-weight: 500; }
.calc-sticky .btn { min-height: 42px; padding: 0 1.1rem; font-size: 0.88rem; }
@media (min-width: 980px) { .calc-sticky { display: none !important; } }
@media (max-width: 979px) { .calc { padding-bottom: 6.5rem; } }

/* ---------- Market (Egypt / Saudi Arabia) ---------- */
.market-toggle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--on-navy); font-weight: 600; font-size: 0.85rem; transition: border-color 0.2s, color 0.2s; }
.market-toggle:hover { border-color: var(--gold-400); color: var(--gold-300); }
.market-toggle .flag { font-size: 1.05rem; line-height: 1; }
@media (max-width: 420px) { .market-toggle .name { display: none; } .market-toggle { padding: 0 0.6rem; } }
.market-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(4, 14, 36, 0.55); border: 1px solid var(--line); }
.on-paper .market-switch, .panel .market-switch { background: var(--cream-2); border-color: transparent; }
.market-switch button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--on-navy-muted); font-weight: 600; font-size: 0.88rem; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.on-paper .market-switch button, .panel .market-switch button { color: var(--ink-2); }
.market-switch button.on { background: var(--navy-900); color: var(--gold-300); box-shadow: 0 6px 14px -8px rgba(2, 24, 61, 0.8); }
.market-switch button:hover:not(.on) { color: var(--on-navy); }
.on-paper .market-switch button:hover:not(.on), .panel .market-switch button:hover:not(.on) { color: var(--ink); }
