/* components.css — nav, buttons, cards, calculators, footer.
 *
 * STANDING RULE observed throughout: every element carrying an ambient glow
 * with negative insets gets overflow:hidden (or clip) on its host. A glow that
 * escapes its host widens the document and produces a horizontal scrollbar that
 * neither scrollWidth nor a visual scan reliably reveals.
 */

/* ── nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-block-end: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.nav.scrolled {
  background: rgba(7, 10, 18, .92);
  border-block-end-color: var(--line);
}

.nav-progress {
  position: absolute;
  inset-block-end: -1px;
  inset-inline-start: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  background: var(--grad-aurora);
  pointer-events: none;
}
html[dir="rtl"] .nav-progress { transform-origin: right center; }

.nav-inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
html[dir="rtl"] .brand-text strong { letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-end: auto; }
.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link[aria-current="page"] { color: var(--teal); background: rgba(20, 227, 196, .1); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-toggle {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  padding-inline: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

.nav-toggle { display: none; }

.nav-drawer { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-inner { gap: 14px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 40px; height: 36px;
    place-content: center;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease-out), opacity .2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 22px;
    border-block-start: 1px solid var(--line);
    background: rgba(7, 10, 18, .97);
  }
  .nav-drawer[hidden] { display: none; }
  .nav-drawer-link {
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-weight: 500;
  }
  .nav-drawer-link:hover { background: var(--surface); color: var(--ink); }
  .nav-drawer .btn { margin-top: 10px; }
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  --btn-py: 11px;
  --btn-px: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease-spring), box-shadow .3s var(--ease-out),
              background .2s, border-color .2s, color .2s;
}
.btn-sm { --btn-py: 8px; --btn-px: 16px; font-size: 14px; }
.btn-lg { --btn-py: 15px; --btn-px: 30px; font-size: 16.5px; }

.btn-primary {
  background: var(--grad-aurora);
  color: var(--on-accent);
  box-shadow: var(--glow-teal);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(20,227,196,.4), 0 18px 50px rgba(20,227,196,.34); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { transition: transform .25s var(--ease-out); }
html[dir="rtl"] .btn-primary svg { transform: scaleX(-1); }
.btn-primary:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn-primary:hover svg { transform: scaleX(-1) translateX(3px); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--teal); color: var(--teal); }

/* ── the 3D deck ──────────────────────────────────────────────────────── */

/* Five real wallet cards, each its own layer in Z on a shared perspective
 * stage. Deliberately NOT niqati.com's flat pivoting fan — the depth reading is
 * this brand's signature.
 *
 * The stage is clipped by .deck because .deck-glow uses negative insets. */
.deck {
  position: relative;
  margin: 0;
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.deck-glow {
  position: absolute;
  inset: -18% -12%;
  background:
    radial-gradient(closest-side, rgba(20, 227, 196, .3), transparent 72%),
    radial-gradient(closest-side, rgba(124, 92, 255, .26), transparent 76%);
  background-position: 32% 40%, 70% 62%;
  background-repeat: no-repeat;
  background-size: 62% 78%, 60% 72%;
  pointer-events: none;
  filter: blur(6px);
}

.deck-stage {
  position: relative;
  display: block;
  width: 300px;
  height: 330px;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}

.deck-slot {
  position: absolute;
  /* PHYSICAL left, not inset-inline-start, and this is load-bearing:
   * inset-inline-start:50% flips the reference edge to the right in RTL while
   * translateX(-50%) keeps measuring from the left, so the pair fight each
   * other and the whole deck slides off its stage with the depth order
   * inverted. RTL mirroring is handled ONLY by flipping --x / --ry / --rz
   * below, which is why nothing else here needs to be direction-aware. */
  left: 50%;
  top: 50%;
  width: 168px;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
  /* Each slot: pushed back in Z, offset on X, and yawed so the face turns
   * toward the viewer. The centre card sits closest and flattest. */
  transform:
    translate(-50%, -50%)
    translateX(var(--x))
    translateY(var(--y))
    translateZ(var(--z))
    rotateY(var(--ry))
    rotateZ(var(--rz));
}
.deck-slot.s1 { --x: -132px; --y: 16px;  --z: -190px; --ry: 30deg;  --rz: -11deg; z-index: 1; }
.deck-slot.s2 { --x: -70px;  --y: -4px;  --z: -95px;  --ry: 18deg;  --rz: -6deg;  z-index: 2; }
.deck-slot.s3 { --x: 0;      --y: -18px; --z: 0;      --ry: 0deg;   --rz: 0deg;   z-index: 5; }
.deck-slot.s4 { --x: 70px;   --y: -4px;  --z: -95px;  --ry: -18deg; --rz: 6deg;   z-index: 4; }
.deck-slot.s5 { --x: 132px;  --y: 16px;  --z: -190px; --ry: -30deg; --rz: 11deg;  z-index: 3; }

/* In RTL the deck mirrors, so it always opens away from the text column
 * instead of leaning across it. */
html[dir="rtl"] .deck-slot.s1 { --x: 132px;  --ry: -30deg; --rz: 11deg; }
html[dir="rtl"] .deck-slot.s2 { --x: 70px;   --ry: -18deg; --rz: 6deg; }
html[dir="rtl"] .deck-slot.s4 { --x: -70px;  --ry: 18deg;  --rz: -6deg; }
html[dir="rtl"] .deck-slot.s5 { --x: -132px; --ry: 30deg;  --rz: -11deg; }

.deck:hover .deck-slot.s1 { --x: -166px; --z: -150px; --ry: 24deg; }
.deck:hover .deck-slot.s2 { --x: -88px;  --z: -70px;  --ry: 13deg; }
.deck:hover .deck-slot.s3 { --y: -30px;  --z: 24px; }
.deck:hover .deck-slot.s4 { --x: 88px;   --z: -70px;  --ry: -13deg; }
.deck:hover .deck-slot.s5 { --x: 166px;  --z: -150px; --ry: -24deg; }
html[dir="rtl"] .deck:hover .deck-slot.s1 { --x: 166px;  --ry: -24deg; }
html[dir="rtl"] .deck:hover .deck-slot.s2 { --x: 88px;   --ry: -13deg; }
html[dir="rtl"] .deck:hover .deck-slot.s4 { --x: -88px;  --ry: 13deg; }
html[dir="rtl"] .deck:hover .deck-slot.s5 { --x: -166px; --ry: 24deg; }

.deck-card {
  position: relative;
  display: block;
  aspect-ratio: 5 / 7;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1220;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .68);
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
/* A hairline over the artwork so every card's edge reads the same regardless of
 * how tightly its source photo was cropped. */
.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: inherit;
  pointer-events: none;
}
.deck-slot.s3 .deck-card { box-shadow: 0 34px 80px rgba(0, 0, 0, .74), 0 0 0 1px rgba(20, 227, 196, .18); }

.deck-small { min-height: 300px; }
.deck-small .deck-stage { width: 250px; height: 260px; }
.deck-small .deck-slot { width: 132px; }

@media (max-width: 980px) {
  .deck { min-height: 320px; }
  .deck-stage { width: 260px; height: 280px; }
  .deck-slot { width: 142px; }
  .deck-slot.s1 { --x: -112px; --z: -170px; }
  .deck-slot.s5 { --x: 112px;  --z: -170px; }
  html[dir="rtl"] .deck-slot.s1 { --x: 112px; }
  html[dir="rtl"] .deck-slot.s5 { --x: -112px; }
}
@media (max-width: 560px) {
  .deck { min-height: 260px; }
  .deck-stage { width: 200px; height: 220px; }
  .deck-slot { width: 116px; }
  /* The outermost pair leaves the frame on a narrow screen; hiding them keeps
   * the remaining three legible instead of shrinking all five to slivers. */
  .deck-slot.s1, .deck-slot.s5 { display: none; }
  .deck-slot.s2 { --x: -56px; --z: -80px; }
  .deck-slot.s4 { --x: 56px;  --z: -80px; }
  html[dir="rtl"] .deck-slot.s2 { --x: 56px; }
  html[dir="rtl"] .deck-slot.s4 { --x: -56px; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  /* .hero-aurora is inset negatively; without clipping here the page gains a
   * horizontal scrollbar at every viewport width. */
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
}
.hero-aurora {
  position: absolute;
  inset: -30% -20% auto;
  height: 150%;
  background:
    radial-gradient(closest-side, rgba(20, 227, 196, .2), transparent 70%),
    radial-gradient(closest-side, rgba(124, 92, 255, .22), transparent 72%),
    radial-gradient(closest-side, rgba(91, 209, 255, .13), transparent 70%);
  background-position: 18% 30%, 76% 22%, 50% 74%;
  background-size: 55% 62%, 52% 58%, 48% 52%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-title { margin-block-end: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.hero-note { margin-block-start: 18px; font-size: var(--step--1); color: var(--muted); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* ── stats ────────────────────────────────────────────────────────────── */

.stats-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-block: 34px;
}
.stat { text-align: center; padding-inline: 12px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-value {
  display: block;
  font-size: var(--step-3);
  font-weight: 700;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}
html[dir="rtl"] .stat-value { letter-spacing: 0; }
.stat-label { display: block; font-size: var(--step--1); color: var(--muted); margin-block-start: 6px; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 4px; }
  .stat:nth-child(3) { border-inline-start: none; }
}

/* ── page head ────────────────────────────────────────────────────────── */

.page-head {
  position: relative;
  overflow: hidden; /* .page-aurora is negatively inset */
  padding-block: clamp(36px, 5vw, 64px) clamp(30px, 4vw, 52px);
}
.page-aurora { height: 130%; opacity: .72; }
.page-head-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.page-head-inner > div:only-child { grid-column: 1 / -1; max-width: 76ch; }
@media (max-width: 980px) {
  .page-head-inner { grid-template-columns: 1fr; }
  .page-head-inner .deck { display: none; }
}

/* ── breadcrumbs ──────────────────────────────────────────────────────── */

.crumbs { border-block-end: 1px solid var(--line); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 12px 0;
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-2); }
html[dir="rtl"] .crumbs li + li::before { content: "\\"; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--teal); }

/* ── article layout + TOC ─────────────────────────────────────────────── */

.article-layout { padding-block: 20px 40px; }
.article-layout.has-toc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.article-layout .prose { max-width: var(--measure); }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 18px;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
}
.toc-title {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-block-end: 14px;
}
html[dir="rtl"] .toc-title { letter-spacing: 0; text-transform: none; font-size: var(--step--1); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { margin-block-end: 10px; }
.toc a {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  display: block;
  transition: color .2s;
}
.toc a:hover, .toc a.active { color: var(--teal); }

@media (max-width: 900px) {
  .article-layout.has-toc { grid-template-columns: 1fr; }
  .toc {
    position: static;
    max-height: none;
    border-inline-start: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    background: var(--surface);
    margin-block-end: 26px;
  }
}

/* ── callout ──────────────────────────────────────────────────────────── */

.callout {
  position: relative;
  overflow: hidden; /* .callout-glow is negatively inset */
  border: 1px solid rgba(20, 227, 196, .26);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 227, 196, .08), rgba(124, 92, 255, .06));
  padding: 26px 28px;
  margin-block: 40px !important;
}
.callout-glow {
  position: absolute;
  inset: -60% -30% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(20, 227, 196, .3), transparent 70%);
  pointer-events: none;
}
.callout h3 { position: relative; font-size: var(--step-1); margin-block-end: 10px; }
.callout p { position: relative; color: var(--ink-2); }
.callout-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 16px;
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
}
.callout-cta:hover { gap: 12px; }
.callout-cta span { transition: transform .2s; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq-list { display: grid; gap: 10px; }
.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.qa[open] { border-color: rgba(20, 227, 196, .3); background: rgba(20, 227, 196, .05); }
.qa summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--step-0);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  transition: transform .25s var(--ease-out);
  flex-shrink: 0;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa-body { padding: 0 20px 18px; }
.qa-body p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.7; }

/* ── card grids ───────────────────────────────────────────────────────── */

.type-grid, .tool-grid, .rel-grid, .contact-grid {
  display: grid;
  gap: 16px;
}
.type-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tool-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.rel-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.type-card, .tool-card, .rel-card, .contact-card, .country-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-surface);
  padding: 22px;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.type-card:hover, .tool-card:hover, .rel-card:hover, .country-card:hover {
  border-color: rgba(20, 227, 196, .38);
  box-shadow: var(--shadow-md), 0 0 40px rgba(20, 227, 196, .09);
}

.type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  background: rgba(124, 92, 255, .13);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  margin-block-end: 12px;
}
.type-card h3 { font-size: var(--step-1); margin-block-end: 8px; }
.type-desc { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }
.type-meta { margin-block-start: 16px; display: grid; gap: 8px; }
.type-meta > div { display: flex; gap: 8px; font-size: 12.5px; }
.type-meta dt { color: var(--muted); flex-shrink: 0; min-width: 48px; }
.type-meta dd { color: var(--ink-2); margin: 0; }

.tool-kw, .rel-kw {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  margin-block-end: 8px;
}
.tool-card h3, .rel-title {
  display: block;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  margin-block-end: 8px;
  color: var(--ink);
}
.tool-card p, .rel-desc { display: block; color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }

.country-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.country-card { padding: 18px; display: grid; gap: 5px; }
.country-name { font-size: var(--step-1); font-weight: 700; }
.country-cur { font-size: 12.5px; color: var(--teal); }
.country-vat { font-size: 12.5px; color: var(--muted); }

.contact-card h3 { font-size: var(--step-1); margin-block-end: 8px; }
.contact-card p { color: var(--ink-2); font-size: var(--step--1); }
.contact-link {
  display: inline-block;
  margin-block-start: 14px;
  color: var(--teal);
  font-weight: 600;
  border-block-end: 1px solid rgba(20, 227, 196, .35);
}

/* ── steps ────────────────────────────────────────────────────────────── */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step {
  position: relative;
  display: flex;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-surface);
  padding: 20px;
}
.steps-compact .step { flex-direction: column; gap: 12px; }
.step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(20, 227, 196, .12);
  border: 1px solid rgba(20, 227, 196, .3);
  color: var(--teal);
  font-weight: 700;
  font-size: 16px;
}
.step-body h3 { font-size: var(--step-1); margin-block-end: 8px; }
.step-body p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.65; }

/* ── calculators ──────────────────────────────────────────────────────── */

/* Each calculator ships with its default inputs AND its computed defaults in
 * the HTML, so a crawler that never runs JS still reads a full worked example. */
.calc {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20,227,196,.055), rgba(124,92,255,.045));
  padding: 26px;
  margin-block: 12px 44px !important;
}
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(7, 10, 18, .6);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming the page on focus */
  font-weight: 600;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 34px;
}
html[dir="rtl"] .field select {
  background-position: 13px 50%, 18px 50%;
  background-image: linear-gradient(135deg, transparent 50%, var(--teal) 50%), linear-gradient(45deg, var(--teal) 50%, transparent 50%);
  padding-inline-end: 14px;
  padding-inline-start: 34px;
}
.field input:focus, .field select:focus { border-color: var(--teal); }

.calc-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.out { background: rgba(7, 10, 18, .72); padding: 16px 18px; }
.out dt { font-size: 12px; color: var(--muted); margin-block-end: 6px; }
.out dd {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.out-strong { background: rgba(20, 227, 196, .1); }
.out-strong dd {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-verdict { margin-block-start: 14px; font-size: 13.5px; color: var(--ink-2); }
.calc-privacy { margin-block-start: 10px; font-size: 12px; color: var(--muted); }

.calc-scale { display: flex; gap: 4px; margin-block-start: 16px; }
.calc-scale span {
  flex: 1;
  height: 34px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.calc-scale span.ok { background: rgba(20,227,196,.14); border-color: rgba(20,227,196,.4); color: var(--teal); }
.calc-scale span.now { background: var(--grad-aurora); color: var(--on-accent); border-color: transparent; }

/* ── related + CTA ────────────────────────────────────────────────────── */

.related { padding-block: 56px; border-block-start: 1px solid var(--line); }
.section-title { font-size: var(--step-2); margin-block-end: 22px; }
.rel-card { display: grid; gap: 2px; }

.cta-band {
  position: relative;
  overflow: hidden; /* .cta-glow is negatively inset */
  border-block-start: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 84px);
  text-align: center;
}
.cta-glow {
  position: absolute;
  inset: -50% -25% auto;
  height: 200%;
  background:
    radial-gradient(closest-side, rgba(20, 227, 196, .2), transparent 70%),
    radial-gradient(closest-side, rgba(124, 92, 255, .18), transparent 72%);
  background-position: 30% 40%, 72% 55%;
  background-size: 54% 60%, 50% 56%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-title { font-size: var(--step-3); }
.cta-sub { max-width: 56ch; margin: 14px auto 0; color: var(--ink-2); }
.cta-band .btn { margin-block-start: 28px; }
.cta-note { margin-block-start: 14px; font-size: var(--step--1); color: var(--muted); }
.cta-compact { padding-block: clamp(36px, 4vw, 56px); }

.store-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 18, .55);
  transition: border-color .2s, transform .2s;
}
.store-pill:hover { border-color: var(--teal); transform: translateY(-2px); }
.store-pill span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
html[dir="rtl"] .store-pill span { align-items: flex-end; }
.store-pill small { font-size: 10px; color: var(--muted); }
.store-pill strong { font-size: 14.5px; font-weight: 600; }

/* ── 404 ──────────────────────────────────────────────────────────────── */

.notfound { text-align: center; padding-block: clamp(70px, 12vw, 140px); }
.notfound .lead { margin-inline: auto; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-block-start: 30px; }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot { border-block-start: 1px solid var(--line); background: var(--bg-2); padding-block: 52px 0; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}
.foot-brand .brand { margin-block-end: 14px; }
.foot-tagline { color: var(--muted); font-size: var(--step--1); max-width: 32ch; }
.powered-by {
  margin-block-start: 18px;
  font-size: var(--step--1);
  color: var(--ink-2);
  padding: 12px 16px;
  border: 1px solid rgba(20, 227, 196, .22);
  border-radius: var(--radius-sm);
  background: rgba(20, 227, 196, .06);
  max-width: 34ch;
}
.powered-by a { color: var(--teal); font-weight: 600; }
.powered-by a:hover { text-decoration: underline; }

.foot-col h3 {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-block-end: 14px;
}
html[dir="rtl"] .foot-col h3 { letter-spacing: 0; text-transform: none; font-size: var(--step--1); }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-col a { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.foot-col a:hover { color: var(--teal); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  margin-block-start: 44px;
  padding-block: 20px;
  border-block-start: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.foot-worldwide { max-width: 62ch; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
