/* ==========================================================================
   واژه‌یار — landing page. RTL-first, mobile-first, light/dark.
   Shares its tokens and type with the app so the two feel like one product.
   ========================================================================== */
/* Fonts are served from our own server (no Google Fonts: faster and dependable in Iran). Variable files: every weight in one. Persian: Yekan Bakh; English: Outfit. */
/*
"Yekan Bakh" is deemed proprietary by Fontiran.
For details on the legalities about the usage of these fonts, refer to www.fontiran.com.
The license code '000000' permits the utilization of this font set in the current project.
*/
/* Persian letters only (the NoEn cut): English letters and digits come from Outfit, as they always did */
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/yekanbakh.woff2?v=1") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2066-2069, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2?v=5") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f7f5ff;
  --bg-2: #efeaff;
  --surface: #ffffff;
  --surface-2: #faf9ff;
  --ink: #1b1838;
  --ink-2: #4a4670;
  --muted: #6f6b93;
  --line: #e6e1f7;
  --brand: #6c5ce7;
  --brand-2: #8e7bff;
  --brand-soft: #efeaff;
  --pink: #ff7a9e;
  --coral: #ff7a59;
  --good: #7c3aed;
  --warn: #f5a524;
  --sky: #3aa0ff;
  --grad: linear-gradient(135deg, #6c5ce7 0%, #8e7bff 48%, #ff7a9e 130%);
  --shadow-sm: 0 6px 20px -10px rgba(76, 58, 190, 0.25);
  --shadow-md: 0 22px 44px -22px rgba(76, 58, 190, 0.35);
  --shadow-lg: 0 50px 90px -34px rgba(52, 36, 160, 0.55);
  --font: "Yekan Bakh", "Outfit", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c1e; --bg-2: #141230; --surface: #1a1835; --surface-2: #201d40;
    --ink: #f3f1ff; --ink-2: #cfcbf0; --muted: #9b98bd; --line: #2b2852;
    --brand: #8b7cff; --brand-2: #a597ff; --brand-soft: #262250;
    --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 50px 90px -34px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0c1e; --bg-2: #141230; --surface: #1a1835; --surface-2: #201d40;
  --ink: #f3f1ff; --ink-2: #cfcbf0; --muted: #9b98bd; --line: #2b2852;
  --brand: #8b7cff; --brand-2: #a597ff; --brand-soft: #262250;
  --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 50px 90px -34px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 40px, 820px); }
.en { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.inl { width: 18px; height: 18px; vertical-align: -3px; margin-inline: 2px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 16px;
  font-weight: 700; font-size: 0.98rem; line-height: 1.5; white-space: nowrap; transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn .ic { transition: transform 0.2s; }
.btn:hover .ic[data-dir], .btn:hover .ic:last-child { }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 13px; }
.btn-xl { padding: 16px 30px; font-size: 1.05rem; border-radius: 18px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 18px 34px -14px var(--brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -14px var(--brand); }
.btn-glass { background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1.5px solid var(--line); color: var(--ink); backdrop-filter: blur(10px); }
.btn-glass:hover { transform: translateY(-2px); border-color: var(--brand); }
.btn-glass:hover .ic { transform: translateX(-4px); }
.btn-ghost { color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: #5a49d6; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.5); }
.btn-white:hover { transform: translateY(-2px); }
.btn-white:hover .ic { transform: translateX(-4px); }
.btn-outline { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(40, 28, 120, 0.5); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand img { display: block; height: auto; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 0.94rem; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform 0.25s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
/* the phone menu: a button that opens the section links under the bar */
.nav-burger { display: none; order: 3; width: 44px; height: 44px; flex: none; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); place-items: center; align-content: center; gap: 4px; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-only-menu { display: none; }


/* ---------- hero type ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 24px; align-items: center; }
h1 { margin-top: 0; font-size: clamp(2.15rem, 5.2vw, 3.9rem); line-height: 1.32; font-weight: 900; letter-spacing: -0.5px; text-wrap: balance; }
.grad { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); line-height: 2; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-row.center { justify-content: center; }

/* ---------- phones ---------- */
.phone { --pw: 270px; width: var(--pw); padding: calc(var(--pw) * 0.034); border-radius: calc(var(--pw) * 0.15); background: linear-gradient(155deg, #2c2856, #0e0c22); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.13); position: relative; flex: none; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: calc(var(--pw) * 0.118); background: var(--surface); }
.phone.show { --pw: 310px; margin-inline: auto; }
.phone.sm { --pw: 200px; margin-inline: 0; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; direction: ltr; padding: 16px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: marquee 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.ticker b { font-weight: 700; color: var(--brand); }
.ticker em { font-style: normal; color: var(--muted); font-size: 0.9rem; direction: rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.eyebrow { display: inline-block; padding: 5px 14px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.84rem; }
.eyebrow.light { background: rgba(255, 255, 255, 0.2); color: #fff; }
h2 { margin-top: 14px; font-size: clamp(1.65rem, 3.6vw, 2.7rem); line-height: 1.45; font-weight: 800; text-wrap: balance; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.6; }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.why-copy p { margin-top: 16px; color: var(--ink-2); font-size: 1.04rem; line-height: 2.05; }
.why-copy b { color: var(--brand); }
.curve { padding: clamp(16px, 3vw, 28px); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; }
.curve figcaption { margin-top: 8px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.curve .axis path { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.curve .axis .gl { stroke-dasharray: 3 8; opacity: 0.8; }
.curve .c-bad { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.9; }
.curve .c-good { fill: none; stroke: url(#cg); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.curve .dots circle { fill: var(--surface); stroke: var(--brand); stroke-width: 3.5; }
.curve .t { font: 600 13px var(--font); fill: var(--muted); }
.curve .t.bad { fill: var(--coral); }
.curve .t.good { fill: var(--brand); font-weight: 800; }
.curve .c-fill { display: none; }
html.js .curve:not(.in) .c-bad, html.js .curve:not(.in) .c-good { stroke-dashoffset: 1; }
html.js .curve:not(.in) .dots circle { opacity: 0; }
.curve.in .c-bad { animation: draw 1.6s 0.2s ease both; }
.curve.in .c-good { animation: draw 2.2s 0.5s ease both; }
.curve.in .dots circle { animation: pop 0.5s ease both; }
.curve.in .dots circle:nth-child(1) { animation-delay: 0.9s; }
.curve.in .dots circle:nth-child(2) { animation-delay: 1.3s; }
.curve.in .dots circle:nth-child(3) { animation-delay: 1.7s; }
.curve.in .dots circle:nth-child(4) { animation-delay: 2.1s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.curve .dots circle { transform-box: fill-box; transform-origin: center; }


/* ---------- showcase rows ---------- */
.showcase { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-soft) 60%, transparent) 20%, color-mix(in srgb, var(--brand-soft) 60%, transparent) 80%, transparent); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 96px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.6; font-weight: 800; margin-bottom: 18px; text-wrap: balance; }
.ticks { list-style: none; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 38px; color: var(--ink-2); line-height: 1.9; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad); }
.fine { margin-top: 18px; font-size: 0.84rem; color: var(--muted); line-height: 1.9; }
.pair { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }

/* ---------- faq ---------- */
.faq details { margin-bottom: 12px; padding: 0 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.25s, box-shadow 0.25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.04rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; font-weight: 500; line-height: 1; transition: transform 0.3s, background 0.3s, color 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding-bottom: 22px; color: var(--ink-2); line-height: 2.05; }


/* ---------- final CTA + footer ---------- */
.final { padding-bottom: clamp(56px, 8vw, 100px); }
.final-card { text-align: center; padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 60px); border-radius: 48px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(500px 260px at 20% 0, rgba(255, 255, 255, 0.22), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(255, 122, 158, 0.55), transparent 60%), linear-gradient(135deg, #5b48e0, #7d69f5); box-shadow: var(--shadow-lg); }
.final-card h2 { color: #fff; max-width: 18em; margin-inline: auto; }
.final-card p { margin: 14px auto 0; max-width: 30em; color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; }
.footer { padding: 44px 0 56px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 12px; justify-items: start; }
.foot-brand p { color: var(--muted); }
.foot-links { display: grid; gap: 10px; }
.foot-links b { margin-bottom: 2px; }
.foot-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; transition: color 0.2s; }
.foot-links a:hover { color: var(--brand); }
.foot-links .ic { width: 19px; height: 19px; color: var(--brand); }

/* ---------- install dialog ---------- */
dialog { width: min(calc(100% - 32px), 460px); padding: 26px 24px 22px; border: 0; border-radius: 30px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
dialog::backdrop { background: rgba(13, 12, 30, 0.55); backdrop-filter: blur(5px); }
dialog[open] { animation: dlg 0.3s cubic-bezier(0.2, 0.9, 0.25, 1); }
@keyframes dlg { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.dlg-x { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; margin: 0; }
.dlg-x button { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: var(--muted); }
.dlg-x button:hover { background: var(--brand-soft); color: var(--brand); }
dialog h3 { margin-bottom: 14px; padding-inline-end: 40px; font-size: 1.3rem; }
.inapp { margin-bottom: 16px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.inapp b { display: block; margin-bottom: 4px; }
.inapp p { margin-bottom: 12px; font-size: 0.9rem; line-height: 1.9; color: var(--ink-2); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--brand-soft); margin-bottom: 16px; }
.tabs button { padding: 9px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: all 0.2s; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.how { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 12px; }
.how li { counter-increment: h; position: relative; padding: 4px 44px 4px 0; line-height: 2; color: var(--ink-2); }
.how li::before { content: counter(h, persian); position: absolute; inset-inline-start: auto; right: 0; top: 4px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 0.9rem; line-height: 1; }
.how b { color: var(--ink); }
.dlg-foot { margin-top: 20px; display: flex; justify-content: center; }

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }


.t-privacy { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 24px auto 0; padding: 16px 20px; border-radius: 22px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--ink-2); font-size: .92rem; line-height: 1.95; }
.t-privacy .ic { flex: none; width: 26px; height: 26px; color: var(--brand); margin-top: 3px; }
.t-privacy b { color: var(--ink); }

/* ============ G.1: try without signing up ============ */
.try-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px 8px 16px; font: inherit; font-size: 0.92rem;
  color: var(--ink-2); background: var(--brand-soft); border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.try-cta b { color: var(--brand); }
.try-cta .ic { width: 18px; height: 18px; color: var(--brand); }
.try-cta:hover { border-style: solid; border-color: var(--brand); transform: translateY(-1px); }
.try-cta:focus-visible, .try button:focus-visible, .try a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
html.try-open { overflow: hidden; }

.try {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: color-mix(in srgb, #0d0c1e 55%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s;
}
.try.is-in { opacity: 1; }
.try-panel {
  width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 18px 20px 22px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.98); transition: transform 0.25s;
}
.try.is-in .try-panel { transform: none; }
.try-top { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.try-steps { flex: 1; display: flex; gap: 4px; }
.try-steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); transition: background 0.25s; }
.try-steps i.on { background: var(--brand); }
.try-steps i.now { background: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.try-x { margin-inline-start: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.try-x .ic { width: 18px; height: 18px; }
.try-body { text-align: center; padding-top: 6px; }
.try-body h2 { margin: 4px 0 8px; font-size: 1.3rem; line-height: 1.6; }
.try-eyebrow { margin: 6px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--brand); }
.try-sub { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.try-levels { display: grid; gap: 10px; }
.try-level, .try-opt {
  font: inherit; text-align: start; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.try-level:hover, .try-opt:not([aria-disabled]):hover { border-color: var(--brand); transform: translateY(-1px); }
.try-level b { display: block; font-size: 1rem; }
.try-level small { color: var(--muted); font-size: 0.82rem; }
.try-card { margin: 14px 0 18px; padding: 26px 18px; border-radius: 22px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); }
.try-word { margin: 0 !important; font-size: 2rem !important; font-weight: 700; color: var(--ink); }
.try-ph { display: flex !important; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.try-say { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--brand); cursor: pointer; }
.try-say .ic { width: 18px; height: 18px; }
.try-hint { margin: 16px 0 0; color: var(--muted); font-size: 0.88rem; }
.try-mean { margin-top: 16px; font-size: 1.25rem; font-weight: 800; color: var(--brand); animation: try-pop 0.3s ease-out; }
.try-ex { display: block !important; margin: 8px auto 0; max-width: 34ch; color: var(--ink-2); font-size: 0.92rem; line-height: 1.6; }
.try-main { width: 100%; justify-content: center; }
.try-q { margin-top: 10px !important; }
.try-q .en { color: var(--brand); }
.try-opts { display: grid; gap: 10px; margin-top: 14px; }
.try-opt { text-align: center; font-weight: 600; }
.try-opt.is-right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); animation: try-pop 0.3s ease-out; }
.try-opt.is-wrong { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); color: var(--coral); animation: try-shake 0.35s; }
.try-opt.is-dim { opacity: 0.45; }
.try-opt[aria-disabled] { cursor: default; }
.try-score { margin: 8px auto 4px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; font-size: 2.2rem; font-weight: 900; color: #fff; background: var(--grad); box-shadow: var(--shadow-md); line-height: 1; }
.try-score small { font-size: 0.9rem; font-weight: 600; opacity: 0.85; }
.try-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; text-align: start; }
.try-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.9rem; }
.try-list .en { font-weight: 700; }
.try-list em { font-style: normal; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-list li.ok b { color: var(--good); }
.try-list li.no b { color: var(--coral); }
.try-again { margin-top: 10px; font: inherit; font-size: 0.88rem; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@keyframes try-pop { from { transform: scale(0.94); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes try-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .try, .try-panel { transition: none; } .try-mean, .try-opt { animation: none !important; } }
@media (max-width: 480px) { .try { align-items: flex-end; padding: 0; } .try-panel { border-radius: 26px 26px 0 0; max-height: 92dvh; } .try-word { font-size: 1.7rem !important; } }

/* ============ privacy / terms (inc/legal.php) ============ */
.legal-nav { display: flex; gap: 18px; font-size: .9rem; font-weight: 600; }
.legal-nav a { color: var(--ink-2); text-decoration: none; }
.legal-nav a[aria-current] { color: var(--brand); }
.legal { padding: 36px 0 60px; line-height: 2; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 900; margin: 0 0 4px; }
.legal-updated { color: var(--muted); font-size: .85rem; margin: 0 0 22px; }
.legal-lead { font-size: 1.05rem; color: var(--ink-2); padding: 14px 18px; border-radius: 18px; background: var(--brand-soft); }
.legal h2 { font-size: 1.2rem; font-weight: 800; margin: 30px 0 8px; }
.legal h3 { font-size: 1rem; font-weight: 800; margin: 18px 0 4px; color: var(--brand); }
.legal ul { padding-inline-start: 22px; margin: 6px 0; }
.legal li { margin: 4px 0; }
.legal a { color: var(--brand); }
@media (max-width: 520px) { .legal-nav { gap: 12px; font-size: .82rem; } }


/* ==========================================================================
   Landing v2 (docs/design/landing-v2-mockup.html): one idea per section; on Android the Bazaar app first.
   ========================================================================== */
/* who sees what: theme.js marks Android before the first paint; without JS both show */
html.js:not(.is-android) .when-android, html.js.is-android .not-android { display: none !important; }

/* store badge (Bazaar's wordmark as a mask, so it takes the badge's colour) */
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 18px; background: #1b1838; color: #fff; box-shadow: var(--shadow-md); transition: transform .18s ease; }
.store:hover { transform: translateY(-2px); }
.store:active { transform: scale(.97); }
.store span { display: grid; line-height: 1.3; text-align: start; }
.store small { font-size: .7rem; font-weight: 600; opacity: .72; }
.store b { font-size: 1.02rem; font-weight: 800; }
.bz-logo { width: 46px; height: 24px; flex: none; background: #3ddc84; -webkit-mask: url("../landing/bazaar-logo.svg") center / contain no-repeat; mask: url("../landing/bazaar-logo.svg") center / contain no-repeat; }
.store-sm { height: 46px; padding: 0 14px 0 12px; border-radius: 14px; gap: 9px; }
.store-sm .bz-logo { width: 36px; height: 19px; }
.store-sm b { font-size: .9rem; }
.store-dark { background: #1b1838; }
:root[data-theme="dark"] .store:not(.store-dark) { background: #fff; color: #1b1838; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store:not(.store-dark) { background: #fff; color: #1b1838; } }
:root[data-theme="dark"] .store:not(.store-dark) .bz-logo { background: #0fa968; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store:not(.store-dark) .bz-logo { background: #0fa968; } }

/* hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none; background: radial-gradient(620px 360px at 85% 18%, color-mix(in srgb, #8e7bff 30%, transparent), transparent 70%), radial-gradient(540px 320px at 8% 62%, color-mix(in srgb, #ff7a9e 22%, transparent), transparent 70%); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: .84rem; font-weight: 700; }
.pill b { padding: 2px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: .74rem; }
.facts { display: flex; max-width: 520px; margin-top: 28px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.facts div { flex: 1; display: grid; padding: 12px 16px; line-height: 1.5; border-inline-start: 1px solid var(--line); }
.facts div:first-child { border: 0; }
.facts b { font-size: 1.25rem; font-weight: 900; }
.facts span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.hero-visual { position: relative; height: 600px; }
.hero-visual .phone { --pw: 272px; position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%) rotate(-2deg); }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); font-size: .86rem; font-weight: 700; line-height: 1.5; animation: floaty 7s ease-in-out infinite; }
.chip .k { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 1.05rem; background: var(--bg-2); }
.chip small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.chip .en { font-weight: 700; font-size: 1rem; }
.c1 { top: 70px; inset-inline-start: 0; } .c1 .k { background: #fff1e6; }
.c2 { top: 270px; inset-inline-end: 0; animation-delay: -3s; }
.c3 { bottom: 50px; inset-inline-start: 6%; animation-delay: -5s; } .c3 .k { background: #e7f8f1; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* a day with the app */
.day { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mo { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 20px 20px 0; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mo-t { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.mo-t i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; background: var(--bg-2); }
.mo-time { position: absolute; top: 22px; left: 20px;   /* physical: .en flips inline-end */ color: var(--muted); font-size: .76rem; font-weight: 700; }
.mo h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.mo p { margin-bottom: 18px; color: var(--ink-2); font-size: .9rem; line-height: 1.9; }
.mo-shot { display: flex; justify-content: center; height: 280px; margin-top: auto; overflow: hidden; }
.mo-shot div { width: 210px; padding: 7px 7px 0; border-radius: 32px 32px 0 0; background: linear-gradient(155deg, #2c2856, #0e0c22); }
.mo-shot img { display: block; width: 100%; height: auto; border-radius: 26px 26px 0 0; }

/* where words come from */
.src { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sc { padding: 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sc h3 { margin: 14px 0 6px; }
.sc p { margin-bottom: 16px; color: var(--ink-2); font-size: .92rem; line-height: 1.95; }
.sc-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; background: var(--b, var(--bg-2)); }
.sc-feat { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-md); }
.sc-feat p { color: rgba(255, 255, 255, .9); }
.sc-feat .sc-ic { background: rgba(255, 255, 255, .18); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats span { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: .82rem; font-weight: 700; }
.tag-new { margin-inline-start: 6px; padding: 2px 9px; border-radius: 99px; background: #ffd166; color: #3b2a00; font-size: .68rem; font-weight: 900; vertical-align: 3px; }
.lesson { padding: 8px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; }
.lesson div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--line); }
.lesson div:first-child { border: 0; font-weight: 800; }
.lesson em { font-style: normal; color: var(--muted); }
.typed { display: grid; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; line-height: 1.9; }
.ty-in { padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--brand); }
.typed u { color: var(--brand); font-weight: 800; }
.src-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: .92rem; text-align: center; }
.src-note .ic { color: var(--brand); }

/* practice */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(56px, 8vw, 100px); }
.md { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.md i { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 1.25rem; background: var(--bg-2); }
.md b { font-size: .95rem; }
.md span { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.rows .row:last-child { margin-bottom: 0; }

/* why: three points under the copy */
.pts { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 22px; }
.pts li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: .92rem; line-height: 1.9; }
.pts i { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-style: normal; background: var(--brand-soft); }
.pts b { display: block; color: var(--ink); font-size: 1rem; }

/* habits */
.hab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hb { padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hb-e { font-size: 1.7rem; line-height: 1; }
.hb h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.hb p { color: var(--ink-2); font-size: .9rem; line-height: 1.9; }
.hb-mini { margin-top: 14px; }
.week { display: flex; gap: 6px; }
.week span { flex: 1; text-align: center; color: var(--muted); font-size: .7rem; font-weight: 700; }
.week i { display: block; font-style: normal; font-size: 1.15rem; }
.week .dim { opacity: .35; }
.lg div, .qs div { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 12px; font-size: .84rem; }
.lg i { font-style: normal; width: 22px; color: var(--muted); font-weight: 800; }
.lg b, .qs b { margin-inline-start: auto; font-weight: 800; }
.lg .me { background: var(--brand-soft); font-weight: 800; }
.qs .ok { color: var(--brand); font-weight: 700; }

/* teachers */
.tch { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 48px); padding: clamp(28px, 5vw, 56px); border-radius: 44px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(600px 320px at 100% 0, rgba(142, 123, 255, .45), transparent 65%), linear-gradient(135deg, #1d1a44, #0c0b20); box-shadow: var(--shadow-lg); }
.tch h2 { color: #fff; }
.tch-copy p { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 1.02rem; line-height: 2; }
.tch-copy .tch-hint { font-size: .84rem; color: rgba(255, 255, 255, .6); }
.tch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.tch-list div { padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); font-size: .84rem; line-height: 1.85; }
.tch-list b { display: block; margin-bottom: 2px; color: #fff; font-size: .95rem; }

/* get the app */
.get { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.gc { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gc h3 { display: flex; align-items: center; gap: 12px; }
.gc h3 i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-style: normal; background: var(--bg-2); }
.gc p, .gc ol { color: var(--ink-2); font-size: .92rem; }
.gc ol { padding-inline-start: 20px; line-height: 2; }
.gc > .store, .gc > .btn { margin-top: auto; align-self: flex-start; }
.gc-main { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.gc-rec { align-self: flex-start; padding: 3px 12px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; }
.how .store { vertical-align: middle; margin-inline-start: 6px; }

/* final card buttons */
.final-card .store { box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .5); }

/* sticky phone dock */
.dock { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 40; display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.dock.on { transform: none; }
.dock small { flex: 1; color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.6; }
.dock .btn { padding: 11px 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .day { grid-template-columns: repeat(4, minmax(250px, 42%)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .day::-webkit-scrollbar { display: none; }
  .mo { scroll-snap-align: center; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav.open { border-color: var(--line); background: var(--bg); }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; inset-inline: 0; padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(40, 28, 120, .45); font-size: 1.02rem; max-height: calc(100dvh - 70px); overflow-y: auto; }
  .nav.open .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links a::after { display: none; }
  .nav.open .nav-only-menu { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead, .facts { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-visual { height: 540px; max-width: 460px; width: 100%; margin-inline: auto; }
  .why-grid, .row, .tch, .src, .get { grid-template-columns: minmax(0, 1fr); }
  .row.flip .row-copy { order: 0; }
  .row-copy { text-align: center; }
  .ticks { text-align: right; max-width: 30em; margin-inline: auto; }
  .hab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { flex-direction: column; }
  .dock { display: flex; }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .container, .container.narrow { width: min(100% - 32px, var(--container)); }
  .nav-in { height: 62px; }
  .nav-cta .btn-ghost { display: none; }
  .btn-xl { padding: 15px 24px; width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .store { justify-content: center; }
  .hero-visual { height: 470px; }
  .hero-visual .phone { --pw: 222px; }
  .c1 { top: 30px; } .c2 { top: 230px; } .c3 { bottom: 30px; inset-inline-start: 0; }
  .day { grid-template-columns: repeat(4, 84%); margin-inline: -16px; padding-inline: 16px; }
  .modes, .hab, .tch-list { grid-template-columns: minmax(0, 1fr); }
  .pair .phone.show { --pw: 150px; } .pair .phone:nth-child(2) { margin-top: 36px; }
  .phone.show { --pw: 250px; }
  .tch, .final-card { border-radius: 32px; }
  .faq details { padding: 0 18px; }
  .facts div { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ---------- search: the keyword above the slogan, Myket beside Bazaar, the full «about» line ---------- */
.h1-kicker { display: block; margin-bottom: 10px; font-size: clamp(0.95rem, 1.6vw, 1.1rem); font-weight: 700; letter-spacing: 0; color: var(--brand); }
.mk-logo { border-radius: 50%; flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-about { max-width: 34em; font-size: 0.88rem; line-height: 1.9; }
