/* ═══════════════════════════════════════════════════════════════
   sms.rip — home.css
   Dark-first, with a separately designed light mode.
   Logical properties throughout (ships in Arabic + Farsi).
   No external requests: system fonts, inline SVG, CSS-drawn flags.
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Tokens — dark (default) ────────────────────────────────
   Depth in dark mode comes from luminance layering: each surface is
   a step lighter than the one behind it, plus a hairline of light. */
:root {
  color-scheme: dark;

  --bg:            #070b10;
  --bg-sunk:       #05080c;
  --surface-1:     #0d141c;
  --surface-2:     #121c26;
  --surface-3:     #18242f;
  --line:          #223140;
  --line-soft:     #16212c;

  --text:          #e9eff5;
  --text-2:        #9fb0c0;
  --text-3:        #6d8092;

  --accent:        #2fe3a0;
  --accent-hi:     #5cf0b8;
  --accent-ink:    #04180f;
  --accent-wash:   rgba(47, 227, 160, 0.11);
  --accent-line:   rgba(47, 227, 160, 0.28);

  --violet:        #8b5cf6;
  --cyan:          #22d3ee;
  --warn:          #f5a524;
  --danger:        #ff5f5f;

  /* Elevation: hairline + cast shadow. On dark, the hairline does most
     of the work; the shadow just separates planes. */
  --e1: 0 0 0 1px var(--line-soft);
  --e2: 0 0 0 1px var(--line-soft), 0 2px 8px rgba(0, 0, 0, 0.4);
  --e3: 0 0 0 1px var(--line), 0 14px 40px rgba(0, 0, 0, 0.55);
  --e4: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.65);
  --glow-accent: 0 6px 26px rgba(47, 227, 160, 0.26);

  --masthead-bg: rgba(7, 11, 16, 0.72);
  --aurora-op-1: 0.16;
  --aurora-op-2: 0.11;
  --aurora-op-3: 0.09;
  --flag-rest: saturate(0.42) brightness(0.86);

  /* Type. System stack only — no webfont may be requested. */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* Type scale — 1.25 ratio, fluid only where it earns it (hero, band
     headings). Body sizes are fixed so translations stay predictable. */
  --t-hero: clamp(2.15rem, 4.4vw + 0.9rem, 4.1rem);
  --t-h2:   clamp(1.55rem, 1.9vw + 0.85rem, 2.5rem);
  --t-h3:   1.0625rem;
  --t-body: 0.9375rem;
  --t-sm:   0.8125rem;
  --t-xs:   0.6875rem;

  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* Springy but engineered — overshoots slightly, never bounces. */
  --spring: cubic-bezier(0.16, 0.9, 0.24, 1.02);
  --ease:   cubic-bezier(0.32, 0.72, 0.24, 1);
}

/* ─── 2. Tokens — light ─────────────────────────────────────────
   Deliberately not an inversion. Glass, glow and luminance layering
   all collapse on white, so light mode gets: a tinted (never pure
   white) backdrop, solid surfaces that sit ABOVE it, and real
   two-part shadows — a tight contact shadow plus a soft ambient one.
   Accent darkens to hold AA contrast on light surfaces. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg:          #eceff4;
    --bg-sunk:     #e4e9ef;
    --surface-1:   #ffffff;
    --surface-2:   #ffffff;
    --surface-3:   #f4f7fa;
    --line:        #d3dce5;
    --line-soft:   #e3e9ef;

    --text:        #0d1620;
    --text-2:      #4b5c6e;
    --text-3:      #6b7c8d;

    --accent:      #0b7f56;
    --accent-hi:   #096b48;
    --accent-ink:  #ffffff;
    --accent-wash: rgba(11, 127, 86, 0.09);
    --accent-line: rgba(11, 127, 86, 0.24);

    --violet:      #6d3fd4;
    --cyan:        #0e7f96;
    --warn:        #a35a00;
    --danger:      #c22f2f;

    --e1: 0 0 0 1px var(--line-soft);
    --e2: 0 1px 2px rgba(13, 22, 32, 0.07), 0 4px 12px rgba(13, 22, 32, 0.06), 0 0 0 1px var(--line-soft);
    --e3: 0 1px 2px rgba(13, 22, 32, 0.08), 0 10px 28px rgba(13, 22, 32, 0.1), 0 0 0 1px var(--line-soft);
    --e4: 0 2px 4px rgba(13, 22, 32, 0.08), 0 24px 60px rgba(13, 22, 32, 0.16), 0 0 0 1px var(--line-soft);
    --glow-accent: 0 2px 4px rgba(11, 127, 86, 0.2), 0 10px 24px rgba(11, 127, 86, 0.22);

    --masthead-bg: rgba(236, 239, 244, 0.86);
    --aurora-op-1: 0.1;
    --aurora-op-2: 0.07;
    --aurora-op-3: 0.06;
    --flag-rest: saturate(0.5) brightness(0.98);
  }
}

/* Manual override, for QA and a future in-page toggle */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eceff4; --bg-sunk: #e4e9ef;
  --surface-1: #ffffff; --surface-2: #ffffff; --surface-3: #f4f7fa;
  --line: #d3dce5; --line-soft: #e3e9ef;
  --text: #0d1620; --text-2: #4b5c6e; --text-3: #6b7c8d;
  --accent: #0b7f56; --accent-hi: #096b48; --accent-ink: #ffffff;
  --accent-wash: rgba(11, 127, 86, 0.09); --accent-line: rgba(11, 127, 86, 0.24);
  --violet: #6d3fd4; --cyan: #0e7f96; --warn: #a35a00; --danger: #c22f2f;
  --e1: 0 0 0 1px var(--line-soft);
  --e2: 0 1px 2px rgba(13, 22, 32, 0.07), 0 4px 12px rgba(13, 22, 32, 0.06), 0 0 0 1px var(--line-soft);
  --e3: 0 1px 2px rgba(13, 22, 32, 0.08), 0 10px 28px rgba(13, 22, 32, 0.1), 0 0 0 1px var(--line-soft);
  --e4: 0 2px 4px rgba(13, 22, 32, 0.08), 0 24px 60px rgba(13, 22, 32, 0.16), 0 0 0 1px var(--line-soft);
  --glow-accent: 0 2px 4px rgba(11, 127, 86, 0.2), 0 10px 24px rgba(11, 127, 86, 0.22);
  --masthead-bg: rgba(236, 239, 244, 0.86);
  --aurora-op-1: 0.1; --aurora-op-2: 0.07; --aurora-op-3: 0.06;
  --flag-rest: saturate(0.5) brightness(0.98);
}

/* ─── 3. Base ───────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px; /* base never below 16px — iOS zooms inputs otherwise */
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
svg { display: block; }

/* Tabular, precise numerals — this is a numbers product */
.mono, .fact-n, .rp-number, .rp-ring-clock, .rp-code-big, .flagcard-code, .step-n, .coverage-n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  inset-block-start: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--surface-1);
  color: var(--text);
  box-shadow: var(--e3);
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.skip:focus { inset-inline-start: 12px; }

.shell {
  inline-size: 100%;
  max-inline-size: 1220px;
  margin-inline: auto;
  padding-inline: clamp(14px, 3.6vw, 40px);
}

/* ─── 4. Ambient backdrop ───────────────────────────────────────
   Three blurred blooms on coprime durations (43s/61s/79s) so the
   composite never visibly repeats. Fixed and inert. */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); }
.aurora span:nth-child(1) {
  inline-size: 52vmax; block-size: 52vmax;
  inset-block-start: -20vmax; inset-inline-start: -14vmax;
  background: var(--accent); opacity: var(--aurora-op-1);
  animation: drift-a 43s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  inline-size: 40vmax; block-size: 40vmax;
  inset-block-start: 30vh; inset-inline-end: -16vmax;
  background: var(--violet); opacity: var(--aurora-op-2);
  animation: drift-b 61s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  inline-size: 34vmax; block-size: 34vmax;
  inset-block-end: -14vmax; inset-inline-start: 26vw;
  background: var(--cyan); opacity: var(--aurora-op-3);
  animation: drift-c 79s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(10vw, 8vh, 0) scale(1.18); } }
@keyframes drift-b { to { transform: translate3d(-12vw, -10vh, 0) scale(0.86); } }
@keyframes drift-c { to { transform: translate3d(8vw, -7vh, 0) scale(1.24); } }

/* ─── 5. Masthead ───────────────────────────────────────────────*/
.masthead {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: var(--masthead-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-block-end: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.masthead.is-scrolled { border-block-end-color: var(--line-soft); }
.masthead-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  min-block-size: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { inline-size: 28px; block-size: 28px; color: var(--accent); flex: none; }
.bm-ring {
  stroke-dashoffset: 0;
  animation: bm-draw 8s var(--ease) -5.4s infinite;
}
@keyframes bm-draw {
  0% { stroke-dashoffset: 75.4; }
  34% { stroke-dashoffset: 0; }
  88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 75.4; }
}
.bm-slot { animation: bm-slot 8s var(--ease) -5.4s infinite; transform-origin: 16px 16px; }
@keyframes bm-slot {
  0%, 26% { opacity: 0.25; transform: scale(0.82); }
  38%, 86% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.25; transform: scale(0.82); }
}
.brand:hover .bm-ring, .brand:hover .bm-slot { animation-duration: 2.4s; }
.brand-word { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.03em; }
.brand-tld { color: var(--text-3); }

.masthead-nav { display: none; gap: 2px; margin-inline-end: auto; }
@media (min-width: 940px) { .masthead-nav { display: flex; } }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 12px;
  color: var(--text-2);
  font-size: var(--t-sm);
  font-weight: 550;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 12px;
  block-size: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--spring);
}
[dir="rtl"] .nav-link::after { transform-origin: 100% 50%; }
.nav-link:hover::after { transform: scaleX(1); }
.masthead-end { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
@media (min-width: 940px) { .masthead-end { margin-inline-start: 0; } }

/* ─── 6. Buttons ────────────────────────────────────────────────*/
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 48px;
  padding-inline: 24px;
  border-radius: var(--r-md);
  font-size: var(--t-body);
  font-weight: 650;
  letter-spacing: -0.005em;
  overflow: hidden;
  transition: transform 0.2s var(--spring), box-shadow 0.24s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-sm { min-block-size: 44px; padding-inline: 16px; font-size: var(--t-sm); }
.btn-lg { min-block-size: 52px; padding-inline: 28px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-accent); }
.btn-primary:hover { color: var(--accent-ink); background: var(--accent-hi); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
/* Light sweeps up from the bottom edge — stays inside the clip box */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 180% at 50% 125%, rgba(255, 255, 255, 0.34), transparent 62%);
  opacity: 0;
  transform: translateY(34%);
  transition: opacity 0.3s var(--ease), transform 0.5s var(--spring);
}
.btn-primary:hover::after { opacity: 1; transform: none; }
.btn-quiet { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { color: var(--text); background: var(--surface-1); box-shadow: inset 0 0 0 1.5px var(--accent-line); transform: translateY(-2px); }

/* ─── 7. Language picker ────────────────────────────────────────
   <details>-based, so it opens with zero JS; script only adds
   outside-click, Escape and arrow-key handling. */
.picker { position: relative; flex: none; }
.picker-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  min-block-size: 44px;
  padding-inline: 10px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: var(--t-sm);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.picker-btn::-webkit-details-marker { display: none; }
.picker-btn:hover, .picker[open] .picker-btn { color: var(--text); background: var(--surface-2); }
.picker-globe { inline-size: 18px; block-size: 18px; flex: none; }
.picker-code { font-family: var(--mono); letter-spacing: 0.02em; }
.picker-caret { inline-size: 13px; block-size: 13px; flex: none; opacity: 0.7; transition: transform 0.26s var(--spring); }
.picker[open] .picker-caret { transform: rotate(180deg); }
.picker-panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 120;
  inline-size: 268px;
  max-block-size: min(66vh, 440px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: var(--surface-1);
  border-radius: var(--r-lg);
  box-shadow: var(--e4);
  animation: pop-in 0.22s var(--spring);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.picker-title {
  padding: 6px 10px 8px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.picker-list { display: grid; gap: 1px; }
.picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--t-body);
  transition: background-color 0.16s var(--ease);
}
.picker-item:hover { background: var(--surface-3); color: var(--text); }
.picker-native {
  flex: 1;
  min-inline-size: 0;
  font-weight: 600;
  text-align: start;
  unicode-bidi: isolate;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-en { flex: none; color: var(--text-3); font-size: var(--t-sm); }
.picker-check { inline-size: 15px; block-size: 15px; flex: none; color: var(--accent); }
.picker-item.is-current { background: var(--accent-wash); }
.picker-item.is-current .picker-native { color: var(--accent); }
.picker-item.is-current .picker-en { display: none; }
@media (max-width: 430px) {
  .picker-panel { position: fixed; inset-block-start: 64px; inset-inline: 10px; inline-size: auto; }
  .picker-en { display: none; }
}

/* ─── 8. Hero ───────────────────────────────────────────────────*/
.hero {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 4.5vw, 68px) clamp(34px, 5vw, 76px);
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
/* The ring motif at its smallest: a conic sliver that sweeps */
.eyebrow-ring {
  inline-size: 13px;
  block-size: 13px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--accent) 0 78%, transparent 78% 100%);
  mask: radial-gradient(closest-side, transparent 54%, #000 56%);
  -webkit-mask: radial-gradient(closest-side, transparent 54%, #000 56%);
  animation: ring-sweep 3.4s linear infinite;
}
@keyframes ring-sweep { to { transform: rotate(360deg); } }

.hero-title {
  margin-block-start: 20px;
  font-size: var(--t-hero);
  line-height: 1.03;
  letter-spacing: -0.042em;
  font-weight: 800;
  text-wrap: balance;
}
.hero-lede {
  margin-block-start: 18px;
  max-inline-size: 33em;
  color: var(--text-2);
  font-size: clamp(1rem, 0.45vw + 0.92rem, 1.1rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3.5vw, 40px);
  margin-block-start: 32px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line-soft);
}
.fact-n {
  font-size: clamp(1.3rem, 1.4vw + 0.9rem, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.fact-plus { color: var(--accent); }
.fact-l { color: var(--text-3); font-size: var(--t-sm); margin-block-start: 2px; }

/* ─── 9. Hero replay ────────────────────────────────────────────
   Authored in its final state. JS adds .is-live and drives the
   sequence through state classes; without JS the panel simply reads
   as a finished, successful verification. */
.replay { position: relative; }
.replay-frame {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface-1);
  box-shadow: var(--e4);
  overflow: hidden;
  transform: perspective(1200px);
  transition: transform 0.5s var(--ease);
}
/* A light pulse travelling along the panel's top edge — reads as "this
   surface is live" and costs one compositor-only transform. */
.replay-frame::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 2;
  inline-size: 36%;
  block-size: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.9;
  animation: edge-sweep 9s var(--ease) infinite;
  pointer-events: none;
}
@keyframes edge-sweep {
  0% { transform: translate3d(-110%, 0, 0); }
  58%, 100% { transform: translate3d(290%, 0, 0); }
}

.replay-chrome {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: var(--surface-3);
  border-block-end: 1px solid var(--line-soft);
}
.chrome-dot { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--line); flex: none; }
.chrome-label { flex: 1; font-family: var(--mono); font-size: var(--t-sm); color: var(--text-3); }
.chrome-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.chrome-live-dot {
  inline-size: 6px; block-size: 6px; border-radius: 50%;
  background: var(--accent);
  animation: blip 2.6s ease-in-out infinite;
}
@keyframes blip { 50% { opacity: 0.3; transform: scale(0.7); } }

.replay-body { display: grid; gap: 13px; padding: clamp(15px, 3vw, 22px); }

.rp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: var(--e1);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--spring);
}
.rp-chip-ic { inline-size: 15px; block-size: 15px; color: var(--accent); flex: none; }
.rp-cost { margin-inline-start: auto; font-family: var(--mono); font-size: var(--t-sm); color: var(--text-3); }

.rp-numberbox {
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  box-shadow: var(--e1);
}
.rp-numberbox-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rp-label { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.rp-copy { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.rp-number {
  margin-block-start: 6px;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  direction: ltr; /* phone numbers are always LTR, even in Arabic */
  text-align: start;
  min-block-size: 1.4em;
}
/* Caret that blinks while digits are being issued */
.rp-number::after {
  content: "";
  display: inline-block;
  inline-size: 2px;
  block-size: 1em;
  margin-inline-start: 3px;
  vertical-align: -0.16em;
  background: var(--accent);
  opacity: 0;
}
.replay.is-live.rp-typing .rp-number::after { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Countdown ring — the brand motif, full size */
.rp-timer { display: flex; align-items: center; gap: 15px; }
.rp-ring-wrap { position: relative; flex: none; inline-size: 72px; block-size: 72px; }
.rp-ring { inline-size: 100%; block-size: 100%; transform: rotate(-90deg); }
[dir="rtl"] .rp-ring { transform: rotate(-90deg) scaleY(-1); }
.rp-ring-track { fill: none; stroke: var(--line); stroke-width: 5; }
.rp-ring-fill {
  fill: none;
  stroke: var(--ring-color, var(--accent));
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 195;
  stroke-dashoffset: 0;
  transition: stroke 0.6s linear;
}
.rp-ring-clock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text);
  direction: ltr;
}
.rp-state { font-size: var(--t-body); font-weight: 650; color: var(--accent); }
/* The panel's default, no-JS state is the successful one — "Code received".
   The transient waiting label is only surfaced while the replay is running. */
.rp-state-wait { display: none; }
.replay.is-live.rp-waiting .rp-state-wait { display: inline; color: var(--text-2); }
.replay.is-live.rp-waiting .rp-state-done { display: none; }
.rp-hint { font-size: var(--t-sm); color: var(--text-3); margin-block-start: 2px; }

/* Arrived SMS */
.rp-sms {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  border-inline-start: 3px solid var(--accent);
}
.rp-sms-from {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rp-sms-text { font-size: var(--t-sm); color: var(--text-2); margin-block-start: 5px; }
.rp-sms-code { font-family: var(--mono); color: var(--text); }
.rp-code-big {
  margin-block-start: 8px;
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  color: var(--accent);
  direction: ltr;
  text-align: start;
}
.rp-code-copy {
  margin-block-start: 8px;
  min-block-size: 44px;
  inline-size: 100%;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent);
  font-size: var(--t-sm);
  font-weight: 650;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--spring);
}
.rp-code-copy:hover { background: var(--accent); color: var(--accent-ink); }
.rp-code-copy:active { transform: scale(0.99); }
.rp-code-copy.is-copied { background: var(--accent); color: var(--accent-ink); }

.replay-caption { margin-block-start: 12px; text-align: center; font-size: var(--t-sm); color: var(--text-3); }

/* ── Live sequence. Only opacity/transform are animated. ── */
.replay.is-live .rp-numberbox,
.replay.is-live .rp-timer,
.replay.is-live .rp-sms { transition: opacity 0.5s var(--ease), transform 0.5s var(--spring); }

.replay.is-live.rp-select .rp-numberbox,
.replay.is-live.rp-select .rp-timer,
.replay.is-live.rp-select .rp-sms,
.replay.is-live.rp-issuing .rp-timer,
.replay.is-live.rp-issuing .rp-sms,
.replay.is-live.rp-typing .rp-sms,
.replay.is-live.rp-waiting .rp-sms { opacity: 0; transform: translateY(10px); pointer-events: none; }

.replay.is-live.rp-select .rp-chip { transform: translateY(3px); opacity: 0.5; }
.replay.is-live.rp-select .rp-chip-svc { transition-delay: 0.1s; }
.replay.is-live.rp-select .rp-chip-geo { transition-delay: 0.3s; }
.replay.is-live.rp-issuing .rp-chip,
.replay.is-live.rp-typing .rp-chip { box-shadow: inset 0 0 0 1px var(--accent-line); }

.replay.is-live.rp-typing .rp-copy,
.replay.is-live.rp-issuing .rp-copy,
.replay.is-live.rp-select .rp-copy { opacity: 0; }
.rp-copy { transition: opacity 0.3s var(--ease); }

.replay.is-live.rp-waiting .rp-state { animation: pulse-soft 1.9s ease-in-out infinite; }
@keyframes pulse-soft { 50% { opacity: 0.45; } }
.replay.is-live.rp-landed .rp-sms { animation: land 0.62s var(--spring); }
@keyframes land { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.replay.is-live.rp-landed .rp-code-big { animation: code-pop 0.7s var(--spring) 0.1s backwards; }
@keyframes code-pop { from { opacity: 0; transform: scale(0.82); } }
.replay.is-live.rp-landed .rp-ring-fill { animation: ring-complete 0.5s var(--ease); }
@keyframes ring-complete { from { stroke-dashoffset: var(--ring-at, 90); } to { stroke-dashoffset: 0; } }
.replay.is-live.rp-resolve .replay-body { animation: settle 1s var(--ease) forwards; }
@keyframes settle { to { opacity: 0.55; } }

/* ─── 10. Coverage marquee ──────────────────────────────────────*/
.coverage { padding-block: clamp(26px, 3.6vw, 48px); }
.coverage-head { max-inline-size: 46em; }
.coverage-h {
  font-size: clamp(1.15rem, 1.1vw + 0.85rem, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: pretty;
}
.coverage-n { color: var(--accent); }
.coverage-sub { margin-block-start: 8px; color: var(--text-3); font-size: var(--t-body); text-wrap: pretty; }

.marquee {
  display: grid;
  margin-block-start: 22px;
  /* Edges fade to transparent so cards enter and leave rather than clip */
  -webkit-mask: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 10px;
  inline-size: max-content;
  will-change: transform;
  /* Direction and speed are set per row by JS after it clones the set;
     mismatched durations keep the two rows from ever syncing up. */
}
.marquee-row[data-dir="fwd"] .marquee-track.is-rolling { animation: roll-fwd var(--dur, 64s) linear infinite; }
.marquee-row[data-dir="rev"] .marquee-track.is-rolling { animation: roll-rev var(--dur, 79s) linear infinite; }
@keyframes roll-fwd { to { transform: translate3d(-50%, 0, 0); } }
@keyframes roll-rev { from { transform: translate3d(-50%, 0, 0); } to { transform: none; } }
.marquee.is-paused .marquee-track { animation-play-state: paused; }

.flagcard {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 11px 8px 9px;
  min-inline-size: 74px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  box-shadow: var(--e1);
  cursor: default;
  transition: transform 0.28s var(--spring), box-shadow 0.28s var(--ease);
}
.flag {
  inline-size: 34px;
  block-size: 23px;
  border-radius: 4px;
  flex: none;
  background: var(--flag, var(--surface-3));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  filter: var(--flag-rest);
  transition: filter 0.3s var(--ease), transform 0.28s var(--spring);
}
.flagcard-code { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); transition: color 0.24s var(--ease); }
.flagcard-name {
  position: absolute;
  inset-block-end: calc(100% + 7px);
  inset-inline-start: 50%;
  z-index: 3;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  box-shadow: var(--e3);
  color: var(--text);
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 5px) scale(0.94);
  transform-origin: 50% 100%;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.26s var(--spring);
}
.flagcard:hover, .flagcard.is-touched { transform: translateY(-5px); box-shadow: var(--e3); }
.flagcard:hover .flag, .flagcard.is-touched .flag { filter: none; transform: scale(1.08); }
.flagcard:hover .flagcard-code, .flagcard.is-touched .flagcard-code { color: var(--text); }
.flagcard:hover .flagcard-name,
.flagcard.is-touched .flagcard-name { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Flags drawn as CSS band gradients — no image requests, and honest
   about being a simplified field rather than a traced coat of arms.
   The ISO code beside each one is what actually identifies it. */
.flag-pl { --flag: linear-gradient(#fff 0 50%, #dc143c 50% 100%); }
.flag-de { --flag: linear-gradient(#111 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6% 100%); }
.flag-fr { --flag: linear-gradient(90deg, #002395 0 33.3%, #fff 33.3% 66.6%, #ed2939 66.6% 100%); }
.flag-nl { --flag: linear-gradient(#ae1c28 0 33.3%, #fff 33.3% 66.6%, #21468b 66.6% 100%); }
.flag-it { --flag: linear-gradient(90deg, #008c45 0 33.3%, #f4f5f0 33.3% 66.6%, #cd212a 66.6% 100%); }
.flag-es { --flag: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%); }
.flag-ua { --flag: linear-gradient(#0057b7 0 50%, #ffd700 50% 100%); }
.flag-ro { --flag: linear-gradient(90deg, #002b7f 0 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6% 100%); }
.flag-be { --flag: linear-gradient(90deg, #111 0 33.3%, #fdda24 33.3% 66.6%, #ef3340 66.6% 100%); }
.flag-at { --flag: linear-gradient(#ed2939 0 33.3%, #fff 33.3% 66.6%, #ed2939 66.6% 100%); }
.flag-ie { --flag: linear-gradient(90deg, #169b62 0 33.3%, #fff 33.3% 66.6%, #ff883e 66.6% 100%); }
.flag-se { --flag: linear-gradient(#006aa7 0 40%, #fecc00 40% 60%, #006aa7 60% 100%), linear-gradient(90deg, #006aa7 0 28%, #fecc00 28% 44%, #006aa7 44% 100%); --flag: #006aa7 linear-gradient(90deg, transparent 0 28%, #fecc00 28% 44%, transparent 44% 100%); }
.flag-id { --flag: linear-gradient(#ce1126 0 50%, #fff 50% 100%); }
.flag-in { --flag: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6% 100%); }
.flag-ng { --flag: linear-gradient(90deg, #008751 0 33.3%, #fff 33.3% 66.6%, #008751 66.6% 100%); }
.flag-th { --flag: linear-gradient(#a51931 0 16.6%, #f4f5f8 16.6% 33.3%, #2d2a4a 33.3% 66.6%, #f4f5f8 66.6% 83.3%, #a51931 83.3% 100%); }
.flag-pe { --flag: linear-gradient(90deg, #d91023 0 33.3%, #fff 33.3% 66.6%, #d91023 66.6% 100%); }
.flag-co { --flag: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%); }
.flag-ar { --flag: linear-gradient(#74acdf 0 33.3%, #fff 33.3% 66.6%, #74acdf 66.6% 100%); }
.flag-bo { --flag: linear-gradient(#d52b1e 0 33.3%, #f9e300 33.3% 66.6%, #007934 66.6% 100%); }
.flag-hu { --flag: linear-gradient(#ce2939 0 33.3%, #fff 33.3% 66.6%, #477050 66.6% 100%); }
.flag-bg { --flag: linear-gradient(#fff 0 33.3%, #00966e 33.3% 66.6%, #d62612 66.6% 100%); }
.flag-ee { --flag: linear-gradient(#0072ce 0 33.3%, #fff 33.3% 66.6%, #111 66.6% 100%); }
.flag-lt { --flag: linear-gradient(#fdb913 0 33.3%, #006a44 33.3% 66.6%, #c1272d 66.6% 100%); }

/* ─── 11. Section bands ─────────────────────────────────────────*/
.band { padding-block: clamp(34px, 4.4vw, 68px); }
.band-narrow { max-inline-size: 860px; }
.band-head { max-inline-size: 42em; }
.band-h { font-size: var(--t-h2); font-weight: 760; letter-spacing: -0.032em; line-height: 1.12; text-wrap: balance; }
.band-sub { margin-block-start: 10px; color: var(--text-2); font-size: var(--t-body); text-wrap: pretty; }

/* ─── 12. Steps ─────────────────────────────────────────────────
   A connecting rail draws itself across the row (down the column on
   mobile) as the section reveals. Each marker is a ring — same motif. */
.steps {
  position: relative;
  display: grid;
  gap: 22px;
  margin-block-start: 30px;
}
@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  /* Horizontal rail behind the markers */
  .steps::before {
    content: "";
    position: absolute;
    inset-block-start: 24px;
    inset-inline: 16.6% 16.6%;
    block-size: 1.5px;
    background: linear-gradient(90deg, var(--accent-line), var(--line), var(--accent-line));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1.1s var(--ease) 0.15s;
  }
  [dir="rtl"] .steps::before { transform-origin: 100% 50%; }
  .steps.is-drawn::before { transform: scaleX(1); }
}
@media (max-width: 779px) {
  /* Vertical rail on narrow screens */
  .steps::before {
    content: "";
    position: absolute;
    inset-block: 46px 46px;
    inset-inline-start: 23px;
    inline-size: 1.5px;
    background: linear-gradient(var(--accent-line), var(--line), var(--accent-line));
    transform: scaleY(0);
    transform-origin: 50% 0;
    transition: transform 1.1s var(--ease) 0.15s;
  }
  .steps.is-drawn::before { transform: scaleY(1); }
}
.step { position: relative; padding-inline-start: 62px; }
@media (min-width: 780px) { .step { padding-inline-start: 0; } }
.step-marker {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 48px;
  block-size: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
}
@media (min-width: 780px) { .step-marker { position: static; margin-block-end: 16px; } }
.step-ring { position: absolute; inset: 0; inline-size: 48px; block-size: 48px; transform: rotate(-90deg); }
.step-ring-track { fill: none; stroke: var(--line); stroke-width: 2.5; }
.step-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset 0.95s var(--ease);
}
.steps.is-drawn .step:nth-child(1) .step-ring-fill { stroke-dashoffset: 33; transition-delay: 0.2s; }
.steps.is-drawn .step:nth-child(2) .step-ring-fill { stroke-dashoffset: 33; transition-delay: 0.45s; }
.steps.is-drawn .step:nth-child(3) .step-ring-fill { stroke-dashoffset: 0; transition-delay: 0.7s; }
.step-n { position: relative; font-size: var(--t-sm); font-weight: 700; color: var(--accent); }
.step-t { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.02em; }
.step-p { margin-block-start: 7px; color: var(--text-2); font-size: var(--t-body); text-wrap: pretty; }

/* ─── 13. Services bento ────────────────────────────────────────
   Calm at rest: every tile uses neutral surfaces, and the brand's own
   colour (--brand, set inline per tile) only ignites on hover/focus. */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
  margin-block-start: 30px;
}
@media (min-width: 720px) {
  /* Two clean columns at tablet width: the featured tiles stay taller
     rather than stretching into full-width banners. */
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile-lg { grid-column: span 2; }
}
.tile { position: relative; }
.tile-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  block-size: 100%;
  min-block-size: 70px;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: var(--e1);
  color: var(--text);
  overflow: hidden;
  transition: transform 0.28s var(--spring), box-shadow 0.28s var(--ease);
}
.tile-lg .tile-link { min-block-size: 96px; padding: 20px; gap: 16px; }
/* Brand wash, revealed only on hover */
.tile-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 160% at 12% 0%, color-mix(in oklab, var(--brand, var(--accent)) 22%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.tile-link:hover, .tile-link:focus-visible {
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--e3), inset 0 0 0 1px color-mix(in oklab, var(--brand, var(--accent)) 45%, transparent);
}
.tile-link:hover::before, .tile-link:focus-visible::before { opacity: 1; }
.tile-ic {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  color: var(--text-2);
  box-shadow: var(--e1);
  transition: color 0.28s var(--ease), background-color 0.28s var(--ease), transform 0.3s var(--spring);
}
.tile-ic svg { inline-size: 20px; block-size: 20px; }
.tile-lg .tile-ic { inline-size: 46px; block-size: 46px; }
.tile-lg .tile-ic svg { inline-size: 24px; block-size: 24px; }
.tile-link:hover .tile-ic, .tile-link:focus-visible .tile-ic {
  color: #fff;
  background: var(--brand, var(--accent));
  transform: translateY(-1px) scale(1.05);
}
.tile-body { position: relative; display: grid; gap: 1px; flex: 1; min-inline-size: 0; }
.tile-name { font-size: var(--t-body); font-weight: 650; letter-spacing: -0.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-lg .tile-name { font-size: 1.0625rem; }
.tile-meta { color: var(--text-3); font-size: var(--t-sm); }
.tile-price { position: relative; display: grid; justify-items: end; flex: none; font-size: var(--t-sm); font-weight: 650; line-height: 1.25; direction: ltr; }
.tile-lg .tile-price { font-size: var(--t-body); }
.tile-from { font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.tile-arrow { position: relative; flex: none; inline-size: 18px; block-size: 18px; color: var(--accent); transition: transform 0.26s var(--spring); }
[dir="rtl"] .tile-arrow { transform: scaleX(-1); }
.tile-link:hover .tile-arrow { transform: translateX(3px); }
[dir="rtl"] .tile-link:hover .tile-arrow { transform: scaleX(-1) translateX(3px); }
.tile-all .tile-link { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.tile-all .tile-name { color: var(--accent); }

/* ─── 14. Features ──────────────────────────────────────────────*/
.features { display: grid; gap: 10px; margin-block-start: 30px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  /* Even 3×2 grid — six features, no orphan gaps */
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 20px 19px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: var(--e1);
  transition: transform 0.28s var(--spring), box-shadow 0.28s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--e3); }
.feature-hero {
  background:
    radial-gradient(130% 150% at 8% 0%, var(--accent-wash), transparent 62%),
    var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--accent-line), var(--e2);
}
.feature-ic {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  margin-block-end: 14px;
  border-radius: var(--r-md);
  background: var(--accent-wash);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  transition: transform 0.3s var(--spring);
}
.feature-ic svg { inline-size: 20px; block-size: 20px; }
.feature:hover .feature-ic { transform: translateY(-2px) scale(1.06); }
.feature-t { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.02em; }
.feature-p { margin-block-start: 7px; color: var(--text-2); font-size: var(--t-body); text-wrap: pretty; }
.feature-hero .feature-t { font-size: 1.1875rem; }

/* ─── 15. FAQ ───────────────────────────────────────────────────
   Native <details>: fully readable and operable with no JS at all. */
.faqs { display: grid; gap: 8px; margin-block-start: 26px; }
.faq {
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: var(--e1);
  transition: box-shadow 0.26s var(--ease);
}
.faq[open] { box-shadow: inset 0 0 0 1px var(--accent-line), var(--e2); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 56px;
  padding: 14px 18px;
  font-size: var(--t-body);
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
/* Plus that rotates into a minus — drawn, so it never depends on a glyph */
.faq-sign { position: relative; flex: none; inline-size: 16px; block-size: 16px; }
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  inline-size: 16px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.32s var(--spring);
}
.faq-sign::before { transform: translateY(-50%); }
.faq-sign::after { transform: translateY(-50%) rotate(90deg); }
.faq[open] .faq-sign::after { transform: translateY(-50%) rotate(180deg); }
.faq-a { padding: 0 18px 16px; }
.faq-a p { color: var(--text-2); font-size: var(--t-body); text-wrap: pretty; }
.faq[open] .faq-a { animation: faq-open 0.34s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-5px); } }

/* ─── 16. Closing CTA ───────────────────────────────────────────
   The one deliberately heavy block: sunk background, oversized ring
   watermark, so the page ends on weight instead of another card. */
.closer {
  position: relative;
  margin-block-start: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 104px);
  background:
    radial-gradient(90% 120% at 50% 0%, var(--accent-wash), transparent 58%),
    var(--bg-sunk);
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
}
.closer-inner { position: relative; text-align: center; max-inline-size: 720px; }
.closer-ring {
  position: absolute;
  z-index: 0;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: clamp(420px, 74vw, 760px);
  block-size: clamp(420px, 74vw, 760px);
  transform: translate(-50%, -50%);
  opacity: 0.16;
  pointer-events: none;
}
.closer-ring svg { inline-size: 100%; block-size: 100%; transform: rotate(-90deg); }
.closer-ring-track { fill: none; stroke: var(--line); stroke-width: 0.7; }
.closer-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 82;
  animation: closer-drain 26s var(--ease) infinite;
}
@keyframes closer-drain {
  0%, 6% { stroke-dashoffset: 327; opacity: 0.4; }
  52%, 88% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 327; opacity: 0.4; }
}
.closer-h { position: relative; z-index: 1; font-size: clamp(1.85rem, 3.4vw + 0.7rem, 3.1rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.closer-p { position: relative; z-index: 1; margin: 14px auto 0; max-inline-size: 34em; color: var(--text-2); font-size: clamp(1rem, 0.4vw + 0.92rem, 1.0625rem); text-wrap: pretty; }
.closer-actions { position: relative; z-index: 1; justify-content: center; margin-block-start: 26px; }
.closer-note { position: relative; z-index: 1; margin-block-start: 18px; font-family: var(--mono); font-size: var(--t-sm); color: var(--text-3); }

/* ─── 17. Footer ────────────────────────────────────────────────
   Structured close: CTA strip, brand block with live stats, three
   balanced link columns, fine print, base row with language menu. */
.foot { background: var(--bg-sunk); border-block-start: 1px solid var(--line-soft); }
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 26px;
  border-block-end: 1px solid var(--line-soft);
}
.foot-top-copy { min-inline-size: 0; max-inline-size: 44em; }
.foot-top-t { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.foot-top-s { color: var(--text-3); font-size: var(--t-sm); margin-block-start: 3px; text-wrap: pretty; }
.foot-top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .foot-top { flex-direction: column; align-items: stretch; text-align: center; }
  .foot-top-actions .btn { flex: 1; }
}

.foot-grid {
  display: grid;
  gap: 30px 24px;
  padding-block: clamp(30px, 4vw, 48px) 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 800px) { .foot-brand { grid-column: auto; } }
.foot-tag { margin-block-start: 14px; max-inline-size: 26em; color: var(--text-3); font-size: var(--t-sm); text-wrap: pretty; }
.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--text-2);
  font-size: var(--t-sm);
  font-weight: 600;
}
.foot-status-dot {
  inline-size: 7px; block-size: 7px; border-radius: 50%; flex: none;
  background: var(--accent);
  animation: blip 3.1s ease-in-out infinite;
}
.foot-stats { display: flex; gap: 22px; margin: 18px 0 0; padding-block-start: 16px; border-block-start: 1px solid var(--line-soft); }
.foot-stats dt { font-size: var(--t-body); font-weight: 700; color: var(--text); }
.foot-stats dd { margin: 2px 0 0; color: var(--text-3); font-size: var(--t-xs); }

.foot-col { display: grid; gap: 1px; align-content: start; justify-items: start; }
.foot-h { margin-block-end: 10px; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.foot-col a {
  padding-block: 7px;
  color: var(--text-2);
  font-size: var(--t-sm);
  transition: color 0.18s var(--ease), transform 0.2s var(--spring);
}
.foot-col a:hover { color: var(--accent); transform: translateX(2px); }
[dir="rtl"] .foot-col a:hover { transform: translateX(-2px); }

.foot-fine {
  padding-block: 18px;
  border-block-start: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: var(--t-xs);
  line-height: 1.65;
}
.foot-fine p { text-wrap: pretty; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px 20px;
  border-block-start: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: var(--t-sm);
}
.foot-copyright { font-size: var(--t-sm); }
.foot-base-end { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.foot-base-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 10px;
  color: var(--text-3);
  font-size: var(--t-sm);
  transition: color 0.18s var(--ease);
}
.foot-base-link:hover { color: var(--accent); }
/* Footer language menu opens upward */
.picker-up .picker-panel {
  inset-block-start: auto;
  inset-block-end: calc(100% + 8px);
  animation: pop-up 0.22s var(--spring);
}
@keyframes pop-up { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.picker-up[open] .picker-caret { transform: rotate(0deg); }
.picker-up .picker-caret { transform: rotate(180deg); }

/* ─── 18. Scroll reveals ────────────────────────────────────────
   Nothing is hidden by CSS on its own. JS adds .rv-pre immediately
   before observing and removes it on intersection, with a timeout
   failsafe. If the script never runs, everything is simply visible. */
.rv { transition: opacity 0.66s var(--ease), transform 0.72s var(--spring); transition-delay: var(--rv-delay, 0s); }
.rv.rv-pre { opacity: 0; transform: translate3d(0, 20px, 0); }
.rv.rv-pre.rv-scale { transform: translate3d(0, 14px, 0) scale(0.975); }
.rv.rv-pre.rv-soft { transform: translate3d(0, 10px, 0); }
.rv-done { will-change: auto; }

/* ─── 19. Reduced motion ────────────────────────────────────────
   Genuinely disables motion, and every animated end-state resolves to
   its complete, readable form. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aurora { display: none; }
  .rv.rv-pre, .rv.rv-pre.rv-scale, .rv.rv-pre.rv-soft { opacity: 1; transform: none; }
  .steps::before { transform: none !important; }
  .step-ring-fill { stroke-dashoffset: 33; }
  .steps .step:nth-child(3) .step-ring-fill { stroke-dashoffset: 0; }
  .closer-ring-fill { stroke-dashoffset: 0; opacity: 1; }
  .replay-frame::before { opacity: 0.5; transform: translate3d(30%, 0, 0); }
  .marquee-track { animation: none !important; }
  .replay.is-live .rp-numberbox,
  .replay.is-live .rp-timer,
  .replay.is-live .rp-sms { opacity: 1 !important; transform: none !important; }
}

/* ─── 20. Narrow devices: 280px folding phones ──────────────────*/
@media (max-width: 400px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 14px 20px; }
  .rp-timer { gap: 12px; }
  .rp-ring-wrap { inline-size: 62px; block-size: 62px; }
  .flagcard { min-inline-size: 66px; }
  .marquee { -webkit-mask: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
}
@media (max-width: 320px) {
  .replay-body { padding: 12px; }
  .rp-cost { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-lg { padding-inline: 18px; }
  .tile-link { padding: 13px; gap: 11px; }
  .tile-ic { inline-size: 34px; block-size: 34px; }
  .tile-price { display: none; }
}
