/*
Theme Name: Soodamoz
Theme URI: https://soodamoz.ir
Description: سودآموز landing page as the front page. Built from the soodamoz-landing repository by build-wp-theme.py; edit the repository, not this file.
Version: 1.1.1
GitHub Theme URI: https://github.com/RezaLava/soodamoz-landing
Primary Branch: wp-theme
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: soodamoz
*/

/* Soodamoz landing page, rebuilt from the vibefarsi.ir blocks (navbar, hero, stats, steps, feature-split,
   features, bento, logo-cloud, pricing, faq, cta, footer). The blocks are React + Tailwind; their markup and
   classes are ported here to plain CSS so the page stays a single static file for the WordPress theme.
   Tokens mirror the app's globals.css (graphite + one teal accent) under the blocks' token names. */

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-wght.woff2") format("woff2-variations"), url("assets/fonts/vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #23232c;
  --foreground: #f6f6f7;
  --card: #2a2b34;
  --secondary: #32333c;
  --accent: #383a43;
  --muted-foreground: #b3b4bc;
  --border: #45464e;
  --input: #55565e;
  --brand: #11a699;
  --brand-text: #3cc4b6;
  --brand-hover: #0f9488; /* darker, not lighter: primary labels are white */
  --brand-foreground: #04201e;
  --brand-soft: rgb(17 166 153 / 0.14);
  --cover-stage: #3a3b46;
  --danger: #f07b6b;
  --shadow: 0 30px 60px -30px rgb(8 10 16 / 0.7);
  --shape-control: 0.75rem;
  --shape-surface: 1rem;
  --motion: 240ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f8fbfb;
  --foreground: #1f2027;
  --card: #ffffff;
  --secondary: #eef3f3;
  --accent: #e6eded;
  --muted-foreground: #565863;
  --border: rgb(31 32 39 / 0.12);
  --input: rgb(31 32 39 / 0.2);
  --brand: #0a7c72;
  --brand-text: #0a7c72;
  --brand-hover: #086a61;
  --brand-foreground: #f8fbfb;
  --brand-soft: rgb(10 124 114 / 0.09);
  --cover-stage: #f7f8fa;
  --danger: #b4392b;
  --shadow: 0 30px 60px -36px rgb(10 60 56 / 0.35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --background: #f8fbfb;
    --foreground: #1f2027;
    --card: #ffffff;
    --secondary: #eef3f3;
    --accent: #e6eded;
    --muted-foreground: #565863;
    --border: rgb(31 32 39 / 0.12);
    --input: rgb(31 32 39 / 0.2);
    --brand: #0a7c72;
    --brand-text: #0a7c72;
    --brand-hover: #086a61;
    --brand-foreground: #f8fbfb;
    --brand-soft: rgb(10 124 114 / 0.09);
  --cover-stage: #f7f8fa;
    --danger: #b4392b;
    --shadow: 0 30px 60px -36px rgb(10 60 56 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: currentColor; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 60; padding: 8px 14px; border-radius: var(--shape-control); background: var(--brand); color: var(--brand-foreground); }
.skip:focus { top: 12px; }

/* Shared block frame: px-6 py-16, content max-w-5xl, centered head with eyebrow + text-3xl title. */
section { scroll-margin-top: 72px; }
.block { padding: 64px 24px; }
.block-tight { padding-block: 48px; }
@media (min-width: 1024px) { .block { padding-block: 80px; } .block-tight { padding-block: 48px; } }
.block-head { max-width: 42rem; margin: 0 auto 40px; text-align: center; }
.block-head h2 { margin-top: 8px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 1.95rem); font-weight: 800; line-height: 1.5; text-wrap: balance; }
.block-head > p:last-child:not(.eyebrow) { margin-top: 12px; color: var(--muted-foreground); text-wrap: pretty; }
.block-head a { color: var(--brand-text); text-underline-offset: 4px; }
.eyebrow { color: var(--brand-text); font-size: 0.875rem; font-weight: 700; }
.badge { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 600; line-height: 1.8; white-space: nowrap; color: var(--brand-text); }
.badge-muted { color: var(--muted-foreground); }
.block-note { display: flex; gap: 10px; max-width: 64rem; margin: 20px auto 0; font-size: 0.9rem; color: var(--muted-foreground); }
.block-note .icon { margin-top: 5px; color: var(--brand-text); width: 1em; height: 1em; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.9rem; font-weight: 700; color: var(--brand-text); text-decoration: none; }
.arrow-link .icon { width: 1em; height: 1em; transition: transform var(--motion) var(--ease); }
.arrow-link:hover .icon { transform: translateX(-3px); }

/* Button (ui/button): rounded-control, semibold, press scale. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding-inline: 16px; border-radius: var(--shape-control);
  border: 1px solid transparent; font-size: 0.9rem; font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--motion) var(--ease), border-color var(--motion) var(--ease), transform var(--motion) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1rem; height: 1rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 0 rgb(255 255 255 / 0.18) inset, 0 10px 24px -14px var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { border-color: var(--input); background: transparent; }
.btn-outline:hover, .btn-ghost:hover { background: var(--accent); }
.btn-ghost { background: transparent; }
.btn-sm { height: 34px; padding-inline: 12px; font-size: 0.82rem; }
.btn-lg { height: 48px; padding-inline: 24px; font-size: 1rem; }
.btn-pill { border-radius: 999px; padding-inline: 28px; }
.btn-icon { width: 40px; padding: 0; }

/* Block: navbar */
.navbar {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@media (prefers-reduced-transparency: reduce) { .navbar { background: var(--background); backdrop-filter: none; } }
.navbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 72rem; height: 64px; margin-inline: auto; padding-inline: 24px; }
.logo { display: flex; align-items: center; }
.logo svg { height: 30px; width: auto; }
.navbar-links { display: none; align-items: center; gap: 4px; }
.navbar-links a { display: block; padding: 6px 12px; border-radius: 8px; font-size: 0.875rem; color: var(--muted-foreground); text-decoration: none; transition: background-color var(--motion), color var(--motion); }
.navbar-links a:hover { background: var(--accent); color: var(--foreground); }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.desktop-only { display: none; }
@media (min-width: 960px) {
  .navbar-links { display: flex; }
  .desktop-only { display: inline-flex; }
  .mobile-only { display: none; }
}

/* Theme switch: one icon for the theme it switches to. Dark is the default, so the sun shows unless the page is light. */
.theme-switch { color: var(--muted-foreground); }
.theme-switch:hover { color: var(--foreground); }
.theme-switch .icon { width: 18px; height: 18px; }
/* The switch cross-fades the page through a view transition (main.js); this sets its pace. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 400ms; animation-timing-function: ease-in-out; }
.theme-switch .theme-moon { display: none; }
:root[data-theme="light"] .theme-switch .theme-moon { display: block; }
:root[data-theme="light"] .theme-switch .theme-sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-switch .theme-moon { display: block; }
  :root:not([data-theme="dark"]) .theme-switch .theme-sun { display: none; }
}

/* Sheet (ui/sheet): slides in from the inline-start edge, which is the right in RTL. */
.sheet {
  position: fixed; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto;
  width: min(85vw, 320px); height: auto; max-height: none; overflow-y: auto; overscroll-behavior: contain; max-width: none; margin: 0; padding: 0;
  border: 0; border-inline-end: 1px solid var(--border); background: var(--background); color: var(--foreground);
  box-shadow: var(--shadow);
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgb(0 0 0 / 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in 260ms var(--ease); }
  .sheet[open]::backdrop { animation: fade-in 260ms var(--ease); }
}
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: 16px; border-bottom: 1px solid var(--border); }
.sheet-links { display: flex; flex-direction: column; padding: 8px; }
.sheet-links a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; text-decoration: none; }
.sheet-links a:hover { background: var(--accent); }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }

/* Block: hero. Centered headline on a grid that fades out from the top. */
.hero { position: relative; overflow: hidden; padding: 72px 24px 56px; text-align: center; }
@media (min-width: 640px) { .hero { padding-top: 104px; } }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--foreground) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
}
.hero-inner { position: relative; max-width: 48rem; margin-inline: auto; }
.hero h1 { margin-top: 16px; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); font-weight: 900; line-height: 1.35; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero-inner > p:not(.hero-proof) { max-width: 36rem; margin: 20px auto 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); color: var(--muted-foreground); }
.hero-actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; margin-top: 32px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-proof { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; font-size: 0.875rem; color: var(--muted-foreground); }
.hero-proof .icon { color: var(--brand-text); width: 1.1em; height: 1.1em; }
/* Hero video: a wide frame under the headline. Its cover is a button over the video (16:9, or 4:5 on phones,
   where a wide cover's text would be too small); once played the frame is 16:9 everywhere. */
.hero-video {
  position: relative; max-width: 80rem; margin: 48px auto 0; scroll-margin-top: 72px;
  overflow: hidden; border-radius: 1.5rem; background: #04201e; box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
@media (min-width: 640px) { .hero-video { margin-top: 56px; } }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-cover { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-cover[hidden] { display: none; }
.video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) {
  .hero-video.has-cover:not(.is-playing) video { aspect-ratio: 4 / 5; }
}
.video-play {
  position: absolute; top: 50%; left: 29%; display: flex; width: clamp(64px, 9vw, 112px); aspect-ratio: 1;
  align-items: center; justify-content: center; border-radius: 50%; translate: -50% -50%;
  background: #fff; color: #0a7c72; box-shadow: 0 0 0 10px rgb(255 255 255 / 0.18), 0 20px 40px -10px rgb(0 0 0 / 0.6);
  transition: scale 0.25s var(--ease), background-color 0.25s var(--ease);
}
/* No nudge: the Phosphor play glyph is already drawn right of its viewBox centre to look centred. */
.video-play .icon { width: 40%; height: 40%; }
@media (max-width: 639px) { .video-play { top: 74%; left: 50%; } }
.video-cover:hover .video-play, .video-cover:focus-visible .video-play { scale: 1.08; background: #e9fbf8; }
.video-cover:focus-visible { outline: 3px solid var(--brand-text); outline-offset: -3px; border-radius: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .video-play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: play-pulse 2.2s var(--ease) infinite; }
}
@keyframes play-pulse { from { opacity: 0.8; scale: 1; } to { opacity: 0; scale: 1.7; } }

/* Block: stats. Four numbers on hairline dividers (gap-px over a border-coloured grid). */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 64rem; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--shape-surface); background: var(--border); }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { display: flex; flex-direction: column-reverse; padding: 24px; background: var(--card); text-align: center; }
.stats dd { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 4px; font-size: 0.875rem; color: var(--muted-foreground); }

/* Block: steps. Numbered or iconed circles joined by a dashed line on desktop. */
.steps { position: relative; display: grid; gap: 40px; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before { content: ""; position: absolute; inset-inline: 16%; top: 24px; border-top: 1px dashed var(--border); }
  .steps-4::before { inset-inline: 12.5%; }
}
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-dot { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--brand-text); font-size: 1.1rem; font-weight: 800; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.step-dot .icon { width: 20px; height: 20px; }
.steps h3 { margin-top: 16px; font-size: 1.05rem; font-weight: 700; }
.steps p { max-width: 20rem; margin-top: 6px; font-size: 0.9rem; line-height: 1.95; color: var(--muted-foreground); }

/* Block: feature-split. Text beside media, sides alternating row by row; stacks on mobile. */
.split { display: flex; flex-direction: column; gap: 80px; max-width: 64rem; margin: 0 auto; }
.split-row { display: grid; align-items: center; gap: 40px; }
@media (min-width: 768px) {
  .split-row { grid-template-columns: 1fr 1fr; }
  .split-row.is-flipped > :first-child { order: 2; }
}
.split-copy h3 { margin-top: 8px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 800; line-height: 1.55; text-wrap: balance; }
.split-copy > p:not(.eyebrow) { margin-top: 12px; line-height: 2; color: var(--muted-foreground); }
.split-media { border: 1px solid var(--border); border-radius: var(--shape-surface); background: var(--card); box-shadow: var(--shadow); }
.checks { display: grid; gap: 10px; margin-top: 20px; font-size: 0.9rem; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .icon { width: 1rem; height: 1rem; margin-top: 6px; color: var(--brand-text); }
.checks b { font-weight: 700; }
.checks span { color: var(--muted-foreground); }
.checks span b { color: var(--foreground); }

/* Sample quiz */
.quiz { padding: 24px; }
@media (min-width: 640px) { .quiz { padding: 28px; } }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted-foreground); }
.quiz-course { display: flex; align-items: center; gap: 8px; }
.quiz-course .icon { color: var(--brand-text); }
.quiz-progress { display: flex; gap: 6px; }
.quiz-progress i { width: 24px; height: 6px; border-radius: 3px; background: var(--secondary); transition: background-color 0.3s; }
.quiz-progress i.done { background: var(--brand); }
.quiz-q { margin-top: 20px; font-size: 1.06rem; font-weight: 800; line-height: 1.9; min-height: 3.8em; }
.quiz-options { margin-top: 16px; display: grid; gap: 8px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: start;
  border: 1px solid var(--input); border-radius: var(--shape-control); background: transparent; cursor: pointer;
  font-size: 0.95rem; line-height: 1.7; transition: border-color var(--motion), background-color var(--motion), transform var(--motion) var(--ease);
}
.quiz-option:hover:not(:disabled) { background: var(--accent); }
.quiz-option:active:not(:disabled) { transform: scale(0.99); }
.quiz-option:disabled { cursor: default; }
.quiz-option .key { display: flex; width: 26px; height: 26px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 8px; background: var(--secondary); font-size: 0.8rem; font-weight: 700; }
.quiz-option.correct { border-color: var(--brand); background: var(--brand-soft); }
.quiz-option.correct .key { background: var(--brand); color: var(--brand-foreground); }
.quiz-option.wrong { border-color: var(--danger); }
.quiz-option.wrong .key { background: var(--danger); color: var(--background); }
.quiz-feedback { margin-top: 16px; padding: 12px 14px; border-radius: var(--shape-control); background: var(--secondary); font-size: 0.92rem; }
.quiz-feedback[hidden] { display: none; }
.quiz-feedback strong { display: flex; align-items: center; gap: 6px; }
.quiz-feedback.is-correct strong { color: var(--brand-text); }
.quiz-feedback.is-wrong strong { color: var(--danger); }
.quiz-feedback p { margin-top: 4px; color: var(--muted-foreground); }
.quiz-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.quiz-done { text-align: center; padding-block: 24px; }
.quiz-done .icon { width: 44px; height: 44px; color: var(--brand-text); margin-inline: auto; }
.quiz-done h3 { margin-top: 12px; font-size: 1.2rem; font-weight: 800; }
.quiz-done p { margin-top: 6px; color: var(--muted-foreground); }

/* Block: features. Icon tiles on a hairline-divided grid. */
.features { display: grid; grid-template-columns: 1fr; gap: 1px; max-width: 64rem; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--shape-surface); background: var(--border); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } .features-4 { grid-template-columns: repeat(4, 1fr); } }
.features > li { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--card); }
.feature-tile { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 10px; background: var(--secondary); }
.feature-tile .icon { width: 20px; height: 20px; }
.features h3 { font-size: 1rem; font-weight: 700; line-height: 1.75; }
.features .badge + h3 { margin-top: 2px; }
.features p { margin-top: 6px; font-size: 0.875rem; line-height: 1.95; color: var(--muted-foreground); }
.features p b { color: var(--foreground); font-weight: 700; }
.feature-meta { margin-top: auto !important; padding-top: 12px; font-size: 0.8rem !important; }
.features .is-entry { background: linear-gradient(180deg, var(--brand-soft), transparent 70%), var(--card); }
.features .is-entry .feature-tile, .features .is-note .feature-tile { background: var(--brand); color: var(--brand-foreground); }
.features .is-note { background: var(--secondary); }

/* Block: bento. Six-column grid of unequal cards, each a visual on top plus a title and a line. */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 64rem; margin: 0 auto; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .span-4 { grid-column: span 2; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > li { grid-column: span 2; }
  .bento > .span-3 { grid-column: span 3; }
  .bento > .span-4 { grid-column: span 4; }
}
.bento > li { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--shape-surface); background: var(--card); transition: border-color var(--motion), transform 0.35s var(--ease); }
.bento > li:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.bento-visual { display: flex; align-items: flex-end; justify-content: center; height: 176px; overflow: hidden; padding: 20px 20px 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--secondary) 55%, transparent); }
.bento-cover { align-items: stretch; padding: 0; background: var(--cover-stage); }
.bento-cover img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.3s var(--ease); }
.bento > li:hover .bento-cover img { transform: scale(1.03); }
.bento-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px; }
.bento-body h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; line-height: 1.75; }
.bento-body h3 .icon { width: 1rem; height: 1rem; color: var(--brand-text); }
.bento-body > p:not(.course-meta) { margin-top: 6px; font-size: 0.875rem; line-height: 1.95; color: var(--muted-foreground); }
.course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 12px; font-size: 0.8rem; color: var(--muted-foreground); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .icon { width: 1.05em; height: 1.05em; }
.course-meta .cert { color: var(--brand-text); }

.bento-pills { height: auto; min-height: 176px; align-items: flex-start; padding-bottom: 20px; background: linear-gradient(200deg, var(--brand-soft), transparent 80%); }
.lesson-pills { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.lesson-pills li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 0.82rem; }
.lesson-pills li:first-child { border-color: var(--brand); }
.lesson-pills b { color: var(--brand-text); font-size: 0.75rem; }

.bento-chart { align-items: center; padding: 16px 20px 8px; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.candle-cell svg { width: 100%; max-width: 440px; height: 100%; }
.candle-cell .up { fill: var(--brand); stroke: var(--brand); }
.candle-cell .down { fill: var(--muted-foreground); stroke: var(--muted-foreground); }
.candle-cell .hl { stroke-width: 0; }
.candle-cell .lvl { stroke: var(--foreground); stroke-opacity: 0.35; stroke-dasharray: 3 4; }
.candle-cell text { fill: var(--muted-foreground); font-size: 11px; font-family: inherit; }
.candle-cell .fade { opacity: 0.45; }


/* Block: logo-cloud. A quiet row of marks that colour up on hover; badges stand in for logos. */
.logo-cloud { max-width: 64rem; margin: 48px auto 0; text-align: center; }
.logo-cloud > p { font-size: 0.875rem; color: var(--muted-foreground); }
.logo-cloud ul { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 20px 32px; margin-top: 24px; }
.logo-cloud figure { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; }
.logo-cloud img { width: 64px; height: 64px; border-radius: 14px; filter: grayscale(1); opacity: 0.6; transition: filter var(--motion), opacity var(--motion), transform var(--motion) var(--ease); }
.logo-cloud figcaption { font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground); }
.logo-cloud li:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
@media (hover: none) { .logo-cloud img { filter: none; opacity: 1; } }

/* Block: pricing. Three cards, one highlighted with an inset ring. */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--shape-surface); background: var(--card); }
.plan.is-highlighted { border-color: color-mix(in srgb, var(--foreground) 40%, transparent); box-shadow: 0 0 0 1px var(--foreground) inset; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { font-size: 1rem; font-weight: 700; }
.plan > p:not(.plan-price) { margin-top: 4px; font-size: 0.875rem; color: var(--muted-foreground); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.plan-price strong { font-size: 2.25rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 0.875rem; color: var(--muted-foreground); }
.plan ul { display: grid; gap: 8px; margin-top: 20px; font-size: 0.875rem; }
.plan li { display: flex; align-items: center; gap: 8px; }
.plan li .icon { width: 1rem; height: 1rem; color: var(--brand-text); }

/* Skill graph */
.skill-list { display: grid; gap: 12px 24px; margin-top: 24px; }
@media (min-width: 560px) { .skill-list { grid-template-columns: 1fr 1fr; } }
.skill-list li { display: grid; gap: 2px; padding-inline-start: 12px; border-inline-start: 2px solid var(--brand); }
.skill-list b { font-size: 0.92rem; }
.skill-list span { font-size: 0.8rem; line-height: 1.75; color: var(--muted-foreground); }
.skill-card { padding: 24px; }
.skill-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.skill-card-head b { font-size: 1rem; }
.skill-card-head span { font-size: 0.78rem; color: var(--muted-foreground); }
#skill-radar { display: block; width: 100%; max-width: 420px; margin: 12px auto 0; overflow: visible; }
#skill-radar .ring { fill: none; stroke: var(--border); stroke-width: 1; }
#skill-radar .ring.outer { stroke: color-mix(in srgb, var(--muted-foreground) 45%, transparent); }
#skill-radar .avg { fill: color-mix(in srgb, var(--muted-foreground) 18%, transparent); stroke: var(--muted-foreground); stroke-width: 1; stroke-dasharray: 3 3; stroke-linejoin: round; }
#skill-radar .me { fill: color-mix(in srgb, var(--brand) 22%, transparent); stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
#skill-radar .dot { fill: var(--brand); stroke: var(--card); stroke-width: 2; }
#skill-radar text { fill: var(--muted-foreground); font-size: 13px; font-family: inherit; }
.skill-stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.skill-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 12px; font-size: 0.78rem; color: var(--muted-foreground); }
.skill-legend li { display: flex; align-items: center; gap: 6px; }
.skill-legend i { display: inline-block; width: 16px; }
.skill-legend .me { height: 2px; border-radius: 2px; background: var(--brand); }
.skill-legend .avg { border-top: 1.5px dashed var(--muted-foreground); }

.chip { padding: 4px 12px; border: 1px solid var(--input); border-radius: 999px; background: transparent; font-size: 0.82rem; cursor: pointer; transition: background-color var(--motion), border-color var(--motion), color var(--motion); }
.chip:hover { background: var(--accent); }
.chip[aria-pressed="true"] { background: var(--foreground); border-color: var(--foreground); color: var(--background); }

/* Glossary preview */
.glossary { padding: 24px; }
.glossary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.glossary-head span { font-size: 0.78rem; color: var(--muted-foreground); }
.term { margin-top: 16px; padding: 18px; border-radius: var(--shape-control); background: var(--secondary); }
.term-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.term-head b { font-size: 1.08rem; }
.term-head span { direction: ltr; font-size: 0.82rem; color: var(--muted-foreground); }
.term p { margin-top: 8px; font-size: 0.9rem; color: var(--muted-foreground); }
.term-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Roadmap: a dashboard-stats style card grid with one cell per course. */
.roadmap { display: grid; grid-template-columns: 1fr; gap: 1px; max-width: 64rem; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--shape-surface); background: var(--border); }
@media (min-width: 640px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.roadmap > li { padding: 20px 24px; background: var(--card); }
.road-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.road-head h3 { font-size: 0.95rem; font-weight: 700; }
.road-head span { font-size: 0.78rem; color: var(--muted-foreground); }
.cells { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.cells i, .legend i { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1.5px dashed var(--input); }
.cells i.on, .legend i.on { border: 0; background: var(--brand); }
.cells i.part, .legend i.part { border: 1.5px solid var(--brand); background: var(--brand-soft); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; font-size: 0.82rem; color: var(--muted-foreground); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }

/* Block: faq. Intro on the start side, accordion on the end. */
.faq { display: grid; gap: 32px; max-width: 64rem; margin: 0 auto; }
@media (min-width: 1024px) { .faq { grid-template-columns: 2fr 3fr; } }
.faq-intro h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 1.95rem); font-weight: 800; line-height: 1.5; }
.faq-intro p { margin-top: 12px; font-size: 0.9rem; line-height: 2; color: var(--muted-foreground); }
.accordion { border: 1px solid var(--border); border-radius: var(--shape-control); background: var(--card); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-item h3 { font-size: inherit; }
.acc-item button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px;
  border: 0; background: transparent; text-align: start; font-size: 0.92rem; font-weight: 700; line-height: 1.8; cursor: pointer;
  transition: background-color var(--motion);
}
.acc-item:first-child button { border-start-start-radius: var(--shape-control); border-start-end-radius: var(--shape-control); }
.acc-item button:hover { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.acc-item button .icon { width: 1rem; height: 1rem; color: var(--muted-foreground); transition: transform 200ms var(--ease); }
.acc-item.is-open button .icon { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 200ms ease-out; }
.js .acc-item:not(.is-open) .acc-panel { grid-template-rows: 0fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 16px 16px; font-size: 0.9rem; line-height: 2; color: var(--muted-foreground); }

/* Block: cta. A warm banner with one action; the glow comes from the brand token. */
.cta { position: relative; max-width: 64rem; margin: 0 auto; overflow: hidden; padding: 56px 24px; border: 1px solid var(--border); border-radius: 1.5rem; background: var(--card); text-align: center; }
@media (min-width: 640px) { .cta { padding-inline: 48px; } }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.5; }
.cta p { max-width: 36rem; margin: 16px auto 0; color: var(--muted-foreground); }
.cta .btn { margin-top: 32px; }
.cta small { display: block; margin-top: 16px; font-size: 0.78rem; color: var(--muted-foreground); }

/* Block: footer. Brand column on the start side, link columns beside it, Jalali copyright line. */
.footer { margin-top: 32px; padding: 48px 24px; border-top: 1px solid var(--border); background: var(--card); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 72rem; margin: 0 auto; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(6, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 2; } }
.footer-brand p { max-width: 20rem; margin-top: 12px; font-size: 0.875rem; line-height: 2; color: var(--muted-foreground); }
.footer-seals { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.footer-seals img { display: block; width: auto; height: 80px; }
.footer h3 { font-size: 0.875rem; font-weight: 700; }
.footer nav ul { display: grid; gap: 8px; margin-top: 12px; }
.footer nav a { font-size: 0.875rem; color: var(--muted-foreground); text-decoration: none; transition: color var(--motion); }
.footer nav a:hover { color: var(--foreground); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; max-width: 72rem; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.78rem; line-height: 1.9; color: var(--muted-foreground); }
@media (min-width: 900px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } }
.footer-bottom a { color: inherit; }

/* Motion: enter and reveal. JS adds .js to <html>; without it everything is visible. */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *, .hero-video { animation: rise 0.8s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.06s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.18s; }
  .hero-inner > :nth-child(5) { animation-delay: 0.24s; }
  .hero-video { animation-delay: 0.3s; }
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Pages: about, terms and privacy. One reading column under the navbar, with the landing page's footer. */
.page { max-width: 48rem; margin: 0 auto; padding: 56px 24px 32px; }
@media (min-width: 1024px) { .page { padding-top: 80px; } }
.page-head h1 { margin-top: 8px; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.page-head h1 em { font-style: normal; color: var(--brand-text); }
.page-updated { margin-top: 12px; font-size: 0.85rem; color: var(--muted-foreground); }
.page-lead { margin-top: 20px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); line-height: 2; color: var(--muted-foreground); text-wrap: pretty; }
.page-note { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--shape-surface); background: linear-gradient(180deg, var(--brand-soft), transparent 80%), var(--card); line-height: 2; }
.page-note strong { color: var(--brand-text); }
.page .features { margin-top: 40px; }
.page .features a { color: var(--brand-text); text-underline-offset: 4px; }
.page .cta { margin-top: 56px; }
.prose > section { margin-top: 40px; }
.prose h2 { font-size: 1.2rem; font-weight: 800; line-height: 1.6; }
.prose p, .prose ul { margin-top: 12px; line-height: 2.05; text-wrap: pretty; }
.prose ul { display: grid; gap: 8px; padding-inline-start: 1.25rem; list-style: disc; }
.prose li::marker { color: var(--brand-text); }
.prose a { color: var(--brand-text); text-underline-offset: 4px; }
.prose strong { font-weight: 700; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; unicode-bidi: isolate; }
