/* ==========================================================================
   Loophole VPN — loopholevpn.com
   Design language: "Lumen paper" — warm paper, ink typography, teal ink
   stamps, gold foil. Mirrors the Android app's visual system (Fraunces /
   Inter / Vazirmatn, paper #F6F2E9, ink #20201C, teal #0E9C89, gold #C9A24B).
   ========================================================================== */

/* ---------- Fonts (self-hosted; fonts.gstatic is blocked in Iran) -------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-medium-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --paper: #F6F2E9;
  --paper-2: #EFE9DC;
  --paper-3: #E4DCCC;
  --ink: #20201C;
  --ink-2: #5A554B;
  --ink-3: #7C7565;
  --line: #D9D1C0;
  --line-soft: rgba(32, 32, 28, .12);
  --teal: #0E9C89;
  --teal-deep: #0A6F61;
  --teal-bright: #38C2AC;
  --teal-tint: #DDEDE8;
  --teal-tint-2: #E8F6F3;
  --gold: #C9A24B;
  --gold-deep: #A2802F;
  --slate: #0E1316;
  --slate-2: #182024;
  --cream-on-slate: #EFE9DC;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --w: 1140px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(32,32,28,.05), 0 8px 28px rgba(32,32,28,.07);
  --shadow-2: 0 2px 4px rgba(32,32,28,.07), 0 18px 50px rgba(32,32,28,.12);

  --globe-dot: 32, 32, 28;        /* ink, rgb triplet for canvas */
  --globe-accent: 14, 156, 137;   /* teal */
  --globe-gold: 201, 162, 75;
}

/* Farsi pages: Vazirmatn everywhere (Fraunces has no Arabic) */
html[lang="fa"] {
  --font-display: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-text: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

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

html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2147483647;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
strong, b { font-weight: 600; }
html[lang="fa"] strong, html[lang="fa"] b { font-weight: 700; }
::selection { background: var(--teal-tint); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 {
  font-weight: 700; letter-spacing: 0; line-height: 1.4;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.35rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--w); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* italic accent inside headings (EN only — Vazirmatn has no italic) */
.accent { font-style: italic; font-weight: 500; color: var(--teal-deep); }
html[lang="fa"] .accent { font-style: normal; font-weight: 700; }

/* ---------- Kickers, rules, stamps --------------------------------------- */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
html[lang="fa"] .kicker { letter-spacing: .06em; font-size: .8rem; }
.kicker::after { content: ""; height: 1px; flex: 0 0 64px; background: var(--line); }
.kicker--center { justify-content: center; }
.kicker--center::before { content: ""; height: 1px; flex: 0 0 64px; background: var(--line); }
.kicker .no { color: var(--gold-deep); }

.stamp {
  display: inline-block;
  padding: .5em .9em;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 1.5px var(--paper), inset 0 0 0 3px var(--gold);
  border-radius: 8px;
  color: var(--gold-deep);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  rotate: -5deg;
  background: transparent;
}
html[lang="fa"] .stamp { letter-spacing: .04em; font-size: .76rem; rotate: 5deg; }
.stamp--teal { border-color: var(--teal); color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--paper), inset 0 0 0 3px var(--teal); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  box-shadow: 0 1px 2px rgba(32,32,28,.15);
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; transform: translateY(-1.5px); box-shadow: 0 8px 22px rgba(10,111,97,.28); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(3px); }
html[dir="rtl"] .btn .arr { scale: -1 1; }
html[dir="rtl"] .btn:hover .arr { transform: translateX(-3px); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink-3); color: var(--ink); transform: translateY(-1.5px); box-shadow: none; }

.btn--big { padding: 18px 34px; font-size: 1.06rem; }

.btn--paper {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn--paper:hover { background: #fff; border-color: #fff; color: var(--teal-deep); }

/* ---------- Header -------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(32,32,28,.06); }
.site-head .bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em;
  margin-inline-end: auto;
}
html[lang="fa"] .brand { font-weight: 700; letter-spacing: 0; }
.brand .mark { flex: 0 0 auto; }
.brand small {
  font-family: var(--font-text);
  font-size: .6rem; font-weight: 600; letter-spacing: .3em;
  color: var(--teal-deep);
  border: 1px solid var(--teal);
  padding: .35em .5em .25em .6em;
  border-radius: 5px;
  translate: 0 -7px;
}
html[lang="fa"] .brand small { letter-spacing: .1em; padding: .3em .55em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: .95rem; font-weight: 600;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { padding: 10px 20px; font-size: .92rem; }
.lang-link {
  font-family: "Vazirmatn", var(--font-text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 9px;
  color: var(--ink-2) !important;
  line-height: 1;
}
html[lang="fa"] .lang-link { font-family: "Inter", var(--font-text); padding: 8px 14px; }
.lang-link:hover { border-color: var(--teal); color: var(--teal-deep) !important; background: var(--teal-tint-2); }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .site-nav a:not(.btn):not(.lang-link) { display: none; }
  .site-head .bar { min-height: 64px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .site-head .bar { gap: 12px; }
  .site-nav { gap: 10px; }
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand .mark { width: 26px; height: 26px; }
  .brand small { letter-spacing: .18em; padding: .3em .4em .22em .5em; translate: 0 -5px; }
  .site-nav .btn { padding: 9px 15px; font-size: .86rem; }
  .lang-link { padding: 6px 11px 8px; font-size: .86rem; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero { position: relative; overflow: clip; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 40px;
  align-items: center;
  padding-top: clamp(40px, 7vh, 84px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-copy { max-width: 600px; }
.hero-copy .lead {
  font-size: 1.16rem; color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 1.7em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-meta {
  color: var(--ink-3); font-size: .84rem;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.hero-meta .sep { color: var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 62%, transparent);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.chips .tick { color: var(--teal); font-weight: 700; }

.hero-stage { position: relative; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-stage .globe { position: absolute; inset: 0; width: 100%; height: 100%; }

.route-card {
  position: absolute;
  background: color-mix(in srgb, var(--paper) 88%, #fff 12%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  padding: 10px 15px;
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
}
.route-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.route-card .ms { color: var(--ink-3); font-weight: 400; }
.route-card--a { top: 9%; inset-inline-end: 2%; }
.route-card--b { bottom: 20%; inset-inline-start: -2%; }
.route-card--c { bottom: -2%; inset-inline-end: 10%; }
.hero-stamp { position: absolute; top: 2%; inset-inline-start: 0; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 20px; }
  .hero-stage { max-width: 430px; }
  .route-card--b { inset-inline-start: 0; }
}
@media (max-width: 560px) {
  .route-card--c { display: none; }
  .hero-copy .lead { font-size: 1.06rem; }
}

/* ---------- Ticker strip --------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding: 13px 0;
}
.ticker .lane {
  display: flex; gap: 44px; width: max-content;
  animation: tick 46s linear infinite;
}
.ticker span {
  font-size: .72rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 44px;
  white-space: nowrap;
}
html[lang="fa"] .ticker span { letter-spacing: .08em; font-size: .8rem; }
.ticker .star { color: var(--gold); letter-spacing: 0; }
@keyframes tick { to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker .lane { animation-name: tick-rtl; }
@keyframes tick-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .lane { animation: none; } }

/* ---------- Sections ------------------------------------------------------- */
.section { padding-block: clamp(64px, 10vh, 116px); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .sub { color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Feature grid --------------------------------------------------- */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px 26px;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.section--tint .feat { background: var(--paper); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--teal); }
.feat .no {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  color: var(--gold-deep); font-size: .95rem;
  display: block; margin-bottom: 14px;
}
html[lang="fa"] .feat .no { font-style: normal; }
.feat .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-tint-2);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--paper));
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.feat h3 { margin-bottom: .4em; }
.feat p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 940px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.step .num {
  font-family: var(--font-display); font-weight: 600;
  font-size: 2.6rem; line-height: 1;
  color: var(--teal);
  display: block; margin-bottom: 16px;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.step .tiny { display: block; margin-top: 12px; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- App showcase / phone ------------------------------------------- */
.app-show { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .app-show { grid-template-columns: 1fr; } }

.phone-wrap { position: relative; display: grid; place-items: center; padding-block: 12px; }
.phone-wrap::before {
  content: "";
  position: absolute; inset: 8% 12%;
  background: radial-gradient(closest-side, var(--teal-tint) 0%, transparent 72%);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(310px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: var(--slate);
  padding: 11px;
  box-shadow: 0 2px 4px rgba(14,19,22,.4), 0 30px 70px rgba(14,19,22,.35), inset 0 0 0 2px #2a3237;
}
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #FAF7F0 0%, var(--paper) 60%, var(--paper-2) 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone .notch {
  position: absolute; top: 10px; left: 50%; translate: -50% 0;
  width: 84px; height: 22px; border-radius: 999px;
  background: var(--slate);
}
.scr-top { padding: 48px 22px 0; text-align: center; }
.scr-brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; color: var(--ink);
  letter-spacing: .01em;
}
html[lang="fa"] .scr-brand { font-weight: 700; }
.scr-state { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); margin-top: 5px; }
html[lang="fa"] .scr-state { letter-spacing: .05em; }
.scr-globe { position: relative; flex: 1; display: grid; place-items: center; padding: 8px 0; }
.scr-globe .ringed { position: relative; width: 74%; aspect-ratio: 1; display: grid; place-items: center; }
.scr-globe .cring {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 140deg, var(--teal) 0 78%, transparent 78% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  opacity: .9;
}
.scr-globe .globe { width: 84%; aspect-ratio: 1; }
.scr-route {
  margin: 0 auto; width: fit-content;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff9; padding: 7px 14px;
  font-size: .74rem; font-weight: 600; color: var(--ink-2);
}
.scr-route .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.scr-detail { text-align: center; font-size: .74rem; color: var(--ink-3); margin-top: 9px; }
.scr-slide {
  margin: 16px 18px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .84rem; font-weight: 600;
  padding: 15px 18px;
  padding-inline-start: 56px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
}
.scr-slide .knob {
  position: absolute; inset-inline-start: 5px; top: 5px; bottom: 5px;
  aspect-ratio: 1; border-radius: 50%;
  background: var(--teal-bright);
  display: grid; place-items: center; color: var(--slate);
}

.app-points { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 15px; }
.app-points li { display: flex; gap: 14px; align-items: flex-start; }
.app-points .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-tint-2); border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--paper));
  color: var(--teal-deep); display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
  translate: 0 2px;
}
.app-points b { display: block; font-weight: 600; }
.app-points span.d { color: var(--ink-2); font-size: .93rem; }

/* ---------- Pricing tickets ------------------------------------------------ */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1020px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

.ticket {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.ticket--hot { border: 1.5px solid var(--teal); box-shadow: 0 14px 40px rgba(14,156,137,.14); }
.ticket .stamp { position: absolute; top: -14px; inset-inline-end: 14px; }
.ticket .plan {
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
html[lang="fa"] .ticket .plan { letter-spacing: .05em; font-size: .82rem; }
.ticket .devices { font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.ticket .amount {
  font-family: var(--font-display); font-weight: 600;
  font-size: 2.7rem; letter-spacing: -.02em; line-height: 1;
  margin: 18px 0 2px; color: var(--ink);
}
.ticket .amount sup { font-size: 1.15rem; font-weight: 600; margin-inline-end: 2px; }
.ticket .per { font-size: .82rem; color: var(--ink-3); }
.ticket .perdev { font-size: .82rem; color: var(--teal-deep); font-weight: 600; margin-top: 3px; min-height: 1.2em; }
.ticket .tear {
  border-top: 2px dashed var(--line);
  margin: 20px -24px 18px;
  position: relative;
}
.ticket .tear::before, .ticket .tear::after {
  content: ""; position: absolute; top: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line);
}
.section--tint .ticket .tear::before, .section--tint .ticket .tear::after { background: var(--paper-2); }
.ticket .tear::before { inset-inline-start: -9px; }
.ticket .tear::after { inset-inline-end: -9px; }
.ticket ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.ticket ul .tick { color: var(--teal); font-weight: 700; margin-inline-end: 7px; }
.ticket .btn { margin-top: auto; width: 100%; padding: 13px 18px; font-size: .95rem; }
.price-notes { margin-top: 26px; text-align: center; color: var(--ink-2); font-size: .93rem; }
.price-notes .muted { color: var(--ink-3); font-size: .85rem; }

/* ---------- Gift band (dark) ----------------------------------------------- */
.gift {
  background: var(--slate);
  color: var(--cream-on-slate);
  border-block: 1px solid var(--slate);
  position: relative;
  overflow: clip;
}
.gift::before {
  content: "";
  position: absolute; inset: -40% -10% auto auto;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56,194,172,.16), transparent 70%);
}
.gift .container {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 40px; align-items: center;
  padding-block: clamp(56px, 8vh, 92px);
}
@media (max-width: 820px) { .gift .container { grid-template-columns: 1fr; } }
.gift h2 { color: #FAF7F0; }
.gift .sub { color: #B9B3A4; font-size: 1.06rem; }
.gift .kicker { color: var(--gold); }
.gift .kicker::after { background: rgba(201,162,75,.4); }
.gift-card {
  justify-self: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 26px 26px 24px;
  width: min(340px, 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  rotate: 2deg;
  position: relative;
}
.gift-card .stamp { position: absolute; top: -14px; inset-inline-end: -10px; background: var(--paper); }
.gift-card .lbl { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
html[lang="fa"] .gift-card .lbl { letter-spacing: .05em; }
.gift-card .code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.28rem; font-weight: 600; letter-spacing: .14em;
  border: 1.5px dashed var(--teal);
  background: var(--teal-tint-2);
  color: var(--teal-deep);
  border-radius: 10px;
  padding: 13px 10px;
  text-align: center;
  margin: 12px 0 14px;
}
.gift-card .meta { font-size: .82rem; color: var(--ink-2); display: flex; justify-content: space-between; }

/* ---------- FAQ ------------------------------------------------------------ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 2px;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 2px;
  font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--teal-deep);
  font-size: 1.1rem; line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--teal-tint-2); border-color: var(--teal); }
.faq .a { padding: 0 2px 20px; color: var(--ink-2); max-width: 64ch; }
.faq .a p { margin-bottom: .7em; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ------------------------------------------------------ */
.final { text-align: center; position: relative; overflow: clip; }
.final .container { position: relative; padding-block: clamp(72px, 11vh, 130px); }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.final .sub { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 34px; }
.final .globe-bg {
  position: absolute; inset: auto auto -46% 50%;
  translate: -50% 0;
  width: min(760px, 120vw); aspect-ratio: 1;
  opacity: .5;
  pointer-events: none;
}
.final .hero-ctas { justify-content: center; }
.final .hero-meta { justify-content: center; }

/* ---------- Footer ---------------------------------------------------------- */
.site-foot {
  background: var(--slate);
  color: #A9A395;
  font-size: .92rem;
}
.site-foot a { color: var(--cream-on-slate); text-decoration: none; }
.site-foot a:hover { color: var(--teal-bright); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr));
  gap: 36px;
  padding-block: 60px 44px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { color: var(--cream-on-slate); margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; margin: 0; }
.site-foot h4 {
  color: #FAF7F0; font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  margin: 6px 0 16px;
}
html[lang="fa"] .site-foot h4 { letter-spacing: .05em; font-size: .86rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-bottom {
  border-top: 1px solid #242D32;
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
  font-size: .8rem; color: #7E7A6E;
}
.foot-bottom .quiet a { color: #A9A395; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Inner pages (download / support / legal) ----------------------- */
.page-head { padding-block: clamp(48px, 8vh, 80px) clamp(28px, 4vh, 44px); }
.page-head .lead { color: var(--ink-2); font-size: 1.12rem; max-width: 62ch; }
.page-body { padding-bottom: clamp(64px, 10vh, 110px); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; font-family: var(--font-text); font-weight: 600; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .45em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose .updated {
  font-size: .84rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px;
  display: inline-block; padding: 6px 14px; margin-bottom: 8px;
  background: var(--paper-2);
}
.callout {
  border: 1px solid color-mix(in srgb, var(--teal) 36%, var(--paper));
  background: var(--teal-tint-2);
  border-radius: var(--r-md);
  padding: 20px 24px;
  color: var(--ink-2);
  margin: 22px 0;
}
.callout.gold { border-color: color-mix(in srgb, var(--gold) 45%, var(--paper)); background: color-mix(in srgb, var(--gold) 9%, var(--paper)); }
.callout b { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose th, .prose td { text-align: start; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 600; }

/* download page */
.dl-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-2);
  margin-block: 8px 18px;
}
@media (max-width: 720px) { .dl-card { grid-template-columns: 1fr; text-align: center; } .dl-card .btn { width: 100%; } .dl-app-ico { margin-inline: auto; } }
.dl-app-ico {
  width: 76px; height: 76px; border-radius: 20px;
  background: var(--slate);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px #2a3237;
}
.dl-card h2 { margin: 0 0 4px; font-size: 1.5rem; }
.dl-card .meta { color: var(--ink-3); font-size: .88rem; margin: 0; }
.hash-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--ink-3);
  margin-bottom: 34px;
}
.hash-row code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .74rem;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 8px;
  word-break: break-all;
  color: var(--ink-2);
}
.copy-btn {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 8px; padding: 6px 12px;
  font-family: var(--font-text); font-size: .78rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--teal); color: var(--teal-deep); }

/* support page contact card */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-block: 10px 40px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); padding: 26px 28px;
}
.contact-card h3 { margin-bottom: .3em; }
.contact-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 14px; }
.contact-card .big-link {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--teal-deep); text-decoration: none; border-bottom: 2px solid var(--teal-tint);
}
html[lang="fa"] .contact-card .big-link { font-weight: 700; }
.contact-card .big-link:hover { border-bottom-color: var(--teal); }

/* 404 */
.err-wrap { text-align: center; padding-block: clamp(90px, 16vh, 170px); }
.err-wrap .code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 600; line-height: 1; color: var(--teal); }

/* ---------- Reveal on scroll (JS-gated: no JS → everything visible) --------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feat, .ticket { transition: none; }
}

/* ---------- RTL fine-tuning -------------------------------------------------- */
html[dir="rtl"] .kicker { letter-spacing: .06em; }
html[dir="rtl"] .ticket .amount { letter-spacing: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; }
html[dir="rtl"] .hero-copy .lead { font-size: 1.12rem; }
html[dir="rtl"] .gift-card { rotate: -2deg; }
