/* ==========================================================================
   BOOFI Smart — website styles, matched to the app
   Light (default): the app's Material 3 surface with the cyan-teal primary.
   Dark: the app's near-black scaffold with the mint primary.
   ========================================================================== */

@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSansXVF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
  /* Persian script only — Latin comes from Titillium Web, like in the app */
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --bg: #fef7ff;
  --card: #ffffff;
  --card-2: #f3edf5;
  --line: rgba(29, 27, 32, .08);
  --line-2: rgba(29, 27, 32, .14);
  --text: #1d1b20;
  --muted: #625b66;
  --faint: #938c96;
  --primary: #258786;          /* MyColorPalette.cyanTeal */
  --primary-soft: rgba(37, 135, 134, .12);
  --on-primary: #ffffff;
  --accent: #ff5722;           /* the app's active-tab deep orange */
  --accent-soft: rgba(255, 87, 34, .1);
  --good: #43a047;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-2: 0 4px 12px -2px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .05);
  --shadow-3: 0 24px 60px -20px rgba(37, 60, 60, .35);
  --radius-lg: 24px;
  --maxw: 1200px;
  --font: "Titillium Web", "IRANSansX", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo-ink: #414042;
  --logo-ink-2: #6d6e71;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c0c0c;
  --card: #1a1a1a;
  --card-2: #242424;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eeeeee;
  --muted: #a8a8a8;
  --faint: #6f6f6f;
  --primary: #9ec2b6;          /* MyColorPalette.mintGreen */
  --primary-soft: rgba(158, 194, 182, .14);
  --on-primary: #0c1a16;
  --accent-soft: rgba(255, 87, 34, .16);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 4px 14px -2px rgba(0, 0, 0, .6);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .9);
  --logo-ink: #d9d9d9;
  --logo-ink-2: #b0b0b0;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.75 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s, color .3s; }
html[lang="fa"] body { line-height: 1.95; }
html[lang="fa"] [data-l="en"], html[lang="en"] [data-l="fa"] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { line-height: 1.5; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- top bar (like the app bar) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .12em; font-family: "Titillium Web", sans-serif; }
.brand svg { width: 26px; height: 34px; }
.brand small { display: block; font-weight: 400; letter-spacing: .04em; font-size: 11px; color: var(--muted); margin-top: -6px; }
.nav-links { display: none; gap: 2px; margin-inline-start: 16px; }
.nav-links a { padding: 7px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--card-2); }
@media (min-width: 1040px) { .nav-links { display: flex; } }
.nav-tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { height: 40px; min-width: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1); font-weight: 700; font-size: 13px; }
.icon-btn svg { width: 19px; height: 19px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }

/* ---------- buttons (Material 3 look) ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-2); }
.btn-primary:hover { box-shadow: var(--shadow-3); }
.btn-tonal { background: var(--primary-soft); color: var(--primary); }
.btn-outline { border: 1px solid var(--line-2); background: var(--card); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.nav .btn-sm { display: none; }
@media (min-width: 600px) { .nav .btn-sm { display: inline-flex; } }

/* ---------- live tour: text column + sticky phone ---------- */
.tour { display: grid; gap: 24px; padding-top: 28px; }
.tour > * { min-width: 0; }
@media (min-width: 980px) {
  .tour { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 0; padding-top: 32px; }
  .tour > .hero { grid-column: 1; grid-row: 1; }
  .tour > .chapters { grid-column: 1; grid-row: 2; }
  .tour > .phone-col { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 76px; align-self: start; }
}
.phone-col { display: grid; justify-items: center; gap: 10px; }
.phone-hint { font-size: 13px; color: var(--muted); text-align: center; }

.hero { padding: 24px 0 40px; }
@media (min-width: 980px) { .hero { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; padding-top: 0; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-1); font-size: 13.5px; color: var(--muted); align-self: flex-start; }
html[dir="rtl"] .pill { padding: 5px 6px 5px 14px; }
.pill b { background: var(--accent-soft); color: var(--accent); padding: 1px 10px; border-radius: 999px; font-size: 12.5px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); margin: 0 0 26px; max-width: 580px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.fact { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1); font-size: 14px; }
.fact i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* chapters */
.chapters { display: grid; gap: 18px; padding-bottom: 40px; }
.chapter-inner { padding: 22px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-1); }
@media (min-width: 980px) {
  .chapters { gap: 0; }
  .chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
  .chapter-inner { padding: 28px; transition: box-shadow .35s, transform .35s, opacity .35s; opacity: .5; }
  .chapter.active .chapter-inner { opacity: 1; box-shadow: var(--shadow-3); transform: translateY(-2px); }
}
.chip-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.chip-icon svg { width: 26px; height: 26px; }
.chapter h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.chapter p { color: var(--muted); margin: 8px 0 0; }
.points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.points li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
[data-theme="dark"] .points li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230c1a16' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.points b { font-weight: 700; }
.show-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.show { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--card-2); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.show svg { width: 16px; height: 16px; color: var(--primary); }
.show:hover, .show.on { background: var(--primary); color: var(--on-primary); }
.show:hover svg, .show.on svg { color: var(--on-primary); }
.tip { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14.5px; }
.tip b { color: var(--accent); }

/* notification detail grid */
.notif-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (max-width: 480px) { .notif-grid { grid-template-columns: 1fr; } }
.nbox { padding: 14px; border-radius: 14px; background: var(--card-2); }
.nbox b { display: block; font-size: 15px; margin-bottom: 2px; }
.nbox span { font-size: 13.5px; color: var(--muted); line-height: 1.65; display: block; }
.nbox .nic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; color: #fff; }
.nbox .nic svg { width: 18px; height: 18px; }
.days { display: flex; gap: 4px; margin-top: 8px; }
.days i { flex: 1; height: 22px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; display: grid; place-items: center; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.sec-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.sec-head p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 24px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.band { background: linear-gradient(135deg, #258786 0%, #009688 50%, #305955 100%); color: #fff; }
[data-theme="dark"] .band { background: linear-gradient(135deg, #1b3f3a 0%, #123029 55%, #0c1a16 100%); }
.band .sec-head p { color: rgba(255, 255, 255, .85); }
.band .card { background: rgba(255, 255, 255, .12); box-shadow: none; }
.band .card p { color: rgba(255, 255, 255, .88); }
.band .chip-icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* plans */
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; }
.plan.featured { outline: 2px solid var(--primary); box-shadow: var(--shadow-3); }
.plan .price { font-size: 28px; font-weight: 800; margin: 6px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan li:last-child { border: 0; }
.plan .ribbon { position: absolute; top: -12px; inset-inline-end: 18px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.yes { color: var(--good); font-weight: 800; }
.no { color: var(--faint); }

/* what's new */
.timeline { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.rel { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .rel { grid-template-columns: 1fr; gap: 4px; } }
.rel b { font-size: 19px; display: block; }
.rel .date { font-size: 13px; color: var(--muted); }
.rel ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 15px; }

/* download */
.dl-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .dl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dl { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 12px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.dl:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.dl svg { width: 34px; height: 34px; }
.dl b { font-size: 16px; }
.dl span { font-size: 13px; color: var(--muted); }

footer { padding: 36px 0 52px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
