/* Boofly Talk website. One stylesheet for every page (/ = fa, rtl; /en/ = en, ltr): logical
   properties only, so the same rules work in both directions.
   The look: a clean near-white ground, indigo ink and a calm terracotta, with soft shadows on
   rounded panels. Sections are told apart by rhythm (columns, a staircase, one deep band).
   The page's CSP allows no inline styles: everything visual lives here. */

/* Fonts: Vazirmatn for Persian, Nunito for Latin. Each covers only its own script through
   unicode-range, so an English reader never downloads the Persian face and vice versa. */
@font-face {
  font-family: Vazirmatn; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/Vazirmatn-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/fonts/Nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/fonts/Nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fbfbfd;           /* page ground */
  --sand: #f3f2f8;            /* alternate sections: a cool lilac grey */
  --card: #ffffff;            /* panels, fields */
  --ink: #1c1a33;             /* text: an indigo-black, from the brand's indigo */
  --ink-2: #565270;           /* secondary text (7:1 on the ground) */
  --faint: #8a86a0;
  --line: #e9e7f1;
  --line-strong: #d8d5e5;
  --accent: #c8642f;          /* calm terracotta: big shapes, large text */
  --accent-fill: #b2552a;     /* button fill: white text on it is 5:1 */
  --accent-hover: #9c4822;
  --accent-text: #9a4520;     /* accent for small text */
  --accent-tint: #fbe8dd;
  --on-accent: #ffffff;
  --indigo: #2d2961;          /* the one deep band and the "you" bubble */
  --indigo-2: #3b3680;
  --indigo-tint: #ecebf8;
  --on-indigo: #ffffff;
  --on-indigo-2: #d3d0ea;
  --saffron: #e9ad42;
  --saffron-tint: #fdedc8;
  --success: #2c7a58;
  --success-tint: #e1f3ea;
  --success-text: #1d6346;
  --focus: #4b45b0;
  --shadow-sm: 0 1px 2px rgba(28, 26, 51, .05), 0 6px 18px -8px rgba(28, 26, 51, .12);
  --shadow-md: 0 2px 6px rgba(28, 26, 51, .05), 0 22px 48px -18px rgba(28, 26, 51, .24);
  --shadow-accent: 0 10px 24px -10px rgba(178, 85, 42, .7);
  --foot: #16142b;
  --blob-base: #ffffff;       /* owl arches: the pose colour mixed into this ground ... */
  --blob-amount: 62%;         /* ... at this strength (lighter in light mode, deeper in dark) */
  --radius: 20px;
  --font-fa: Vazirmatn, Nunito, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-en: Nunito, Vazirmatn, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Dark: only when the visitor's system asks for it. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121124;
    --sand: #18172e;
    --card: #1f1d38;
    --ink: #f3f1fa;
    --ink-2: #c3bfd6;
    --faint: #8f8aa8;
    --line: #2b2948;
    --line-strong: #3a3760;
    --accent: #e48c58;
    --accent-fill: #c25d2c;
    --accent-hover: #d36a37;
    --accent-text: #f2a477;
    --accent-tint: #3a2433;
    --on-accent: #ffffff;
    --indigo: #262259;
    --indigo-2: #332e74;
    --indigo-tint: #26244a;
    --on-indigo: #ffffff;
    --on-indigo-2: #cfcbe6;
    --saffron: #e8b452;
    --saffron-tint: #3d3322;
    --success: #4fb98d;
    --success-tint: #1b3a30;
    --success-text: #84d6b2;
    --focus: #b9b2f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 22px 48px -18px rgba(0, 0, 0, .7);
    --shadow-accent: 0 10px 24px -10px rgba(0, 0, 0, .7);
    --foot: #0c0b1a;
    --blob-base: #2a2752;
    --blob-amount: 28%;
  }
  .tile.android { background: #1f3a2b; color: #5fe39a; }
  .tile.apple { background: #2c2c30; color: #f5f5f7; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-fa);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.9;
  overflow-wrap: break-word;
  /* Short pages (privacy, contact, 404) keep the footer at the bottom of the window. */
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
html[dir="ltr"] body { font-family: var(--font-en); line-height: 1.62; font-weight: 500; }
[lang="en"] { font-family: var(--font-en); }
img, svg { display: block; max-width: 100%; }
/* Art is served as <picture class="pic"> (WebP with a PNG fallback). The wrapper takes no box of
   its own, so the <img> inside lays out exactly like a bare image. Every image is shown at or
   below its pixel size; the widths below never exceed the files' width/height attributes. */
.pic { display: contents; }
.pic > source { display: none; }  /* else it becomes an empty grid or flex item once the wrapper steps aside */
figure { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.35; font-weight: 850; margin: 0; }
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 { line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
b { font-weight: 800; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip:focus { top: 12px; color: var(--paper); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 600px) { .wrap { padding-inline: 28px; } }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ── Brand: the Boofly logo with a smaller "Talk", always left-to-right ─ */
.brand { display: inline-flex; align-items: flex-end; gap: 6px; direction: ltr; text-decoration: none; flex: none; }
.brand picture { display: block; }  /* the dark-mode logo (light lettering) is picked by <picture> */
.brand img { height: 38px; width: auto; }
.brand .talk { font-family: var(--font-en); font-weight: 900; font-size: 20px; line-height: 1; color: var(--accent); padding-bottom: 6px; }

/* ── Header: a plain paper bar with a hairline ─────────────────────── */
.top-bar { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.menu { display: none; gap: 4px 26px; flex-grow: 1; justify-content: center; flex-wrap: wrap; }
.menu a { font-weight: 650; font-size: 15px; color: var(--ink-2); text-decoration: none; padding-block: 6px; background: linear-gradient(var(--accent), var(--accent)) no-repeat 50% 100% / 0 2px; transition: background-size .2s ease, color .2s ease; }
.menu a:hover { color: var(--ink); background-size: 100% 2px; }
.top-actions { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
@media (min-width: 1100px) { .menu { display: flex; } .top-actions { margin-inline-start: 0; } }
.lang { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; line-height: 1.3; }
.lang:hover { color: var(--ink); background: var(--sand); }
/* boofly.online's language menu: a globe and the language's name; the list opens below it. */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 10px; line-height: 1.3; white-space: nowrap; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--sand); }
.lang-menu > summary .icon { width: 18px; height: 18px; }
.lang-menu ul { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 20; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15px; }
.lang-menu a:hover { background: var(--sand); }
.lang-menu a[aria-current] { font-weight: 850; color: var(--accent); }
.lang-menu a[lang="fa"], .lang-menu a[lang="ar"] { font-family: Vazirmatn, Nunito, system-ui, sans-serif; }
@media (max-width: 420px) { .lang-menu > summary span { display: none; } .lang-menu > summary .icon { width: 22px; height: 22px; } }

/* ── Buttons: rounded rectangles; the main one lifts on a soft terracotta glow ─ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--accent-fill); color: var(--on-accent);
  font: inherit; font-weight: 750; font-size: 16px; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { color: var(--on-accent); background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn.lg { min-height: 56px; padding: 0 28px; font-weight: 850; font-size: 18px; border-radius: 14px; box-shadow: var(--shadow-accent); }
.btn.lg:hover { transform: translateY(-2px); }
.btn.lg:active { transform: translateY(0); }
.btn.tall { min-height: 56px; padding: 0 22px; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.top-actions .btn.small { background: var(--ink); color: var(--paper); }
.top-actions .btn.small:hover { background: var(--accent-fill); color: var(--on-accent); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn.paper { background: #ffffff; color: #1c1a33; font-weight: 850; }
.btn.paper:hover { background: var(--saffron-tint); color: #1c1a33; }
.btn .icon { width: 20px; height: 20px; transition: transform .15s ease; }
.btn.lg:hover .icon { transform: translateX(3px); }
[dir="rtl"] .btn.lg:hover .icon.flip { transform: scaleX(-1) translateX(3px); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Hero: words on the start side, the owl under an arch on the end side ─ */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 64px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; padding-block: 64px 88px; } }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.eyebrow { display: inline-flex; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 750; color: var(--accent-text); line-height: 1.6; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; transform: translateY(-.32em); }
/* Under the hero slogan: what the app teaches, no dash in front. */
.hero h1 + .eyebrow { display: block; margin-top: -4px; }
.hero h1 + .eyebrow::before { content: none; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 900; line-height: 1.32; letter-spacing: -0.005em; }
html[dir="ltr"] .hero h1 { line-height: 1.04; letter-spacing: -0.035em; font-size: clamp(2.3rem, 5.6vw, 3.6rem); }
/* The slogan's end («مکالمه‌ی واقعی», "real conversation") on a line of its own, a little below the start. */
.hero h1 .hl { display: block; width: fit-content; margin-top: .14em; }
/* A slogan written as lines (<span class="ln">): one line each, the highlight inline in the last. */
.hero h1 .ln { display: block; }
.hero h1 .ln + .ln { margin-top: .06em; }
.hero h1 .ln .hl { display: inline; margin-top: 0; }
/* The highlighted words: terracotta on a saffron underline stroke. */
/* The key words of a title (conversation): terracotta, heaviest weight, on a thick marker stroke. */
.hl { color: var(--accent); font-weight: 900; background: linear-gradient(color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 22%, transparent)) no-repeat 0 92% / 100% .34em; padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nowrap { white-space: nowrap; }
.lead { font-size: 19px; line-height: 1.95; color: var(--ink-2); max-width: 36em; }
html[dir="ltr"] .lead { line-height: 1.6; }
/* Bold phrases in running text stand out in ink, not just weight. */
p b, .lead b { font-weight: 800; color: var(--ink); }
.cta { margin-top: 4px; }
/* Facts: small soft chips in a row. */
.facts { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; color: var(--ink-2); padding: 7px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; line-height: 1.4; box-shadow: var(--shadow-sm); }
.facts .icon { width: 18px; height: 18px; color: var(--accent); }

.hero-art { min-width: 0; display: flex; justify-content: center; }
.art { width: 100%; max-width: 420px; aspect-ratio: 10 / 11; position: relative; display: flex; align-items: flex-end; justify-content: center; }
/* A soft arch behind the owl, with a small terracotta disc rising behind its shoulder. */
.art::before, .art::after { content: ""; position: absolute; }
.art::before { bottom: 0; inset-block-start: 6%; inset-inline: 6%; border-radius: 999px 999px 32px 32px; background: linear-gradient(180deg, var(--indigo-tint), color-mix(in srgb, var(--accent-tint) 70%, var(--indigo-tint))); }
.art::after { width: 18%; aspect-ratio: 1; border-radius: 50%; top: 14%; right: 4%; background: var(--accent); opacity: .9; }  /* always right: the "them" bubble sits top left in both directions */
.art-owl { width: 78%; height: auto; position: relative; z-index: 1; }
.say { position: absolute; z-index: 2; direction: ltr; font-family: var(--font-en); font-weight: 800; font-size: 15px; line-height: 1.3; padding: 10px 14px; margin: 0; }
.say.them { top: 7%; left: 0; background: var(--card); color: var(--ink); border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow-md); }
.say.you { top: 62%; right: 0; background: var(--indigo); color: #ffffff; border-radius: 16px 16px 4px 16px; box-shadow: 0 14px 30px -12px rgba(45, 41, 97, .6); }
@media (max-width: 899px) { .art { max-width: 340px; } }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 96px; } }
.soft { background: var(--sand); }
/* Section heads: a hairline across with a short terracotta stroke at its start; on wide
   screens the title and its lead sit side by side. */
.section-head { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0 0 44px; padding-top: 22px; }
.section-head::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 5px; border-radius: 99px; background: var(--accent); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }
@media (min-width: 960px) {
  .section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: end; }
  .section-head > :only-child { grid-column: 1 / -1; }
}
.section-head .h2 { font-size: clamp(1.45rem, 3vw, 2rem); }

/* Lessons: a row of three soft panels. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps .card { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 20px; row-gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.steps .owl-art { grid-column: 1; grid-row: 1 / span 2; width: 104px; height: 112px; align-self: start; }
.steps .owl-art .owl { width: auto; height: 100%; margin-inline: auto; }
.steps h3 { grid-column: 2; font-size: 1.25rem; }
.steps .card p { grid-column: 2; font-size: 15.5px; color: var(--ink-2); line-height: 1.85; }
html[dir="ltr"] .steps .card p { line-height: 1.6; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps .card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
  .steps .owl-art { width: 100%; max-width: 220px; height: 176px; order: -1; margin-bottom: 8px; }
}

/* ── Owl art ─────────────────────────────────────────────────────────
   The owls are transparent cut-outs. Each stands under an arch in its pose's colour
   (boofly-assets talk/mascot/colors.json), lightened towards the ground: --blob-base/--blob-amount
   make it a pastel on light grounds and a deep tint in dark mode. */
.owl-art { position: relative; flex: none; isolation: isolate; }
.owl-art .owl { width: 100%; height: auto; position: relative; }
.owl-art::before {
  content: ""; position: absolute; z-index: -1; inset-inline: 8%; bottom: 0; top: 16%;
  border-radius: 999px 999px 24px 24px;
  background: color-mix(in srgb, var(--blob, #f4dfcc) var(--blob-amount), var(--blob-base));
}
.blob-reading-idea { --blob: #f8d77a; }
.blob-voice { --blob: #f7c9a0; }
.blob-celebrate { --blob: #f4c3cf; }
.blob-phone-pointing { --blob: #cfc4f4; }
.blob-headphones-wave { --blob: #a4d9f2; }
.blob-waving { --blob: #a8e6c4; }

/* Levels: a staircase. Wide screens: six joined steps rising; phones: bars that lengthen. */
.path-levels { margin-top: 80px; }
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
/* A warm ramp, from pale saffron up to terracotta, with the top level in the brand's indigo. The
   colours are fixed (not themed), so their text colours are too. */
.ladder li { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 12px; color: #1c1a33; }
.ladder b { font-family: var(--font-en); font-weight: 900; font-size: 1.35rem; direction: ltr; line-height: 1.2; }
.ladder li > span:not(.dots) { color: inherit; font-size: 14.5px; font-weight: 600; opacity: .86; }
.ladder .dots { display: none; }
.ladder li:nth-child(1) { width: 50%; background: #fbeed6; }
.ladder li:nth-child(2) { width: 60%; background: #f3dba8; }
.ladder li:nth-child(3) { width: 70%; background: #eac27a; }
.ladder li:nth-child(4) { width: 80%; background: #dd9a5c; }
.ladder li:nth-child(5) { width: 90%; background: #b2552a; color: #ffffff; }
.ladder li:nth-child(6) { width: 100%; background: #2d2961; color: #ffffff; }
@media (min-width: 760px) {
  .ladder { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
  .ladder li { width: auto !important; flex-direction: column; justify-content: flex-end; gap: 2px; border-radius: 16px; padding: 16px 18px; }
  .ladder b { font-size: 1.6rem; }
  .ladder li:nth-child(1) { min-height: 96px; } .ladder li:nth-child(2) { min-height: 124px; }
  .ladder li:nth-child(3) { min-height: 152px; } .ladder li:nth-child(4) { min-height: 180px; }
  .ladder li:nth-child(5) { min-height: 208px; } .ladder li:nth-child(6) { min-height: 236px; }
}
.note { color: var(--ink-2); margin-top: 22px; font-size: 15.5px; display: flex; gap: 12px; align-items: baseline; }
.note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-.15em); }

/* Conversations: an index of six, ruled, no boxes. */
.features { display: grid; gap: 0 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px 18px 24px; margin-inline: -18px; border-radius: 16px; transition: background-color .2s ease; }
.feature:hover { background: var(--card); box-shadow: var(--shadow-sm); }
.feature .ic { width: 44px; height: 44px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
html[dir="ltr"] .feature p { line-height: 1.6; }
/* Goals: squared tags in a row. */
.ic { width: 48px; height: 48px; flex: none; }
.goals { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.goals li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; font-weight: 650; font-size: 15px; color: var(--ink); background: var(--card); }
.goals .icon { width: 18px; height: 18px; color: var(--accent); }

/* Your own topic: the words beside one panel of example requests. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.split-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.split-text .owl-art { width: 140px; }
.split-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.checks { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 0; align-self: stretch; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); padding-block: 12px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .ic { width: 32px; height: 32px; margin-top: 2px; }

.request { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); overflow: hidden; padding: 6px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.req-row { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--line); }
.req-row:first-child { border-top: 0; }
.req-row p { color: var(--ink); font-weight: 750; font-size: 16px; line-height: 1.5; min-width: 0; }
.req-row small { display: block; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo); color: #fff; font-family: var(--font-en); font-weight: 900; font-size: 18px; flex: none; }
.avatar.alt { background: var(--accent-fill); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); line-height: 1.4; text-align: center; margin-inline-start: auto; }
.pill .icon { width: 16px; height: 16px; }
.pill.navy { background: var(--indigo-tint); color: var(--ink); }
.pill.ok { background: var(--success-tint); color: var(--success-text); }

/* Listening practice: the player picture on the start side, the words beside it. */
@media (min-width: 900px) { .listen { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .listen .split-text { order: 2; } }
.split-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 38em; }
.modes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-self: stretch; }
@media (min-width: 560px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.mode h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mode p { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
html[dir="ltr"] .mode p { line-height: 1.55; }
.listen .split-text .owl-art { width: 130px; }

.player { display: grid; gap: 18px; width: 100%; max-width: 460px; justify-self: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-md); }
.player-head { display: flex; align-items: center; gap: 14px; }
.player-play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #ffffff; box-shadow: var(--shadow-accent); flex: none; }
.player-play .icon { width: 22px; height: 22px; fill: currentColor; }
.player-head p { font-weight: 800; font-size: 1.1rem; line-height: 1.4; }
.player-head small { display: block; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.wave { display: flex; align-items: center; gap: 3px; height: 52px; direction: ltr; }
.wave i { flex: 1; border-radius: 99px; background: var(--indigo-tint); }
.wave i:nth-child(-n+11) { background: var(--accent); }
.wave .w1 { height: 18%; } .wave .w2 { height: 36%; } .wave .w3 { height: 56%; } .wave .w4 { height: 76%; } .wave .w5 { height: 96%; }
.speed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.speed span { color: var(--ink-2); font-size: 14px; font-weight: 650; margin-inline-end: 4px; }
.speed b { font-family: var(--font-en); font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); direction: ltr; unicode-bidi: isolate; }
.speed b.on { background: var(--indigo); color: #ffffff; }
.player-q { font-family: var(--font-en); font-weight: 800; font-size: 17px; line-height: 1.4; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.player-options { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; }
.player-options li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-en); font-weight: 700; font-size: 15px; line-height: 1.4; }
.player-options li.right { border-color: var(--success); background: var(--success-tint); color: var(--success-text); }
.player-options .icon { width: 18px; height: 18px; stroke-width: 2.6; }

/* People: the one deep indigo band, full width. */
.people { background: linear-gradient(160deg, var(--indigo-2), var(--indigo) 55%); color: var(--on-indigo); }
.people-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .people-band { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } }
.people-band .owl-art { width: 100%; max-width: 300px; margin-inline: auto; }
.people-band .owl-art::before { --blob: var(--saffron); --blob-amount: 100%; top: 4%; inset-inline: -2%; border-radius: 999px 999px 32px 32px; }
.people-text { min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.people-text h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); color: #ffffff; }
.people-text > p { font-size: 18px; line-height: 1.95; color: var(--on-indigo-2); max-width: 38em; }
html[dir="ltr"] .people-text > p { line-height: 1.6; }
.people-text .checks { margin-block: 8px 12px; }
@media (min-width: 700px) { .people-text .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } .people-text .checks li:nth-last-child(2) { border-bottom: 0; } }
.people-text .checks li { color: var(--on-indigo-2); border-color: rgba(255, 255, 255, .12); }
/* Bold phrases on indigo stay light (the page-wide rule makes them ink). */
.people b { color: #ffffff; }
.people :focus-visible { outline-color: var(--saffron); }

/* Trainers: three steps joined by a dashed line, then the ways to take the income out. */
.earn-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.earn-steps li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; }
.earn-ic { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--card); color: var(--accent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; z-index: 1; }
.earn-ic .icon { width: 26px; height: 26px; }
.earn-steps li:last-child .earn-ic { background: var(--accent-fill); color: #ffffff; border-color: transparent; box-shadow: var(--shadow-accent); }
.earn-steps h3 { font-size: 1.15rem; }
.earn-steps p { color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
html[dir="ltr"] .earn-steps p { line-height: 1.6; }
.earn-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 27px; top: 60px; bottom: -18px; border-inline-start: 2px dashed var(--line-strong); }
@media (min-width: 860px) {
  .earn-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .earn-steps li { display: flex; flex-direction: column; gap: 6px; }
  .earn-ic { margin-bottom: 12px; }
  .earn-steps li:not(:last-child)::after { top: 28px; bottom: auto; inset-inline-start: 72px; inset-inline-end: -20px; border-inline-start: 0; border-top: 2px dashed var(--line-strong); }
}
.earn-foot { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.earn-label { font-weight: 750; }
.payouts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.payouts li { display: inline-flex; align-items: center; gap: 8px; background: var(--sand); border-radius: 12px; padding: 7px 14px; font-weight: 650; font-size: 15px; line-height: 1.4; }
.payouts .icon { width: 18px; height: 18px; color: var(--accent); }
.earn-foot .btn { margin-inline-start: auto; }
@media (max-width: 640px) { .earn-foot .btn { margin-inline-start: 0; width: 100%; } }

/* Download: one panel per phone, its buttons, and the install steps folded under them */
/* The download section's head: the app icon with the line beside it (its title is for screen readers only), no
   accent dash. */
.dl .section-head { display: flex; flex-direction: row; align-items: center; gap: 20px; padding-top: 0; }
.dl .section-head::before { content: none; }
.dl .section-head p { margin: 0; font-size: 1.15rem; font-weight: 650; color: var(--ink); max-width: 36em; }
.dl .section-head .app-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: var(--shadow-md); flex: none; }
@media (max-width: 600px) { .dl .section-head { gap: 14px; } .dl .section-head .app-icon { width: 56px; height: 56px; border-radius: 16px; } .dl .section-head p { font-size: 1.02rem; } }
.platforms { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.platform-head { display: flex; gap: 16px; align-items: flex-start; }
.tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); flex: none; }
.tile .icon { width: 26px; height: 26px; }
.tile.android { background: #e2f4e9; color: #24a05c; }
.tile.apple { background: #ebe9ef; color: #1d1d1f; }
.platform-head .tile.android .icon { width: 32px; height: 32px; }
.platform-head h3 { font-size: 1.35rem; }
.platform-head p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
html[dir="ltr"] .platform-head p { line-height: 1.6; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.stores .btn { min-height: 50px; font-size: 15px; padding: 0 18px; border-radius: 12px; }
.btn.store { background: var(--ink); color: var(--paper); font-weight: 800; }
.btn.store:hover { color: var(--paper); filter: brightness(1.1); }
.btn.store.web { background: var(--indigo); color: #ffffff; }
.btn.store.web:hover { color: #ffffff; }
/* The stores' own colours, with their logos in white. */
.btn.store.bazaar { background: linear-gradient(135deg, #79cb20, #00a762); color: #ffffff; }
.btn.store.myket { background: #0091ea; color: #ffffff; }
.btn.store.sibapp { background: #0044ff; color: #ffffff; }
.btn.store.googleplay { background: #01875f; color: #ffffff; }
.btn.store.appstore { background: #111111; color: #ffffff; }
.btn.store.apk { background: var(--accent-fill); color: var(--on-accent); }
.btn.store.bazaar:hover, .btn.store.myket:hover, .btn.store.sibapp:hover, .btn.store.googleplay:hover, .btn.store.appstore:hover { color: #ffffff; }
.btn.store.apk:hover { color: var(--on-accent); background: var(--accent-hover); filter: none; }
.btn.store.bazaar .icon, .btn.store.myket .icon, .btn.store.sibapp .icon { width: 26px; height: 26px; }
/* A store that isn't there yet (admin: "Soon"): shown, faded, with a badge, and it opens nothing. */
.btn.store.is-soon, .btn.store.is-soon:hover { cursor: default; opacity: .72; filter: saturate(.55); transform: none; }
.btn.store.is-soon.apk:hover { background: var(--accent-fill); }
.soon-badge { display: inline-block; margin-inline-start: 2px; padding: 2px 9px; border-radius: 999px; background: #ffffff; color: #1d1d1f; font-size: 12px; font-weight: 850; line-height: 1.5; white-space: nowrap; }
.soon-badge[hidden] { display: none; }
.campaign-note { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 0 auto 22px; padding: 12px 16px; border-radius: 14px; background: var(--saffron-tint); color: var(--ink); font-size: 15px; font-weight: 650; }
.campaign-note[hidden] { display: none; }
.campaign-note .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent-text); }
.campaign-note b { font-weight: 850; letter-spacing: .04em; color: var(--accent-text); white-space: nowrap; }
.platform-soon { align-self: flex-start; font-size: 14px; font-weight: 750; color: var(--ink-2); border: 1px dashed var(--line-strong); padding: 6px 14px; border-radius: 10px; }
.install { border-top: 1px solid var(--line); margin-top: auto; }
.install summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding-top: 16px; font-weight: 750; font-size: 15px; }
.install summary::-webkit-details-marker { display: none; }
.install summary .icon { width: 20px; height: 20px; margin-inline-start: auto; color: var(--accent-text); transition: transform .2s ease; }
.install[open] summary .icon { transform: rotate(45deg); }
.install-steps { margin: 10px 0 0; padding-inline-start: 22px; color: var(--ink-2); font-size: 15px; }
.install-steps .share-glyph { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.2em; color: #007aff; stroke-width: 2.2; }
.install-steps li + li { margin-top: 4px; }
[lang="fa"] .install-steps { list-style-type: persian; }
.install-steps b { color: var(--ink); font-weight: 800; }


/* A centred panel (the 404 page) */
.final { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 44px 28px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; }
.final .owl-art { width: 170px; margin-bottom: 8px; }
.final p { color: var(--ink-2); max-width: 34em; }
.final .cta { justify-content: center; margin-top: 8px; }

/* ── Footer: deep ink ───────────────────────────────────────────────── */
.foot { background: var(--foot); color: #f5efe4; margin-top: 0; }
.foot-row { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding-block: 40px; }
.foot-row .mark { width: 44px; height: 44px; border-radius: 12px; }
.foot-line { font-size: 17px; font-weight: 750; color: #f5efe4; flex-grow: 1; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; font-weight: 650; }
.foot a { color: #cbc5d8; text-decoration: none; }
.foot a:hover { color: var(--saffron); text-decoration: underline; }
.foot a[aria-current="page"] { color: var(--saffron); }
.foot :focus-visible { outline-color: var(--saffron); }
.foot .foot-social { gap: 10px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(245, 239, 228, .08); color: #cbc5d8; transition: background .15s, color .15s; }
.foot-social a:hover { background: rgba(245, 239, 228, .14); color: var(--saffron); text-decoration: none; }
.foot-social .icon { width: 20px; height: 20px; }
/* Footer: brand (line, eNamad seal), links, and "Get in touch" (the contact form, js/footer.js's details, the social
   icons), side by side on a wide screen and stacked on a phone. */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 40px; padding-block: 44px 40px; align-items: start; }
/* The logo and the line side by side, the eNamad seal on its own row under them. */
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foot-brand .pic { flex: none; line-height: 0; }
.foot-brand .foot-line { margin: 0; flex: 1 1 12em; }
.foot-brand .foot-seal { flex-basis: 100%; }
.foot-brand .foot-seal a { display: inline-block; }
.foot-brand .mark { width: 44px; height: 44px; border-radius: 12px; }
.foot .foot-links ul { flex-direction: column; gap: 12px; }
.foot-title { font-size: 15px; font-weight: 800; color: #f5efe4; margin: 0 0 14px; }
.foot-reach { display: flex; flex-direction: column; gap: 16px; }
.foot .foot-contact { flex-direction: column; gap: 12px; color: #cbc5d8; }
.foot-contact li { display: inline-flex; align-items: center; gap: 10px; }
.foot-contact .icon { width: 18px; height: 18px; color: var(--saffron); flex: none; }
.foot-seal a { display: block; background: #fff; border-radius: 12px; padding: 6px; line-height: 0; }
.foot-seal img { display: block; width: 84px; height: auto; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 32px; }
}

/* ── 404 ─────────────────────────────────────────────────────────────── */
.lost { min-height: 70vh; display: grid; place-items: center; padding-block: 32px 72px; }
.lost h1 { font-size: clamp(1.6rem, 4.2vw, 2.1rem); }
body > header.top { border-bottom: 1px solid var(--line); }

/* ── Narrow phones ──────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .top { gap: 10px; }
  .brand img { height: 30px; }
  .brand .talk { font-size: 16px; padding-bottom: 4px; }
  .top-actions { gap: 10px; }
  .btn.small { padding: 0 12px; }
  .btn.lg { padding: 0 22px; font-size: 17px; }
  .say { font-size: 13px; padding: 8px 11px; }
  .req-row { flex-wrap: wrap; row-gap: 8px; padding: 16px; }
  .req-row p { flex: 1 1 170px; }
  .req-row .pill { margin-inline-start: 56px; }
  .steps .card { grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; }
  .steps .owl-art { width: 84px; height: 92px; }
}

/* Privacy policy page (privacy.html.tmpl): the admin's text, filled in by js/privacy.js. */
.legal { max-width: 800px; padding-block: 56px 48px; }
.legal h1 { position: relative; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; margin-block-end: 10px; padding-top: 24px; }
.legal h1::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 5px; border-radius: 99px; background: var(--accent); }
.legal-updated, .legal-note { color: var(--ink-2); font-size: 14px; font-weight: 650; margin: 0 0 4px; }
.legal-note { color: var(--accent-text); }
.legal-body { margin-block-start: 28px; overflow-wrap: anywhere; }
.legal-body h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal-body p { line-height: 1.95; margin: 0 0 14px; color: var(--ink-2); }
html[dir="ltr"] .legal-body p { line-height: 1.7; }
.legal-status { color: var(--ink-2); }
.legal-back { margin-block-start: 36px; font-weight: 750; }
.legal-back a { color: var(--accent-text); }

/* Contact page (contact.html.tmpl): the form sent by js/contact.js. */
.contact-intro { color: var(--ink-2); font-size: 1.08rem; margin-block: 8px 32px; max-width: 40em; }
.contact-form { display: grid; gap: 22px; max-width: 580px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 750; }
.field .opt { color: var(--faint); font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 16px; min-height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover, .field textarea:hover { border-color: var(--faint); }
.field textarea { resize: vertical; min-height: 168px; line-height: 1.7; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field [aria-invalid="true"] { border-color: #c2412d; }
.field .hint { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.field-error, .form-status { color: #b3361f; font-size: 14px; font-weight: 750; }
@media (prefers-color-scheme: dark) {
  .field [aria-invalid="true"] { border-color: #f08a70; }
  .field-error, .form-status { color: #f6a08a; }
}
.contact-form .btn { justify-self: start; min-width: 180px; }
.contact-form .btn:disabled { opacity: .7; cursor: progress; transform: none; }
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { max-width: 580px; background: var(--success-tint); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; justify-items: start; }
.contact-sent h2 { font-size: 1.35rem; color: var(--success-text); }
.contact-sent:focus { outline: none; }

/* boofly.online only (js/global.js): a visitor who looks Iranian (an Iranian address, a Persian browser or an Iranian
   clock) is pointed to boofly.ir, never sent there without asking. Persian text, so it sets its own direction. */
.iran-banner { background: var(--accent-tint); color: var(--ink); border-bottom: 1px solid var(--line); font-family: Vazirmatn, Nunito, system-ui, sans-serif; }
.iran-banner[hidden] { display: none; }
.iran-banner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 10px; }
.iran-banner-row p { flex: 1 1 280px; margin: 0; font-size: 15px; font-weight: 650; line-height: 1.7; }
.iran-banner-stay { background: none; border: 0; padding: 6px 4px; color: var(--ink-2); font: inherit; font-family: Nunito, system-ui, sans-serif; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
