/* The public site, the directory and public profiles, and the Discover tab.
 *
 * The site speaks a little louder than the app: a deep ink hero with a volt
 * highlight, large type, real interface previews. Everything below the hero
 * uses the app's own tokens, so dark mode and Persian mirroring come free.
 * Offsets are logical throughout; arrows flip under dir="rtl".
 */

:root {
  --ink: #0a0c14;
  --ink-2: #121629;
  --ink-text: #f3f5fb;
  --ink-dim: #aab2c8;
  --volt: #c8f55a;
  --volt-ink: #10140a;
  --star: #f5a524;
  --sponsor: #b7791f;
  --sponsor-soft: color-mix(in srgb, #f5a524 14%, transparent);
  --site-max: 1160px;
}

/* ─────────────────────────── frames ─────────────────────────── */

body.site #root.app { max-width: none; padding: 0; }
body.site { background: var(--bg); }
.site-page { min-height: 100dvh; display: flex; flex-direction: column; }
.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding: 28px 16px 48px;
}
.site-main.wide { max-width: var(--site-max); }
.site-main.profile { max-width: 820px; }

/* A settings gear in the app's screen headers. */
.top-settings {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border-radius: 14px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
}
.top-settings svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-settings:hover { color: var(--accent); }

/* ─────────────────────────── site header ─────────────────────────── */

.lp-nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100% - var(--site-max)) / 2)) 10px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-block-end: 1px solid rgb(255 255 255 / 0.06);
  color: var(--ink-text);
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.lp-logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.55), transparent 42%),
    linear-gradient(135deg, var(--volt), #5de0c4 55%, #6d6afc);
  box-shadow: 0 6px 18px rgb(200 245 90 / 0.25);
  flex: none;
}
.lp-links { display: flex; gap: 4px; }
.lp-links a, .lp-login {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lp-links a:hover, .lp-login:hover { color: var(--ink-text); background: rgb(255 255 255 / 0.06); }
.lp-nav-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lp-lang {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.86rem;
  box-shadow: none;
}
.lp-lang:hover { color: var(--ink-text); border-color: rgb(255 255 255 / 0.3); }
.lp-lang[lang='fa'] { font-family: 'Vazirmatn', system-ui, sans-serif; }

.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--volt);
  color: var(--volt-ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 28px rgb(200 245 90 / 0.22);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lp-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgb(200 245 90 / 0.3); }
.lp-cta.small { min-height: 40px; padding: 8px 16px; border-radius: 11px; font-size: 0.9rem; }
.lp-cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.lp-cta.ghost:hover { border-color: var(--accent); }

@media (max-width: 760px) {
  .lp-links { display: none; }
  .lp-login { padding-inline: 8px; }
}
@media (max-width: 400px) {
  .lp-brand span:last-child { display: none; }
  .lp-nav { gap: 8px; }
}

/* ─────────────────────────── the landing page ─────────────────────────── */

body.landing #root.app { max-width: none; padding: 0; }
.lp { overflow-x: clip; }
.lp h1, .lp h2 { letter-spacing: -0.025em; }
html[lang='fa'] .lp h1, html[lang='fa'] .lp h2 { letter-spacing: 0; }
.lp-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
html[lang='fa'] .lp-eyebrow { letter-spacing: 0; }
.lp-lead { font-size: 1.08rem; line-height: 1.7; color: var(--text-dim); margin: 0 0 18px; max-width: 60ch; }
.lp-h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 800; margin: 0 0 12px; }
.lp-small { color: var(--ink-dim); font-size: 0.92rem; margin: 16px 0 0; }
.lp-small a { color: var(--volt); font-weight: 650; }
.lp-icon, .lp-feature-icon, .lp-door-icon, .lp-door-arrow, .lp-float-icon, .pv-note-icon { display: inline-grid; place-items: center; flex: none; }
.lp svg, .site-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
  padding: 64px max(16px, calc((100% - var(--site-max)) / 2)) 88px;
  background:
    radial-gradient(60% 70% at 85% 20%, rgb(109 106 252 / 0.35), transparent 70%),
    radial-gradient(45% 55% at 10% 90%, rgb(200 245 90 / 0.12), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--ink-2));
  color: var(--ink-text);
}
html[dir='rtl'] .lp-hero {
  background:
    radial-gradient(60% 70% at 15% 20%, rgb(109 106 252 / 0.35), transparent 70%),
    radial-gradient(45% 55% at 90% 90%, rgb(200 245 90 / 0.12), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--ink-2));
}
.lp-hero .lp-eyebrow { color: var(--volt); }
.lp-hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); line-height: 1.04; font-weight: 850; margin: 0 0 18px; }
html[lang='fa'] .lp-hero h1 { line-height: 1.3; }
.lp-hl {
  background: linear-gradient(92deg, var(--volt), #7ee8c8 60%, #a9a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero .lp-lead { color: var(--ink-dim); font-size: 1.12rem; }

.lp-doors { display: grid; gap: 10px; margin-block-start: 26px; max-width: 560px; }
.lp-door {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 72px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink-text);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lp-door:hover { transform: translateY(-2px); background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.2); }
.lp-door.primary { background: var(--volt); color: var(--volt-ink); border-color: transparent; box-shadow: 0 14px 40px rgb(200 245 90 / 0.2); }
.lp-door.primary:hover { background: #d3fa74; }
.lp-door-icon { width: 44px; height: 44px; border-radius: 14px; background: rgb(255 255 255 / 0.08); }
.lp-door.primary .lp-door-icon { background: rgb(16 20 10 / 0.1); }
.lp-door-icon svg { width: 24px; height: 24px; }
.lp-door-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.lp-door-text b { font-size: 1.02rem; }
.lp-door-text small { font-size: 0.86rem; opacity: 0.78; line-height: 1.45; }
.lp-door-arrow svg { width: 20px; height: 20px; }
html[dir='rtl'] .lp-door-arrow svg { transform: scaleX(-1); }

.lp-hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.lp-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.92);
  color: #0e1726;
  font-size: 0.86rem;
  font-weight: 650;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  animation: float 6s ease-in-out infinite;
}
.lp-float-icon { width: 28px; height: 28px; border-radius: 9px; background: #eef0ff; color: #4f46e5; }
.lp-float-icon svg { width: 17px; height: 17px; }
.lp-float-a { inset-block-start: 3%; inset-inline-start: 0; }
.lp-float-b { inset-block-end: 9%; inset-inline-end: 0; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* A phone, holding an example of the app. */
.lp-phone {
  position: relative;
  width: min(290px, 78vw);
  aspect-ratio: 290 / 590;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a2f45, #0d0f18);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 40px 90px rgb(0 0 0 / 0.45), 0 12px 30px rgb(0 0 0 / 0.25);
}
.lp-phone-notch {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #05060a;
  z-index: 2;
}
html[dir='rtl'] .lp-phone-notch { translate: 50% 0; }
.lp-phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: var(--bg);
  color: var(--text);
  padding: 54px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}
.lp-example {
  position: absolute;
  inset-block-end: -30px;
  inset-inline-start: 50%;
  translate: -50% 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-faint);
  white-space: nowrap;
}
html[dir='rtl'] .lp-example { translate: 50% 0; }
.lp-hero .lp-example { color: var(--ink-dim); }

/* Example screens: small versions of the app's own components. */
.pv-head { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; }
.pv-ring {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  background: conic-gradient(var(--accent) 72%, var(--surface-3) 0);
  position: relative;
}
.pv-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg); }
.pv-ring { isolation: isolate; }
.pv-ring::before { z-index: -1; }
.pv-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.pv-time { font-weight: 700; font-size: 0.74rem; padding: 3px 7px; border-radius: 8px; background: var(--surface-2); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.pv-body { display: flex; flex-direction: column; min-width: 0; }
.pv-body b { font-size: 0.84rem; }
.pv-body small, .pv-card small, .pv-notif small { color: var(--text-dim); font-size: 0.72rem; line-height: 1.45; }
.pv-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); }
.pv-item.done .pv-check { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px var(--surface); }
.pv-item.done .pv-time { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.pv-item.done b { text-decoration: line-through; color: var(--text-dim); }
.pv-item.now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pv-item.now .pv-time { background: var(--accent); color: var(--accent-text); }
.pv-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.pv-notif { display: flex; gap: 10px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-3); margin-block-start: 6px; }
.pv-notif > div { display: flex; flex-direction: column; }
.pv-app { width: 34px; height: 34px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--volt), #5de0c4 55%, #6d6afc); }
.pv-chips { display: flex; gap: 6px; margin-block-start: 6px; }
.pv-chip { padding: 5px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 650; border: 1px solid var(--border-strong); }
.pv-chip.on { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.pv-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block-start: 8px; }
.pv-macro { display: flex; flex-direction: column; gap: 3px; }
.pv-macro small { font-size: 0.68rem; }
.pv-macro b { font-size: 0.82rem; }
.pv-bar { display: block; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.pv-swap { flex-direction: row; align-items: center; gap: 10px; }
.pv-swap > div { display: flex; flex-direction: column; }
.pv-ok { width: 26px; height: 26px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--ok) 15%, transparent); position: relative; }
.pv-ok::after { content: ''; position: absolute; inset: 8px 7px 9px; border: solid var(--ok); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.pv-chart { height: 150px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); padding: 10px 0 0; overflow: hidden; }
.pv-chart svg { width: 100%; height: 100%; }
.pv-line { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.pv-area { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
html[dir='rtl'] .pv-chart svg { transform: scaleX(-1); }
.pv-delta { font-size: 0.74rem; font-weight: 700; color: var(--ok); }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stats > div { padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.pv-stats small { font-size: 0.66rem; color: var(--text-dim); }
.pv-stats b { font-size: 0.9rem; }
.pv-msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; line-height: 1.5; font-size: 0.8rem; }
.pv-msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-text); border-end-end-radius: 6px; }
.pv-msg.ai, .pv-msg.pro { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-end-start-radius: 6px; }
.pv-note { display: flex; align-items: center; gap: 6px; color: var(--ok); }
.pv-note-icon svg { width: 16px; height: 16px; }
.pv-pro { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.pv-pro > div { display: flex; flex-direction: column; }
.pv-pro small { color: var(--text-dim); font-size: 0.72rem; }
.pv-avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6d6afc, #5de0c4); }
.pv-badge { font-size: 0.66rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.pv-consent { border-style: dashed; }

/* The rest of the page */
.lp-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  padding: 22px 16px;
  background: var(--surface);
  border-block-end: 1px solid var(--border);
}
.lp-strip-line { margin: 0; font-weight: 700; }
.lp-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-stat { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.86rem; }

.lp-section-head { max-width: 760px; margin: 0 auto; padding: 72px 16px 8px; text-align: center; }
.lp-section-head .lp-lead { margin-inline: auto; }

.lp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 56px 16px;
}
.lp-feature.flip .lp-feature-text { order: 2; }
.lp-feature h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; font-weight: 800; margin: 14px 0 10px; }
.lp-feature-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.lp-feature-icon svg { width: 28px; height: 28px; }
.lp-feature-visual { display: grid; place-items: center; padding-block-end: 36px; }
.lp-feature-visual .lp-phone { width: min(270px, 74vw); aspect-ratio: auto; }
.lp-feature-visual .lp-phone-screen { height: auto; min-height: 380px; padding-block-end: 22px; }
.lp-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-bullets li { position: relative; padding-inline-start: 30px; line-height: 1.55; }
.lp-bullets li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}
.lp-bullets li::after {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  inset-block-start: 8px;
  width: 8px;
  height: 5px;
  border: solid var(--ok);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.lp-discover { background: var(--surface-2); padding-block-end: 64px; border-block: 1px solid var(--border); }
.lp-discover .lp-section-head { padding-block-start: 64px; }
.lp-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  max-width: var(--site-max);
  margin: 20px auto 0;
  padding-inline: 16px;
}
.lp-empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim); margin: 0; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 18px; }
.lp-discover-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 26px; padding-inline: 16px; }

.lp-pros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 72px 16px;
}
.lp-pros-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 28px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.lp-pros-card h2 { font-size: 1.55rem; font-weight: 800; margin: 6px 0 0; }
.lp-pros-card p { margin: 0; color: var(--text-dim); }
.lp-pros-card .lp-bullets { margin-block: 8px 12px; }
.lp-pros-card .lp-cta { align-self: flex-start; margin-block-start: auto; }
.lp-pros-card.coach { background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: var(--ink-text); border-color: transparent; }
.lp-pros-card.coach p { color: var(--ink-dim); }
.lp-pros-card.coach .lp-feature-icon { background: rgb(200 245 90 / 0.14); color: var(--volt); }
.lp-pros-card.coach .lp-bullets li::before { background: rgb(200 245 90 / 0.16); }
.lp-pros-card.coach .lp-bullets li::after { border-color: var(--volt); }
.lp-pros-card.nutrition { background: linear-gradient(160deg, color-mix(in srgb, var(--ok) 9%, var(--surface)), var(--surface)); }
.lp-pros-card.nutrition .lp-feature-icon { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.lp-pros-card.nutrition .lp-cta { background: var(--accent); color: var(--accent-text); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent); }

.lp-honest { max-width: var(--site-max); margin: 0 auto; padding: 24px 16px 72px; text-align: center; }
.lp-honest > .lp-feature-icon { margin-block-end: 12px; }
.lp-honest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block-start: 22px; text-align: start; }
.lp-honest-item { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.lp-honest-item b { display: block; margin-block-end: 6px; font-size: 1.02rem; }
.lp-honest-item p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }

.lp-final {
  margin: 0 16px 56px;
  padding: 56px 20px;
  border-radius: 32px;
  text-align: center;
  color: var(--ink-text);
  background:
    radial-gradient(50% 80% at 50% 0%, rgb(109 106 252 / 0.4), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--ink-2));
}
@media (min-width: 1192px) { .lp-final { max-width: var(--site-max); margin-inline: auto; } }
.lp-final .lp-lead { color: var(--ink-dim); margin-inline: auto; }
.lp-final .lp-cta.ghost { color: var(--ink-text); border-color: rgb(255 255 255 / 0.2); }

.lp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 28px max(16px, calc((100% - var(--site-max)) / 2)) calc(28px + env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
}
.lp-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); }
.lp-footer-brand .lp-logo { width: 24px; height: 24px; border-radius: 8px; box-shadow: none; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-inline-start: auto; }
.lp-footer nav a { color: var(--text-dim); text-decoration: none; }
.lp-footer nav a:hover { color: var(--accent); }
.lp-footer-note { flex-basis: 100%; margin: 0; font-size: 0.82rem; color: var(--text-faint); }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-block: 40px 64px; gap: 28px; }
  .lp-hero-visual { min-height: 0; padding-block-end: 36px; }
  .lp-feature { grid-template-columns: 1fr; gap: 26px; padding-block: 40px; }
  .lp-feature.flip .lp-feature-text { order: 0; }
  .lp-pros { grid-template-columns: 1fr; padding-block: 48px; }
  .lp-honest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lp-honest-grid { grid-template-columns: 1fr; }
  .lp-pros-card { padding: 22px; border-radius: 24px; }
  .lp-section-head { padding-block-start: 52px; }
  .lp-float { font-size: 0.78rem; padding: 8px 11px; }
}

/* ─────────────────────────── directory ─────────────────────────── */

.dir-head { margin-block-end: 18px; }
.dir-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-block-end: 6px; }
.dir-head p { margin: 0 0 14px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); }
.segmented a { padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 11px; color: var(--text-dim); text-decoration: none; font-weight: 650; font-size: 0.92rem; }
.segmented a[aria-current='page'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), 0 2px 8px rgb(16 24 40 / 0.08); }

.dir-search { display: flex; flex-direction: column; gap: 10px; margin-block-end: 18px; }
.dir-searchbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dir-searchbar input { border-radius: 14px; background: var(--surface); }
.dir-filters { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px 6px; scrollbar-width: none; }
.dir-filters::-webkit-scrollbar { display: none; }
.dir-filters select {
  flex: none;
  width: auto;
  min-height: 42px;
  padding-block: 8px;
  padding-inline: 14px 30px;
  border-radius: 999px;
  background-color: var(--surface);
  border-color: var(--border-strong);
  font-size: 0.9rem;
  font-weight: 600;
}
.dir-filters .chip { flex: none; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.dir-more summary { cursor: pointer; font-weight: 650; color: var(--accent); padding-block: 4px; font-size: 0.92rem; }
.dir-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; margin-block-start: 10px; }
.dir-summary { margin: 0 0 10px; font-weight: 600; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.dir-empty { padding: 28px 16px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 20px; }
.dir-empty p { margin: 0 0 4px; }
.dir-footnote { margin-block-start: 22px; }

.dir-sponsored { margin-block-end: 20px; padding: 14px; border-radius: 22px; background: var(--sponsor-soft); border: 1px solid color-mix(in srgb, var(--sponsor) 30%, transparent); }
.dir-sponsored-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 10px; }

.dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.dir-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow-3); }
.dir-card.sponsored { border-color: color-mix(in srgb, var(--sponsor) 45%, var(--border)); }
.dir-card-top { display: flex; gap: 12px; align-items: center; }
.dir-card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dir-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: 1.04rem; line-height: 1.3; overflow-wrap: anywhere; }
.dir-role { font-size: 0.8rem; color: var(--text-dim); }
.dir-headline { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-meta { margin: 0; font-size: 0.8rem; color: var(--text-dim); }
.dir-card-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-block-start: auto; }
.dir-clients { font-size: 0.78rem; color: var(--text-dim); }

.dir-photo {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-2);
}
.dir-photo.initials {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, #6d6afc, #3fbfa0);
}
.dir-photo.large { width: 96px; height: 96px; border-radius: 28px; font-size: 2.2rem; }

.verified-mark {
  flex: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) 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='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }

.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 0.86rem; }
.rating.none { color: var(--text-faint); font-size: 0.8rem; }
.rating-value { font-weight: 750; }
.rating-count { color: var(--text-dim); }
.stars { display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.stars.small { font-size: 0.86rem; }
.stars > span {
  background: linear-gradient(90deg, var(--star) var(--fill), var(--border-strong) var(--fill));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[dir='rtl'] .stars > span { background: linear-gradient(270deg, var(--star) var(--fill), var(--border-strong) var(--fill)); -webkit-background-clip: text; background-clip: text; }

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7a4d00;
  background: color-mix(in srgb, #f5a524 18%, transparent);
}
.badge-chip::before { content: '★'; font-size: 0.7rem; }
.badge-chip.b-verified_professional { color: var(--accent); background: var(--accent-soft); }
.badge-chip.b-verified_professional::before { content: '✓'; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .badge-chip { color: #ffc766; } }
:root[data-theme='dark'] .badge-chip { color: #ffc766; }

/* The advertising label. Always visible, never subtle. */
.ad-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6b4300;
  background: #ffe2a8;
  border: 1px solid #f0c060;
  letter-spacing: 0.01em;
  unicode-bidi: isolate;
}

/* ─────────────────────────── profile ─────────────────────────── */

.crumbs { margin-block-end: 12px; font-size: 0.9rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a::before { content: '‹ '; }
html[dir='rtl'] .crumbs a::before { content: '› '; }
.profile-hero { padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, #3fbfa0 14%, transparent));
  pointer-events: none;
}
.profile-hero > * { position: relative; }
.profile-hero-top { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.profile-hero .dir-photo.large { box-shadow: 0 0 0 4px var(--surface), var(--shadow-3); }
.profile-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 220px; }
.profile-name { display: flex; align-items: center; gap: 8px; font-size: clamp(1.5rem, 4vw, 2rem); }
.profile-name .verified-mark { width: 22px; height: 22px; background-size: 14px; }
.profile-role { margin: 0; color: var(--text-dim); font-weight: 600; }
.profile-headline { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.profile-actions > button, .profile-actions > a.button { flex: 1 1 200px; }
.profile-actions .banner { flex-basis: 100%; }
.profile-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; align-items: baseline; }
.profile-facts dt { font-size: 0.84rem; color: var(--text-dim); margin: 0; }
.profile-facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.profile-bio { white-space: pre-line; line-height: 1.75; margin: 0; }
.profile-section h3 { font-size: 0.85rem; color: var(--text-dim); margin: 12px 0 6px; font-weight: 650; }
.profile-section h3:first-child { margin-block-start: 0; }
.cred-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cred-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-block-end: 10px; border-block-end: 1px solid var(--border); }
.cred-list li:last-child { border-block-end: 0; }
.cred-list li b { flex-basis: 100%; }
.disclaimer { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin: 0; }
.badge-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.badge-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-link { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--border-strong); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.rating-summary { display: grid; grid-template-columns: auto 1fr; gap: 16px 22px; align-items: center; margin-block: 6px 16px; }
.rating-big { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 110px; }
.rating-big > b { font-size: 2.6rem; line-height: 1; font-weight: 850; }
.rating-bars { display: flex; flex-direction: column; gap: 4px; }
.rating-bar { display: grid; grid-template-columns: 1.2em 1fr 2.2em; gap: 8px; align-items: center; font-size: 0.8rem; }
.rating-bar .bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rating-bar .bar i { display: block; height: 100%; background: var(--star); border-radius: inherit; }
.rating-cats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rating-cat { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.86rem; }
@media (max-width: 420px) { .rating-summary { grid-template-columns: 1fr; } }

.review { padding-block: 14px; border-block-start: 1px solid var(--border); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.review-text { margin: 8px 0 0; line-height: 1.7; white-space: pre-line; }
.review-cats { margin: 6px 0 0; }
.review-reply { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border-inline-start: 3px solid var(--accent); }
.review-reply p { margin: 2px 0 0; }
.verified-client { font-size: 0.72rem; }
.link-button { min-height: 36px; padding: 4px 0; background: none; border: 0; box-shadow: none; color: var(--text-faint); font-weight: 600; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--danger); }
.my-review { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-review p { margin: 0; }

.review-form { display: flex; flex-direction: column; gap: 12px; }
.review-form .field { margin: 0; }
.star-input { display: flex; gap: 4px; }
.star-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 14px;
  color: var(--border-strong);
  background: var(--surface-2);
  border-color: var(--border);
}
.star-button.on { color: var(--star); background: color-mix(in srgb, var(--star) 12%, transparent); border-color: color-mix(in srgb, var(--star) 40%, transparent); }
.review-cats-input summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-block-end: 8px; }
.review-cats-input .field { display: flex; gap: 12px; align-items: center; margin-block-end: 8px; }
.review-cats-input select { width: auto; min-width: 110px; }

/* ─────────────────────────── Discover tab ─────────────────────────── */

.team { display: flex; flex-direction: column; }
.team-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding-block: 10px; border-block-end: 1px solid var(--border); color: inherit; text-decoration: none; }
.team-row:last-child { border-block-end: 0; }
.team-row.link { grid-template-columns: auto 1fr auto; }
.team-row .dir-photo { width: 46px; height: 46px; border-radius: 15px; font-size: 1.1rem; }
.team-id { display: flex; flex-direction: column; min-width: 0; }
.team-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) {
  .team-row { grid-template-columns: auto 1fr; }
  .team-row > .button { grid-column: span 1; }
}
.discover-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-end: var(--gap); }
.discover-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 132px;
  padding: 16px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--ink-text);
  background: linear-gradient(150deg, var(--ink), #252a58);
  box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease);
}
.discover-tile:hover { transform: translateY(-2px); }
.discover-tile b { font-size: 1.05rem; margin-block-start: auto; }
.discover-tile .muted { color: var(--ink-dim); }
.discover-tile.nutritionist { background: linear-gradient(150deg, #0f3b31, #1a6b58); }
.discover-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8f55a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.discover-top { margin-block: 22px var(--gap); }
.discover-top h2 { margin-block-end: 2px; }
.discover-top .muted { margin: 0 0 10px; }
.review-prompt { border-color: color-mix(in srgb, var(--star) 45%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--star) 9%, var(--surface)), var(--surface)); }
.review-prompt p { margin: 0 0 10px; }

/* ─────────────────────────── sponsored cards ─────────────────────────── */

.ad-slot { margin-block: 22px var(--gap); }
.ad-section-head h2 { margin-block-end: 2px; font-size: 0.98rem; }
.ad-section-head p { margin: 0 0 10px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ad-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--sponsor) 35%, var(--border));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.18s var(--ease);
}
.ad-card:hover { transform: translateY(-1px); border-color: var(--sponsor); }
.ad-image { flex: none; width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.ad-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.ad-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-cat { font-size: 0.72rem; color: var(--text-faint); font-weight: 600; }
.ad-brand { font-size: 0.78rem; color: var(--text-dim); font-weight: 650; }
.ad-title { font-size: 0.95rem; line-height: 1.4; }
.ad-text { margin: 0; font-size: 0.84rem; color: var(--text-dim); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad-foot { display: flex; justify-content: space-between; gap: 8px; margin-block-start: auto; padding-block-start: 4px; font-size: 0.78rem; }
.ad-by { color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-cta { color: var(--accent); font-weight: 700; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .lp-float { animation: none; }
}
