/* ============================================================
   Bloodgate — راهنمای V2Ray/Xray
   Minimal premium theme · RTL-first (Persian) · Light default
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f8f8f9;
  --bg-soft: #f2f2f5;
  --surface: #ffffff;
  --surface-2: #f2f2f5;
  --border: #e7e7ec;
  --border-strong: #d9d9e0;
  --text: #17171c;
  --muted: #5a5b64;
  --faint: #8b8c96;
  --accent: #d33449;
  --accent-hover: #b8293d;
  --accent-soft: rgba(211, 52, 73, 0.09);
  --accent-border: rgba(211, 52, 73, 0.25);
  --good: #1f9d61;
  --good-soft: rgba(31, 157, 97, 0.1);
  --shadow: 0 10px 30px rgba(16, 16, 20, 0.08);
  --shadow-sm: 0 4px 14px rgba(16, 16, 20, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Vazirmatn", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 60px;
}

[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-soft: #0e1014;
  --surface: #14161b;
  --surface-2: #1a1d24;
  --border: #23262e;
  --border-strong: #30343e;
  --text: #e9eaee;
  --muted: #9fa1ab;
  --faint: #676b76;
  --accent: #e5484d;
  --accent-hover: #f25f64;
  --accent-soft: rgba(229, 72, 77, 0.12);
  --accent-border: rgba(229, 72, 77, 0.35);
  --good: #3dd68c;
  --good-soft: rgba(61, 214, 140, 0.12);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset / base (mobile-first) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: inline-block; vertical-align: middle; }
::selection { background: var(--accent); color: #fff; }

/* Bilingual visibility: fa is default */
html[lang="fa"] .en { display: none !important; }
html[lang="en"] .fa { display: none !important; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Reading progress ---------- */
.progress-bar {
  position: fixed; top: 0; inset-inline: 0; height: 2.5px;
  z-index: 120; pointer-events: none;
}
.progress-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #ff8a5c);
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.95rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #8f1f2e);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-border);
}
.brand-mark .icon { width: 14px; height: 14px; }
.brand-name em { font-style: normal; color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.45rem; }
.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem; font-weight: 800;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-border); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 16px; height: 16px; }

/* Hamburger (mobile) */
.nav-toggle { display: grid; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }
.site-header.nav-open .nav-toggle .icon-menu { display: none; }

/* Mobile nav panel */
.site-nav {
  display: none;
  position: absolute; inset-inline: 0; top: var(--header-h);
  flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-header.nav-open .site-nav { display: flex; }
.site-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row;
    padding: 0; background: none; border: 0; box-shadow: none; gap: 1.5rem;
  }
  .site-nav a { padding: 0.3rem 0.1rem; font-size: 0.9rem; background: none; }
  .site-nav a.is-active { background: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 11px;
  font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-border); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent-border); color: var(--accent); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4.5rem 0 3.5rem; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; inset-inline: -20%; top: -45%; height: 130%;
  background:
    radial-gradient(560px 300px at 50% 0%, var(--accent-soft), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.3rem 0.85rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5.5vw, 3.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 22ch;
  margin-inline: auto;
}
.hero-sub {
  max-width: 60ch; margin: 1.1rem auto 0;
  color: var(--muted); font-size: 1rem;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.hero-chips .icon { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 620px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.4rem;
}
.section-head h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.3; }
.section-sub { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 0.9rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 1rem; margin: 0.8rem 0 0.35rem; }
.card p { color: var(--muted); font-size: 0.88rem; }
.card p strong, .card p b { color: var(--text); }
.card-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.card-icon .icon { width: 19px; height: 19px; }

/* ---------- App cards ---------- */
.app-card { text-align: start; display: block; width: 100%; }
.app-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.app-card .platforms { display: flex; gap: 0.3rem; color: var(--faint); flex-wrap: wrap; }
.app-card .platforms .icon { width: 15px; height: 15px; }
.app-card p { margin-top: 0.15rem; }
.app-card .go {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--accent);
}
.app-card .go .icon { transition: transform 0.3s var(--ease); }
[dir="rtl"] .app-card .go .icon { transform: scaleX(-1); }
.app-card:hover .go .icon { transform: translateX(3px); }
[dir="rtl"] .app-card:hover .go .icon { transform: scaleX(-1) translateX(3px); }

/* ---------- Subscription card ---------- */
.sub-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.4rem;
  max-width: 820px;
}
.sub-card-head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.sub-card-head h3 { font-size: 1.05rem; }
.sub-card-head p { color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }

.sub-link-box {
  display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
}
@media (min-width: 620px) {
  .sub-link-box { flex-direction: row; align-items: center; }
  .copy-btn { flex-shrink: 0; }
}
.sub-link-box code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.6;
  flex: 1;
  direction: ltr;
  text-align: left;
}
.copy-btn.copied { background: var(--good); box-shadow: 0 4px 14px var(--good-soft); }

.sub-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin-top: 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--muted);
}
.sub-note .icon { color: var(--accent); margin-top: 0.25rem; }
.sub-note strong, .sub-note b { color: var(--text); }

/* ---------- How it works ---------- */
.how-it-works { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 620px) { .how-it-works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .how-it-works { grid-template-columns: repeat(4, 1fr); } }
.how-it-works li { display: flex; gap: 0.8rem; align-items: flex-start; }
.how-it-works li > span {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 800; font-size: 0.85rem;
}
.how-it-works h4 { font-size: 0.92rem; margin-bottom: 0.1rem; }
.how-it-works p { color: var(--muted); font-size: 0.82rem; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--muted);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent-soft); color: var(--accent); }

.tab-panel { animation: panelIn 0.4s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.panel-head {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 1.4rem;
}
@media (min-width: 720px) {
  .panel-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.panel-head h3 { font-size: 1.15rem; }
.panel-head .lead { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.platform-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-inline-start: 0.4rem;
  vertical-align: middle;
}

.panel-progress { min-width: 180px; }
.panel-progress small { display: block; text-align: end; color: var(--faint); font-size: 0.75rem; margin-top: 0.3rem; }
.progress-track {
  height: 5px; border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-track span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #ff8a5c);
  border-radius: inherit;
  transition: width 0.5s var(--ease);
}

/* Platform chips (cross-platform apps) */
.platform-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.platform-chips a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.platform-chips a:hover { color: var(--accent); border-color: var(--accent-border); }
.platform-chips a .icon { width: 14px; height: 14px; }

.dl-box {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.85rem; color: var(--muted);
}
.dl-box code { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); direction: ltr; unicode-bidi: embed; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0.75rem; max-width: 820px; }
.step {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.step:hover { border-color: var(--border-strong); }
.step-num {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800; font-size: 0.85rem;
}
.step-body { flex: 1; min-width: 0; }
.step-body h4 {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.98rem; margin-bottom: 0.3rem;
}
.step-body h4 .icon { color: var(--accent); }
.step-body p { color: var(--muted); font-size: 0.88rem; }
.step-body p + p { margin-top: 0.4rem; }
.step-body strong, .step-body b { color: var(--text); }
.step-body code {
  font-family: var(--mono); font-size: 0.78em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08em 0.4em;
  direction: ltr; unicode-bidi: embed;
}
.step-body kbd {
  font-family: var(--mono); font-size: 0.76em;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.05em 0.4em;
}
.step-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mini-note {
  font-size: 0.8rem; color: var(--faint);
  border-inline-start: 2px solid var(--accent-border);
  padding-inline-start: 0.75rem;
  margin-top: 0.5rem;
}

.step-done {
  display: grid; place-items: center;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease);
}
.step-done:hover { border-color: var(--good); color: var(--good); }
.step-done .icon { width: 13px; height: 13px; }
.step-done input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.step.done { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, var(--border)); }
.step.done .step-num { background: var(--good-soft); color: var(--good); }
.step.done .step-done { background: var(--good); border-color: var(--good); color: #fff; }
.step.done .step-body h4 { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- Troubleshooting ---------- */
.troubleshoot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.troubleshoot > h3 {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.05rem; margin-bottom: 1.2rem;
}
.troubleshoot > h3 .icon { color: var(--accent); }
.ts-grid { display: grid; gap: 1.1rem 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .ts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ts-grid { grid-template-columns: repeat(3, 1fr); } }
.ts-item h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.ts-item p { color: var(--muted); font-size: 0.82rem; }
.ts-item strong, .ts-item b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq[open] { border-color: var(--accent-border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-weight: 700; font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--faint); transition: transform 0.3s var(--ease); }
.faq[open] summary .chev { transform: rotate(180deg); }
.faq > p { padding: 0 1.15rem 1rem; color: var(--muted); font-size: 0.88rem; }
.faq strong, .faq b { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), #8f1f2e);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: #fff;
}
.cta-band h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin: 0.5rem auto 1.4rem; font-size: 0.92rem; }
.cta-band .btn { background: #fff; color: var(--accent); box-shadow: none; }
.cta-band .btn:hover { background: #ffe9eb; transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.2rem 0 2.6rem; background: var(--surface); }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-about p { color: var(--muted); font-size: 0.85rem; margin-top: 0.7rem; max-width: 40ch; }
.footer-col h4 { font-size: 0.82rem; margin-bottom: 0.7rem; color: var(--faint); }
.footer-col a {
  display: block; padding: 0.2rem 0;
  color: var(--muted); font-size: 0.88rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: var(--faint); font-size: 0.78rem; max-width: 70ch; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; bottom: 1.2rem; inset-inline-end: 1.2rem;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { color: var(--accent); border-color: var(--accent-border); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Theme toggle icon: light shows moon (go dark), dark shows sun (go light) */
html:not([data-theme="dark"]) .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* ============================================================
   v2.1 — Pricing · Store · Happ · Bottom nav
   ============================================================ */

/* ---------- Centered guide boxes (steps) ---------- */
.steps { max-width: 720px; margin-inline: auto; }
.step {
  flex-direction: column; align-items: center;
  text-align: center; gap: 0.7rem;
  padding: 1.35rem 1.2rem;
}
.step-body h4 { justify-content: center; }
.step-body p { max-width: 58ch; margin-inline: auto; }
.mini-note { text-align: center; border-inline-start: 0; padding-inline-start: 0; max-width: 58ch; margin-inline: auto; }
.step-done { margin-top: 0.35rem; }

/* ---------- Recommended / badges ---------- */
.badge-rec {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em;
  color: #fff; background: linear-gradient(135deg, var(--good), #148a54);
  padding: 0.28rem 0.7rem; border-radius: 999px;
  box-shadow: 0 3px 10px var(--good-soft);
  margin-inline-start: 0.5rem; vertical-align: middle;
  white-space: nowrap;
}
.badge-rec .icon { width: 11px; height: 11px; }

/* ---------- Discount / promo banner ---------- */
.discount-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #7c1b29);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.4rem 1.5rem;
  text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.discount-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 50% -20%, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.discount-banner h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; }
.discount-banner > p { color: rgba(255,255,255,0.88); max-width: 58ch; margin: 0.5rem auto 1.3rem; font-size: 0.92rem; }
.promo-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.promo-code {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px dashed rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.promo-code code {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.08em; color: #fff; direction: ltr; unicode-bidi: embed;
}
.promo-code .copy-btn { background: #fff; color: var(--accent); border: 0; }
.promo-code .copy-btn:hover { background: #ffe9eb; }
.promo-valid {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.1rem; font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.18);
  padding: 0.35rem 0.9rem; border-radius: 999px;
}
.promo-valid .icon { width: 13px; height: 13px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
  margin-top: 2.4rem;
}
@media (min-width: 560px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.plan-tag {
  position: absolute; top: -0.85rem; inset-inline-start: 50%;
  transform: translateX(-50%); white-space: nowrap;
  font-size: 0.68rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #8f1f2e);
  padding: 0.28rem 0.85rem; border-radius: 999px;
  box-shadow: 0 3px 10px var(--accent-border);
}
[dir="rtl"] .plan-tag { transform: translateX(50%); }
.plan-vol {
  display: inline-flex; align-items: center; gap: 0.45rem; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem 0.9rem;
  width: fit-content; margin-inline: auto;
}
.plan-vol .icon { width: 13px; height: 13px; color: var(--accent); }
.plan-card.free .plan-vol .icon { color: var(--good); }
.plan-price { margin-top: 1rem; line-height: 1.2; }
.plan-price strong {
  display: block; font-size: clamp(1.45rem, 3.6vw, 1.8rem);
  font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan-price small { display: block; margin-top: 0.25rem; color: var(--faint); font-size: 0.78rem; }
.plan-price del {
  display: block; margin-top: 0.35rem;
  color: var(--faint); font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.plan-card .btn { margin-top: 1.3rem; width: 100%; }

.plan-card.free { border: 1.5px dashed var(--good); background: var(--good-soft); }
.plan-card.free .plan-vol { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.plan-card.free:hover { border-color: var(--good); box-shadow: 0 10px 30px var(--good-soft); }

.pricing-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin-top: 1.6rem; padding: 0.9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--muted);
}
.pricing-note .icon { color: var(--accent); margin-top: 0.2rem; flex-shrink: 0; }
.pricing-note strong, .pricing-note b { color: var(--text); }








/* ---------- Store page ---------- */
.store-hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 3.5rem; text-align: center;
}
.store-hero .container { position: relative; }
.store-latin {
  display: block;
  font-size: 0.42em; font-weight: 700;
  letter-spacing: 0.04em; color: var(--faint);
  margin-top: 0.4rem; line-height: 1;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 800;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.store-badge .icon { color: var(--accent); }
.bot-card {
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  background: linear-gradient(135deg, #229ed9, #1a7bb0);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.2rem 1.5rem; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.bot-card .bot-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
}
.bot-card .bot-icon .icon { width: 28px; height: 28px; }
.bot-card h3 { font-size: 1.2rem; }
.bot-card p { color: rgba(255,255,255,0.88); font-size: 0.9rem; max-width: 52ch; }
.bot-handle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.14);
  border: 1.5px dashed rgba(255,255,255,0.5);
  border-radius: 12px; padding: 0.5rem 1.1rem;
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
  direction: ltr; unicode-bidi: embed;
}
.bot-card .btn { background: #fff; color: #1a7bb0; }
.bot-card .btn:hover { background: #eaf6fd; transform: translateY(-1px); }

.trust-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 620px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.trust-item:hover { transform: translateY(-3px); border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.trust-item .card-icon { margin-inline: auto; }
.trust-item h4 { font-size: 0.92rem; }
.trust-item p { color: var(--muted); font-size: 0.8rem; }

.channel-box {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.channel-box > div:first-child { display: flex; gap: 1rem; align-items: flex-start; }
.channel-box .card-icon { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.channel-box h3 { font-size: 1.05rem; margin: 0; }
.channel-box p { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; max-width: 56ch; }

/* ---------- Bottom navigation (mobile glass bar) ---------- */
.bottom-nav {
  position: fixed; bottom: 0.75rem; inset-inline: 0.75rem;
  z-index: 110;
  display: flex; justify-content: space-around; align-items: stretch;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.4rem 0.5rem;
  max-width: 440px;
  margin-inline: auto;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  flex: 1; padding: 0.45rem 0.3rem;
  border-radius: 13px;
  font-size: 0.66rem; font-weight: 700; color: var(--faint);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.bottom-nav a:active { transform: scale(0.93); }
.bottom-nav a .icon { width: 19px; height: 19px; }
.bottom-nav a.is-active { color: var(--accent); background: var(--accent-soft); }
.bottom-nav a:hover { color: var(--accent); }
@media (max-width: 859.98px) {
  body { padding-bottom: calc(66px + 1.2rem); }
  .back-top { bottom: calc(78px + 0.7rem); }
}
@media (min-width: 860px) { .bottom-nav { display: none; } }
@media (max-width: 380px) { .bottom-nav a { font-size: 0.6rem; } }

/* ============================================================
   v2.2 — Countdown · Modal · Partners · Pricing extras
   ============================================================ */

/* ---------- Countdown ---------- */
.countdown {
  display: inline-flex; gap: 0.5rem; justify-content: center;
  margin-top: 1.15rem;
}
.cd-unit {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 0.5rem 0.35rem;
  min-width: 62px;
}
.cd-unit b {
  font-size: 1.15rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff; letter-spacing: 0.02em;
}
.cd-unit small {
  font-size: 0.62rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}
.discount-banner.expired .countdown { display: none; }

/* ---------- Homepage partners preview ---------- */
.partners-grid {
  position: relative;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
  margin-top: 2.2rem;
}
@media (min-width: 760px) { .partners-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.partner-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.8rem 1.4rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.partner-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #8f1f2e);
  color: #fff; box-shadow: 0 8px 20px var(--accent-border);
}
.partner-icon .icon { width: 26px; height: 26px; }
.partner-card.store .partner-icon {
  background: linear-gradient(135deg, #229ed9, #1a7bb0);
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.3);
}
.partner-card h3 { font-size: 1.1rem; margin-top: 0.5rem; }
.partner-card > p { color: var(--muted); font-size: 0.87rem; max-width: 44ch; }
.partner-role {
  display: inline-block; margin-bottom: 0.2rem;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 0.2rem 0.7rem; border-radius: 999px;
}
.partner-card.store .partner-role { color: #1a7bb0; background: rgba(34, 158, 217, 0.1); border-color: rgba(34, 158, 217, 0.3); }
.partner-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.9rem; }
.partners-join {
  display: none;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 46px; height: 46px;
  place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%;
  font-weight: 800; font-size: 0.9rem; color: var(--accent);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) { .partners-join { display: grid; } }

/* ---------- GozarShop link cards (store page) ---------- */
.link-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 560px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
.link-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.3rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.link-card:hover { transform: translateY(-3px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.link-card .card-icon { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.link-card.tg .card-icon { background: rgba(34, 158, 217, 0.12); border-color: rgba(34, 158, 217, 0.3); color: #229ed9; }
.link-card h4 { font-size: 0.98rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.link-card p { color: var(--muted); font-size: 0.83rem; margin-top: 0.25rem; }
.link-card .go {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.6rem; font-size: 0.82rem; font-weight: 700; color: var(--accent);
}
.link-card .go .icon { transition: transform 0.3s var(--ease); }
[dir="rtl"] .link-card .go .icon { transform: scaleX(-1); }
.link-card:hover .go .icon { transform: translateX(3px); }
[dir="rtl"] .link-card:hover .go .icon { transform: scaleX(-1) translateX(3px); }
.handle-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.15rem 0.6rem; direction: ltr; unicode-bidi: embed;
}

/* ---------- Pricing extras ---------- */
.included-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-top: 1.6rem;
}
.included-strip li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.included-strip li:hover { border-color: var(--good); color: var(--text); }
.included-strip .icon { width: 14px; height: 14px; color: var(--good); }
.plan-perks {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-top: 0.9rem; padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}
.plan-perks span {
  display: flex; align-items: center; gap: 0.4rem; justify-content: center;
  font-size: 0.78rem; color: var(--faint);
}
.plan-perks .icon { width: 12px; height: 12px; color: var(--good); flex-shrink: 0; }

/* ---------- Platform matrix (Happ guide) ---------- */
.plat-matrix { display: grid; gap: 0.6rem; grid-template-columns: 1fr; margin-bottom: 1.4rem; }
@media (min-width: 640px) { .plat-matrix { grid-template-columns: repeat(2, 1fr); } }
.plat-item {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem; font-size: 0.82rem;
}
.plat-item .icon { color: var(--accent); width: 15px; height: 15px; }
.plat-item b { font-size: 0.82rem; }
.plat-item span { color: var(--muted); font-size: 0.78rem; }


/* ============================================================
   v2.3 — Pricing tiers · Guides layout · Basics polish
   ============================================================ */

/* ---------- Pricing tiers ---------- */
.tier { margin-top: 3rem; }
.tier:first-of-type { margin-top: 0; }
.tier-head {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.tier-ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted);
}
.tier-ico .icon { width: 19px; height: 19px; }
.tier-head h3 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.tier-head .tier-sub { display: block; color: var(--faint); font-size: 0.78rem; font-weight: 500; margin-top: 0.1rem; }
.tier-line {
  flex: 1; height: 1px; align-self: center;
  background: linear-gradient(var(--dir, 90deg), transparent, var(--border-strong));
}
[dir="ltr"] .tier-line { background: linear-gradient(90deg, transparent, var(--border-strong)); }
.tier-flag {
  display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
  font-size: 0.7rem; font-weight: 800; white-space: nowrap;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.28rem 0.75rem; border-radius: 999px;
}
.tier-flag .icon { width: 12px; height: 12px; }
@media (max-width: 640px) { .tier-head .tier-sub { display: none; } }

/* Recommended tier highlight panel */
.tier-panel {
  position: relative;
  background:
    radial-gradient(600px 220px at 50% 0%, var(--accent-soft), transparent 75%),
    color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
  border: 1px solid var(--accent-border);
  border-radius: calc(var(--radius) + 8px);
  padding: 1.6rem 1.2rem 1.2rem;
  overflow: hidden;
}
.tier-panel .tier-grid { margin-top: 0; }
@media (min-width: 640px) { .tier-panel { padding: 1.8rem 1.5rem 1.4rem; } }

.tier-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Plan card v3 ---------- */
.plan-card { padding: 1.5rem 1.3rem 1.3rem; border-radius: 18px; }
.plan-card .plan-vol {
  background: none; border: 0; padding: 0;
  font-size: 1.02rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.01em;
}
.plan-card .plan-vol .icon { width: 16px; height: 16px; }
.plan-card .plan-vol .plan-unit {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
}
.plan-price strong { font-size: clamp(1.5rem, 3.4vw, 1.75rem); }
.plan-price small { margin-top: 0.3rem; }
.plan-per {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.55rem;
  font-size: 0.7rem; font-weight: 600; color: var(--faint);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.16rem 0.6rem; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.plan-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.7rem;
  font-size: 0.7rem; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border: 1px dashed var(--accent-border);
  padding: 0.22rem 0.7rem; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.plan-badge .icon { width: 11px; height: 11px; }
.plan-card.rec { border-color: var(--accent-border); }
.plan-card.rec:hover { box-shadow: 0 14px 34px var(--accent-border); }
.plan-card .ribbon {
  position: absolute; top: -0.8rem; inset-inline-start: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem; font-weight: 800; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, var(--accent), #8f1f2e);
  padding: 0.26rem 0.85rem; border-radius: 999px;
  box-shadow: 0 3px 12px var(--accent-border);
}
[dir="rtl"] .plan-card .ribbon { transform: translateX(50%); }
.plan-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin-top: 1.6rem; padding: 0.9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--muted);
}
.plan-note .icon { color: var(--accent); margin-top: 0.2rem; flex-shrink: 0; }
.plan-note strong, .plan-note b { color: var(--text); }

/* ---------- Guides layout (desktop sidebar rail) ---------- */
.guides-layout { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; }
.guides-layout .tabs { margin-bottom: 0; }
@media (min-width: 960px) {
  .guides-layout { grid-template-columns: 225px 1fr; gap: 1.6rem; }
  .guides-layout .tabs {
    position: sticky; top: calc(var(--header-h) + 1rem);
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    padding: 0.45rem; overflow: visible;
  }
  .guides-layout .tab { justify-content: flex-start; padding: 0.6rem 0.8rem; }
  .guides-layout .tab .tab-hint {
    margin-inline-start: auto;
    font-size: 0.6rem; font-weight: 700; color: var(--faint);
  }
}

/* ---------- Download grid (guides) ---------- */
.dl-grid {
  display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr;
  margin-bottom: 1.4rem;
}
@media (min-width: 640px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .dl-grid { grid-template-columns: repeat(4, 1fr); } }
.dl-grid a {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 0.55rem 0.7rem;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.dl-grid a:hover { border-color: var(--accent-border); color: var(--accent); transform: translateY(-1px); }
.dl-grid a .icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.dl-grid a small { display: block; font-size: 0.62rem; font-weight: 600; color: var(--faint); }
.dl-grid a > div { min-width: 0; text-align: start; }
.dl-grid a b { display: block; font-size: 0.78rem; color: var(--text); }

/* ---------- App panel header ---------- */
.panel-hero {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.2rem;
  margin-bottom: 1.4rem;
}
@media (min-width: 720px) { .panel-hero { flex-direction: row; text-align: start; } }
.panel-hero .app-logo {
  display: grid; place-items: center; flex-shrink: 0;
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.panel-hero .app-logo .icon { width: 30px; height: 30px; }
.panel-hero .panel-info { flex: 1; min-width: 0; }
.panel-hero h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 720px) { .panel-hero h3 { justify-content: flex-start; } }
.panel-hero .lead { color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }
.panel-hero .panel-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
  margin-top: 0.7rem;
}
@media (min-width: 720px) { .panel-hero .panel-meta { justify-content: flex-start; } }
.panel-hero .panel-meta span {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.2rem 0.65rem; border-radius: 999px;
}
.panel-hero .panel-meta .icon { width: 12px; height: 12px; color: var(--accent); }
.panel-hero .panel-progress { min-width: 160px; width: 100%; }
@media (min-width: 720px) { .panel-hero .panel-progress { width: 170px; flex-shrink: 0; } }

/* ---------- Basics quick-nav chips ---------- */
.jump-chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center;
  margin-top: 1.6rem;
}
.jump-chips a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.42rem 0.9rem; border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.jump-chips a:hover { border-color: var(--accent-border); color: var(--accent); transform: translateY(-1px); }
.jump-chips .icon { width: 13px; height: 13px; color: var(--accent); }

/* Routine step cards */
.routine-grid { counter-reset: routine; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .routine-grid { grid-template-columns: repeat(2, 1fr); } }
.routine-card { position: relative; counter-increment: routine; }
.routine-card .card-icon { margin-inline: auto; }
.routine-card h3 { text-align: center; }
.routine-card p { text-align: center; }
.routine-card::before {
  content: counter(routine);
  position: absolute; top: -0.7rem; inset-inline-start: 50%;
  transform: translateX(-50%);
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 800;
  box-shadow: 0 3px 10px var(--accent-border);
}
[dir="rtl"] .routine-card::before { transform: translateX(50%); }

/* ---------- Free trial band ---------- */
.trial-band {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
  background: var(--good-soft);
  border: 1.5px dashed var(--good);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.8rem 1.4rem;
  margin-top: 3rem;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.trial-band:hover { box-shadow: 0 14px 36px var(--good-soft); transform: translateY(-2px); }
@media (min-width: 820px) {
  .trial-band { flex-direction: row; text-align: start; padding: 1.7rem 1.8rem; }
  .trial-band .btn { margin-inline-start: auto; flex-shrink: 0; }
}
.trial-ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 58px; height: 58px; border-radius: 17px;
  background: linear-gradient(135deg, var(--good), #148a54);
  color: #fff;
  box-shadow: 0 8px 22px var(--good-soft);
}
.trial-ico .icon { width: 28px; height: 28px; }
.trial-body h3 { font-size: 1.1rem; }
.trial-body p { color: var(--muted); font-size: 0.86rem; margin-top: 0.25rem; max-width: 52ch; }
@media (min-width: 820px) { .trial-body { text-align: start; } }
.trial-band .btn { width: 100%; }
@media (min-width: 820px) { .trial-band .btn { width: auto; } }


/* ============================================================
   v3.0 — Content hub · Article layout · TOC · Prose · Tables
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 1.1rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; color: var(--faint);
}
.breadcrumbs a { color: var(--muted); font-weight: 600; transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 700; }
.bc-sep { user-select: none; opacity: 0.6; }

/* ---------- Article hero ---------- */
.article-hero {
  position: relative; overflow: hidden;
  padding: 2.2rem 0 2.4rem; text-align: center;
}
.article-hero .container { position: relative; }
.article-hero h1 {
  font-size: clamp(1.55rem, 4.6vw, 2.5rem);
  line-height: 1.3; letter-spacing: -0.02em; font-weight: 800;
  max-width: 26ch; margin-inline: auto;
}
.article-hero .hero-sub { margin-top: 0.9rem; font-size: 0.98rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center;
  margin-top: 1.2rem;
}
.article-meta span {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.28rem 0.8rem; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.article-meta .icon { width: 12px; height: 12px; color: var(--accent); }

/* ---------- Article layout: sticky TOC + prose ---------- */
.article-layout {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  align-items: start;
  padding-bottom: 4rem;
}
.toc {
  display: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  font-size: 0.84rem;
}
.toc-title {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--faint); text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.toc-title .icon { width: 13px; height: 13px; color: var(--accent); }
.toc ol { display: flex; flex-direction: column; gap: 0.15rem; }
.toc a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.6rem; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 0.82rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.toc a:hover { background: var(--surface-2); color: var(--accent); }
.toc a .icon { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 2.4rem; }
  .article-layout .toc { display: block; position: sticky; top: calc(var(--header-h) + 1.2rem); }
}

/* ---------- Prose typography ---------- */
.prose { min-width: 0; }
.prose > * + * { margin-top: 1.05rem; }
.prose p { color: var(--muted); font-size: 0.94rem; }
.prose p strong, .prose p b, .prose li strong, .prose li b { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { color: var(--text); }
.prose-h2 {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  font-size: 1.28rem; letter-spacing: -0.01em; line-height: 1.4;
  margin-top: 2.6rem; padding-top: 0.4rem;
}
.prose-h2 .icon { width: 1.05em; height: 1.05em; color: var(--accent); flex-shrink: 0; }
.prose-h2 + p, .prose-h2 + .note { margin-top: 0.8rem; }
.prose-h3 { font-size: 1.02rem; margin-top: 1.8rem; }
.anchor {
  color: var(--faint); font-weight: 600; font-size: 0.85em;
  opacity: 0; text-decoration: none !important;
  transition: opacity 0.2s var(--ease);
}
.prose-h2:hover .anchor, .anchor:focus-visible { opacity: 1; }

.prose code {
  font-family: var(--mono); font-size: 0.8em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 0.08em 0.4em;
  direction: ltr; unicode-bidi: embed; color: var(--text);
}

.prose-list { display: flex; flex-direction: column; gap: 0.5rem; }
.prose-list li {
  position: relative;
  color: var(--muted); font-size: 0.92rem;
  padding-inline-start: 1.3rem;
}
.prose-list li::before {
  content: ""; position: absolute; top: 0.62em; inset-inline-start: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: 0.75;
}
ol.prose-list { counter-reset: pl; }
ol.prose-list li { counter-increment: pl; padding-inline-start: 2rem; }
ol.prose-list li::before {
  content: counter(pl); top: 0.15em; inset-inline-start: 0;
  width: auto; height: auto; background: none; opacity: 1;
  color: var(--accent); font-weight: 800; font-size: 0.9rem;
}

/* ---------- Notes / callouts ---------- */
.note {
  display: flex; gap: 0.7rem; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
  font-size: 0.87rem; color: var(--muted);
}
.note .icon { margin-top: 0.25rem; flex-shrink: 0; width: 17px; height: 17px; }
.note strong, .note b { color: var(--text); }
.note-info { background: var(--surface-2); border: 1px solid var(--border); }
.note-info .icon { color: var(--accent); }
.note-warn { background: var(--accent-soft); border: 1px solid var(--accent-border); }
.note-warn .icon { color: var(--accent); }
.note-ok { background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.note-ok .icon { color: var(--good); }

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 520px; }
.cmp-table th, .cmp-table td {
  padding: 0.7rem 0.95rem; text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cmp-table thead th {
  font-size: 0.78rem; font-weight: 800; color: var(--text);
  background: var(--surface-2); white-space: nowrap;
}
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.cmp-table td { color: var(--muted); }
.cmp-table td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }

/* ---------- Inline CTA (mid-article) ---------- */
.cta-inline {
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  text-align: center;
  background:
    radial-gradient(420px 160px at 50% 0%, var(--accent-soft), transparent 75%),
    var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  margin-top: 2.2rem;
}
@media (min-width: 720px) {
  .cta-inline { flex-direction: row; text-align: start; }
  .cta-inline .btn { flex-shrink: 0; margin-inline-start: auto; }
}
.cta-inline h3 {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  font-size: 1rem;
}
@media (min-width: 720px) { .cta-inline h3 { justify-content: flex-start; } }
.cta-inline h3 .icon { color: var(--accent); }
.cta-inline p { color: var(--muted); font-size: 0.86rem; margin-top: 0.3rem; }

/* ---------- Article steps (start-aligned variant) ---------- */
.steps-article .step { flex-direction: row; align-items: flex-start; text-align: start; padding: 1.15rem 1.2rem; }
.steps-article .step-body h4 { justify-content: flex-start; }
.steps-article .step-body p { max-width: none; margin-inline: 0; text-align: start; }
.steps-article .mini-note { text-align: start; max-width: none; margin-inline: 0; }
@media (max-width: 560px) {
  .steps-article .step { flex-direction: column; align-items: center; text-align: center; }
  .steps-article .step-body h4 { justify-content: center; }
  .steps-article .step-body p, .steps-article .mini-note { text-align: center; }
}

/* ---------- Related cards ---------- */
.related-grid { margin-top: 0.4rem; }
.related-grid .card h3 { font-size: 0.95rem; }

/* ---------- Hub lead paragraph ---------- */
.hub-lead {
  max-width: 68ch; margin: 0 auto;
  color: var(--muted); font-size: 0.96rem;
}
.hub-lead strong { color: var(--text); }

/* ---------- Section head inside article body ---------- */
.prose .section-head h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }

/* ============================================================
   v3.1 — Self-hosted Vazirmatn + OG meta hardening
   ============================================================ */
@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-Medium.woff2") format("woff2");
  font-weight: 500; 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;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- v3.2 — Button color isolation inside prose/step contexts ---------- */
a.btn { text-decoration: none; }

.prose a.btn, .step-body a.btn { color: #fff; }
.prose a.btn-ghost, .step-body a.btn-ghost { color: var(--text); }
.prose a.btn:hover, .step-body a.btn:hover { color: #fff; }

/* ---------- v3.3 — CTA band isolation inside .prose article bodies ---------- */
.prose .cta-band h2 { color: #fff; }
.prose .cta-band p { color: rgba(255, 255, 255, 0.88); }
.prose .cta-band .btn,
.prose .cta-band .btn:hover { background: #fff; color: var(--accent); text-decoration: none; }

/* ---------- v3.4 — Legacy page deep-link rows ---------- */
.panel-more { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); }
.panel-more a { color: var(--accent); font-weight: 700; }
.link-more { margin-top: 0.8rem; font-size: 0.9rem; }
.link-more a { color: var(--accent); font-weight: 700; }

/* ============================================================
   v3.5 — Progressive enhancement, keyboard access and promotion
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.skip-link {
  position: fixed; inset-block-start: 0.5rem; inset-inline-start: 0.5rem;
  padding: 0.75rem 1rem; background: var(--surface); color: var(--text);
  border: 2px solid var(--accent); border-radius: var(--radius);
  z-index: 1000; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.discount-banner .discount-left { display: flex; gap: 1rem; align-items: flex-start; }
.discount-banner .discount-icon { flex: 0 0 auto; }
.discount-banner .promo-code { margin-block: 1rem; }
.discount-banner .btn-primary { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.discount-banner .copy-btn { color: var(--accent); }
@media (max-width: 600px) {
  .discount-banner .discount-left { display: block; }
  .discount-banner .discount-icon { display: none; }
}

/* v3.6 — Accessible text contrast and semantic heading levels */
:root { --faint: var(--muted); }
[data-theme="dark"] { --faint: var(--muted); }
.footer-col h2 { font-size: 0.82rem; margin-bottom: 0.7rem; color: var(--muted); }
.how-it-works h3, .trust-item h3 { font-size: 0.92rem; margin-bottom: 0.1rem; }
.step-body h3 { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-size: 0.95rem; margin-bottom: 0.45rem; }
.step-body h3 .icon { color: var(--accent); }
.step.done .step-body h3 { color: var(--muted); text-decoration: line-through; }
.steps-article .step-body h3 { justify-content: flex-start; }
.link-card h3 { font-size: 0.98rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.panel-info h2 { font-size: 1.25rem; }
@media (max-width: 600px) { .steps-article .step-body h3 { justify-content: center; } }

/* v3.7 — Red and green text retain AA contrast on tinted surfaces */
:root { --accent: #b8293d; --good: #147647; }
[data-theme="dark"] { --accent: #ff7882; --accent-hover: #b8293d; --good: #3dd68c; }
[data-theme="dark"] .btn-primary { background: var(--accent-hover); border-color: var(--accent-hover); }
[data-theme="dark"] .discount-banner .btn-primary { background: var(--surface); color: var(--accent); }
.plan-perks li { display: flex; align-items: center; gap: 0.4rem; }
.partner-card.store .partner-role { color: var(--text); }
[data-theme="dark"] .discount-banner,
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, var(--accent-hover), var(--bg)); }
[data-theme="dark"] .promo-code .copy-btn { background: var(--surface); color: var(--accent); }

/* v3.8 — Fixed decorative bounds prevent font swaps moving the hero glow */
.hero-glow { top: -180px; height: 560px; }

/* v3.9 — Dark-theme call-to-action and floating-navigation contrast */
[data-theme="dark"] .cta-band .btn,
[data-theme="dark"] .cta-band .btn:hover { color: var(--accent-hover); }
.bottom-nav { background: var(--surface); }
.prose a.btn-ghost:hover, .step-body a.btn-ghost:hover { color: var(--text); }

/* v3.10 — Hub cards directly below the page title use level-two headings */
.card h2 { font-size: 1rem; margin: 0.8rem 0 0.35rem; }

/* v3.11 — Clear next steps, allowance advice and resilient small screens */
:root { --control-size: 44px; }
.icon-btn { width: var(--control-size); height: var(--control-size); flex: 0 0 var(--control-size); }
.header-actions { flex-shrink: 0; }
.header-inner { gap: 0.7rem; }
.btn { min-height: var(--control-size); white-space: normal; text-align: center; }
.btn, .card, .discount-banner, .cta-inline, .hero h1, .article-hero h1 { overflow-wrap: anywhere; }
.grid > *, .header-inner > *, .discount-left > *, .cta-inline-body { min-width: 0; }
.promo-code { max-width: 100%; flex-wrap: wrap; }
.discount-banner { gap: 1.25rem; }
.discount-banner .promo-code .copy-btn { min-height: var(--control-size); }
.site-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 0.25em; }
.journey-section { padding-block: 0.5rem 3rem; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.journey-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.journey-card:first-child { background: var(--accent-soft); border-color: var(--accent-border); }
.journey-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.journey-card .card-icon { width: 40px; height: 40px; }
.journey-card h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.journey-card p { font-size: 0.88rem; color: var(--muted); }
.journey-card .go { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; font-size: 0.82rem; font-weight: 700; color: var(--accent); }
.advisor-section { padding-block: 0 3rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.advisor-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: var(--shadow-sm); }
.advisor-intro h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.6; margin-block: 0.4rem 1rem; }
.advisor-intro > p:not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; }
.advisor-method, .advisor-intro .text-link { font-size: 0.85rem; }
.advisor-form { min-width: 0; align-self: start; }
.advisor-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; }
.advisor-field label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.advisor-field input { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 0.65rem 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.advisor-field input::placeholder { color: var(--muted); }
.advisor-field input[aria-invalid="true"] { border-color: var(--accent); }
.advisor-hint { font-size: 0.78rem; color: var(--muted); margin-block: 0.7rem 1rem; }
.advisor-form > .btn { width: 100%; }
.advisor-error { font-size: 0.85rem; margin-top: 1rem; color: var(--accent); }
.advisor-result { padding: 1.15rem; margin-top: 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--accent-border); background: var(--accent-soft); }
.advisor-total { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 0.4rem; }
.advisor-match { font-size: 0.88rem; color: var(--text); }
.bottom-nav { bottom: max(12px, env(safe-area-inset-bottom)); }
body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
html { scroll-padding-top: calc(var(--header-h) + 1rem); scroll-padding-bottom: 100px; }
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .site-nav { gap: clamp(0.5rem, 1.5vw, 1.5rem); overflow: visible; }
}
@media (max-width: 767px) {
  .journey-grid, .advisor-card { grid-template-columns: minmax(0, 1fr); }
  .journey-card { padding: 1.25rem; }
  .site-nav a { min-height: var(--control-size); }
}
@media (max-width: 359px) {
  .container, .container-narrow { width: calc(100% - 2rem); }
  .brand-name { font-size: 0.82rem; }
  .header-inner { gap: 0.4rem; }
  .header-actions { gap: 0.25rem; }
  .brand { gap: 0.3rem; }
  .advisor-fields { grid-template-columns: minmax(0, 1fr); }
  .discount-banner { padding: 1.25rem; }
  .promo-code { justify-content: center; }
  .promo-code code { font-size: 1rem; }
}
@media (max-height: 500px) and (max-width: 859px) {
  .bottom-nav { display: none; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* v3.12 — Long sample URLs reflow inside article text */
.prose code { overflow-wrap: anywhere; word-break: break-word; }
body { overflow-x: visible; }

/* v3.13 — Center promotion content on one axis; verified one-month price table */
.discount-banner .discount-left { display: block; width: 100%; max-width: 52rem; margin-inline: auto; text-align: center; }
.discount-banner .discount-left > div { width: 100%; }
.discount-banner .discount-icon { display: grid; place-items: center; width: 2rem; height: 2rem; margin: 0 auto 0.75rem; }
.discount-banner .discount-left p { max-width: 68ch; margin-inline: auto; }
.discount-banner .promo-code { justify-content: center; }
.discount-banner > .btn { margin-top: 0.75rem; }
.price-catalog { padding-top: 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.price-checked { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
.price-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; margin: 0; }
.price-table caption { text-align: start; padding: 1rem 1.25rem; color: var(--muted); font-size: 0.85rem; }
.price-table th[scope="row"] { font-weight: 700; }
.price-table .price-eligible { background: var(--accent-soft); }
.price-table td strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.price-saving { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; }
.price-footnote { color: var(--muted); font-size: 0.85rem; max-width: 80ch; margin: 1.1rem auto 0; text-align: center; }
