/* =========================================================
   Ghabooli landing — design tokens
   Layout language adapted from the sebghatapp.ir reference:
   light paper ground, grid texture, 3D "pressable" buttons,
   floating tags, bento cards, numbered route, dark practice band.
   Colour comes from the Ghabooli app itself (violet + amber).
   ========================================================= */
:root {
  --paper: #f8f7fd;
  --white: #ffffff;
  --ink: #1f1a4d;
  --muted: #5d5a85;
  --muted-2: #8682ad;
  --line: #e4e1f3;

  --violet: #5b3cd5;
  --violet-deep: #4429a8;
  --violet-bright: #724df5;
  --violet-soft: #efebfe;
  --violet-line: #ddd5fb;
  --on-violet-muted: #e3dcff;

  --night: #1f1e2e;
  --night-2: #292a3e;
  --night-ink: #c9c6e6;

  --yellow: #ffc83d;
  --yellow-deep: #b8871a;
  --yellow-soft: #fff6dc;

  --success: #147453;
  --success-soft: #e8f5ed;
  --danger: #b33546;
  --danger-soft: #fff0f1;
  --sign-red: #d34140;

  --radius-sm: 10px;
  --radius-md: 13px;
  --radius-lg: 22px;
  --radius-xl: 27px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: min(1200px, calc(100% - 72px));
}

/* ---------- Font (self-hosted, SIL OFL — see fonts/OFL.txt) ---------- */
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.45; font-weight: 800; }
ol { margin: 0; padding: 0; list-style: none; }
svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 6px; }

.container { width: var(--container); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; z-index: 100; top: 12px; right: 24px;
  background: var(--violet); color: #fff; padding: 12px 24px; border-radius: var(--radius-sm);
  transform: translateY(-170%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.section-space { padding-block: 110px; }
.section-grid {
  background-image:
    linear-gradient(#e4e1f366 1px, transparent 1px),
    linear-gradient(90deg, #e4e1f366 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ---------- Buttons ---------- */
.button {
  min-height: 48px; padding: 11px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.button svg { width: 20px; height: 20px; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(2px); }
.button-primary { background: var(--violet); color: #fff; box-shadow: 0 5px 0 var(--violet-deep); }
.button-primary:hover { background: #5233c7; box-shadow: 0 7px 0 #3b2394, 0 14px 26px #5b3cd52e; }
.button-primary:active { box-shadow: 0 2px 0 var(--violet-deep); }
.button-ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: 0 5px 0 var(--line); }
.button-ghost:hover { border-color: var(--violet-line); box-shadow: 0 7px 0 var(--violet-line); }
.button-large { min-height: 60px; padding: 16px 28px; font-size: 16px; }

.text-button {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 650; font-size: 14px; min-height: 48px; transition: color .2s;
}
.text-button:hover { color: var(--violet); }
.text-button > svg { width: 19px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.eyebrow.violet { color: var(--violet); }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 5px #14745317;
}
.muted-heading { color: var(--muted-2); }
h2 { font-size: 40px; letter-spacing: -1px; }
.section-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 48px;
}
.section-heading > p { color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.section-description { color: var(--muted); font-size: 14px; line-height: 2.1; margin: 24px 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: #f8f7fdeb; border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px #1f1a4d0a; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 900; line-height: 1.35; }
.brand img { width: 44px; height: 44px; border-radius: var(--radius-md); }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
.main-nav a { position: relative; min-height: 44px; display: flex; align-items: center; }
.main-nav a::after {
  content: ''; position: absolute; bottom: 6px; right: 0; width: 0; height: 2px;
  background: var(--violet); transition: width .2s;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: 48px; overflow: hidden; position: relative; background-color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; min-height: 640px; }
.hero-copy { padding-bottom: 40px; position: relative; z-index: 2; }
.hero h1 { font-size: 66px; line-height: 1.4; letter-spacing: -2.5px; }
.hero-brand { color: var(--violet); position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.hero-brand > svg {
  position: absolute; width: 100%; height: 20px; bottom: 2px; left: 0;
  stroke: var(--yellow); stroke-width: 10; z-index: -1;
}
.hero-description { font-size: 15px; line-height: 2.2; color: var(--muted); margin: 24px 0 30px; max-width: 470px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.hero-note > svg { width: 16px; height: 16px; color: var(--success); stroke-width: 2.4; }
.hero-note > span { color: #bdb9d9; margin-inline: 2px; }

.hero-visual { position: relative; height: 620px; direction: ltr; isolation: isolate; }
.scene-disc {
  position: absolute; inset: 48px 10px 60px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ece6ff, #f1eefb 70%);
}
.scene-dots {
  position: absolute; width: 180px; height: 140px; left: 20px; top: 40px;
  background-image: radial-gradient(#a99be080 1.2px, transparent 1.2px); background-size: 12px 12px;
}
.hero-road {
  position: absolute; width: 112%; height: 100%; left: -6%; top: 2%; z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}
.hero-road path { fill: none; }
.road-base { stroke: #dcd5f5; stroke-width: 54; stroke-linecap: round; }
.road-dashes { stroke: #fff; stroke-width: 3; stroke-dasharray: 18 14; animation: road-travel 6s linear infinite; }

.phone {
  background: #17162a; border: 6px solid #17162a; border-radius: 36px; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px #2a1c7a2e, 0 2px 0 2px #6d63a8;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; }
.phone-camera {
  position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 15px; background: #17162a; border-radius: 20px;
}
.phone-home {
  position: absolute; z-index: 3; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 4px; background: #ffffff55; border-radius: 20px;
}
.hero-phone {
  position: absolute; width: 268px; height: 556px; left: 50%; top: 22px; z-index: 2;
  transform: translateX(-50%) rotate(-6deg); animation: phone-float 7s ease-in-out infinite;
}

.floating-tag {
  position: absolute; z-index: 4; direction: rtl; text-align: right;
  display: flex; align-items: center; gap: 11px; padding: 15px 18px;
  border-radius: 17px; border: 1px solid #ffffffaa; box-shadow: 0 14px 40px #1f1a4d14;
}
.floating-tag b { font-size: 14px; display: block; white-space: nowrap; line-height: 1.6; }
.floating-tag small { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; }
.exam-tag { left: -6px; top: 92px; background: var(--yellow); transform: rotate(-7deg); animation: tag-float 6s ease-in-out infinite; box-shadow: 0 5px 0 var(--yellow-deep), 0 16px 34px #b8871a33; }
.exam-tag small { color: #5b4510; }
.tag-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #ffffff66; border-radius: var(--radius-sm); }
.progress-tag { right: -6px; bottom: 104px; background: #fff; transform: rotate(5deg); animation: tag-float 7s ease-in-out infinite reverse; }
.mini-ring {
  width: 38px; height: 38px; border: 3px solid #2c9e81; border-left-color: #d9efe9; border-radius: 50%;
  display: grid; place-items: center; color: var(--success);
}
.mini-ring > svg { width: 18px; stroke-width: 2.4; }
.traffic-light {
  position: absolute; left: 34px; bottom: 120px; width: 36px; padding: 7px; z-index: 3;
  background: var(--ink); border-radius: 12px; transform: rotate(-12deg); box-shadow: 0 10px 20px #1f1a4d26;
}
.traffic-light i { width: 18px; height: 18px; display: block; margin: 3px auto; border-radius: 50%; background: #3c3770; }
.traffic-light i:nth-child(1) { background: #c95d61; }
.traffic-light i:nth-child(2) { background: #d9b549; }
.traffic-light i:nth-child(3) { background: #44c999; box-shadow: 0 0 14px #44c999aa; }

.facts-bar {
  display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); align-items: center; gap: 24px;
  min-height: 140px; margin-top: 16px; border-top: 1px solid var(--line);
}
.facts-bar > p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.facts-bar strong { font-size: 15px; color: var(--ink); }
.facts-bar > div { padding-right: 24px; border-right: 1px solid var(--line); }
.facts-bar b { font-size: 36px; font-weight: 850; line-height: 1.5; display: block; letter-spacing: -1px; }
.facts-bar b small { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.facts-bar span { font-size: 12px; color: var(--muted); }

/* ---------- Features bento ---------- */
.features { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card {
  background: var(--paper); border: 1px solid #efedf8; border-radius: var(--radius-lg);
  padding: 28px 27px; min-height: 300px; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px #1f1a4d0f; }
.feature-card h3 { font-size: 20px; margin: 20px 0 12px; letter-spacing: -.4px; }
.feature-card p { font-size: 13.5px; line-height: 2.1; color: var(--muted); }
.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-md);
  background: #ffffff1f; color: #fff;
}
.feature-icon.yellow { background: #ffefc2; color: #7a5600; }
.feature-icon.mint { background: #dff2eb; color: #0b6b55; }
.feature-icon.sky { background: #e3edff; color: #2357b8; }
.feature-icon.rose { background: #ffe6e8; color: #a13341; }

.feature-primary {
  background: var(--violet); border-color: var(--violet); color: #fff;
  grid-row: span 2; min-height: 520px; padding: 32px; display: flex; flex-direction: column;
  background-image: radial-gradient(circle at 0% 100%, #724df5 0, transparent 55%);
}
.feature-top { display: flex; align-items: center; justify-content: space-between; }
.small-label { font-size: 11px; background: #ffffff1a; border: 1px solid #ffffff33; border-radius: 20px; padding: 3px 12px; }
.feature-primary h3 { font-size: 36px; margin: 28px 0 16px; letter-spacing: -1.2px; }
.feature-primary p { color: var(--on-violet-muted); font-size: 14px; max-width: 300px; }
.mode-preview { margin: 30px 0 48px; display: flex; flex-direction: column; gap: 12px; }
.mode-preview span {
  padding: 15px 18px; border-radius: var(--radius-md); background: #ffffff17; border: 1px solid #ffffff38;
  display: flex; justify-content: space-between; align-items: center; font-size: 14px;
}
.mode-preview span:first-child {
  background: var(--yellow); color: var(--ink); border-color: var(--yellow);
  transform: rotate(-2deg); box-shadow: 0 4px 0 var(--yellow-deep);
}
.mode-preview svg { width: 22px; }
.card-number { font-size: 11px; letter-spacing: 1.5px; direction: ltr; align-self: flex-end; color: #c9bcff; margin-top: auto; }

.sign-art { display: flex; direction: ltr; align-items: center; gap: 17px; margin-top: 28px; }
.no-entry { width: 54px; height: 54px; border-radius: 50%; background: var(--sign-red); position: relative; transform: rotate(-8deg); }
.no-entry::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 11px; margin-top: -5.5px; background: #fff; border-radius: 2px; }
.yield-sign {
  clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 62px; height: 55px; background: var(--yellow);
  display: grid; align-items: end; justify-content: center; font-size: 26px; font-weight: 800; line-height: 1.8; transform: rotate(8deg);
}
.direction-sign { width: 52px; height: 52px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.review-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 28px; }
.review-chips > span { border-radius: 7px; font-size: 11px; padding: 3px 10px; background: #ebe9f5; color: var(--muted); border: 1px solid #dfdcef; }
.review-chips > span:first-child { background: var(--danger-soft); color: var(--danger); border-color: #f3d0d4; }

.compact-card { min-height: 170px; display: flex; align-items: flex-start; gap: 17px; padding: 25px; }
.compact-card .feature-icon { flex-shrink: 0; }
.compact-card h3 { font-size: 17px; margin: 4px 0 10px; }
.compact-card p { font-size: 13px; }
.vip-card {
  grid-column: 1 / -1; min-height: auto; padding: 22px 28px;
  display: flex; align-items: center; gap: 18px; background: var(--yellow-soft); border-color: #f6e6b4;
}
.vip-card h3 { margin: 0 0 2px; font-size: 18px; }
.vip-card .feature-icon { background: #ffe39a; color: #6e4e00; flex-shrink: 0; }

/* ---------- Practice (dark band) ---------- */
.practice-section { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.practice-section::before {
  content: ''; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  left: -370px; top: -500px; border: 1px solid #ffffff10;
  box-shadow: 0 0 0 70px #ffffff05, 0 0 0 140px #ffffff03;
}
.practice-section::after {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -200px; bottom: -260px; background: radial-gradient(circle, #5b3cd555, transparent 70%);
}
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; position: relative; z-index: 1; }
.practice-copy h2 { font-size: 50px; line-height: 1.5; letter-spacing: -1.5px; }
.practice-copy h2 span { color: #b6a6ff; }
.practice-copy > p:not(.eyebrow):not(.practice-footnote) { font-size: 15px; color: var(--night-ink); line-height: 2.2; margin: 26px 0; }
.practice-copy .eyebrow { color: #e6e3f7; }
.practice-copy .status-dot { background: var(--yellow); box-shadow: 0 0 0 5px #ffc83d1c; }
.text-button.light:hover { color: var(--yellow); }
.practice-footnote { font-size: 12px; color: #a5a1c9; margin-top: 36px; }

.practice-card {
  background: #fff; color: var(--ink); border-radius: 24px; padding: 26px;
  box-shadow: 0 24px 50px #0a082040; transform: rotate(1deg);
}
.practice-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.practice-card-header > span:first-child { display: flex; align-items: center; gap: 8px; }
.practice-card-header i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.quiz-count { font-size: 12px; color: var(--muted); direction: ltr; font-weight: 500; }
.quiz-question { text-align: center; padding: 22px 0 18px; }
.quiz-sign { width: 96px; height: 96px; margin: 0 auto 12px; stroke: none; filter: drop-shadow(0 8px 6px #d3414026); }
.quiz-question h3 { font-size: 19px; }
.quiz-question p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quiz-options button {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 12px;
  font-size: 14px; text-align: right; transition: background .15s, border-color .15s;
}
.quiz-options button > span {
  font-size: 11px; color: var(--muted); width: 22px; height: 22px; flex-shrink: 0;
  border: 1px solid #d9d5ec; border-radius: 50%; display: grid; place-items: center;
}
.quiz-options button > svg { width: 16px; height: 16px; opacity: 0; margin-right: auto; stroke-width: 2.6; }
.quiz-options button:hover { border-color: #b5a6f2; }
.quiz-options button[aria-checked="true"] { border-color: var(--violet); background: var(--violet-soft); }
.quiz-options button.correct { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.quiz-options button.correct > svg { opacity: 1; }
.quiz-options button.incorrect { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.quiz-feedback {
  margin-top: 14px; background: #f3f2fa; padding: 10px 14px; border-radius: 9px;
  color: var(--muted); font-size: 13px; min-height: 46px; display: flex; align-items: center;
}
.quiz-feedback.success { background: var(--success-soft); color: var(--success); }
.quiz-feedback.error { background: var(--danger-soft); color: var(--danger); }
.quiz-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.quiz-reset { border: 0; background: transparent; font-size: 13px; min-height: 44px; padding-inline: 0; color: var(--muted); }
.quiz-reset:hover { color: var(--violet); }
.quiz-submit { font-size: 13px; min-height: 44px; padding: 8px 18px; }
.quiz-submit svg { width: 17px; }

/* ---------- Inside the app ---------- */
.experience { background: var(--white); overflow: hidden; }
.experience-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: center; }
.experience-copy h2 { font-size: 38px; }
.screen-tabs { display: flex; flex-direction: column; gap: 6px; }
.screen-tabs button {
  display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px 20px;
  background: transparent; border: 1px solid transparent; border-radius: 14px; text-align: right;
  transition: background .2s, border-color .2s;
}
.screen-tabs button:hover { background: var(--paper); }
.screen-tabs button[aria-selected="true"] { background: var(--violet-soft); border-color: var(--violet-line); }
.tab-number { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.screen-tabs b { font-size: 15px; display: block; }
.screen-tabs small { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.screen-tabs button > svg {
  width: 19px; color: var(--violet); margin-right: auto; opacity: 0;
  transform: translateX(6px); transition: opacity .2s, transform .2s;
}
.screen-tabs button[aria-selected="true"] > svg { opacity: 1; transform: translateX(0); }

.experience-visual {
  min-height: 640px; background: #f2effc; border-radius: 26px; position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 30px 28px;
}
.preview-label {
  position: absolute; top: 22px; right: 24px; font-size: 11px; color: var(--muted);
  background: #fff; padding: 2px 12px; border-radius: 20px; z-index: 3;
}
.experience-orbit {
  width: 560px; height: 560px; border: 1px solid #ddd5f7; border-radius: 50%; position: absolute; z-index: -1;
  box-shadow: 0 0 0 35px #e9e4fa66, 0 0 0 70px #e9e4fa55;
}
.experience-phone { width: 240px; height: 500px; transform: rotate(-3deg); margin-bottom: 18px; transition: transform .3s; }
.experience-phone:hover { transform: rotate(0); }
.experience-phone img.is-changing { animation: screen-enter .35s var(--ease); }
.screenshot-note { font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Journey ---------- */
.journey { border-top: 1px solid var(--line); }
.journey-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.journey-step { position: relative; padding-top: 18px; }
.step-no {
  font-size: 24px; font-weight: 800; width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #d6d0ef; background: #fff; position: relative; z-index: 1;
}
.step-no.finish { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 4px 0 var(--yellow-deep); }
.step-no.finish svg { stroke-width: 2.6; }
.step-line {
  position: absolute; top: 49px; right: 64px; width: calc(100% - 24px); height: 2px;
  background: repeating-linear-gradient(90deg, #c4bce6 0 8px, transparent 8px 15px);
}
.journey-step h3 { font-size: 20px; margin: 24px 0 12px; }
.journey-step p { font-size: 14px; color: var(--muted); line-height: 2.1; max-width: 300px; }
.step-tag {
  font-size: 12px; padding: 3px 11px; border: 1px solid #dcd7ef; border-radius: 6px; color: var(--muted);
  display: inline-block; margin-top: 18px; background: #fff;
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--white); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-grid h2 { font-size: 42px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; font-size: 16px; font-weight: 650; padding-block: 22px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span {
  font-size: 26px; font-weight: 400; color: var(--violet); line-height: 1; width: 24px; text-align: center;
  transition: transform .2s; flex-shrink: 0;
}
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details > p { font-size: 14px; color: var(--muted); line-height: 2.15; padding: 0 0 24px 40px; }

/* ---------- Download ---------- */
.download-section { padding: 30px 0 70px; background: var(--white); }
.download-card {
  display: grid; grid-template-columns: 1.2fr 1fr; background: var(--violet); color: #fff;
  border-radius: var(--radius-xl); min-height: 420px; padding: 54px 54px 44px; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 15% 50%, #724df5 0, transparent 50%);
}
.download-copy { position: relative; z-index: 2; }
.download-copy .eyebrow { color: var(--on-violet-muted); }
.download-copy h2 { font-size: 40px; line-height: 1.55; letter-spacing: -1px; }
.download-copy h2 span { color: var(--yellow); }
.download-copy > p:not(.eyebrow):not(.download-note) { font-size: 15px; color: var(--on-violet-muted); margin-top: 14px; max-width: 440px; }
.store-links { display: flex; gap: 12px; margin: 28px 0 20px; flex-wrap: wrap; }
.store-link {
  display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink);
  min-width: 180px; min-height: 66px; border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 5px 0 var(--violet-deep); transition: transform .2s, box-shadow .2s;
}
.store-link:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--violet-deep); }
.store-link small { font-size: 11px; color: var(--muted); display: block; line-height: 1.5; }
.store-link b { font-size: 17px; display: block; line-height: 1.6; }
.store-link > svg { width: 18px; margin-right: auto; color: var(--violet); }
.download-note { font-size: 12px; color: var(--on-violet-muted); display: flex; align-items: center; gap: 10px; }
.download-note > i { width: 4px; height: 4px; border-radius: 50%; background: #b8a8ff; }
.download-art { position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.download-art > img {
  width: 230px; position: relative; z-index: 1; transform: rotate(-6deg);
  border-radius: 52px; filter: drop-shadow(0 24px 30px #1a0f5c66); animation: illustration-float 7s ease-in-out infinite;
}
.download-orbit {
  width: 340px; height: 340px; border-radius: 50%; background: #ffffff10; border: 1px solid #ffffff22; position: absolute;
  box-shadow: 0 0 0 36px #ffffff07, 0 0 0 72px #ffffff04;
}
.download-sign {
  position: absolute; bottom: 10px; right: 20px; z-index: 2; font-size: 12px;
  background: var(--yellow); color: var(--ink); border-radius: 9px; padding: 10px 18px;
  transform: rotate(5deg); box-shadow: 0 4px 0 var(--yellow-deep);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding-bottom: 26px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 0 36px; }
.footer-top .brand { font-size: 23px; }
.footer-top .brand img { width: 40px; height: 40px; }
.footer-top nav { display: flex; gap: 26px; font-size: 13px; color: var(--muted); }
.footer-top nav a { min-height: 44px; display: flex; align-items: center; }
.footer-top nav a:hover { color: var(--violet); }
.back-top { font-size: 13px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px; font-size: 12px; color: var(--muted);
}
.mobile-cta { display: none; }


/* ---------- Store logos ---------- */
.store-logo {
  width: 34px; height: 34px; border-radius: 10px; background: #fff; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden; box-shadow: 0 1px 2px #1f1a4d1f;
}
.store-logo img { width: 26px; height: 26px; object-fit: contain; }
.button-ghost .store-logo { box-shadow: none; background: transparent; }
.button-ghost .store-logo img { width: 30px; height: 30px; }
.button-large { gap: 12px; padding-inline: 18px 26px; }
.store-link > img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.hero-rating { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.hero-rating .stars { color: #e3a008; letter-spacing: 1px; font-size: 13px; }
.hero-rating b { color: var(--ink); font-weight: 700; }

/* ---------- Guide (SEO content) ---------- */
.guide-section { background: var(--white); border-top: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.guide-body > p { font-size: 15px; line-height: 2.25; color: var(--muted); margin-bottom: 16px; }
.guide-body strong { color: var(--ink); font-weight: 700; }
.guide-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-list li {
  display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.8;
  background: var(--paper); border: 1px solid #efedf8; border-radius: var(--radius-md); padding: 12px 14px;
}
.guide-list svg { width: 18px; height: 18px; color: var(--success); stroke-width: 2.4; }
.guide-list b { font-weight: 700; }

/* ---------- Footer stores ---------- */
.footer-stores {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 0 0 24px; font-size: 13px; color: var(--muted);
}
.footer-stores p { margin-inline-end: 4px; }
.footer-stores a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; background: #fff;
}
.footer-stores a:hover { border-color: var(--violet-line); color: var(--violet); }
.footer-stores img { width: 24px; height: 24px; border-radius: 6px; }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-rating { justify-content: center; }
}
@media (max-width: 640px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-body > p { font-size: 14px; }
  .button-large { justify-content: center; }
}


/* ---------- Community & support ---------- */
.connect-section { background: var(--white); padding: 10px 0 40px; }
.connect-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.connect-card {
  border-radius: var(--radius-xl); padding: 34px; display: flex; flex-direction: column; gap: 18px;
  background: var(--paper); border: 1px solid #efedf8;
}
.connect-card h2 { font-size: 28px; letter-spacing: -.6px; line-height: 1.5; }
.connect-card > p { font-size: 14px; line-height: 2.1; color: var(--muted); }
.connect-card > p b { color: var(--ink); font-weight: 700; unicode-bidi: isolate; }
.connect-head { display: flex; align-items: center; gap: 16px; }
.connect-head .eyebrow { margin-bottom: 2px; }
.connect-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--violet-soft); color: var(--violet);
}
.connect-icon svg { width: 28px; height: 28px; }
.support-card { background: var(--night); border-color: var(--night); color: #fff; }
.support-card .eyebrow { color: var(--yellow); }
.support-card > p { color: var(--night-ink); }
.support-card > p b { color: #fff; }
.support-card .connect-icon { background: #ffffff14; color: var(--yellow); }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.social-link {
  flex: 1 1 160px; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 4px 0 var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.social-link:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--violet-line); border-color: var(--violet-line); }
.social-link b { display: block; font-size: 14px; line-height: 1.6; }
.social-link small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: right; }
.social-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.social-icon svg { width: 22px; height: 22px; }
.telegram .social-icon { background: #229ed9; }
.bale .social-icon { background: #3fbf8f; background: #1fa37a; }
.instagram .social-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.support-card .social-link { box-shadow: 0 4px 0 #0e0d1c; border-color: transparent; }
.support-card .social-link:hover { box-shadow: 0 7px 0 #0e0d1c; }

@media (max-width: 900px) {
  .connect-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .connect-card { padding: 24px 20px; border-radius: var(--radius-lg); }
  .connect-card h2 { font-size: 23px; }
  .connect-icon { width: 46px; height: 46px; border-radius: 13px; }
  .social-link { flex-basis: 100%; }
}


/* ---------- QR ---------- */
.qr-hint {
  display: none; margin-top: 14px; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--violet);
}
.qr-hint svg { width: 18px; height: 18px; }
.qr-hint:hover { text-decoration: underline; }
.qr-card {
  position: relative; z-index: 3; margin: 0; padding: 14px 14px 10px; background: #fff; color: var(--ink);
  border-radius: 20px; text-align: center; box-shadow: 0 6px 0 var(--violet-deep), 0 24px 40px #1a0f5c55;
  transform: rotate(3deg);
}
.qr-card img { width: 164px; height: 164px; display: block; margin: 0 auto; image-rendering: pixelated; }
.qr-card figcaption { font-size: 13px; font-weight: 700; line-height: 1.7; margin-top: 6px; }
.qr-card small { font-size: 11px; font-weight: 400; color: var(--muted); }
.download-art .qr-card ~ img { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .qr-hint { display: inline-flex; }
}
@media (max-width: 900px) {
  .qr-card { display: none; }
  .download-art .qr-card ~ img { display: block; }
}


/* ---------- Document pages (privacy, 404) ---------- */
.doc-body { display: flex; flex-direction: column; min-height: 100vh; }
.doc-page { flex: 1; padding: 64px 0 80px; }
.doc-article { max-width: 760px; }
.doc-article h1 { font-size: 40px; letter-spacing: -1px; margin-bottom: 14px; }
.doc-lead { font-size: 16px; line-height: 2.2; color: var(--muted); margin-bottom: 18px; }
.doc-article h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -.3px; }
.doc-article p, .doc-article li { font-size: 15px; line-height: 2.2; color: var(--muted); }
.doc-article ul { margin: 6px 0 10px; padding-inline-start: 22px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.doc-links a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; }
.doc-links a:hover { border-color: var(--violet-line); color: var(--violet); }
.doc-footer { padding-top: 22px; }
.footer-bottom a { color: var(--violet); }
.notfound { display: grid; place-items: center; text-align: center; }
.notfound-inner { max-width: 640px; }
.notfound .notfound-code { font-size: 120px; font-weight: 900; line-height: 1.1; color: var(--violet); letter-spacing: -4px; }
.notfound h1 { font-size: 34px; margin: 6px 0 12px; }
.notfound p { color: var(--muted); font-size: 15px; line-height: 2.1; }
.notfound-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 640px) {
  .doc-page { padding: 40px 0 56px; }
  .doc-article h1 { font-size: 30px; }
  .doc-body .header-inner .button { padding-inline: 14px; font-size: 13px; min-height: 42px; }
  .notfound .notfound-code { font-size: 88px; }
  .doc-body .brand small { display: none; }
  .notfound h1 { font-size: 26px; }
  .notfound-actions { flex-direction: column; }
}

/* ---------- Reveal ---------- */
.js-reveal .reveal { transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }

@keyframes road-travel { to { stroke-dashoffset: -256; } }
@keyframes phone-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-6deg); }
  50% { transform: translateX(-50%) translateY(-10px) rotate(-4deg); }
}
@keyframes tag-float { 50% { translate: 0 -9px; } }
@keyframes illustration-float { 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes screen-enter { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --container: calc(100% - 60px); }
  .main-nav { gap: 18px; font-size: 12px; }
  .hero h1 { font-size: 56px; }
  .hero-phone { width: 244px; height: 506px; top: 36px; }
  .floating-tag { padding: 12px 14px; }
  .floating-tag b { font-size: 12px; }
  .practice-grid, .experience-grid { gap: 55px; }
  .feature-primary h3 { font-size: 32px; }
  .download-card { padding: 42px; }
  .download-copy h2 { font-size: 34px; }
  .faq-grid { gap: 60px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .header-inner { min-height: 76px; }
  .main-nav {
    display: none; position: absolute; top: 76px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 30px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px #1f1a4d10;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 48px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: block; }

  .hero { padding-top: 36px; background-size: 52px 52px; }
  .hero-grid { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .hero-copy { text-align: center; padding: 0; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual { width: 100%; max-width: 460px; height: 560px; margin: 8px auto 0; }

  .facts-bar { grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
  .facts-bar > p { display: none; }
  .facts-bar > div { padding-right: 0; border-right: 0; }
  .facts-bar > div + div { border-right: 1px solid var(--line); }
  .facts-bar b { font-size: 30px; }

  .section-space { padding-block: 80px; }
  h2, .experience-copy h2, .faq-grid h2 { font-size: 32px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading > p { margin-top: 16px; }
  .section-heading > p br { display: none; }

  .feature-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .practice-grid, .experience-grid, .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .practice-copy h2 { font-size: 40px; }
  .practice-card { transform: none; }
  .experience-visual { min-height: 580px; }
  .journey-steps { grid-template-columns: 1fr; gap: 10px; }
  .step-line { display: none; }
  .journey-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding-top: 10px; }
  .journey-step > .step-no { grid-row: span 3; }
  .journey-step h3 { margin: 12px 0 6px; }
  .journey-step p { max-width: none; }
  .step-tag { justify-self: start; margin-top: 10px; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-copy .eyebrow, .store-links, .download-note { justify-content: center; }
  .download-copy > p:not(.eyebrow):not(.download-note) { margin-inline: auto; }
  .download-art { min-height: 300px; margin-top: 20px; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-top nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 32px); }
  .header-download { display: none; }
  .brand { font-size: 23px; gap: 9px; }
  .brand img { width: 40px; height: 40px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.4px; line-height: 1.5; }
  .hero-brand > svg { height: 16px; }
  .hero-description { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .button-large { min-height: 56px; font-size: 15px; }
  .hero-note { font-size: 11px; gap: 6px; flex-wrap: wrap; }
  .hero-visual { height: 480px; }
  .hero-phone { width: 210px; height: 436px; top: 18px; }
  .scene-disc { inset: 40px 0 50px; }
  .exam-tag { left: 0; top: 60px; }
  .progress-tag { right: 0; bottom: 70px; }
  .tag-icon { display: none; }
  .floating-tag { padding: 10px 12px; gap: 8px; }
  .floating-tag b { font-size: 11px; }
  .floating-tag small { font-size: 10px; }
  .mini-ring { width: 30px; height: 30px; }
  .traffic-light { left: 8px; bottom: 150px; width: 30px; padding: 5px; }
  .traffic-light i { width: 15px; height: 15px; }

  .facts-bar { grid-template-columns: 1fr 1fr; gap: 0; min-height: 0; padding-block: 8px; }
  .facts-bar > div { padding: 14px 6px; }
  .facts-bar > div + div { border-right: 0; }
  .facts-bar > div:nth-of-type(even) { border-right: 1px solid var(--line); }
  .facts-bar > div:nth-of-type(n+3) { border-top: 1px solid var(--line); }
  .facts-bar b { font-size: 28px; }

  .section-space { padding-block: 64px; }
  h2, .experience-copy h2, .faq-grid h2 { font-size: 28px; letter-spacing: -.6px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-primary { grid-row: auto; min-height: 0; padding: 26px; }
  .feature-primary h3 { font-size: 28px; }
  .mode-preview { flex-direction: row; margin: 24px 0 30px; }
  .mode-preview span { flex: 1; }
  .feature-card { min-height: 0; padding: 24px; }
  .compact-card, .vip-card { min-height: 0; align-items: flex-start; padding: 22px; }
  .practice-copy h2 { font-size: 32px; }
  .practice-card { padding: 18px; }
  .quiz-options { grid-template-columns: 1fr; }
  .experience-visual { min-height: 520px; padding-inline: 16px; }
  .experience-orbit { width: 420px; height: 420px; }
  .experience-phone { width: 210px; height: 436px; }
  .screen-tabs button { padding: 12px 14px; min-height: 72px; gap: 12px; }
  .faq-list summary { font-size: 15px; }
  .faq-list details > p { padding-left: 0; }
  .download-section { padding-bottom: 40px; }
  .download-card { padding: 34px 20px 28px; border-radius: var(--radius-lg); }
  .download-copy h2 { font-size: 30px; }
  .store-links { flex-direction: column; align-items: stretch; }
  .store-link { min-width: 0; }
  .download-art > img { width: 180px; border-radius: 40px; }
  .download-orbit { width: 250px; height: 250px; }
  .footer-bottom { justify-content: center; text-align: center; }
  body { padding-bottom: 84px; }
  .mobile-cta {
    display: flex; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
    transform: translateY(140%); transition: transform .3s var(--ease);
  }
  .mobile-cta.is-visible { transform: translateY(0); }
  .mobile-cta.is-visible:hover { transform: translateY(-3px); }
}
