/* ناب‌گل — نظامِ دیداریِ صفحه‌های عمومی
   Source of truth: docs/BRAND_DESIGN_PLAN.md §3; the home page is the owner-approved
   preview docs/_design/brand-hero/src.html, moved here. Rules that are law here:
   · every colour is a token in the two blocks below; no raw colour anywhere else;
   · three colour roles never swap: LIGHT (gold of the mark — signature, key word,
     glow only), ACTION (the mark's leaf green — primary button, links, selection),
     INK (warm neutrals — paper by day, the mark's warm black by night);
   · only transform and opacity animate; nothing moves faster than the chat seal;
   · Persian is never letter-spaced. */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --ph-bg: #070605;
  --ph-bg-2: #0c0a08;
  --ph-surface: #0f0d0a;
  --ph-surface-2: #16130f;
  --ph-line: rgba(240, 228, 205, 0.08);
  --ph-line-2: rgba(240, 228, 205, 0.15);
  --ph-text: #f5f0e7;
  --ph-text-2: #b5ab99;
  --ph-text-3: #877d6f;
  --ph-light: #e8c68e;
  --ph-key-a: #fcebc7;
  --ph-key-b: #bf8f52;
  --ph-act: #95c27a;
  --ph-act-hover: #addb93;
  --ph-act-ink: #0d1609;
  --ph-link: #addb93;
  --ph-focus: rgba(173, 219, 147, 0.6);
  --ph-sel: rgba(232, 198, 142, 0.32);
  --ph-ring: rgba(232, 198, 142, 0.28);
  --ph-seed-hi: #fffaf0;
  --ph-seed-mid: #f3d39a;
  --ph-seed-lo: #c4924f;
  --ph-leaf-hi: #c8ec9f;
  --ph-leaf-lo: #5f9a44;
  --ph-bead: #fcf0c2;
  --ph-bead-halo: rgba(206, 210, 150, 0.42);
  --ph-cg-a: #fcf0c2;
  --ph-seed-glow: rgba(243, 211, 154, 0.3);
  --ph-spark: #fffdf2;
  --ph-spark-glow: rgba(255, 228, 160, 0.95);
  --ph-spark-halo: rgba(255, 200, 100, 0.5);
  --ph-cg-b: rgba(206, 210, 150, 0.42);
  --ph-glow: rgba(232, 198, 142, 0.24);
  --ph-glow-2: rgba(232, 198, 142, 0.07);
  --ph-fh-1: rgba(232, 198, 142, 0.24);
  --ph-fh-2: rgba(232, 198, 142, 0.07);
  --ph-dot: rgba(232, 198, 142, 0.3);
  --ph-mist-gold: rgba(232, 198, 142, 0.14);
  --ph-mist-leaf: rgba(95, 154, 68, 0.17);
  --ph-vig: rgba(0, 0, 0, 0.55);
  --ph-grain-op: 0.06;
  --ph-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --ph-shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  --ph-lift: rgba(0, 0, 0, 0.55);
  --ph-paper: #fbf8f1;
  --ph-sheet-ink: #23201a;
  --ph-sheet-ink-2: #6a6253;
  --ph-sheet-line: rgba(35, 32, 26, 0.12);
  --ph-phone-a: #3a342b;
  --ph-phone-b: #0b0a08;
  --ph-phone-rim: rgba(252, 235, 199, 0.2);
  /* the device inside the phone and the notebook are pictures: same in both themes */
  --ph-dev-bg: #0d1219;
  --ph-dev-bar: rgba(13, 18, 25, 0.92);
  --ph-dev-ink: #eef2f6;
  --ph-dev-ink-2: #dfe6ec;
  --ph-dev-line: rgba(255, 255, 255, 0.12);
  --ph-dev-live: #4fcf98;
  --ph-dev-rec: #e5484d;
  --ph-dev-dim: rgba(0, 0, 0, 0.62);
  --ph-dev-fade: rgba(5, 8, 12, 0.94);
  --ph-dev-black: #000000;
  --ph-dev-white: #ffffff;
  --ph-nb-paper: #f3efe4;
  --ph-nb-rule: rgba(60, 90, 160, 0.3);
  --ph-nb-margin: rgba(200, 70, 70, 0.45);
  --ph-nb-ink: #2441a0;
  --ph-fi-pdf-a: #c8443a;
  --ph-fi-pdf-b: #952a23;
  --ph-fi-doc-a: #2f6fd6;
  --ph-fi-doc-b: #1c4597;
  /* inner pages (pricing, account, documents): soft fills of the two roles, a warning, fields */
  --ph-act-soft: rgba(149, 194, 122, 0.1);
  --ph-act-line: rgba(149, 194, 122, 0.45);
  --ph-act-dim: rgba(149, 194, 122, 0.42);
  --ph-light-soft: rgba(232, 198, 142, 0.08);
  --ph-light-line: rgba(232, 198, 142, 0.36);
  --ph-bad: #f2a08c;
  --ph-bad-soft: rgba(229, 110, 85, 0.12);
  --ph-track: rgba(240, 228, 205, 0.1);
  --ph-field: rgba(240, 228, 205, 0.05);
  --ph-scrim: rgba(4, 3, 2, 0.62);
  --ph-sheet-link: #2f6a1f;

  --ph-font: "Vazirmatn", "Vazirmatn Fallback", Tahoma, sans-serif;
  --ph-fs-1: 0.8125rem;
  --ph-fs-2: 0.9375rem;
  --ph-fs-3: 1.0625rem;
  --ph-fs-4: 1.3125rem;
  --ph-fs-5: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem);
  --ph-fs-6: clamp(2.125rem, 1.25rem + 4.1vw, 4rem);
  --ph-fs-h2: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem);
  --ph-fs-h1: clamp(2.05rem, 1.1rem + 2.9vw, 3.5rem);
  --ph-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ph-t-quick: 0.18s;
  --ph-r-1: 10px;
  --ph-r-2: 16px;
  --ph-r-3: 24px;
  --ph-max: 1240px;
  --ph-gut: clamp(16px, 4vw, 40px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --ph-bg: #f6f1e7;
  --ph-bg-2: #f0eadf;
  --ph-surface: #fffdf8;
  --ph-surface-2: #efe8da;
  --ph-line: rgba(60, 45, 20, 0.1);
  --ph-line-2: rgba(60, 45, 20, 0.18);
  --ph-text: #1d1912;
  --ph-text-2: #5a5244;
  --ph-text-3: #6e6557;
  --ph-light: #8a5c1f;
  --ph-key-a: #946426;
  --ph-key-b: #6e4a1a;
  --ph-act: #3b7a28;
  --ph-act-hover: #2f6a1f;
  --ph-act-ink: #ffffff;
  --ph-link: #2f6a1f;
  --ph-focus: rgba(59, 122, 40, 0.5);
  --ph-sel: rgba(155, 106, 40, 0.22);
  --ph-ring: rgba(120, 88, 36, 0.25);
  --ph-seed-hi: #f9e3b4;
  --ph-seed-mid: #c99852;
  --ph-seed-lo: #86581f;
  --ph-leaf-hi: #8cc066;
  --ph-leaf-lo: #3f6e2a;
  --ph-bead: #b97a22;
  --ph-bead-halo: rgba(185, 122, 34, 0.28);
  --ph-cg-a: rgba(255, 250, 236, 0.95);
  --ph-seed-glow: transparent;
  --ph-spark: #fffaf0;
  --ph-spark-glow: rgba(222, 150, 40, 0.9);
  --ph-spark-halo: rgba(222, 150, 40, 0.4);
  --ph-cg-b: rgba(240, 204, 132, 0.30);
  --ph-glow: rgba(222, 176, 100, 0.34);
  --ph-glow-2: rgba(222, 176, 100, 0.1);
  --ph-fh-1: rgba(255, 253, 247, 0.95);
  --ph-fh-2: rgba(255, 249, 235, 0.45);
  --ph-dot: rgba(120, 88, 36, 0.22);
  --ph-mist-gold: rgba(222, 176, 100, 0.10);
  --ph-mist-leaf: rgba(95, 154, 68, 0.06);
  --ph-vig: rgba(110, 80, 30, 0.1);
  --ph-grain-op: 0.035;
  --ph-shadow: 0 1px 2px rgba(58, 45, 25, 0.06), 0 24px 60px -28px rgba(58, 45, 25, 0.28);
  --ph-shadow-lg: 0 18px 40px -28px rgba(70, 50, 20, 0.24);
  --ph-lift: rgba(70, 50, 20, 0.25);
  --ph-paper: #ffffff;
  --ph-sheet-line: rgba(35, 32, 26, 0.1);
  --ph-phone-a: #d9cfbd;
  --ph-phone-b: #a99d88;
  --ph-phone-rim: rgba(70, 50, 20, 0.18);
  --ph-act-soft: rgba(59, 122, 40, 0.08);
  --ph-act-line: rgba(59, 122, 40, 0.45);
  --ph-act-dim: rgba(59, 122, 40, 0.32);
  --ph-light-soft: #fbf1df;
  --ph-light-line: rgba(138, 92, 31, 0.35);
  --ph-bad: #a8321f;
  --ph-bad-soft: #fbe9e4;
  --ph-track: rgba(60, 45, 20, 0.1);
  --ph-field: #fffdf8;
  --ph-scrim: rgba(40, 30, 15, 0.38);
}

/* The face is Nazli under the "Vazirmatn" alias (vendor/nazli, size-adjust 113.9%).
   Its stand-in is Tahoma resized to the alias, so the swap moves nothing: same
   ascent/descent as Nazli-fallback.css, size-adjust x 1.139. */
@font-face {
  font-family: "Vazirmatn Fallback";
  src: local("Tahoma"), local("Segoe UI");
  size-adjust: 83.06%;
  ascent-override: 131.23%;
  descent-override: 74.6%;
  line-gap-override: 0%;
  font-weight: 400 700;
}

/* ── BASE ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: var(--ph-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { overflow-x: clip; }
body.ph {
  position: relative;
  overflow-x: hidden;
  font-size: var(--ph-fs-2);
  line-height: 1.8;
}
::selection { background: var(--ph-sel); color: var(--ph-text); }
a { color: var(--ph-link); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ph-focus); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.ph-num { font-variant-numeric: tabular-nums; }
.ph-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html.ph-tx, html.ph-tx * {
  transition: background-color 0.35s var(--ph-ease), color 0.35s var(--ph-ease), border-color 0.35s var(--ph-ease) !important;
}
/* legacy layers of the previous home: never paint again */
.ph-atmosphere, .ph-orb { display: none; }

.ph-shell {
  position: relative;
  z-index: 1;
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 0 var(--ph-gut);
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: env(safe-area-inset-top) 0 0;
}
.ph-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ph-text);
  text-decoration: none;
}
.ph-mark { width: 34px; height: 34px; border-radius: 9px; flex: none; display: block; box-shadow: 0 0 0 1px var(--ph-ring); }
.ph-brand-t { font-family: "Nazli", "Nazli Fallback", Tahoma, sans-serif; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ph-brand-t b { font-size: 1.15rem; font-weight: 700; }
.ph-brand-t small { font-size: 12px; color: var(--ph-light); white-space: nowrap; }
.ph-brand-mark {
  font-size: var(--ph-fs-4);
  font-weight: 700;
  line-height: 1;
}
.ph-brand-sub {
  font-size: var(--ph-fs-1);
  color: var(--ph-text-3);
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--ph-line-2);
  line-height: 1.2;
}
.ph-nav, .ph-nav-cta {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
}
.ph-nav a {
  white-space: nowrap;
  color: var(--ph-text-2);
  text-decoration: none;
  font-size: var(--ph-fs-2);
  padding: 8px 0;
  transition: color var(--ph-t-quick) var(--ph-ease);
}
.ph-nav a:hover { color: var(--ph-text); }
/* «نصب»: the header's one action — a quiet outlined pill, leaf icon; the install script shows it in a browser only */
.ph-install { appearance: none; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ph-line-2); background: transparent; color: var(--ph-text); font: inherit; font-size: var(--ph-fs-1); font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color var(--ph-t-quick) var(--ph-ease); }
.ph-install svg { color: var(--ph-act); }
.ph-install:hover { border-color: var(--ph-act); }
.ph-install[hidden], .ph-app .ph-install { display: none; } /* inside the installed app: never a door to install it */
@media (max-width: 420px) {
  /* where the row is tight the motto breaks at its semicolon, never mid-phrase */
  .ph-brand-t small span { display: block; }
  .ph-brand-t small { font-size: 11px; }
  .ph-install { width: 34px; padding: 0; justify-content: center; }
  .ph-install span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* the very smallest phones: «تعرفه» stays in the footer, the header keeps brand, «ورود» and «نصب» */
@media (max-width: 359px) { .ph-nav a[href="/pricing.php"] { display: none; } }

/* ── BUTTONS ──────────────────────────────────────────────────────────────
   One primary per section: solid leaf, no glow at rest — light arrives only on
   hover/focus. Secondaries are outlined or plain text. The old "live" classes
   (.ph-btn-live*, still in other public pages) render as the same calm system. */
.ph-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ph-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--ph-fs-2);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: background-color var(--ph-t-quick) var(--ph-ease), border-color var(--ph-t-quick) var(--ph-ease), color var(--ph-t-quick) var(--ph-ease), transform var(--ph-t-quick) var(--ph-ease);
}
.ph-btn-lg { min-height: 52px; padding: 0.7rem 1.6rem; font-size: var(--ph-fs-3); }
.ph-btn-primary, .ph-btn-live {
  background: var(--ph-act);
  color: var(--ph-act-ink);
}
.ph-btn-primary:hover, .ph-btn-primary:focus-visible,
.ph-btn-live:hover, .ph-btn-live:focus-visible {
  background: var(--ph-act-hover);
  box-shadow: 0 0 0 4px var(--ph-sel);
}
.ph-btn-primary:active, .ph-btn-live:active { transform: translateY(1px); }
.ph-btn-live-soft, .ph-btn-ghost {
  background: transparent;
  color: var(--ph-text);
  border-color: var(--ph-line-2);
}
.ph-btn-live-soft:hover, .ph-btn-ghost:hover { border-color: var(--ph-text-3); background: var(--ph-surface); }
.ph-btn-quiet { background: transparent; color: var(--ph-text-2); font-weight: 400; padding-inline: 0.6rem; }
.ph-btn-quiet:hover { color: var(--ph-text); }
.ph-live-ring, .ph-live-dot { display: none; }
.ph-live-arrow, .ph-arrow {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  transition: transform var(--ph-t-quick) var(--ph-ease);
}
.ph-btn:hover .ph-arrow, .ph-btn:hover .ph-live-arrow { transform: translateX(-3px); }

/* ── PAGE HEAD (inner public pages) ─────────────────────────────────────── */
.ph-hero { position: relative; isolation: isolate; overflow: hidden; }
.ph-hero::before { /* film grain: one tiny tile, static */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--ph-grain-op);
  -webkit-mask-image: linear-gradient(transparent, #000 160px);
  mask-image: linear-gradient(transparent, #000 160px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}
.ph-hero-compact { min-height: auto; padding: clamp(28px, 5vh, 48px) 0 24px; }
.ph-title {
  margin: 0 0 22px;
  font-size: var(--ph-fs-6);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
  color: var(--ph-text);
}
.ph-key, .ph-title em {
  display: inline;
  font-style: normal;
  color: var(--ph-key-b);
  background: linear-gradient(100deg, var(--ph-key-a) 5%, var(--ph-light) 48%, var(--ph-key-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ph-kicker { margin: 0 0 14px; font-size: var(--ph-fs-2); font-weight: 700; color: var(--ph-light); }
.ph-lead {
  margin: 0 0 32px;
  max-width: 30rem;
  text-wrap: pretty;
  font-size: var(--ph-fs-3);
  line-height: 1.85;
  color: var(--ph-text-2);
}

/* ── SECTIONS ───────────────────────────────────────────────────────────── */
.ph-section { padding: clamp(56px, 9vw, 112px) 0 0; }
.ph-section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 38rem; }
.ph-section-head-center { margin-inline: auto; text-align: center; align-items: center; }
.ph-section-title { margin: 0; font-size: var(--ph-fs-5); font-weight: 700; line-height: 1.4; text-wrap: balance; }
.ph-section-desc { margin: 0; color: var(--ph-text-2); font-size: var(--ph-fs-3); line-height: 1.8; }

.ph-caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph-caps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ph-cap { padding: 24px 22px; border-radius: var(--ph-r-2); border: 1px solid var(--ph-line); background: var(--ph-surface); }
.ph-cap strong { display: block; margin-bottom: 6px; font-size: var(--ph-fs-3); font-weight: 700; }
.ph-cap span { display: block; color: var(--ph-text-2); line-height: 1.8; }

.ph-close { padding: clamp(56px, 8vw, 96px) 0; }
.ph-home .ph-close { padding: 0 0 clamp(40px, 6vw, 72px); }
.ph-home .ph-close-panel { max-width: 640px; margin-inline: auto; padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 40px); }
.ph-close-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--ph-r-3);
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
}

.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ph-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 128px;
  padding: 20px 18px;
  border-radius: var(--ph-r-2);
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
  color: var(--ph-text);
  text-decoration: none;
  transition: border-color var(--ph-t-quick) var(--ph-ease), transform var(--ph-t-quick) var(--ph-ease);
}
.ph-tile:hover { border-color: var(--ph-line-2); transform: translateY(-2px); }
.ph-tile-name { font-weight: 700; font-size: var(--ph-fs-3); }
.ph-tile-id { font-size: var(--ph-fs-1); color: var(--ph-text-3); font-family: ui-monospace, Consolas, monospace; direction: ltr; text-align: left; }
.ph-tile-desc { margin: 0; color: var(--ph-text-2); line-height: 1.7; flex: 1; }
.ph-tile-meta { font-size: var(--ph-fs-1); color: var(--ph-link); font-weight: 700; }
.ph-empty { padding: 28px 18px; border: 1px dashed var(--ph-line-2); border-radius: var(--ph-r-2); color: var(--ph-text-2); text-align: center; }

.ph-structure { border: 1px solid var(--ph-line); border-radius: var(--ph-r-2); background: var(--ph-bg-2); overflow: hidden; }
.ph-structure pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: var(--ph-fs-1);
  line-height: 1.7;
  color: var(--ph-text);
  direction: ltr;
  text-align: left;
  white-space: pre;
}
.ph-doc-card { padding: 22px 20px; border-radius: var(--ph-r-2); border: 1px solid var(--ph-line); background: var(--ph-surface); line-height: 1.8; color: var(--ph-text-2); }
.ph-doc-card p { margin: 0 0 12px; color: var(--ph-text); }
.ph-doc-card p:last-child { margin-bottom: 0; }
.ph-doc-list { margin: 0; padding: 0 1.1rem 0 0; color: var(--ph-text-2); }
.ph-doc-list li { margin: 0.35rem 0; line-height: 1.75; }
.ph-table-wrap { overflow-x: auto; border: 1px solid var(--ph-line); border-radius: var(--ph-r-2); background: var(--ph-surface); }
.ph-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.ph-table th, .ph-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--ph-line); vertical-align: top; line-height: 1.6; }
.ph-table th { color: var(--ph-text); font-weight: 700; background: var(--ph-bg-2); }
.ph-table tr:last-child td { border-bottom: 0; }
.ph-table a { color: var(--ph-link); }
.ph-table code, .ph-doc-card code, .ph-section-desc code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86em;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--ph-light);
}

/* ── ASSISTANT SHELVES ──────────────────────────────────────────────────── */
.ph-assistants { --ph-font: "Nazli", "Nazli Fallback", Tahoma, sans-serif; font-family: var(--ph-font); font-size: 1rem; line-height: 1.85; }
.ph-assistants .ph-hero::before { display: none; }
.ph-assistants .ph-hero-compact { padding-top: clamp(16px, 4vh, 32px); }
.ph-assistants .ph-hero + .ph-shelf { padding-top: clamp(24px, 4vw, 40px); }
.ph-assistants .ph-tile { min-height: 0; gap: 4px; padding: 16px 18px; }
.ph-assistants .ph-tile-desc { font-size: var(--ph-fs-2); }
.ph-shelf + .ph-shelf { padding-top: clamp(40px, 6vw, 72px); }
.ph-shelf-title { margin: 0 0 18px; font-size: var(--ph-fs-4); font-weight: 700; line-height: 1.4; }
.ph-shelf .ph-tile-meta { color: var(--ph-light); }

/* ── LEGAL / ABOUT / CONTACT ────────────────────────────────────────────── */
.ph-crumbs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; font-size: var(--ph-fs-1); }
.ph-crumbs a { color: var(--ph-text-2); text-decoration: none; }
.ph-crumbs a:hover { color: var(--ph-text); text-decoration: underline; }
.ph-crumbs span { color: var(--ph-text-3); }
.ph-crumbs span.ph-crumb-current { color: var(--ph-light); font-weight: 700; }
.ph-note {
  padding: 16px 18px;
  border-radius: var(--ph-r-2);
  border: 1px solid var(--ph-line);
  border-inline-start: 3px solid var(--ph-act);
  background: var(--ph-surface);
  color: var(--ph-text);
  line-height: 1.85;
}
.ph-note strong { color: var(--ph-text); }
.ph-note a { color: var(--ph-link); }
.ph-legal-list { margin: 0; padding: 0 1.2rem 0 0; color: var(--ph-text-2); line-height: 1.9; display: flex; flex-direction: column; gap: 14px; }
.ph-legal-list > li::marker { color: var(--ph-light); font-weight: 700; }
.ph-legal-list strong { color: var(--ph-text); }
.ph-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ph-contact-item { padding: 16px 18px; border-radius: var(--ph-r-2); border: 1px solid var(--ph-line); background: var(--ph-surface); }
.ph-contact-item span { display: block; color: var(--ph-text-3); font-size: var(--ph-fs-1); margin-bottom: 4px; }
.ph-contact-item a, .ph-contact-item strong { color: var(--ph-text); text-decoration: none; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.ph-foot {
  position: relative;
  z-index: 1;
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 28px var(--ph-gut) calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ph-line);
  color: var(--ph-text-3);
  font-size: var(--ph-fs-1);
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ph-foot p { margin: 0; }
.ph-foot a { color: var(--ph-text-2); }
.ph-foot .ph-crumbs { margin: 0; }
.ph-foot .ph-brand-t b { font-size: 1rem; }
.ph-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
/* the brand row dissolves into the column so the theme picker can close the page, last of all */
.ph-foot > .ph-foot-row:first-child { display: contents; }
.ph-foot > .ph-foot-row:first-child > .ph-theme { order: 1; align-self: flex-start; }
.ph-foot-row > p { flex: 1 1 18rem; }
/* the trust seal is a government mark: untouched, on its own small paper card */
.ph-enamad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: 6px;
  border-radius: var(--ph-r-1);
  background: var(--ph-paper);
  border: 1px solid var(--ph-line);
  line-height: 0;
}
.ph-enamad img { display: block; width: 72px; height: auto; }
.ph-theme {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--ph-line-2);
}
.ph-theme button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 14px;
  background: transparent;
  color: var(--ph-text-2);
  font: inherit;
  font-size: var(--ph-fs-1);
  cursor: pointer;
}
.ph-theme button[aria-pressed="true"] { background: var(--ph-surface-2); color: var(--ph-text); box-shadow: 0 0 0 1px var(--ph-line-2); }

/* the install card (nabgol-install.js paints it) speaks the page's language here */
.ph-close .nbi-hub-card { margin-top: 4px; }
body.ph .nbi-hub-card.nbi-hub-card { border-color: var(--ph-line-2); background: var(--ph-bg); }
body.ph .nbi-hub-card.nbi-hub-card:hover { border-color: var(--ph-light); }
body.ph .nbi-hub-card .nbi-hub-ico { background: var(--ph-surface-2); color: var(--ph-act-hover); }
body.ph .nbi-hub-card .nbi-hub-go { background: transparent; color: var(--ph-link); border: 1px solid var(--ph-line-2); font-weight: 700; }

/* inner pages: the same still light as the home scenes — gold glow behind the title, the leaf's
   green across from it; static, and faded out long before the band ends so it never makes a seam */
body.ph:not(.ph-home)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(780px, 120vh);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 78% 14%, var(--ph-mist-gold), transparent 72%),
    radial-gradient(40% 46% at 12% 46%, var(--ph-mist-leaf), transparent 72%);
}

/* ── RESPONSIVE (inner pages) ───────────────────────────────────────────── */
@media (max-width: 1080px) { .ph-caps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .ph-caps, .ph-contact-grid { grid-template-columns: 1fr; }
  .ph-caps-4 { grid-template-columns: 1fr 1fr; } /* four numbers read as one block, not four tall cards */
  /* the docs tables fit the phone: identifiers wrap instead of the table scrolling sideways */
  .ph-table { min-width: 0; }
  .ph-table th, .ph-table td { padding: 10px; }
  .ph-table code { overflow-wrap: anywhere; }
  .ph-structure pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .ph-section-head-center { text-align: right; align-items: flex-start; }
  .ph-brand-sub { display: none; }
}
@media (max-width: 380px) {
  .ph-nav { gap: 14px; }
  .ph-nav a { font-size: var(--ph-fs-1); }
}
@media (prefers-reduced-motion: reduce) {
  html.ph-tx, html.ph-tx * { transition: none !important; }
}

/* ══ HOME — three scenes: each one object in one light (the flower, the composer,
   the phone). Moved from docs/_design/brand-hero/src.html; its two gates live in
   live/tools/test_home_scenes.js and test_home_smooth.js. ══════════════════ */
/* the approved preview is set in Nazli itself, not the 113.9% "Vazirmatn" alias — same files */
.ph-home { --ph-font: "Nazli", "Nazli Fallback", Tahoma, sans-serif; font-family: var(--ph-font); font-size: 1rem; line-height: 1.85; }
.ph-home .ph-shell { max-width: 1180px; padding-inline: 20px; }
.ph-home .ph-top { min-height: 64px; position: relative; z-index: 5; }
.ph-home .s1 a, .ph-home .scene a, .ph-home .ph-close a { color: inherit; text-decoration: none; }
.ph-home .key { background: linear-gradient(100deg, var(--ph-key-a) 5%, var(--ph-light) 48%, var(--ph-key-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-home .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* scene 1 · the flower */
.ph-home .s1 { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 28px; --fx: 50%; --fy: 30%;
  background: linear-gradient(transparent 72%, var(--ph-bg)), radial-gradient(ellipse 130% 95% at var(--fx) var(--fy), transparent 38%, var(--ph-vig) 100%); }
.ph-home .s1::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle, var(--ph-dot) 0.9px, transparent 1.3px); background-size: 21px 21px; background-position: center;
  -webkit-mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 0, rgba(0, 0, 0, 0.55) 22%, transparent 58%), linear-gradient(#000 70%, transparent);
  mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 0, rgba(0, 0, 0, 0.55) 22%, transparent 58%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* grain tile 110 px: Chrome counts one tile as an image paint, and a 160 px tile out-sized the headline as a phone's LCP */
.ph-home .s1::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--ph-grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ph-home .hero { display: grid; gap: 8px; align-items: center; }
.ph-home .art { display: flex; flex-direction: column; align-items: center; order: -1; }
.ph-home .flower { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
/* the flower's halo: gold light at night; by day a white light — a warm tint on the paper read as a stain */
.ph-home .flower .halo { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, var(--ph-fh-1), var(--ph-fh-2) 42%, transparent 72%); }
.ph-home .flower .rot { position: absolute; inset: 0; will-change: transform; }
.ph-home .leaf { position: absolute; width: 0; height: 0; }
.ph-home .leaf svg { position: absolute; left: 0; top: 0; overflow: visible; transform-origin: 0 0; will-change: transform; }
.ph-home .flower canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the mark is a character (assets/js/nabgol-sprout.js): four pictures, two of them hands; seeds use the bead colours */
.ph-home .flower { --sprout-seed-hi: var(--ph-seed-hi); --sprout-seed: var(--ph-seed-mid); --sprout-seed-lo: var(--ph-seed-lo); --sprout-halo: var(--ph-seed-glow); --sprout-eye: #24160a; --sprout-spark: var(--ph-spark); --sprout-spark-glow: var(--ph-spark-glow); --sprout-spark-halo: var(--ph-spark-halo); }
.ph-home .flower .mk { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 390 / 345; transform: translate(-50%, -52%); opacity: 0; transition: opacity 0.6s var(--ph-ease); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ph-home .flower .mk.sp-in { opacity: 1; }
.ph-home .flower .mk img { display: block; }
.ph-home .flower .cg { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(0.7); opacity: 0; background: radial-gradient(closest-side, var(--ph-cg-a) 0%, var(--ph-cg-b) 35%, transparent 72%); pointer-events: none; will-change: transform, opacity; }
.ph-home .lit { position: absolute; width: 0; height: 0; }
.ph-home .lit .core { position: absolute; left: 0; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, var(--ph-seed-hi), var(--ph-seed-mid) 52%, var(--ph-seed-lo)); box-shadow: 0 0 8px 1px var(--ph-seed-glow); opacity: 0; }
.ph-home .lit .ring { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 1px solid var(--ph-key-a); opacity: 0; }
.ph-home .lab { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.ph-home .lab span { position: absolute; left: 0; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; font-size: var(--ph-fs-1); line-height: 1; padding: 7px 11px 8px; border-radius: 999px; color: var(--ph-text); background: var(--ph-surface); border: 1px solid var(--ph-line-2); box-shadow: 0 0 0 4px var(--ph-bg), 0 10px 26px -10px var(--ph-lift); opacity: 0; }
.ph-home .legend { margin: 10px 0 0; font-size: var(--ph-fs-1); color: var(--ph-text-3); display: flex; gap: 14px; align-items: center; }
.ph-home .legend span { display: inline-flex; align-items: center; gap: 6px; }
.ph-home .legend .sd, .ph-home .door.tut b::before { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, var(--ph-seed-hi), var(--ph-seed-lo)); }
.ph-home .legend .lf, .ph-home .door.ast b::before { width: 6px; height: 11px; border-radius: 50% / 60% 60% 40% 40%; background: linear-gradient(var(--ph-leaf-hi), var(--ph-leaf-lo)); transform: rotate(30deg); }
.ph-home .copy { text-align: center; }
.ph-home .copy h1 { margin: 22px 0 0; font-size: var(--ph-fs-h1); line-height: 1.3; font-weight: 700; text-wrap: balance; }
.ph-home .copy .sub { margin: 16px auto 0; max-width: 30em; font-size: var(--ph-fs-3); color: var(--ph-text-2); text-wrap: balance; }
.ph-home .doors { margin: 28px auto 0; max-width: 520px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-home .door { position: relative; display: block; text-align: right; border-radius: 18px; padding: 14px 16px 13px 32px; border: 1px solid transparent;
  background: linear-gradient(var(--ph-surface), var(--ph-surface)) padding-box, linear-gradient(180deg, var(--ph-line-2), var(--ph-line)) border-box;
  box-shadow: var(--ph-shadow), var(--ph-shadow-lg); transition: transform 0.18s var(--ph-ease), background 0.18s var(--ph-ease); }
.ph-home .door:hover { transform: translateY(-2px); background: linear-gradient(var(--ph-surface-2), var(--ph-surface-2)) padding-box, linear-gradient(180deg, var(--ph-light), var(--ph-line)) border-box; }
.ph-home .door b { display: flex; align-items: center; gap: 8px; font-size: 1.06rem; white-space: nowrap; }
.ph-home .door b::before { content: ""; }
.ph-home .door.tut b::before { width: 8px; height: 8px; }
.ph-home .door small { display: block; font-size: var(--ph-fs-1); color: var(--ph-text-2); margin-top: 1px; }
/* the live doors (owner 1405/07/14, the old «live» buttons): a light on the border that breathes and a glowing
   dot. Opacity only (a turning light cost 12% of a slow phone's main thread, measured); running only while the hero is on screen (.s1.is-live, set by
   platform-home.js) and never with reduced motion */
/* no mask (a masked layer repaints every frame): the light turns behind an opaque inner surface, clipped by the rounded edge */
.ph-home .door .lr { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ph-home .door .lr::after { content: ""; position: absolute; inset: 1.5px; border-radius: 16.5px; background: var(--ph-surface); }
.ph-home .door.lv:hover .lr::after { background: var(--ph-surface-2); }
.ph-home .door.lv > b, .ph-home .door.lv > small, .ph-home .door.lv > .ar { position: relative; z-index: 1; }
.ph-home .door.lv > .ar { position: absolute; }
.ph-home .door .lr i { position: absolute; inset: 0; background: conic-gradient(from 200deg at 15% 50%, transparent 0deg 250deg, var(--ph-act-hover) 300deg, transparent 350deg); opacity: 0.25;
  animation: ph-door-breathe 3.2s ease-in-out infinite alternate paused; }
.ph-home .door.ast .lr i { animation-delay: -1.6s; }
.ph-home .door .ld { position: relative; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%; background: var(--ph-act-hover); vertical-align: 1px; }
.ph-home .door .ld::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(closest-side, var(--ph-act-hover), transparent); opacity: 0; animation: ph-door-ping 1.6s ease-in-out infinite alternate paused; }
.ph-home .door.ast .ld::after { animation-delay: -0.8s; }
.ph-home .s1.is-live .door .lr i, .ph-home .s1.is-live .door .ld::after { animation-play-state: running; }
@keyframes ph-door-breathe { to { opacity: 1; } }
@keyframes ph-door-ping { to { opacity: 0.85; } }
.ph-home .door .ar { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ph-text-3); }

/* shared scene heading */
.ph-home .scene { position: relative; isolation: isolate; padding-block: 48px; overflow-x: clip; }
/* the page is never one flat colour: a gold haze on one side, leaf light on the other — both fade out
   well inside the section (centre 40/62 %, gone by 70 % of the radius), so no border ever shows a seam */
.ph-home .scene::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 40% at 80% 38%, var(--ph-mist-gold), transparent 70%), radial-gradient(42% 40% at 14% 64%, var(--ph-mist-leaf), transparent 70%); }
.ph-home #s3::before { background: radial-gradient(42% 40% at 16% 38%, var(--ph-mist-leaf), transparent 70%), radial-gradient(40% 40% at 84% 64%, var(--ph-mist-gold), transparent 70%); }
.ph-home .sh { text-align: center; max-width: 640px; margin-inline: auto; }
.ph-home .sh h2 .key { display: inline-block; text-wrap: balance; }
.ph-home .sh h2 { margin: 0; font-size: var(--ph-fs-h2); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.ph-home .sh p { margin: 12px auto 0; max-width: 28em; font-size: var(--ph-fs-3); color: var(--ph-text-2); text-wrap: pretty; }
.ph-home .rule { height: 1px; max-width: 1140px; margin-inline: auto; background: linear-gradient(90deg, transparent, var(--ph-line-2), transparent); }

/* scene 2 · just ask */
.ph-home .ask { max-width: 600px; margin: 28px auto 0; }
.ph-home .cmp { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 26px; border: 1px solid transparent;
  background: linear-gradient(var(--ph-surface), var(--ph-surface)) padding-box, linear-gradient(180deg, var(--ph-light), var(--ph-line) 46%, var(--ph-line-2)) border-box;
  box-shadow: var(--ph-shadow-lg), 0 0 0 5px var(--ph-glow-2), 0 0 48px -14px var(--ph-glow); }
.ph-home .cmp .send { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ph-act); color: var(--ph-act-ink); }
.ph-home .cmp .tx { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding-inline: 6px; font-size: var(--ph-fs-2); white-space: nowrap; overflow: hidden; }
.ph-home .cmp .tx .t { overflow: hidden; text-overflow: clip; }
.ph-home .cmp .caret { flex: none; width: 1.5px; height: 18px; background: var(--ph-light); }
.ph-home #s2.in .cmp .caret { animation: ph-blink 1.1s steps(1) infinite; }
@keyframes ph-blink { 50% { opacity: 0; } }
.ph-home .cmp .ph { flex: none; width: 30px; height: 36px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px var(--ph-line-2); }
.ph-home .cmp .ph[hidden] { display: none; }
.ph-home .cmp .ib { flex: none; display: grid; place-items: center; color: var(--ph-text-3); width: 34px; height: 36px; }
.ph-home .cmp .ib.bk { border: 1px solid var(--ph-line-2); border-radius: 12px; color: var(--ph-text-2); }
.ph-home .who { display: flex; align-items: center; gap: 8px; margin: 16px 6px 0; font-size: var(--ph-fs-1); color: var(--ph-text-3); min-height: 24px; }
.ph-home .av { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--ph-dev-black) url(/assets/brand/mark-96.webp) center/112% no-repeat; box-shadow: 0 0 0 1px var(--ph-ring); }
.ph-home .who b { color: var(--ph-text); font-weight: 700; font-size: var(--ph-fs-2); }
.ph-home .who .st { display: inline-flex; align-items: center; gap: 5px; }
.ph-home .who .st i { width: 5px; height: 5px; border-radius: 50%; background: var(--ph-act-hover); }
.ph-home .who .st i.th { background: var(--ph-light); }
/* every sample in ONE grid cell: the frame is exactly the tallest sample, each sample centred in it (no fixed height, no empty band under a short one) */
.ph-home .outs { display: grid; margin-top: 10px; }
.ph-home .out { grid-area: 1 / 1; align-self: center; min-width: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ph-ease), transform 0.45s var(--ph-ease); pointer-events: none; }
.ph-home .out.on { opacity: 1; transform: none; pointer-events: auto; }
.ph-home .out.on.dim { opacity: 0.18; transform: none; }
.ph-home .paper { background: var(--ph-paper); color: var(--ph-sheet-ink); border-radius: 14px; padding: 16px 18px; font-size: 12.5px; line-height: 1.9; box-shadow: var(--ph-shadow-lg), 0 0 0 1px var(--ph-sheet-line); }
.ph-home .paper .ph1 { text-align: center; font-size: 11.5px; color: var(--ph-sheet-ink-2); }
.ph-home .paper .ph2 { display: flex; justify-content: space-between; border-block: 1px solid var(--ph-sheet-line); padding: 4px 0; margin: 6px 0 10px; font-weight: 700; font-size: 12px; }
.ph-home .paper .q { display: flex; gap: 6px; }
.ph-home .paper .q2 { margin-top: 2px; }
.ph-home .paper .gap { padding-right: 16px; color: var(--ph-sheet-ink-2); line-height: 1.4; }
.ph-home .paper .q b { flex: none; }
.ph-home .paper .tf { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 16px; }
.ph-home .paper .tf span { display: inline-flex; gap: 6px; }
.ph-home .paper .tf i { display: inline-grid; place-items: center; width: 20px; height: 18px; border: 1px solid var(--ph-sheet-line); border-radius: 4px; font-style: normal; font-size: 10.5px; color: var(--ph-sheet-ink-2); }
.ph-home .paper .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding-right: 16px; color: var(--ph-sheet-ink-2); }
@media (min-width: 640px) { .ph-home .paper .opts { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.ph-home .paper .lt { margin-top: 6px; }
.ph-home .paper .sg { display: block; text-align: left; margin-top: 4px; }
.ph-home .chip { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 13px; background: var(--ph-surface); border: 1px solid var(--ph-line-2); width: fit-content; max-width: 100%; }
.ph-home .chip .fi { flex: none; width: 28px; height: 32px; border-radius: 6px; display: grid; place-items: center; font: 700 11px/1 Arial, sans-serif; color: var(--ph-dev-white); }
.ph-home .fi.pdf { background: linear-gradient(160deg, var(--ph-fi-pdf-a), var(--ph-fi-pdf-b)); }
.ph-home .fi.doc { background: linear-gradient(160deg, var(--ph-fi-doc-a), var(--ph-fi-doc-b)); }
.ph-home .chip b { display: block; font-size: var(--ph-fs-1); font-weight: 700; line-height: 1.5; }
.ph-home .chip small { display: block; font-size: 12px; color: var(--ph-text-3); line-height: 1.4; }
.ph-home .box { border-radius: 14px; background: var(--ph-surface); border: 1px solid var(--ph-line-2); box-shadow: var(--ph-shadow-lg); overflow: hidden; }
.ph-home .box .bh { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--ph-line); font-size: var(--ph-fs-1); color: var(--ph-text-2); }
.ph-home .box .bh .cp { font-size: 12px; color: var(--ph-act-hover); border: 1px solid var(--ph-line-2); border-radius: 999px; padding: 2px 12px; line-height: 1.6; }
.ph-home .box .bb { padding: 12px 16px 14px; font-size: var(--ph-fs-2); line-height: 2; }
.ph-home .box .dim2 { color: var(--ph-text-2); }
.ph-home .steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ph-home .box b + .steps, .ph-home .box .steps + .dim2 { display: block; margin-top: 8px; }
.ph-home .steps li { display: flex; gap: 10px; align-items: baseline; }
.ph-home .steps li::before { counter-increment: s; content: counter(s, persian); flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; color: var(--ph-light); border: 1px solid var(--ph-line-2); }
.ph-home .eq { font-family: var(--ph-font); font-size: 1.05rem; direction: ltr; unicode-bidi: isolate; }
.ph-home .eqs { display: grid; gap: 4px; justify-items: center; padding: 6px 0; }
.ph-home .eqs .eq { color: var(--ph-text-2); }
.ph-home .eqs .fin { color: var(--ph-text); border: 1px solid var(--ph-light); border-radius: 10px; padding: 2px 14px; background: var(--ph-glow-2); }
.ph-home .note { margin: 10px 0 0; font-size: 12px; color: var(--ph-text-3); }
.ph-home .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin: 26px auto 0; padding: 0; list-style: none; }
.ph-home .tabs button { position: relative; overflow: hidden; font: inherit; font-size: var(--ph-fs-1); color: var(--ph-text-2); background: transparent; border: 1px solid var(--ph-line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.ph-home .tabs button[aria-selected="true"] { color: var(--ph-text); border-color: var(--ph-light); }
.ph-home .pg { position: absolute; inset: auto 0 0 0; height: 2px; background: var(--ph-light); transform: scaleX(0); transform-origin: right; }

/* handwriting (the notebook photo) */
.ph-home .nb { position: relative; width: 100%; height: 100%; background: var(--ph-nb-paper); background-image: repeating-linear-gradient(transparent 0 21px, var(--ph-nb-rule) 21px 22px); overflow: hidden; }
.ph-home .nb::before { content: ""; position: absolute; top: 0; bottom: 0; right: 16%; width: 1px; background: var(--ph-nb-margin); }
.ph-home .nb .hw { position: absolute; font-family: "Segoe Print", "Comic Sans MS", cursive; font-size: 16px; color: var(--ph-nb-ink); direction: ltr; white-space: nowrap; transform: rotate(-2deg); }
.ph-home .cmp .nb { background-image: repeating-linear-gradient(transparent 0 5px, var(--ph-nb-rule) 5px 6px); }
.ph-home .cmp .nb .hw { font-size: 6px; }

/* scene 3 · the phone */
/* phone: heading, phone, rows (the column dissolves); laptop: heading and rows one column beside the phone */
.ph-home .live { display: grid; gap: 28px; align-items: center; }
.ph-home .live .tx { display: contents; }
.ph-home .live .sh { order: 1; }
.ph-home .live .stage { order: 2; }
.ph-home .live .feats { order: 3; }
.ph-home .stage { position: relative; display: grid; place-items: center; padding: 8px 0 0; }
.ph-home .stage .back { position: absolute; width: 640px; height: 640px; max-width: none; left: 50%; top: 52%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, var(--ph-glow), var(--ph-glow-2) 45%, transparent 72%); pointer-events: none; }
.ph-home .phone { position: relative; width: min(280px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, var(--ph-phone-a), var(--ph-phone-b) 30%, var(--ph-phone-b) 70%, var(--ph-phone-a));
  box-shadow: 0 0 0 1px var(--ph-phone-rim), 0 -14px 70px -12px var(--ph-glow), 0 50px 90px -30px var(--ph-lift); }
.ph-home .scr { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--ph-dev-bg); }
.ph-home .sc { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ph-ease); }
.ph-home .sc.on { opacity: 1; }
.ph-home .sb { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 40px; padding: 14px 24px 0; display: flex; justify-content: space-between; direction: ltr; font: 600 12px/1 -apple-system, "Segoe UI", sans-serif; color: var(--ph-dev-ink); }
.ph-home .isl { position: absolute; z-index: 4; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 13px; background: var(--ph-dev-black); }
.ph-home .ab { position: absolute; z-index: 2; top: 40px; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--ph-dev-bar); border-bottom: 1px solid var(--ph-dev-line); font-size: 12.5px; color: var(--ph-dev-ink); }
.ph-home .ab .av { width: 26px; height: 26px; }
.ph-home .ab small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ph-dev-live); }
.ph-home .ab small i { width: 6px; height: 6px; border-radius: 50%; background: var(--ph-dev-rec); }
.ph-home .ab b { display: block; font-weight: 700; line-height: 1.3; }
.ph-home .pg-book { position: absolute; top: 92px; left: 12px; right: 12px; bottom: 150px; border-radius: 10px; background: var(--ph-dev-white) center / contain no-repeat; box-shadow: 0 10px 30px -10px var(--ph-dev-black); }
.ph-home .subt { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 96px; padding: 8px 12px; border-radius: 12px; background: var(--ph-dev-dim); color: var(--ph-dev-white); font-size: 12px; line-height: 1.75; text-align: center; }
.ph-home .lb { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 86px; padding: 14px 16px 22px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(transparent, var(--ph-dev-fade) 40%); }
.ph-home .wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.ph-home .wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--ph-dev-live); transform: scaleY(0.25); transform-origin: center; }
.ph-home .lb .pill { font-size: 11px; color: var(--ph-dev-ink-2); border: 1px solid var(--ph-dev-line); border-radius: 999px; padding: 3px 10px; }
.ph-home .lb .rd, .ph-home .lb .mc { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ph-dev-white); }
.ph-home .lb .rd { background: var(--ph-dev-rec); }
.ph-home .lb .mc { background: var(--ph-dev-line); }
.ph-home .cam .nb { position: absolute; inset: -8% -22%; width: auto; height: auto; transform: rotate(3deg); }
.ph-home .cam .br4 { position: absolute; inset: 110px 26px 170px; pointer-events: none; }
.ph-home .cam .br4 i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--ph-dev-ink); }
.ph-home .cam .br4 i:nth-child(1) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.ph-home .cam .br4 i:nth-child(2) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.ph-home .cam .br4 i:nth-child(3) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.ph-home .cam .br4 i:nth-child(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.ph-home .cam .cb { position: absolute; z-index: 2; top: 92px; right: 14px; font-size: 10.5px; color: var(--ph-dev-white); background: var(--ph-dev-dim); border-radius: 999px; padding: 3px 10px; }
.ph-home .shot { background: var(--ph-dev-bg) 0 40px / 100% auto no-repeat; }
.ph-home .feats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 520px; margin-inline: auto; width: 100%; }
.ph-home .feat { position: relative; overflow: hidden; display: block; width: 100%; text-align: right; font: inherit; color: inherit; cursor: pointer; border-radius: 16px; padding: 14px 18px; background: transparent; border: 1px solid var(--ph-line); }
.ph-home .feat b { display: block; font-size: var(--ph-fs-3); }
.ph-home .feat span { display: block; font-size: var(--ph-fs-2); color: var(--ph-text-2); line-height: 1.8; }
.ph-home .feat[aria-selected="true"] { background: var(--ph-surface); border-color: var(--ph-line-2); }

/* closing: the same two doors, then the install card */
.ph-home .ph-close .doors { margin-top: 0; }

@media (min-width: 900px) {
  .ph-home .s1 { padding-bottom: 0; --fx: 30%; --fy: 52%; }
  .ph-home .hero { grid-template-columns: 1fr 1fr; gap: 56px; min-height: min(calc(100svh - 64px), 760px); padding-block: 8px 40px; }
  .ph-home .art { order: 0; position: relative; }
  .ph-home .flower { width: min(100%, 560px, calc(100svh - 64px - 132px)); min-width: 300px; }
  .ph-home .legend { position: absolute; top: 100%; left: 0; right: 0; justify-content: center; margin-top: 6px; }
  .ph-home .copy { text-align: right; }
  .ph-home .copy .sub { margin-inline: 0; }
  .ph-home .copy .doors { margin-inline: 0; }
  .ph-home .scene { padding-block: 72px; }
  .ph-home .live { grid-template-columns: 1fr 1fr; gap: 56px; max-width: 980px; margin-inline: auto; }
  .ph-home .live .tx { display: flex; flex-direction: column; gap: 28px; }
  .ph-home .live .sh { text-align: right; margin: 0; }
  .ph-home .live .sh h2 { font-size: clamp(1.8rem, 1rem + 1.6vw, 2.5rem); }
  .ph-home .live .sh p { margin-inline: 0; }
  .ph-home .feats { margin-inline: 0; }
  .ph-home .phone { width: 300px; }
}
@media (max-width: 560px) {
  /* the headline must stay the largest paint on a phone (LCP): the line under it one step smaller */
  .ph-home .copy .sub { font-size: var(--ph-fs-2); line-height: 1.8; }
  .ph-home .cmp .tx { white-space: normal; min-height: 3em; line-height: 1.5; overflow: visible; }
  .ph-home .cmp .tx .t { overflow: visible; }
  .ph-home .cmp .tx .t::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-inline-start: 2px; vertical-align: -0.2em; background: var(--ph-light); }
  .ph-home #s2.in .cmp .tx .t::after { animation: ph-blink 1.1s steps(1) infinite; }
  .ph-home .cmp .caret { display: none; }
}
@media (max-width: 420px) { .ph-home .cmp .ib:not(.bk) { display: none; } .ph-home .ph-close .doors { grid-template-columns: 1fr; } }
@media (max-width: 359px) { .ph-home .doors { grid-template-columns: 1fr; } }
@media (max-width: 340px) {
  .ph-home .copy h1 { font-size: 1.9rem; }
  .ph-home .ph-brand-t small { font-size: 10.5px; }
  .ph-home .ph-mark { width: 30px; height: 30px; }
  .ph-home .ph-brand { gap: 8px; }
  .ph-home .ph-nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-home .cmp .caret, .ph-home .cmp .tx .t::after { animation: none !important; }
  .ph-home .out, .ph-home .sc, .ph-home .door, .ph-home .flower .mk { transition: none; }
}
