/* ERMA SWAP — tokens mirror app/src/theme.js */
:root {
  --accent: #35DE0E;
  --accent-bright: #7CFF45;
  --accent-strong: #28B008;
  --on-accent: #051200;
  --red: #E70013;
  --ly-red: #E70013;
  --ly-black: #1a1a1a;
  --ly-green: #009E49;

  --bg: #000000;
  --surface: #0c0c0c;
  --raised: #141414;
  --sunken: #070707;
  --border: #2a2a2a;
  --border-soft: #1c1c1c;
  --card-border: rgba(53, 222, 14, 0.16);
  --accent-dim: #102408;
  --accent-glow: rgba(53, 222, 14, 0.22);
  --accent-ink: #35DE0E;
  --text: #F2F2F2;
  --text-2: #B5B5B5;
  --text-3: #8a8a8a;
  --nav: rgba(0, 0, 0, 0.72);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --grid-line: rgba(255, 255, 255, 0.045);

  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ar: 'Cairo', 'Inter', system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --wrap: 1160px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --accent-strong: #24990a;
  --bg: #f3f4f3;
  --surface: #ffffff;
  --raised: #f7f8f7;
  --sunken: #eceeec;
  --border: #d5d8d4;
  --border-soft: #e4e6e4;
  --card-border: rgba(0, 0, 0, 0.08);
  --accent-dim: #e3fbd6;
  --accent-glow: rgba(53, 222, 14, 0.18);
  --accent-ink: #1f7d08;
  --text: #111111;
  --text-2: #4a4d4a;
  --text-3: #636663;
  --nav: rgba(243, 244, 243, 0.8);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  --grid-line: rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --accent-strong: #24990a;
    --bg: #f3f4f3;
    --surface: #ffffff;
    --raised: #f7f8f7;
    --sunken: #eceeec;
    --border: #d5d8d4;
    --border-soft: #e4e6e4;
    --card-border: rgba(0, 0, 0, 0.08);
    --accent-dim: #e3fbd6;
    --accent-glow: rgba(53, 222, 14, 0.18);
    --accent-ink: #1f7d08;
    --text: #111111;
    --text-2: #4a4d4a;
    --text-3: #636663;
    --nav: rgba(243, 244, 243, 0.8);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
    --grid-line: rgba(0, 0, 0, 0.05);
    color-scheme: light;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
[dir="rtl"] body { font-family: var(--f-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .faq-a a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.latin, .latin-num { font-family: var(--f-display); letter-spacing: 0; }
[dir="rtl"] .latin, [dir="rtl"] .latin-num { direction: ltr; unicode-bidi: isolate; }
.arabic { font-family: var(--f-ar); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

.i { width: 20px; height: 20px; flex: none; }
.i-au { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1; display: inline-grid; place-items: center; direction: ltr; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.flip-back { transform: scaleX(-1); }
[dir="rtl"] .flip-back { transform: none; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 10px 34px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .i { width: 18px; height: 18px; }

.chip-btn {
  width: 42px; height: 42px; border-radius: 13px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--card-border); background: var(--surface);
  font-weight: 600; font-size: 15px;
  transition: border-color .2s, color .2s;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip-btn .i { width: 19px; height: 19px; }
.ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ico-sun { display: none; }
  :root:not([data-theme="dark"]) .ico-moon { display: block; }
}

/* ----------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border-soft); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.mark {
  width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  background: #000; border: 1.5px solid var(--accent); flex: none;
}
.mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.wordmark b { color: var(--accent-ink); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--raised); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.mobile-menu { border-top: 1px solid var(--border-soft); }
.mobile-menu nav { display: grid; gap: 4px; padding-block: 12px 20px; }
.mobile-menu nav > a:not(.btn) { padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 16px; }
  .nav-tools { gap: 6px; }
  .chip-btn { width: 38px; height: 38px; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 78% 30%, var(--accent-glow), transparent 70%),
    radial-gradient(500px 320px at 10% 0%, rgba(53, 222, 14, .07), transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
[dir="rtl"] .hero-bg { transform: scaleX(-1); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--card-border); background: var(--surface);
  color: var(--accent-ink); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
[dir="rtl"] .eyebrow-pill { letter-spacing: 0; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(53,222,14,.55); } 70% { box-shadow: 0 0 0 9px rgba(53,222,14,0); } 100% { box-shadow: 0 0 0 0 rgba(53,222,14,0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); margin-top: 22px; }
[dir="rtl"] .hero h1 { font-size: clamp(38px, 5.6vw, 70px); }
.hero h1 span { display: block; }
.accent { color: var(--accent-ink); }
.hero .lead { margin-top: 22px; max-width: 34em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-2); font-size: 14px; }
.hero-note .i { color: var(--accent-ink); width: 18px; height: 18px; }
.hero-visual { display: grid; justify-items: center; gap: 16px; }
.sample-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.sample-note .i { width: 15px; height: 15px; }

.strip {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--card-border); border-radius: var(--r-lg);
  background: var(--surface);
}
.strip li { padding: 22px 24px; display: grid; gap: 2px; }
.strip li + li { border-inline-start: 1px solid var(--border-soft); }
.strip b { font-size: 28px; font-weight: 700; color: var(--text); }
.strip span { color: var(--text-2); font-size: 14px; }

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas, .hero-note { justify-content: center; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-inline-start: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
}
@media (max-width: 420px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .strip li { padding: 18px 16px; }
  .strip b { font-size: 24px; }
}

/* ------------------------------------------------------ phone mockup */
.phone {
  --pw: min(340px, 84vw);
  width: var(--pw); aspect-ratio: 340 / 700;
  padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #2c2c2c, #0a0a0a 40%, #1c1c1c);
  box-shadow: 0 0 0 1px #333, 0 40px 90px rgba(0,0,0,.55), 0 0 120px var(--accent-glow);
  position: relative;
  container-type: inline-size;
}
.phone-screen {
  height: 100%; border-radius: 42px; overflow: hidden;
  background: #000; color: #F2F2F2;
  padding: 0 5.5cqw;
  display: flex; flex-direction: column;
  font-size: 3.9cqw; line-height: 1.3;
  user-select: none;
}
.p-status { display: flex; justify-content: space-between; align-items: center; padding: 4cqw 3cqw 2cqw; font-size: 3.8cqw; font-weight: 600; }
.p-island { width: 28cqw; height: 7.6cqw; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px #111; }
.p-bat { width: 7.5cqw; height: 3.6cqw; border-radius: 1cqw; border: 1px solid #aaa; position: relative; }
.p-bat::after { content: ''; position: absolute; inset: 1px; right: 30%; background: #f2f2f2; border-radius: .5cqw; }
.p-head { display: flex; align-items: center; gap: 3cqw; margin-top: 2cqw; }
.p-mark { width: 12.5cqw; height: 12.5cqw; border-radius: 3cqw; overflow: hidden; border: 1px solid #35DE0E; flex: none; }
.p-mark img { width: 100%; height: 100%; object-fit: cover; }
.p-hello { display: grid; line-height: 1.15; }
.p-hello small { font-size: 3.2cqw; color: #9a9a9a; }
.p-hello b { font-size: 4.6cqw; font-weight: 700; }
.p-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.8cqw 3.2cqw; border-radius: 99px; background: #141414; color: #35DE0E; font-size: 3.2cqw; font-weight: 700; }
.p-live i, .p-city i, .p-tag i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #35DE0E; }
.p-live i { animation: pulse 2s infinite; }
.p-date { color: #9a9a9a; font-size: 3.3cqw; margin-top: 3cqw; }
.p-cities { display: flex; flex-wrap: wrap; gap: 1.8cqw; margin-top: 3.2cqw; }
.p-city {
  display: inline-flex; align-items: center; gap: 1.6cqw; flex: none;
  padding: 1.8cqw 3.2cqw; border-radius: 99px; font-size: 3.3cqw;
  background: #0f0f0f; border: 1px solid #1f3a14; color: #cfcfcf;
  transition: border-color .3s, background-color .3s, color .3s;
}
.p-city i { background: #3a3a3a; transition: background-color .3s; }
.p-city.on { border-color: #35DE0E; background: #102408; color: #fff; }
.p-city.on i { background: #35DE0E; }
.p-card {
  margin-top: 3.6cqw; padding: 4.6cqw; border-radius: 6cqw;
  background: #0c0c0c; border: 1px solid rgba(53,222,14,.22);
}
.p-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2cqw; }
.p-card-top small { display: block; font-size: 2.7cqw; color: #8a8a8a; letter-spacing: .1em; }
[dir="rtl"] .p-card-top small { letter-spacing: 0; font-size: 3cqw; }
.p-card-top b { font-size: 4.6cqw; font-weight: 700; }
.p-tag { display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.4cqw 2.8cqw; border-radius: 99px; border: 1px solid #1f3a14; font-size: 3cqw; }
.p-rate { display: flex; align-items: center; gap: 3cqw; margin-top: 3cqw; }
.p-rate > span:first-child { font-size: 14cqw; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.p-chg { padding: 1.4cqw 2.8cqw; border-radius: 99px; background: #1a1a1a; font-size: 3.2cqw; color: #cfcfcf; transition: color .3s, background-color .3s; }
.p-chg.up { color: #35DE0E; background: #102408; }
.p-chg.down { color: #ff3b4a; background: rgba(231,0,19,.14); }
.p-card-foot { display: flex; justify-content: space-between; gap: 2cqw; margin-top: 3.6cqw; padding-top: 3cqw; border-top: 1px solid #1f1f1f; color: #8a8a8a; font-size: 2.8cqw; }
.p-trio {
  margin-top: 3cqw; display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 5cqw; background: #0c0c0c; border: 1px solid rgba(53,222,14,.14); padding: 3.4cqw 1cqw;
}
.p-trio > div { display: grid; justify-items: center; gap: 1cqw; }
.p-trio > div + div { border-inline-start: 1px solid #1f1f1f; }
.p-ico { width: 9cqw; height: 9cqw; border-radius: 2.4cqw; background: #102408; display: grid; place-items: center; overflow: hidden; }
.p-ico img { width: 7cqw; height: auto; border-radius: 1cqw; }
.p-ico-gold { background: #fff; }
.p-ico-gold img { width: 9cqw; height: 9cqw; object-fit: cover; border-radius: 0; }
.p-trio small { font-size: 2.9cqw; color: #9a9a9a; }
.p-trio b { font-size: 4.4cqw; font-weight: 700; }
.p-quick-h { margin-top: 3.4cqw; font-weight: 700; font-size: 3.8cqw; }
.p-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw 0; margin-top: 2.2cqw; }
.p-quick span { display: grid; justify-items: center; gap: 1.2cqw; font-size: 2.8cqw; color: #cfcfcf; }
.p-quick em, .p-nav em { width: 11cqw; height: 11cqw; border-radius: 3.4cqw; display: grid; place-items: center; background: #0f0f0f; border: 1px solid #1f3a14; color: #35DE0E; }
.pi { width: 5cqw; height: 5cqw; }
.p-quick .i-au, .p-nav .i-au { font-size: 4.6cqw; }
.p-nav {
  margin-top: auto; margin-bottom: 4.5cqw;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 2.4cqw; border-radius: 6cqw; background: #0a0a0a; border: 1px solid #1f3a14;
}
.p-nav span { display: grid; justify-items: center; gap: .8cqw; font-size: 2.8cqw; color: #8a8a8a; }
.p-nav em { border: 0; background: transparent; color: #9a9a9a; width: 9cqw; height: 9cqw; }
.p-nav .on { color: #35DE0E; }
.p-nav .on em { background: #35DE0E; color: #000; }

/* ------------------------------------------------------------ sections */
.section { padding: 104px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border-soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.section-head .lead { margin-top: 16px; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-head { margin-bottom: 32px; } }

.tile {
  width: 48px; height: 48px; border-radius: 15px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-dim); border: 1px solid var(--card-border); color: var(--accent-ink);
}
.tile .i { width: 22px; height: 22px; }
.tile-lg { width: 60px; height: 60px; border-radius: 18px; }
.tile-lg .i { width: 26px; height: 26px; }
.tile-lg .i-au { font-size: 22px; }

.card {
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-xl);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; align-content: start; gap: 12px; }
.feature h3 { font-size: 21px; margin-top: 8px; }
.feature p { color: var(--text-2); }
.feature.wide { grid-column: span 2; background: linear-gradient(135deg, var(--accent-dim), var(--surface) 60%); }
[dir="rtl"] .feature.wide { background: linear-gradient(225deg, var(--accent-dim), var(--surface) 60%); }
.feature.wide:last-child { grid-column: 1 / -1; }
.feature.wide h3 { font-size: 26px; }
.feature.wide p { max-width: 30em; font-size: 17px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feature.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .card { padding: 22px; }
}

/* markets */
.city-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.city-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--card-border); background: var(--bg);
}
.city-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.market {
  padding: 24px 20px; border-radius: var(--r-lg);
  border: 1px solid var(--card-border); background: var(--bg);
  display: grid; gap: 6px; justify-items: start;
}
.market h3 { font-size: 18px; margin-top: 12px; }
.market p { color: var(--text-2); font-size: 14px; }
@media (max-width: 1000px) { .markets { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .markets { grid-template-columns: repeat(2, 1fr); } .market:last-child { grid-column: span 2; } }

.currencies { margin-top: 36px; display: grid; gap: 14px; }
.currencies p { color: var(--text-3); font-size: 14px; font-weight: 600; }
.currencies ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.currencies li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border-soft); font-size: 14px; font-weight: 500; }
[dir="rtl"] .currencies li { padding: 6px 6px 6px 14px; }
.flag { width: 34px; height: 24px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--raised); }
.flag img { width: 100%; height: 100%; object-fit: cover; }
.flag-metal { background: #fff; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--card-border); background: var(--surface); }
.step-n { display: inline-block; font-size: 15px; font-weight: 700; color: var(--accent-ink); padding: 6px 12px; border-radius: 999px; background: var(--accent-dim); }
.step h3 { font-size: 21px; margin-top: 20px; }
.step p { color: var(--text-2); margin-top: 10px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.segmented {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--card-border); margin-bottom: 24px;
}
.segmented button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text-2);
  transition: background-color .25s, color .25s;
}
.segmented button img { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; }
.segmented button .i { width: 17px; height: 17px; }
.segmented [aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 32px; border-radius: var(--r-xl);
  background: var(--bg); border: 1px solid var(--card-border);
}
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 70px var(--accent-glow); }
.badge {
  position: absolute; top: 24px; inset-inline-end: 24px;
  padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
[dir="rtl"] .badge { letter-spacing: 0; font-size: 13px; }
.plan h3 { font-size: 20px; color: var(--text-2); }
.plan-featured h3 { color: var(--accent-ink); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount { font-size: clamp(40px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.per { color: var(--text-3); font-size: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.ticks li { display: flex; gap: 12px; color: var(--text-2); }
.ticks .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-dim); color: var(--accent-ink); margin-top: 2px; stroke-width: 3; }
.plan-note { margin-top: 18px; color: var(--text-3); font-size: 14px; max-width: 900px; }
.notice {
  margin-top: 40px; max-width: 900px;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--border); border-inline-start: 3px solid var(--accent);
}
.notice h3 { font-size: 17px; }
.notice p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 26px 22px; }
  .plan-featured { order: -1; }
  .segmented { display: flex; }
  .segmented button { flex: 1; justify-content: center; padding: 0 10px; }
  .notice { flex-direction: column; }
}

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 104px; }
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--r-lg); border: 1px solid var(--card-border); background: var(--surface);
  transition: border-color .25s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent-ink); }
.faq-a { padding: 0 22px 22px; color: var(--text-2); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } .faq-grid .section-head { position: static; } }

/* final CTA — always on brand black */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: #000; color: #F2F2F2; padding: 96px 0 104px; text-align: center;
  --accent-ink: #35DE0E;
}
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 320px at 50% 38%, rgba(53,222,14,.22), transparent 70%); }
.cta-inner { display: grid; justify-items: center; }
.cta-logo { width: min(220px, 56vw); height: auto; margin-bottom: 6px; mix-blend-mode: screen; }
.cta h2 { font-size: clamp(32px, 4.6vw, 54px); }
.cta p { color: #B5B5B5; font-size: 18px; margin-top: 14px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; min-height: 60px; padding: 8px 20px; border-radius: 16px;
  background: #0c0c0c; border: 1px solid #2a2a2a; color: #F2F2F2;
  transition: border-color .2s, transform .2s var(--ease);
}
a.store[href]:hover { border-color: #35DE0E; transform: translateY(-2px); }
.store[aria-disabled="true"] { cursor: default; opacity: .88; }
.store-ico { width: 28px; height: 28px; }
.store-txt { display: grid; line-height: 1.15; text-align: start; }
.store-txt small { font-size: 12px; color: #9a9a9a; }
.store[aria-disabled="true"] .store-txt small { color: #35DE0E; font-weight: 600; }
.store-txt strong { font-size: 19px; font-weight: 600; }
@media (max-width: 440px) { .store { flex: 1 1 100%; justify-content: center; } }

/* -------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border-soft); padding: 64px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { color: var(--text-2); margin-top: 16px; max-width: 26em; font-size: 15px; }
.footer .made { display: flex; align-items: center; gap: 10px; color: var(--accent-ink); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
[dir="rtl"] .footer .made { letter-spacing: 0; font-size: 14px; }
.flagline { display: inline-flex; flex-direction: column; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; }
.flagline i { flex: 1; }
.flagline i:nth-child(1) { background: var(--ly-red); }
.flagline i:nth-child(2) { background: var(--ly-black); flex: 2; }
.flagline i:nth-child(3) { background: var(--ly-green); }
.footer h2 { font-size: 13px; font-family: var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
[dir="rtl"] .footer h2 { letter-spacing: 0; font-family: var(--f-ar); font-size: 15px; }
.footer ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 15px; transition: color .2s; overflow-wrap: anywhere; }
.footer ul a:hover { color: var(--accent-ink); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: grid; gap: 10px; color: var(--text-3); font-size: 14px; }
.footer-base .fine { font-size: 13px; max-width: 60em; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }

/* --------------------------------------------------------------- legal */
.legal { padding: 32px 0 96px; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .i { width: 17px; height: 17px; }
.legal-head { max-width: 760px; margin: 36px 0 48px; }
.legal-head h1 { font-size: clamp(38px, 5.4vw, 60px); }
.updated { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--card-border); color: var(--text-2); font-size: 14px; }
.legal-head .lead { margin-top: 20px; }
.doc-switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px; border-radius: 999px; background: var(--surface); border: 1px solid var(--card-border); }
.doc-switch a { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.doc-switch a:hover { color: var(--text); }
.doc-switch a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc-box summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding-bottom: 12px; pointer-events: none; }
[dir="rtl"] .toc-box summary { letter-spacing: 0; font-size: 15px; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary .i { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--border); }
.toc a { display: block; padding: 7px 16px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--text-2); font-size: 14px; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent-ink); border-inline-start-color: var(--accent); font-weight: 600; }
.prose { max-width: 720px; }
.prose section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border-soft); scroll-margin-top: 96px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; font-size: 25px; margin-bottom: 16px; }
.prose .num { font-size: 14px; color: var(--accent-ink); font-weight: 700; flex: none; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
[dir="rtl"] .prose p, [dir="rtl"] .prose li { font-size: 17px; line-height: 1.9; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-inline-start: 22px; }
.prose ul li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legal-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--card-border);
}
.legal-contact > div { flex: 1; min-width: 200px; }
.legal-contact h2 { font-size: 18px; }
.legal-contact p { margin-top: 4px; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc-box { border: 1px solid var(--card-border); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; }
  .toc-box summary { pointer-events: auto; cursor: pointer; padding-bottom: 0; }
  .toc-box[open] summary { padding-bottom: 12px; }
  .toc-box summary .i { display: block; width: 18px; height: 18px; transition: transform .3s; }
  .toc-box[open] summary .i { transform: rotate(180deg); }
}
@media (max-width: 600px) { .doc-switch { display: flex; } .doc-switch a { flex: 1; text-align: center; padding: 9px 8px; font-size: 14px; } .prose h2 { font-size: 21px; } }

/* ---------------------------------------------------------------- 404 */
.nf { padding: 96px 0 120px; text-align: center; }
.nf-code { font-size: clamp(90px, 18vw, 180px); font-weight: 700; line-height: 1; color: var(--accent-ink); letter-spacing: -.04em; }
.nf h1 { font-size: 36px; margin-top: 12px; }
.nf .lead { margin: 14px auto 0; max-width: 36em; }
.nf .hero-ctas { justify-content: center; }

/* -------------------------------------------------------------- motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
