/* سایتِ بهینو — فاز ۱ (۲۷ مهر ۱۴۰۵).
 *
 * منبع: design/site/behino.css (ماکاپ). اینجا فقط مسیرِ فونت‌ها فرق دارد و
 * کلاسِ .todo نیست؛ هر تغییرِ دیگری اول در ماکاپ، بعد اینجا.
 * فقط روشن، مثل خودِ اپ.
 */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/fontsource-5.3.0/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/fontsource-5.3.0/vazirmatn-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Estedad";
  src: url("/fonts/fontsource-5.3.0/estedad-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --bg: #F3F6F3;
  --surface: #FFFFFF;
  --ink: #10231E;
  --ink-2: #5D6F69;
  --line: #DCE4E0;
  --primary: #0E6B57;
  --primary-deep: #0A4F40;
  --on-primary: #FFFFFF;
  --soft: #DDEEE8;
  --accent: #FF8A3D;
  --accent-ink: #9A4A12;
  --accent-soft: #FFF1E6;

  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Estedad", "Vazirmatn", "Segoe UI", sans-serif;

  --r-card: 22px;
  --r-pill: 999px;
  --wrap: 1120px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgb(16 35 30 / 6%), 0 12px 32px -12px rgb(16 35 30 / 18%);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }

:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 70%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ── سربرگ ─────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.brand svg { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }
.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  align-items: center;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a.btn { color: var(--on-primary); border-radius: var(--r-pill); padding: 0 16px; margin-inline-start: 6px; }
.nav a.btn:hover { background: var(--primary-deep); color: var(--on-primary); }

/* ── دکمه‌ها ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); color: var(--on-primary); }
.btn-ghost { color: var(--primary); background: var(--soft); }
.btn-ghost:hover { color: var(--primary-deep); background: color-mix(in oklab, var(--soft) 80%, var(--primary)); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ── خانه: سرصفحه ──────────────────────────────────────────────────── */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: var(--soft);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  margin: 18px 0 18px;
}
.dot { color: var(--accent); }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* گوشی و کارتِ جمله */
.stage { position: relative; justify-self: center; width: min(340px, 100%); }
.phone {
  position: relative;
  border-radius: 44px;
  background: #0F1A17;
  padding: 10px;
  box-shadow: var(--shadow), 0 40px 80px -30px rgb(14 107 87 / 35%);
}
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.leaf-bg {
  position: absolute;
  inset: -12% -30% auto auto;
  width: 160%;
  z-index: -1;
  opacity: .14;
  pointer-events: none;
}
.say {
  position: absolute;
  inset-inline-end: -64px;
  bottom: 18%;
  width: 260px;
  background: var(--surface);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.6;
}
.say .typed {
  display: block;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.say .got { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); }
.say .got b { color: var(--ink); font-weight: 700; }
.say .kcal { color: var(--primary); font-weight: 800; white-space: nowrap; }

/* ── بخش‌ها ────────────────────────────────────────────────────────── */
section { scroll-margin-top: 80px; }
.band { padding: 72px 0; }
.band.white { background: var(--surface); }
.band h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 12px; }
.band .sub { color: var(--ink-2); max-width: 40em; margin: 0 0 40px; }

/* سه جملهٔ نمونه */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.example {
  background: var(--bg);
  border-radius: var(--r-card);
  padding: 22px;
}
.example .typed {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  display: block;
  margin-bottom: 14px;
}
.example .typed::before { content: "«"; color: var(--ink-2); font-weight: 400; }
.example .typed::after { content: "»"; color: var(--ink-2); font-weight: 400; }
.example dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15px; }
.example dt { color: var(--ink-2); }
.example dd { margin: 0; font-weight: 600; }
.example dd.kcal { color: var(--primary); font-weight: 800; }
.footnote { font-size: 14px; color: var(--ink-2); margin-top: 18px; }

/* ویژگی‌ها، هرکدام با یک صفحهٔ اپ */
.features { display: grid; gap: 20px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border-radius: 28px;
  padding: 36px 40px 0;
  overflow: hidden;
}
.feature:nth-child(even) { grid-template-columns: 260px 1fr; }
.feature:nth-child(even) .shot { order: -1; }
.feature h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.feature p { color: var(--ink-2); margin: 0 0 36px; }
.feature ul { margin: 0 0 36px; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; align-items: baseline; }
.feature li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}
.shot {
  align-self: end;
  border-radius: 30px 30px 0 0;
  background: #0F1A17;
  padding: 8px 8px 0;
}
.shot img {
  border-radius: 23px 23px 0 0;
  aspect-ratio: 390 / 560;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* ایمنی */
.safety {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.safety li {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
  border: 1px solid var(--line);
}
.safety b { display: block; font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; }
.safety span { color: var(--ink-2); font-size: 16px; }

/* دعوتِ پایانی */
.closing {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 32px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.closing h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.closing p { margin: 8px 0 0; color: color-mix(in oklab, var(--on-primary) 78%, var(--primary)); }
.closing .btn-primary { background: var(--surface); color: var(--primary); }
.closing .btn-primary:hover { background: var(--soft); }
.closing .leaf-bg { inset: -40% auto auto -10%; width: 420px; opacity: .12; z-index: 0; }
.closing > :not(.leaf-bg) { position: relative; }
.closing .leaf-bg { position: absolute; }

/* ── سند (حریم خصوصی، شرایط، حذف حساب، پشتیبانی) ───────────────────── */
.doc { padding: 40px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc header { margin-bottom: 32px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; margin: 14px 0 10px; }
.doc .meta { color: var(--ink-2); font-size: 15px; }
.summary {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 22px 26px;
  margin: 0 0 36px;
  border-inline-start: 4px solid var(--accent);
}
.summary b { display: block; font-family: var(--font-display); margin-bottom: 6px; }
.summary ul { margin: 0; padding-inline-start: 20px; }
.doc h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 40px 0 10px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.doc h2 .n {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  background: var(--soft);
  border-radius: 8px;
  padding: 0 8px;
  flex: none;
}
.doc p, .doc li { text-wrap: pretty; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--accent); }
.note {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 16px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  font-size: 15.5px;
  margin: 12px 0;
}
.table th, .table td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--soft); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

/* قدم‌های حذف حساب */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; margin: 16px 0 24px; }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0;
}
.steps li::before {
  content: counter(step, persian);
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 15px;
  transform: translateY(2px);
}
.path { font-weight: 700; }
.path span { color: var(--ink-2); font-weight: 400; padding-inline: 4px; }

/* کارت‌های تماس */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 32px; }
.contact .card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
}
.contact .card b { display: block; font-family: var(--font-display); font-size: 19px; margin-bottom: 4px; }
.contact .card p { color: var(--ink-2); margin: 0 0 14px; font-size: 16px; }
.contact .card a.big { font-weight: 800; font-size: 18px; direction: ltr; unicode-bidi: isolate; }

details {
  background: var(--surface);
  border-radius: 18px;
  padding: 4px 20px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > p { margin: 0 0 16px; color: var(--ink-2); }

/* ── پانویس ────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 15px;
  color: var(--ink-2);
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.foot .brand { font-size: 18px; }
.foot .brand svg { width: 28px; height: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot small { display: block; width: 100%; font-size: 14px; }

/* ── گوشی و تبلت ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .say { inset-inline-end: -24px; }
  .examples, .safety { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; padding: 28px 24px 0; gap: 8px; }
  .feature:nth-child(even) .shot { order: 0; }
  .shot { max-width: 280px; justify-self: center; width: 100%; }
  .closing { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav .hide-sm { display: none; }
  .hero { padding-top: 24px; }
  .stage { width: min(280px, 82%); }
  .say { width: 220px; inset-inline-end: -36px; font-size: 14px; }
  .band { padding: 52px 0; }
  .contact { grid-template-columns: 1fr; }
  .table { font-size: 14.5px; }
  .table th, .table td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
