/* ════════════════════════════════════════════════════════════════════════
   سیودو — landing.

   The palette is the product's, verbatim (sivodo_flutter app_colors.dart):
   PAPER — warm canvas under white cards, ink text, one working accent
   (فیروزه). INK — the same discipline inverted. Hierarchy lives in weight,
   spacing and layering; colour is reserved for action and status. The page
   must read as the app's older sibling, not its marketing cousin.
   ════════════════════════════════════════════════════════════════════════ */

/* ── type ──────────────────────────────────────────────────────────────── */
@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXFaNum-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXFaNum-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXFaNum-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXFaNum-DemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXFaNum-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXFaNum-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXFaNum-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* ── tokens ────────────────────────────────────────────────────────────── */
:root {
  --canvas: #F6F4F0;
  --background: #FDFCFC;
  --card: #FFFFFF;
  --fg: #16140F;
  --muted-fg: #777169;
  --border: #EEEBE7;
  --hairline: rgba(22, 20, 15, .07);
  --primary: #0D8477;
  --primary-fg: #F5FBFA;
  --primary-soft: rgba(13, 132, 119, .09);
  --brand-glow: rgba(13, 132, 119, .14);
  --star: #F59E0B;
  --deep: #0E2723;            /* the app's sidebar green — night lives here */
  --deep-fg: #ADC7C1;
  --deep-bright: #3BCBBB;

  /* status — the product's SBadge hues */
  --st-booked-bg: #F5F3F1;    --st-booked-fg: #44403B;
  --st-arrived-bg: rgba(14, 165, 233, .13);  --st-arrived-fg: #0369A1;
  --st-chair-bg: rgba(139, 92, 246, .13);    --st-chair-fg: #6D28D9;
  --st-done-bg: rgba(63, 111, 79, .13);      --st-done-fg: #3F6F4F;

  /* odontogram — ChartTypeColors, light */
  --ch-existing: #38BDF8;  --ch-existing-fg: #0369A1;
  --ch-condition: #F87171; --ch-condition-fg: #B91C1C;
  --ch-planned: #FBBF24;   --ch-planned-fg: #B45309;
  --ch-completed: #34D399; --ch-completed-fg: #047857;
  --ch-referred: #A78BFA;  --ch-referred-fg: #6D28D9;

  --shadow-card: 0 1px 2px rgba(22,20,15,.04), 0 8px 28px -12px rgba(22,20,15,.14);
  --shadow-pop: 0 2px 6px rgba(22,20,15,.06), 0 24px 60px -20px rgba(22,20,15,.28);
  --radius: 16px;
  --radius-sm: 10px;

  /* driven by scroll — the day tinting the canvas. Alpha stays whisper-quiet;
     it should be felt on the second visit, not seen on the first. */
  --day-tint: rgba(245, 158, 11, 0);
}

html.ink {
  --canvas: #0E0D0C;
  --background: #201E1C;   /* rows must stand off the card, not sink into it */
  --card: #1A1917;
  --fg: #F3F1EE;
  --muted-fg: #A29C94;
  --border: rgba(243, 241, 238, .10);
  --hairline: rgba(243, 241, 238, .08);
  --primary: #3BCBBB;
  --primary-fg: #0A1513;
  --primary-soft: rgba(59, 203, 187, .10);
  --brand-glow: rgba(59, 203, 187, .10);
  --deep: #0A1A17;

  --st-booked-bg: #201E1C;   --st-booked-fg: #D6D1CA;
  --st-arrived-fg: #7DD3FC;
  --st-chair-fg: #C4B5FD;
  --st-done-bg: rgba(134, 180, 148, .14); --st-done-fg: #86B494;

  --ch-existing-fg: #7DD3FC;
  --ch-condition-fg: #FCA5A5;
  --ch-planned-fg: #FCD34D;
  --ch-completed-fg: #6EE7B7;
  --ch-referred-fg: #C4B5FD;

  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -12px rgba(0,0,0,.5);
  --shadow-pop: 0 2px 6px rgba(0,0,0,.4), 0 24px 60px -20px rgba(0,0,0,.6);
}

/* ── base ──────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IRANYekanX', 'Segoe UI', Tahoma, sans-serif;
  background: var(--canvas);
  color: var(--fg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* the paper grain — a whisper of texture so flat areas read as material.
   feTurbulence baked to a data URI; costs nothing, requests nothing. */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the day tint — one fixed wash the JS recolours as you scroll the day */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--day-tint);
  transition: background .6s linear;
}

main, header.nav, footer { position: relative; z-index: 2; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

::selection { background: var(--primary); color: var(--primary-fg); }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; top: -48px; right: 16px; z-index: 99;
  background: var(--primary); color: var(--primary-fg);
  padding: 8px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip:focus { top: 0; }

.ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .92rem;
  padding: 10px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 30px; font-size: 1rem; border-radius: 14px; }
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 1px 2px rgba(13,132,119,.3), 0 10px 26px -10px rgba(13,132,119,.5);
}
.btn-primary:hover { box-shadow: 0 2px 4px rgba(13,132,119,.3), 0 16px 34px -10px rgba(13,132,119,.55); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); background: var(--card); color: var(--fg); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-row { display: flex; align-items: center; gap: 26px; height: 64px; }
.wordmark { display: flex; align-items: center; gap: 9px; font-size: 1.25rem; font-weight: 800; }
.mark { width: 30px; height: 30px; }
.mark-tooth { fill: var(--primary); }
.mark-star { fill: var(--star); }
.nav-links { display: flex; gap: 22px; font-size: .9rem; font-weight: 500; color: var(--muted-fg); margin-inline-start: 10px; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted-fg);
  cursor: pointer; display: grid; place-items: center;
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html:not(.ink) .ic-sun { display: none; }
html.ink .ic-moon { display: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 9vh, 110px) 0 clamp(56px, 9vh, 120px);
  overflow: hidden;
}
/* the glow: dawn light coming off the corner, brand-coloured. Sized so the
   gradient reaches full transparency inside the section — clipping a live
   gradient at the section edge printed a hard band across the page. */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(46rem 24rem at 85% -14%, var(--brand-glow), transparent 58%),
    radial-gradient(38rem 20rem at -8% 112%, var(--brand-glow), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.display {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 900; line-height: 1.28; letter-spacing: -.01em;
  margin-bottom: 20px;
}
.tashieh { position: relative; color: var(--primary); }
/* the brand's four-point sparkle, perched on the last word like it is on
   the tooth in the logo */
.tashieh-star {
  position: absolute; top: -.28em; left: -.52em;
  width: .34em; height: .34em; fill: var(--star);
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(.72) rotate(22deg); opacity: .75; }
}
.lede { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--muted-fg); max-width: 34em; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .8rem; color: var(--muted-fg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-demo { max-width: 480px; }
  /* the stacked hero already ends in the board — the desktop-sized cushion
     under it just reads as a hole on a phone */
  .hero { padding-block-end: 30px; }
}

/* ── the board (hero demo) ─────────────────────────────────────────────── */
.board {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 18px 18px 22px;
  overflow: hidden;
}
.board-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.board-title { font-weight: 800; font-size: .98rem; }
.board-sub { font-size: .78rem; color: var(--muted-fg); }
.board-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 6px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--primary-soft); } 50% { box-shadow: 0 0 0 7px var(--primary-soft); } }

.appt {
  display: flex; align-items: center; gap: 10px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: box-shadow .3s, border-color .3s;
}
.appt.is-live { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 4px 18px -8px rgba(13,132,119,.35); }
.appt-time { font-size: .78rem; font-weight: 700; color: var(--muted-fg); min-width: 38px; }
.appt-edge { width: 3px; align-self: stretch; border-radius: 3px; }
.appt[data-hue="teal"] .appt-edge { background: rgba(15,118,110,.5); }
.appt[data-hue="violet"] .appt-edge { background: rgba(109,40,217,.5); }
.appt[data-hue="amber"] .appt-edge { background: rgba(180,83,9,.5); }
.appt-body { flex: 1; min-width: 0; }
.appt-name { font-size: .88rem; font-weight: 700; }
.appt-svc { font-size: .74rem; color: var(--muted-fg); }
.appt-fee {
  font-size: .8rem; font-weight: 800; color: var(--st-done-fg);
  opacity: 0; transform: translateY(4px); transition: all .45s ease;
}
.appt-fee.on { opacity: 1; transform: none; }

.sbadge {
  font-size: .72rem; font-weight: 700;
  padding: 3px 11px; border-radius: 999px;
  background: var(--st-booked-bg); color: var(--st-booked-fg);
  white-space: nowrap;
  transition: background .35s, color .35s;
}
.sbadge.booked { background: var(--st-booked-bg); color: var(--st-booked-fg); }
.sbadge.confirmed { background: var(--primary-soft); color: var(--primary); }
.sbadge.arrived { background: var(--st-arrived-bg); color: var(--st-arrived-fg); }
.sbadge.chair { background: var(--st-chair-bg); color: var(--st-chair-fg); }
.sbadge.done { background: var(--st-done-bg); color: var(--st-done-fg); }
.sbadge.small { font-size: .68rem; padding: 2px 9px; }

.now-line { display: flex; align-items: center; gap: 7px; margin: 12px 2px; }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.now-label { font-size: .72rem; font-weight: 800; color: var(--primary); }
.now-rule { flex: 1; height: 1px; background: color-mix(in srgb, var(--primary) 35%, transparent); }

.gap-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed color-mix(in srgb, var(--border) 55%, var(--muted-fg));
  border-radius: var(--radius-sm);
  padding: 8px 12px; margin-bottom: 8px;
  font-size: .78rem; color: var(--muted-fg);
}
.gap-row .ic { width: 13px; height: 13px; }
.gap-cta { color: var(--primary); font-weight: 800; }
.gap-row.big { padding: 13px 14px; font-size: .88rem; background: var(--card); }

.board-toast {
  position: absolute; bottom: 12px; right: 18px; left: 18px;
  display: flex; align-items: center; gap: 8px;
  background: var(--deep); color: #EEF6F4;
  font-size: .78rem; font-weight: 600;
  border-radius: 12px; padding: 9px 14px;
  box-shadow: var(--shadow-pop);
  transform: translateY(140%); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.9,.25,1.15), opacity .3s;
}
.board-toast.on { transform: none; opacity: 1; }
.board-toast .ic { color: var(--deep-bright); }

/* satellites orbiting the hero board — depth, and a hint that the day
   board is one part of something larger */
.hero-demo { position: relative; }
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--border);
  font-size: .76rem; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .ic { color: var(--primary); width: 14px; height: 14px; }
.chip-sms { top: -16px; inset-inline-start: -14px; transform: rotate(3deg); }
.chip-paid { bottom: 26px; inset-inline-end: -18px; transform: rotate(-3deg); animation-delay: -3s; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@media (max-width: 900px) {
  .chip-sms { inset-inline-start: -4px; }
  .chip-paid { inset-inline-end: -4px; }
}

/* ── the day ───────────────────────────────────────────────────────────── */
.day { padding: clamp(40px, 7vh, 90px) 0; }
.day-intro { max-width: 560px; margin-bottom: clamp(40px, 7vh, 80px); }
.day-intro h2, .section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800; line-height: 1.4; margin-bottom: 12px;
}
.day-intro p, .section-head p { color: var(--muted-fg); }

/* ── the spine ──────────────────────────────────────────────────────────
   One line down the middle of the day; chapters hang off it like stations.
   The line is the layout — it says «timeline» before a word is read — and
   the current time rides down it with the scroll (#spineNow, main.js).
 */
.day-flow { position: relative; }
.spine {
  position: absolute; top: 6px; bottom: 6px;
  left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(
    transparent,
    var(--border) 40px,
    var(--border) calc(100% - 120px),
    transparent);
}
.spine-now {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary); color: var(--primary-fg);
  font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(13,132,119,.35), 0 8px 22px -6px rgba(13,132,119,.45);
  white-space: nowrap;
  opacity: 0; transition: opacity .3s;
  z-index: 6;
}
.spine-now.on { opacity: 1; }
.spine-now::after {           /* the stem tying the pill to the line */
  content: '';
  position: absolute; top: 100%; left: 50%;
  width: 2px; height: 10px; margin-left: -1px;
  background: var(--primary);
}

/* chapters — stations alternating down the spine */
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(56px, 8vw, 110px) minmax(0, 1fr);
  gap: 0 clamp(10px, 2vw, 28px);
  align-items: center;
  padding: clamp(40px, 7vh, 80px) 0;
}
.chapter-copy { grid-column: 1; }
.chapter-demo { grid-column: 3; position: relative; }
/* every other station swaps sides, so the eye zigzags down the day */
.chapter:nth-child(even) .chapter-copy { grid-column: 3; }
.chapter:nth-child(even) .chapter-demo { grid-column: 1; grid-row: 1; }

/* the station node: this chapter's time, pinned on the line */
.chapter-node {
  grid-column: 2; grid-row: 1;
  justify-self: center; align-self: start;
  margin-top: clamp(40px, 7vh, 80px);
  background: var(--card); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 3px 12px; border-radius: 999px;
  box-shadow: var(--shadow-card);
  z-index: 2; white-space: nowrap;
}
.chapter-node.night { background: var(--deep); color: var(--deep-bright); border-color: transparent; }

/* soft halo so a demo sits *on* something rather than floating in white */
.chapter-demo::before {
  content: '';
  position: absolute; inset: -10% -8%;
  background: radial-gradient(closest-side, var(--primary-soft), transparent 72%);
  z-index: -1;
}

/* the huge ghost timestamp behind the demo — the page's typographic
   signature. Ultralight FaNum digits, barely there. */
.chapter-stamp {
  position: absolute; top: 12px;
  font-size: clamp(4rem, 9vw, 7.4rem);
  font-weight: 300; line-height: 1;
  color: var(--fg); opacity: .05;
  pointer-events: none; user-select: none;
  font-variant-numeric: tabular-nums;
  inset-inline-end: 2%;
}
.chapter:nth-child(even) .chapter-stamp { inset-inline-end: auto; inset-inline-start: 2%; }

.chapter h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.chapter p { color: var(--muted-fg); max-width: 32em; }
.try-hint { margin-top: 10px; font-size: .82rem; color: var(--primary); font-weight: 600; }

/* phone: the spine moves to the start edge and everything hangs off it */
@media (max-width: 900px) {
  .spine { left: auto; margin-left: 0; inset-inline-start: 11px; }
  /* the pill rides beside the line like a tag, not astride it — astride
     would hang it half off the screen edge */
  .spine-now { left: auto; inset-inline-start: 12px; transform: translateY(-50%); }
  .spine-now::after { display: none; }
  .chapter, .chapter:nth-child(even) {
    grid-template-columns: 1fr; gap: 22px;
    padding: 40px 0 40px 0;
    padding-inline-start: 40px;
  }
  .chapter-copy, .chapter-demo,
  .chapter:nth-child(even) .chapter-copy,
  .chapter:nth-child(even) .chapter-demo { grid-column: 1; }
  .chapter-demo { grid-row: auto; max-width: 460px; }
  .chapter:nth-child(even) .chapter-demo { grid-row: auto; }
  .chapter-node {
    grid-column: 1; grid-row: 1;
    position: absolute; inset-inline-start: -8px; top: 40px;
    margin-top: 0; justify-self: auto;
  }
  /* clear the node pill — it sits above the heading, not on it */
  .chapter-copy { padding-top: 78px; }
  .chapter-stamp, .chapter:nth-child(even) .chapter-stamp {
    inset-inline-end: 0; inset-inline-start: auto; top: 0;
  }
  .odonto-demo { max-width: none; }
}

/* ── phone mock (۰۷:۳۰) ────────────────────────────────────────────────── */
.phone {
  width: min(300px, 100%);
  background: var(--fg);
  border-radius: 34px;
  padding: 10px;
  box-shadow: var(--shadow-pop);
  margin-inline: auto;
}
html.ink .phone { background: #2A2825; }
.phone-notch { width: 88px; height: 20px; background: inherit; border-radius: 0 0 14px 14px; margin: 0 auto 2px; position: relative; z-index: 2; }
.phone-screen {
  background: var(--canvas);
  border-radius: 26px;
  padding: 26px 14px 20px;
  margin-top: -18px;
  min-height: 320px;
}
.sms-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 5px;
  padding: 12px 14px;
  font-size: .78rem; line-height: 2;
  box-shadow: var(--shadow-card);
  max-width: 94%;
}
.sms-meta { display: flex; justify-content: flex-end; gap: 4px; font-size: .66rem; color: var(--muted-fg); margin-top: 6px; }
.tick { width: 13px; height: 13px; color: var(--primary); }
.sms-reply {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  background: var(--st-done-bg); color: var(--st-done-fg);
  font-size: .76rem; font-weight: 700;
  border-radius: 999px; padding: 6px 14px;
}

/* ── mini agenda (۰۹:۱۵) ───────────────────────────────────────────────── */
.mini-agenda {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 16px;
}
.agenda-note { font-size: .76rem; color: var(--muted-fg); text-align: center; padding-top: 6px; }

/* ── queue (۱۰:۲۵) ─────────────────────────────────────────────────────── */
.queue-demo {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 12px;
}
.queue-row { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: var(--radius-sm); }
.queue-row + .queue-row { border-top: 1px solid var(--hairline); }
.queue-row.is-ghost { opacity: .55; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 800;
}
.queue-body { flex: 1; display: flex; flex-direction: column; }
.queue-body b { font-size: .88rem; }
.queue-body span { font-size: .72rem; color: var(--muted-fg); }

/* ── odontogram (۱۱:۰۰) ────────────────────────────────────────────────── */
.odonto {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 4vw, 40px) clamp(8px, 2vw, 24px);
}
/* teeth are sized in % of the arch, so the mouth scales down to a phone
   instead of overflowing it. LTR deliberately: an odontogram is drawn from
   the dentist's viewpoint — quadrant ۱ (۱۸…۱۱) sits on the viewer's left —
   and that convention doesn't flip with the page. */
.arch { display: flex; direction: ltr; justify-content: center; gap: 2px; max-width: 540px; margin-inline: auto; }
.arch-upper { margin-bottom: clamp(14px, 3vw, 30px); }
.tooth {
  position: relative;
  border: none; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}
.tooth svg { width: 100%; height: auto; display: block; transition: transform .18s ease; }
.tooth .t-body { fill: var(--canvas); stroke: color-mix(in srgb, var(--muted-fg) 55%, transparent); stroke-width: 1.4; transition: fill .25s; }
/* a dark canvas sinks into a dark card — in ink the enamel is its own tone */
html.ink .tooth .t-body { fill: #262421; stroke: rgba(243, 241, 238, .28); }
.tooth[data-status="existing"] .t-body { fill: var(--ch-existing); stroke: none; }
.tooth[data-status="condition"] .t-body { fill: var(--ch-condition); stroke: none; }
.tooth[data-status="planned"] .t-body { fill: var(--ch-planned); stroke: none; }
.tooth[data-status="completed"] .t-body { fill: var(--ch-completed); stroke: none; }
.tooth[data-status="referred"] .t-body { fill: var(--ch-referred); stroke: none; }
.tooth:hover svg, .tooth:focus-visible svg { transform: translateY(-3px) scale(1.12); }
.tooth-no { font-size: .58rem; color: var(--muted-fg); font-variant-numeric: tabular-nums; }

.odonto-tip {
  position: absolute; z-index: 6;
  background: var(--deep); color: #EEF6F4;
  font-size: .74rem; font-weight: 600;
  border-radius: 10px; padding: 6px 12px;
  pointer-events: none; white-space: nowrap;
  opacity: 0; transform: translateY(5px);
  transition: opacity .18s, transform .18s;
  box-shadow: var(--shadow-pop);
}
.odonto-tip.on { opacity: 1; transform: none; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.lg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; color: var(--muted-fg);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 11px; background: var(--card);
}
.lg::before { content: ''; width: 9px; height: 9px; border-radius: 3px; }
.lg[data-k="existing"]::before { background: var(--ch-existing); }
.lg[data-k="condition"]::before { background: var(--ch-condition); }
.lg[data-k="planned"]::before { background: var(--ch-planned); }
.lg[data-k="completed"]::before { background: var(--ch-completed); }
.lg[data-k="referred"]::before { background: var(--ch-referred); }

/* ── receipt (۱۱:۴۵) ───────────────────────────────────────────────────── */
.receipt {
  width: min(340px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px 6px var(--radius) var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px 16px;
  margin-inline: auto;
  position: relative;
}
/* perforation along the top, like the paper roll it replaces */
.receipt::before {
  content: '';
  position: absolute; top: -1px; left: 8px; right: 8px; height: 6px;
  background-image: radial-gradient(circle at 4px 0, var(--canvas) 3.2px, transparent 3.5px);
  background-size: 14px 6px; background-repeat: repeat-x;
}
.receipt-head { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; margin-bottom: 12px; padding-top: 4px; }
.receipt-no { color: var(--muted-fg); font-weight: 600; font-size: .78rem; }
.receipt-row { display: flex; justify-content: space-between; font-size: .84rem; padding: 4px 0; }
.receipt-row.muted { color: var(--muted-fg); }
.receipt-row.total { font-weight: 800; font-size: 1rem; padding-top: 10px; }
.receipt-row.total b { color: var(--primary); font-variant-numeric: tabular-nums; }
.receipt-rule { border-top: 1px dashed var(--border); margin-top: 8px; }
.receipt-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  background: var(--st-done-bg); color: var(--st-done-fg);
  font-size: .74rem; font-weight: 700;
  border-radius: 999px; padding: 4px 12px;
}

/* ── lab (۱۳:۰۰) ───────────────────────────────────────────────────────── */
.lab-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.lab-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.lab-head b { font-size: .92rem; }
.lab-head span { font-size: .76rem; color: var(--muted-fg); }
.lab-steps { list-style: none; display: flex; justify-content: space-between; position: relative; counter-reset: step; margin-bottom: 14px; }
.lab-steps::before {
  content: ''; position: absolute; top: 7px; right: 8%; left: 8%;
  height: 2px; background: var(--border);
}
.lab-steps li { position: relative; z-index: 1; font-size: .64rem; color: var(--muted-fg); text-align: center; flex: 1; }
.lab-steps li::before {
  content: ''; display: block; width: 14px; height: 14px; margin: 0 auto 5px;
  border-radius: 50%; background: var(--canvas); border: 2px solid var(--border);
  box-sizing: border-box;
}
.lab-steps li.on::before { background: var(--primary); border-color: var(--primary); }
.lab-steps li.on { color: var(--fg); font-weight: 600; }
.lab-steps li.now::before { box-shadow: 0 0 0 4px var(--primary-soft); }
.lab-eta { font-size: .76rem; color: var(--muted-fg); text-align: center; }

/* ── follow-ups (۱۷:۳۰) ────────────────────────────────────────────────── */
.follow-list {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 8px 12px;
}
.follow-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; }
.follow-row + .follow-row { border-top: 1px solid var(--hairline); }
.follow-body { flex: 1; display: flex; flex-direction: column; }
.follow-body b { font-size: .88rem; }
.follow-body span { font-size: .74rem; color: var(--muted-fg); }
.follow-act {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted-fg);
}
.muted-row { opacity: .65; }

/* ── night (۲۳:۰۰) — the app's deep sidebar green, the day winding down ── */
.night-card {
  background: var(--deep);
  color: #EEF6F4;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 20px 22px;
}
.night-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.night-row b { font-size: 1.05rem; font-weight: 800; color: var(--deep-bright); }
.night-row.sub { font-size: .74rem; color: var(--deep-fg); margin-top: 12px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 88px; margin-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar i {
  display: block; width: 100%; max-width: 34px;
  height: var(--h); border-radius: 6px 6px 3px 3px;
  background: rgba(59, 203, 187, .3);
  transform-origin: bottom; transform: scaleY(0);
  transition: transform .7s cubic-bezier(.2,.8,.3,1);
}
.bar.now i { background: var(--deep-bright); }
.bar.dim i { background: rgba(173, 199, 193, .16); }
.reveal.in .bar i, .no-observer .bar i { transform: scaleY(1); }
.bar:nth-child(2) i { transition-delay: .06s; } .bar:nth-child(3) i { transition-delay: .12s; }
.bar:nth-child(4) i { transition-delay: .18s; } .bar:nth-child(5) i { transition-delay: .24s; }
.bar:nth-child(6) i { transition-delay: .3s; }
.bar span { font-size: .64rem; color: var(--deep-fg); }

/* ── features ──────────────────────────────────────────────────────────── */
.features { padding: clamp(48px, 8vh, 100px) 0; }
.section-head { text-align: center; max-width: 520px; margin: 0 auto clamp(32px, 5vh, 56px); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.fic { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.feature b { font-size: .95rem; font-weight: 800; }
.feature span { font-size: .8rem; color: var(--muted-fg); line-height: 1.9; }

@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── trust ─────────────────────────────────────────────────────────────── */
.trust { padding-bottom: clamp(48px, 8vh, 100px); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-card {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.trust-card b { font-size: 1rem; font-weight: 800; }
.trust-card span { font-size: .82rem; color: var(--muted-fg); line-height: 2; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── pricing ───────────────────────────────────────────────────────────── */
.pricing { padding-bottom: clamp(48px, 8vh, 100px); }
.trial-note {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: fit-content;
  margin: 0 auto clamp(28px, 4vh, 44px);
  background: var(--primary-soft); color: var(--primary);
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  border-radius: 999px; padding: 9px 22px;
  font-size: .92rem; font-weight: 700;
  text-align: center;
}
.trial-star { width: 15px; height: 15px; fill: var(--star); flex: none; }
.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  max-width: 720px; margin-inline: auto;
}
.price-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 28px 26px 24px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.price-card.is-featured {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: var(--shadow-pop);
}
.price-badge {
  position: absolute; top: -13px; inset-inline-start: 22px;
  background: var(--primary); color: var(--primary-fg);
  font-size: .72rem; font-weight: 800;
  border-radius: 999px; padding: 3px 13px;
  box-shadow: 0 2px 6px rgba(13,132,119,.35);
}
.price-name { font-size: .9rem; font-weight: 800; color: var(--muted-fg); margin-bottom: 6px; }
.price-amount { display: flex; align-items: baseline; gap: 7px; }
.price-amount b { font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.3; }
.price-amount span { font-size: .84rem; font-weight: 600; color: var(--muted-fg); }
.price-per { font-size: .8rem; color: var(--muted-fg); margin-bottom: 22px; }
.price-card .btn { align-self: stretch; margin-top: auto; }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }

/* ── final CTA ─────────────────────────────────────────────────────────── */
.cta-final { padding-bottom: clamp(56px, 9vh, 110px); }
.cta-card {
  position: relative;
  background: var(--deep);
  color: #EEF6F4;
  border-radius: 24px;
  text-align: center;
  padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 60px);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(34rem 22rem at 50% -30%, rgba(59,203,187,.22), transparent 65%);
}
.cta-mark { width: 46px; height: 46px; margin-bottom: 14px; position: relative; }
.cta-mark .mark-tooth { fill: #EEF6F4; }
.cta-card h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 900; line-height: 1.5; margin-bottom: 10px; position: relative; }
.cta-card p { color: var(--deep-fg); margin-bottom: 26px; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-card .btn-primary { background: var(--deep-bright); color: #062421; box-shadow: 0 10px 30px -8px rgba(59,203,187,.5); }
.cta-card .btn-ghost { background: transparent; border-color: rgba(238,246,244,.25); color: #EEF6F4; }
.cta-card .btn-ghost:hover { border-color: var(--deep-bright); color: var(--deep-bright); }

/* ── footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); padding: 30px 0 36px; }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .mark { width: 26px; height: 26px; }
.footer-brand b { display: block; font-size: .95rem; line-height: 1.4; }
.footer-brand span { display: block; font-size: .72rem; color: var(--muted-fg); }
.footer-links { display: flex; gap: 18px; font-size: .84rem; color: var(--muted-fg); margin-inline-start: auto; }
.footer-links a:hover { color: var(--fg); }
.footer-note { font-size: .8rem; color: var(--muted-fg); font-weight: 600; }

/* اینماد — the seal sits on a white tile even in dark, because the badge
   artwork assumes a light ground */
.enamad { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 6px; line-height: 0; }
.enamad img { width: 72px; height: 78px; object-fit: contain; }
/* remove this class when the real snippet from enamad.ir goes in */
.enamad-pending { display: none; }

@media (max-width: 640px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { margin-inline-start: 0; }
}

/* ── reveal on scroll ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
/* motion opted out (JS-side): show everything, instantly */
.no-observer .reveal { opacity: 1; transform: none; transition: none; }
/* stagger siblings inside the same parent */
.reveal.in ~ .reveal.in { transition-delay: .08s; }

/* ── motion off ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bar i { transform: scaleY(1); }
  .appt-fee { opacity: 1; transform: none; }
}
