/* ==========================================================================
   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.
   ========================================================================== */

/* Titillium Web ( Latin ) , self-hosted : static weights , the family has no variable version */
@font-face {
  font-family: "Titillium Web";
  src: url("fonts/TitilliumWeb-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("fonts/TitilliumWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("fonts/TitilliumWeb-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("fonts/TitilliumWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@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);
  --accent-ink: #bf360c;       /* accent as small text: deep orange 900, 4.5:1 on accent-soft */
  --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);
  --accent-ink: #ff8a65;
  --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: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; letter-spacing: .12em; font-family: "Titillium Web", sans-serif; }
.brand svg { width: 40px; height: 52px; }
.brand small { display: block; font-weight: 400; letter-spacing: .04em; font-size: 13px; color: var(--muted); margin-top: -6px; }
.nav-links { display: none; gap: 2px; }
.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); }
/* Narrow screens : the links live in a dropdown under the header , opened by the Menu button */
@media (max-width: 1039px) {
  .nav.menu-open .nav-links { display: flex; flex-direction: column; gap: 2px; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(280px, calc(100vw - 24px)); padding: 8px; border-radius: 20px; background: var(--card); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .28), 0 0 0 1px var(--line); animation: menu-in .18s ease-out; }
  .nav.menu-open .nav-links a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; font-size: 16px; color: var(--text); }
  .nav.menu-open .nav-links a svg { display: block; flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
}
@keyframes menu-in { from { opacity: 0; transform: translate(-50%, -6px); } }
.nav-links a svg { display: none; }
@media (min-width: 1040px) { .nav-links { display: flex; } .menu-btn { display: none !important; } }
.menu-btn[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary); }
/* The web version : its own box , first after the logo */
.web-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; margin-inline-start: 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--primary); border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #258786, #6fc7b8 45%, #ffb600) border-box; box-shadow: 0 4px 14px -6px rgba(37, 135, 134, .55); transition: transform .2s, box-shadow .2s; }
.web-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(37, 135, 134, .7); }
.web-pill svg { width: 18px; height: 18px; }
@media (min-width: 1040px) { .web-pill { margin-inline-end: 6px; } }
@media (max-width: 440px) {
  .nav .brand > span { display: none; }
  .web-pill { margin-inline-start: 8px; padding: 0 11px; }
  .nav-tools { gap: 6px; }
}
.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; } }
.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; }

/* 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-ink); }

/* 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, .nbox .days { display: flex; gap: 4px; margin-top: 8px; } /* beats .nbox span { display: block } */
.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 */
/* Download : one card per platform , Android with scannable codes */
.get-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .get-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.get { display: flex; flex-direction: column; gap: 18px; }
.get-head { display: flex; gap: 14px; align-items: flex-start; }
.get-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.get-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.get-ic svg { width: 26px; height: 26px; }
.qr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qr { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; background: var(--card-2); text-align: center; transition: transform .2s, box-shadow .2s; }
.qr:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.qr img { width: 100%; max-width: 148px; height: auto; border-radius: 10px; background: #fff; padding: 6px; margin-bottom: 4px; }
.qr b { font-size: 15px; }
.qr span { font-size: 13px; color: var(--muted); }
.get-btn { align-self: flex-start; }
.get-btn svg { width: 20px; height: 20px; }
.get-note { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.get-more { display: grid; gap: 10px; margin-top: auto; }
.get-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); transition: background .2s; }
.get-link:hover { background: var(--primary-soft); }
.get-link svg { flex: none; width: 24px; height: 24px; color: var(--primary); }
.get-link b { display: block; font-size: 15px; }
.get-link small { display: block; font-size: 13px; color: var(--muted); }

/* Support & contact */
.help-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help { display: grid; justify-items: center; gap: 8px; text-align: center; transition: transform .2s, box-shadow .2s; }
.help:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.help b { font-size: 17px; }
.help-val { font-size: 15px; color: var(--muted); }
.help-val.ltr { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: .02em; }

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; }
}

/* "New" badge above a chapter title */
.new-badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* Learning page */
.nav-links a[aria-current="page"] { color: var(--text); background: var(--card-2); }
.learn { padding-top: 48px; }
.learn h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.learn-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; padding: 0 16px; height: 54px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.learn-search:focus-within { border-color: var(--primary); }
.learn-search svg { flex: none; width: 22px; height: 22px; color: var(--muted); }
.learn-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.learn-count { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 22px; }
.learn-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.learn-topic { padding: 0; overflow: hidden; }
.learn-topic summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.learn-topic summary::-webkit-details-marker { display: none; }
.learn-topic summary::after { content: ""; margin-inline-start: auto; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.learn-topic[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.learn-num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; }
.learn-sum { display: grid; min-width: 0; }
.learn-sum b { font-size: 17px; }
.learn-sum small { color: var(--muted); font-size: 14px; }
.learn-star { color: #f2b84b; margin-inline-start: 6px; }
.learn-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.learn-intro { margin: 16px 0 6px; }
.learn-body h3 { font-size: 16px; color: var(--primary); margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 1.5px solid var(--primary-soft); }
.learn-body ul { margin: 0; padding-inline-start: 22px; color: var(--muted); }
.learn-body li { margin: 4px 0; padding: 2px 6px; border-radius: 8px; }
.learn-body li::marker { color: var(--primary); }
.learn-body .hit { background: rgba(255, 193, 7, .2); }
.learn-body mark, .learn-sum mark { background: rgba(255, 193, 7, .45); color: inherit; border-radius: 4px; padding: 0 2px; }
.learn-video { margin: 14px 0 4px; max-width: 420px; }
.learn-video video { width: 100%; border-radius: 14px; background: #000; display: block; }
.learn-empty { text-align: center; color: var(--muted); padding: 24px 0; }
.learn-help { max-width: 860px; margin: 22px auto 0; display: grid; gap: 4px; text-align: center; }
.learn-help a { color: var(--primary); font-weight: 700; }

/* Windows QR tile + latest-version pill ( filled from AppChangelog.json by changelog.js ) */
.win-row { display: grid; grid-template-columns: minmax(0, 220px); }
.ver-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 700; }
.ver-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #43a047; box-shadow: 0 0 0 3px rgba(67, 160, 71, .2); }
.ver-pill[hidden] { display: none; }
.get-link.soon { cursor: default; }
.get-link.soon:hover { background: var(--card-2); }
.soon-tag { margin-inline-start: auto; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; }

/* Hero headline : two lines , the brand word in the logo's orange */
.hero h1 .h-line { display: block; }
.hero h1 .h-line + .h-line { font-size: .78em; margin-top: .45em; }
.brand-word { font-weight: 800; background: linear-gradient(135deg, #ffb600, #ef7700 74%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-orange { background: linear-gradient(135deg, #ffa000, #ef7700); color: #fff; box-shadow: 0 6px 18px -8px rgba(239, 119, 0, .75); }
.btn-orange:hover { box-shadow: 0 10px 24px -10px rgba(239, 119, 0, .9); }
.btn-orange svg, .log-more svg { width: 20px; height: 20px; }

/* Version history dialog */
.log-more { display: flex; justify-content: center; margin-top: 18px; }
.log-more .btn[hidden] { display: none; }
.log-dialog { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.log-dialog[open] { display: flex; flex-direction: column; }
.log-dialog::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.log-head h2 { font-size: 21px; }
.log-note { margin: 10px 20px 0; font-size: 13px; color: var(--muted); }
.log-body { overflow-y: auto; padding: 8px 20px 20px; }
.log-entry { padding: 14px 0; border-bottom: 1px solid var(--line); }
.log-entry:last-child { border-bottom: 0; }
.log-entry header { display: flex; align-items: baseline; gap: 10px; }
.log-entry header b { font-size: 18px; }
.log-entry header span { font-size: 13px; color: var(--muted); }
.log-entry header i { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.log-entry ul { margin: 6px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 15px; }
.log-entry ul[dir="rtl"] { text-align: right; }

/* Header logo : "SMART" centred under "BOOFI" ( the trailing letter-spacing is taken back so the words truly centre ) */
.nav .brand > span, .pol-top .brand > span { text-align: center; }
.nav .brand > span, .pol-top .brand > span { margin-inline-end: -.12em; }
.nav .brand small, .pol-top .brand small { letter-spacing: .3em; margin-inline-end: -.3em; }

/* About ( the plain-text summary search engines read ) */
.about { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.about p { margin: 0; color: var(--muted); line-height: 1.9; }
.about p b { color: var(--text); font-weight: 700; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.about-tags li { padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13.5px; font-weight: 600; }
