/* ==========================================================================
   ROAMLU — Pre-launch website styles
   Single source of truth for design tokens + components.
   Every value below references a token; no improvised hex in components.
   ========================================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand — same role across themes, value swaps per theme below */
  --brand-orange: #E05820;
  --brand-orange-strong: #C44A18;   /* hover/active for orange CTAs (light) */
  --brand-teal: #10A890;
  --brand-purple: #8040D0;

  /* Surfaces / text (LIGHT defaults) */
  --bg-app: #FFF8F4;
  --bg-surface: #FFE8DC;
  --bg-surface-2: #F5F0ED;
  --border-default: #E8E0DB;
  --text-primary: #1C0804;
  --text-secondary: #7A6058;
  --text-disabled: #B8A098;

  --success: #16A34A;
  --warning: #D97706;
  --error: #DC2626;

  /* Supporting tints (backgrounds only) */
  --tint-orange: #FFE8DC;
  --tint-teal: #D0F4EE;
  --tint-purple: #EDE0FF;

  /* On-accent text (text that sits on a solid orange fill) */
  --on-accent: #FFF8F4;

  /* Spacing scale (4px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-16: 64px; --sp-24: 96px; --sp-30: 120px;

  /* Radius */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --r-pill: 100px; --r-circle: 50%;

  /* Motion */
  --m-fast: 150ms ease-out;
  --m-standard: 250ms ease-in-out;
  --m-slow: 400ms ease-in-out;
  --m-spring: 600ms cubic-bezier(.22,1,.36,1);

  /* Elevation (warm-tinted shadows, not generic gray) */
  --shadow-sm: 0 1px 2px rgba(28, 8, 4, .06), 0 2px 6px rgba(28, 8, 4, .05);
  --shadow-md: 0 6px 16px rgba(28, 8, 4, .08), 0 2px 6px rgba(28, 8, 4, .05);
  --shadow-lg: 0 18px 48px rgba(28, 8, 4, .14), 0 6px 16px rgba(28, 8, 4, .08);
  --shadow-accent: 0 10px 30px rgba(224, 88, 32, .28);

  /* Typography families (with robust system fallbacks) */
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --header-h: 68px;

  --focus-ring: 0 0 0 3px var(--bg-app), 0 0 0 5px var(--brand-orange);
}

/* DARK theme token overrides */
:root[data-theme="dark"] {
  --brand-orange: #FF7840;
  --brand-orange-strong: #FF9460;
  --brand-teal: #18D8B8;
  --brand-purple: #B070FF;

  --bg-app: #181210;
  --bg-surface: #221A16;
  --bg-surface-2: #2A1E18;
  --border-default: #2A1E18;
  --text-primary: #F8EAD8;
  --text-secondary: #B8A098;
  --text-disabled: #4A3830;

  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;

  --tint-orange: #2A1E18;
  --tint-teal: #122A26;
  --tint-purple: #221830;

  --on-accent: #181210;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.35);
  --shadow-md: 0 6px 16px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.6), 0 6px 16px rgba(0,0,0,.45);
  --shadow-accent: 0 10px 30px rgba(255, 120, 64, .25);

  --focus-ring: 0 0 0 3px var(--bg-app), 0 0 0 5px var(--brand-orange);
}

/* Arabic / RTL switches the UI font to Cairo (DM Sans lacks Arabic glyphs) */
:root[lang="ar"] {
  --font-sans: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cairo", Georgia, serif;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--m-standard), color var(--m-standard);
}

/* Ensure [hidden] always wins over component display rules (e.g. .view-countdown { display:flex }) */
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
/* Headings/regions focused programmatically on route change shouldn't show the ring */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { box-shadow: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }

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

/* Skip link */
.skip-link {
  position: fixed; top: var(--sp-2); left: var(--sp-2); z-index: 200;
  background: var(--brand-orange); color: var(--on-accent);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  font-weight: 700; transform: translateY(-150%); transition: transform var(--m-fast);
}
.skip-link:focus { transform: translateY(0); }
[dir="rtl"] .skip-link { left: auto; right: var(--sp-2); }

/* ---------- TYPOGRAPHY ---------- */
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
:root[lang="ar"] .serif-italic { font-style: normal; font-weight: 700; } /* Cairo: no real italic */

.display { line-height: 1.05; letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.caps { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
:root[lang="ar"] .caps { letter-spacing: 0; } /* uppercase tracking is meaningless in Arabic */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Keep numerals / countdown / prices LTR even inside RTL */
.mono, .cd-num, .price-num, .ref-code, [data-cd] { direction: ltr; unicode-bidi: isolate; }

/* ---------- BUTTONS ---------- */
.btn {
  --btn-bg: var(--bg-surface-2);
  --btn-fg: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-6);
  font-weight: 700; font-size: 0.9375rem; line-height: 1;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform var(--m-fast), box-shadow var(--m-fast), background-color var(--m-fast), filter var(--m-fast);
  position: relative; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 var(--sp-4); font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 0 var(--sp-8); font-size: 1rem; }

.btn-primary { --btn-bg: var(--brand-orange); --btn-fg: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn-primary:hover { --btn-bg: var(--brand-orange-strong); }

.btn-secondary { --btn-bg: var(--bg-surface-2); --btn-fg: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { border-color: var(--brand-orange); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text-primary); border-color: var(--border-default); }
.btn-ghost:hover { border-color: var(--brand-orange); color: var(--brand-orange); }

.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; }

/* Loading state */
.btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; }
.btn.is-loading .btn-label { opacity: .35; }
.btn.is-loading .btn-spinner { display: inline-block; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .btn.is-loading .btn-spinner { animation: none; }
}

.link-btn { color: var(--brand-orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--brand-orange-strong); }

/* ---------- ICON BUTTON ---------- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill); color: var(--text-secondary);
  border: 1px solid var(--border-default); background: var(--bg-surface-2);
  font-weight: 700; font-size: .8125rem;
  transition: color var(--m-fast), border-color var(--m-fast), background-color var(--m-fast);
}
.icon-btn:hover { color: var(--brand-orange); border-color: var(--brand-orange); }
.theme-ico { width: 20px; height: 20px; display: inline-block; color: currentColor; }

/* ---------- CARDS / BADGES ---------- */
.card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-lg); padding: var(--sp-6);
}
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 4px var(--sp-3); border-radius: var(--r-pill);
  background: var(--brand-orange); color: var(--on-accent);
  font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-app) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--m-standard), background-color var(--m-standard);
}
.site-header.is-scrolled { border-bottom-color: var(--border-default); }
.nav-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 800; font-size: 1.125rem; }
.brand-logo { width: 30px; height: 30px; display: inline-block; color: var(--brand-orange); flex: none; }
.brand-word { letter-spacing: -0.01em; }

.nav-links { display: none; gap: var(--sp-5); margin-inline: auto; }
.nav-links a { color: var(--text-secondary); font-weight: 600; font-size: .9375rem; transition: color var(--m-fast); }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); margin-inline-start: auto; }
.nav-cta { display: none; }
.nav-burger { display: inline-flex; }

.burger-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.burger-bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--m-fast), opacity var(--m-fast); }
[data-burger][aria-expanded="true"] .burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[data-burger][aria-expanded="true"] .burger-bars span:nth-child(2) { opacity: 0; }
[data-burger][aria-expanded="true"] .burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--border-default); background: var(--bg-app); padding: var(--sp-4) var(--sp-5) var(--sp-6); }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--sp-1); max-width: var(--container); margin-inline: auto; }
.mobile-menu a { padding: var(--sp-3) 0; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border-default); }
.mobile-menu .mobile-cta { margin-top: var(--sp-4); border-bottom: none; justify-content: center; }

/* Anchor nav + CTA only on the marketing view */
body[data-view="intro"] .nav-links { display: flex; }
body[data-view="intro"] .nav-cta { display: inline-flex; }
body[data-view="intro"] .nav-burger { display: none; }

@media (max-width: 860px) {
  body[data-view="intro"] .nav-links,
  body[data-view="intro"] .nav-cta { display: none; }
  body[data-view="intro"] .nav-burger { display: inline-flex; }
}
@media (min-width: 861px) { .nav-burger { display: none !important; } .mobile-menu { display: none !important; } }
/* Burger only relevant on intro */
body:not([data-view="intro"]) .nav-burger { display: none !important; }

/* ---------- HERO BACKGROUND (warm sunset mesh) ---------- */
.view { position: relative; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow-a {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  top: -16%; inset-inline-start: -10%;
  background: radial-gradient(circle at 50% 50%, var(--brand-orange), transparent 68%);
}
.glow-b {
  width: 48vw; height: 48vw; max-width: 620px; max-height: 620px;
  top: 8%; inset-inline-end: -14%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand-orange) 75%, #FFB070), transparent 66%);
  opacity: .42;
}
.hero-bg.soft .hero-glow { opacity: .32; }
.hero-grain { position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--brand-purple) 22%, transparent), transparent 30%),
    radial-gradient(circle at 82% 70%, color-mix(in srgb, var(--brand-teal) 18%, transparent), transparent 32%);
}
@media (prefers-reduced-motion: no-preference) {
  .glow-a { animation: floatA 16s ease-in-out infinite alternate; }
  .glow-b { animation: floatB 20s ease-in-out infinite alternate; }
}
@keyframes floatA { to { transform: translate(4%, 5%) scale(1.06); } }
@keyframes floatB { to { transform: translate(-5%, -4%) scale(1.08); } }

/* ---------- COUNTDOWN VIEW ---------- */
.view-countdown { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.hero-wrap { position: relative; z-index: 1; text-align: center; padding-block: var(--sp-16) var(--sp-16); display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  font-size: .8125rem; font-weight: 600; color: var(--text-secondary);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge .dot { animation: pulse 2s ease-in-out infinite; }
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-orange) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

.hero-title { font-size: clamp(2.4rem, 1.4rem + 5vw, 4.4rem); color: var(--text-primary); max-width: 14ch; }
.hero-sub { font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: var(--text-secondary); max-width: 52ch; }

/* Countdown grid */
.countdown { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.countdown-fallback { font-size: 1.1rem; font-weight: 600; color: var(--brand-orange); }
/* Countdown reads Days→Sec left-to-right even in RTL (numbers stay LTR) */
.countdown-grid { display: inline-flex; align-items: flex-start; gap: clamp(8px, 2vw, 20px); direction: ltr; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-lg); padding: var(--sp-4) clamp(10px, 2.6vw, 22px); min-width: clamp(64px, 16vw, 104px); }
.cd-num { font-size: clamp(2rem, 1.2rem + 4vw, 3.4rem); font-weight: 700; color: var(--brand-orange); line-height: 1; }
.cd-num.tick { animation: tick var(--m-standard); }
@keyframes tick { 0% { transform: translateY(-22%); opacity: .35; } 100% { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cd-num.tick { animation: none; } }
.cd-label { color: var(--text-secondary); }
.cd-sep { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); color: var(--text-disabled); font-weight: 700; align-self: center; margin-top: -10px; }

/* Once launched, the "Pre-launch" kicker badge is no longer accurate */
body[data-launched="true"] .view-countdown .hero-badge { display: none; }
.countdown-launched { text-align: center; }
.launched-tag { color: var(--brand-teal); }
.launched-line { font-size: 1.4rem; font-weight: 700; }

/* Waitlist form */
.waitlist { width: 100%; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.input-row { display: flex; gap: var(--sp-2); }
.input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--sp-4);
  background: var(--bg-surface-2); border: 1px solid var(--border-default);
  border-radius: var(--r-pill); color: var(--text-primary); font-size: 0.9375rem;
  transition: border-color var(--m-fast), box-shadow var(--m-fast);
}
.input::placeholder { color: var(--text-disabled); }
.input:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-orange) 22%, transparent); border-color: var(--brand-orange); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 22%, transparent); }
.waitlist .btn-primary { flex: none; }

.field-msg { min-height: 1.2em; font-size: 0.8125rem; font-weight: 600; text-align: start; padding-inline-start: var(--sp-4); }
.field-msg.is-error { color: var(--error); }
.field-msg.is-success { color: var(--success); }
.field-msg.is-info { color: var(--text-secondary); }
.field-msg.is-retry { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* never rely on color alone — prefix glyphs added via ::before on state */
.field-msg.is-error::before { content: "⚠ "; }
.field-msg.is-success::before { content: "✓ "; }

/* Trust strip */
.trust { display: flex; flex-direction: column; gap: var(--sp-1); align-items: center; }
.trust-row { color: var(--text-secondary); display: inline-flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.trust-dot { color: var(--text-disabled); }
.trust-sub { font-size: 0.875rem; color: var(--text-secondary); }
.view-link a { color: var(--brand-orange); font-weight: 700; }
.view-link a:hover { color: var(--brand-orange-strong); }

/* ---------- WELCOME VIEW ---------- */
.welcome-wrap { position: relative; z-index: 1; max-width: 720px; margin-inline: auto;
  padding-block: var(--sp-16); text-align: center; display: flex; flex-direction: column; gap: var(--sp-5); align-items: center; }
.success-mark { width: 56px; height: 56px; color: var(--success); }
.sm-circle { stroke: var(--success); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.sm-check { stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
@media (prefers-reduced-motion: no-preference) {
  .success-mark.play .sm-circle { animation: draw .5s ease-out forwards; }
  .success-mark.play .sm-check { animation: draw .35s .42s ease-out forwards; }
}
@media (prefers-reduced-motion: reduce) { .sm-circle, .sm-check { stroke-dashoffset: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.welcome-title { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.welcome-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 44ch; }
.welcome-email { color: var(--text-secondary); display: flex; gap: var(--sp-2); align-items: baseline; flex-wrap: wrap; justify-content: center; }
.welcome-email strong { color: var(--text-primary); }

.next-steps { width: 100%; text-align: start; margin-top: var(--sp-4); }
.steps-title { text-align: center; margin-bottom: var(--sp-4); }
.steps { display: grid; gap: var(--sp-3); }
.step-card { display: flex; gap: var(--sp-4); align-items: flex-start; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: var(--brand-orange); color: var(--on-accent); font-weight: 700; font-size: 1rem; }
.step-card p { color: var(--text-secondary); font-size: 0.9375rem; }

.referral { width: 100%; text-align: start; }
.ref-sub { color: var(--text-secondary); margin: var(--sp-1) 0 var(--sp-4); font-size: 0.9375rem; }
.ref-code-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.ref-code { font-size: 1.05rem; font-weight: 700; letter-spacing: .05em; color: var(--brand-orange);
  background: var(--bg-surface-2); border: 1px dashed var(--brand-orange); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-5); flex: 1; min-width: 160px; text-align: center; }

.welcome-stores { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.stores-cap { color: var(--text-secondary); }
.welcome-foot { display: flex; flex-direction: column; gap: var(--sp-4); align-items: center; margin-top: var(--sp-2); }
.link-back { color: var(--brand-orange); font-weight: 700; }
.reset-row { margin-top: var(--sp-2); }

/* ---------- STORE BADGES ---------- */
.store-badges { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  min-height: 52px; padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-md); border: 1px solid var(--border-default);
  background: var(--text-primary); color: var(--bg-app);
  transition: transform var(--m-fast), box-shadow var(--m-fast), filter var(--m-fast);
  position: relative;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 26px; height: 26px; flex: none; color: currentColor; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-badge .sb-top { font-size: .625rem; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.store-badge .sb-main { font-size: 1rem; font-weight: 700; }
.store-badge.is-disabled { cursor: not-allowed; opacity: .55; pointer-events: none; }
.store-badge .sb-soon { position: absolute; top: -8px; inset-inline-end: 8px; background: var(--brand-orange);
  color: var(--on-accent); font-size: .5rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--r-pill); }
@media (prefers-reduced-motion: reduce) { .store-badge:hover { transform: none; } }

/* ---------- SOCIAL LINKS ---------- */
.socials { display: inline-flex; gap: var(--sp-2); }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border-default); background: var(--bg-surface-2); color: var(--text-secondary);
  transition: color var(--m-fast), border-color var(--m-fast); }
.social-link:hover { color: var(--brand-orange); border-color: var(--brand-orange); }
.social-link svg { width: 18px; height: 18px; }

/* ---------- SECTIONS (marketing) ---------- */
.section { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 110px); }
.section-alt { background: var(--bg-surface); }
.section-kicker { color: var(--brand-orange); margin-bottom: var(--sp-2); }
.section-title { margin-bottom: var(--sp-8); max-width: 22ch; }

/* Intro hero */
.intro-hero { position: relative; padding-block: clamp(64px, 11vw, 130px) clamp(40px, 7vw, 80px); overflow: hidden; }
.intro-hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.intro-title { font-size: clamp(2.4rem, 1.4rem + 5vw, 4.2rem); max-width: 16ch; }
.hero-ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* Services grid */
.svc-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 620px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card { --accent: var(--brand-orange); display: flex; flex-direction: column; gap: var(--sp-2);
  border-top: 3px solid var(--accent); transition: transform var(--m-standard), box-shadow var(--m-standard); }
.svc-card[data-accent="teal"] { --accent: var(--brand-teal); }
.svc-card[data-accent="purple"] { --accent: var(--brand-purple); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { .svc-card:hover { transform: none; } }
.svc-ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); margin-bottom: var(--sp-2); }
.svc-ico svg { width: 24px; height: 24px; }
.svc-lead { color: var(--text-secondary); font-weight: 600; }
.svc-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
.svc-list li { position: relative; padding-inline-start: var(--sp-5); color: var(--text-secondary); font-size: 0.9375rem; }
.svc-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Coverage */
.coverage-wrap { display: grid; gap: var(--sp-10); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .coverage-wrap { grid-template-columns: 1.1fr .9fr; } }
.coverage-stat { font-size: 1.5rem; font-weight: 700; margin: var(--sp-3) 0 var(--sp-5); display: flex; align-items: baseline; gap: var(--sp-2); }
.coverage-stat .mono { color: var(--brand-orange); font-size: 2.4rem; }
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4); }
.region-list li { position: relative; padding-inline-start: var(--sp-5); color: var(--text-secondary); font-weight: 600; }
.region-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-teal) 18%, transparent); }

/* CSS globe */
.coverage-globe { display: flex; justify-content: center; }
.globe { width: min(340px, 80vw); aspect-ratio: 1; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--brand-orange) 60%, transparent), transparent 55%),
    radial-gradient(circle at 70% 75%, color-mix(in srgb, var(--brand-purple) 40%, transparent), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border-default); box-shadow: var(--shadow-lg), inset 0 0 60px color-mix(in srgb, var(--brand-orange) 18%, transparent);
  overflow: hidden; }
.globe::before, .globe::after { content: ""; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand-orange) 30%, transparent); }
.globe::before { inset: 6%; border-style: dashed; }
.globe::after { inset: 24%; }
@media (prefers-reduced-motion: no-preference) {
  .globe::before { animation: spinSlow 40s linear infinite; }
  .globe::after { animation: spinSlow 28s linear infinite reverse; }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* How it works */
.how-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-step { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); position: relative; }
.how-step .step-num { margin-bottom: var(--sp-2); }
.how-step p { color: var(--text-secondary); }

/* Why */
.why-wrap { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 880px) { .why-wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.why-lead { color: var(--text-secondary); font-size: 1.05rem; }
.why-list { display: grid; gap: var(--sp-3); }
.why-list li { display: flex; gap: var(--sp-3); align-items: flex-start; font-weight: 600; }
.why-tick { color: var(--brand-teal); flex: none; }
.why-tick svg { width: 22px; height: 22px; }

/* Pricing */
.price-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: var(--bg-surface-2); border: 1px solid var(--border-default); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.pt-btn { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-5); min-height: 40px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 0.875rem; color: var(--text-secondary); transition: color var(--m-fast), background-color var(--m-fast); }
.pt-btn.is-active { background: var(--brand-orange); color: var(--on-accent); }
.save-badge { font-size: .5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--brand-teal); color: var(--on-accent); padding: 2px 6px; border-radius: var(--r-pill); }
.pt-btn.is-active .save-badge { background: var(--on-accent); color: var(--brand-orange); }

.price-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: flex; flex-direction: column; gap: var(--sp-2); position: relative; }
.price-card.featured { border-color: var(--brand-orange); box-shadow: var(--shadow-md); }
.price-pop { position: absolute; top: calc(-1 * var(--sp-3)); inset-inline-start: var(--sp-5); }
.price-amt { display: flex; align-items: baseline; gap: var(--sp-1); margin-top: var(--sp-2); direction: ltr; justify-content: flex-start; }
[dir="rtl"] .price-amt { justify-content: flex-end; }
.price-num { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.price-per { color: var(--text-secondary); font-weight: 600; }
.price-note { color: var(--text-secondary); font-size: 0.9375rem; }
.price-disclaimer { color: var(--text-secondary); margin-top: var(--sp-6); }

/* FAQ accordion */
.faq-wrap { max-width: 780px; }
.accordion { display: flex; flex-direction: column; gap: var(--sp-2); }
.acc-item { background: var(--bg-app); border: 1px solid var(--border-default); border-radius: var(--r-md); overflow: hidden; }
.section-alt .acc-item { background: var(--bg-app); }
.acc-trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%;
  padding: var(--sp-4) var(--sp-5); text-align: start; font-weight: 700; font-size: 1rem; min-height: 56px; }
.acc-trigger:hover { color: var(--brand-orange); }
.acc-icon { color: var(--text-secondary); flex: none; transition: transform var(--m-standard); }
.acc-icon svg { width: 20px; height: 20px; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.acc-panel { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-secondary); }
.acc-panel p { max-width: 64ch; }

/* CTA band */
.cta-band { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 110px);
  background: linear-gradient(135deg, var(--brand-orange), color-mix(in srgb, var(--brand-orange) 60%, #FF9A4D));
  color: var(--on-accent); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.cta-title { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); color: var(--on-accent); max-width: 18ch; }
.cta-sub { color: color-mix(in srgb, var(--on-accent) 88%, transparent); font-size: 1.1rem; max-width: 46ch; }
.cta-band .btn-primary { background: var(--on-accent); color: var(--brand-orange); box-shadow: var(--shadow-lg); }
.cta-band .btn-primary:hover { background: var(--on-accent); filter: brightness(.96); }
.cta-stores { margin-top: var(--sp-4); }
.cta-band .stores-cap { color: color-mix(in srgb, var(--on-accent) 85%, transparent); }
/* On the orange band, store badges invert to a light chip */
.cta-band .store-badge { background: var(--on-accent); color: var(--text-primary); border-color: transparent; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-default); padding-block: var(--sp-16) var(--sp-8); position: relative; z-index: 1; }
.footer-inner { display: grid; gap: var(--sp-10); }
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-tag { color: var(--text-secondary); font-size: 1.1rem; }
.footer-cols { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .footer-inner { grid-template-columns: 1.4fr 2fr; align-items: start; } }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-h { color: var(--text-secondary); margin-bottom: var(--sp-1); }
.footer-col a { color: var(--text-secondary); font-weight: 600; transition: color var(--m-fast); }
.footer-col a:hover { color: var(--brand-orange); }
.footer-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-default); padding-top: var(--sp-6); }
.footer-copy { color: var(--text-secondary); font-size: 0.875rem; }
.footer-toggles { display: flex; gap: var(--sp-2); }

/* ---------- TOAST ---------- */
.toast-region { position: fixed; inset-block-end: var(--sp-6); inset-inline: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none; padding-inline: var(--sp-4); }
.toast { pointer-events: auto; display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--text-primary); color: var(--bg-app); padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.9375rem;
  max-width: 90vw; }
.toast .t-ico { color: var(--success); }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toastIn var(--m-standard); }
  .toast.out { animation: toastOut var(--m-fast) forwards; }
}
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(14px); opacity: 0; } }

/* ---------- SCROLL REVEAL ---------- */
.reveal, [data-reveal] { will-change: opacity, transform; }
:root.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--m-slow), transform var(--m-slow); }
:root.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  :root.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}
/* No-JS: nothing hidden */
:root:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* No-JS: countdown grid stays hidden, fallback text shows (already default).
   When JS runs it reveals the grid + hides fallback via [hidden] toggling. */

/* ---------- RTL niceties ---------- */
[dir="rtl"] .acc-trigger { text-align: start; }
[dir="rtl"] .sb-text { text-align: start; }
/* Directional chevrons/arrows flip via logical handling in icons; the accordion
   chevron is vertical so it is unaffected. */

/* ---------- REDUCED MOTION GLOBAL FALLBACK ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
