/* نوتادو — one stylesheet for the landing page and its inner pages. Tokens first (dark, then light re-points them). */
@font-face { font-family: 'Dana'; src: url('fonts/Dana-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Dana'; src: url('fonts/Dana-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Dana'; src: url('fonts/Dana-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Dana'; src: url('fonts/Dana-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
/* Samarqand Pro — display face for headings only; body stays Dana */
@font-face { font-family: 'Samarqand'; src: url('fonts/Samarqand-VF.woff2') format('woff2-variations'), url('fonts/Samarqand-VF.woff2') format('woff2'); font-weight: 300 1000; font-display: swap; }

/* ——— tokens: dark first (the app's own look), light re-points the same names ——— */
:root {
  color-scheme: dark;
  --bg: #0b0604;
  --surface: #140a05;
  --surface-2: #1d0f07;
  --line: rgb(255 228 205 / 0.09);
  --line-strong: rgb(255 228 205 / 0.16);
  --text: #fff4ec;
  --muted: #c9a793;
  --faint: #8c6b58;
  --accent: #f45d0c;
  --accent-hi: #ff7a2b;
  --accent-ink: #ffb27a;
  --on-accent: #ffffff;
  --glow: rgb(244 93 12 / 0.34);
  --header: rgb(11 6 4 / 0.78);
  --word-top: #ff9e5e;
  --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f2ed; --surface: #fdfbf8; --surface-2: #efe8e0;
    --line: rgb(58 26 10 / 0.09); --line-strong: rgb(58 26 10 / 0.16);
    --text: #24120a; --muted: #6e4b39; --faint: #9c7c69;
    --accent: #d94806; --accent-hi: #f45d0c; --accent-ink: #b43f08; --on-accent: #ffffff;
    --glow: rgb(217 72 6 / 0.16); --header: rgb(246 242 237 / 0.82);
    --word-top: #e0550b; --shadow: 0 30px 70px -34px rgb(58 26 10 / 0.35);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2ed; --surface: #fdfbf8; --surface-2: #efe8e0;
  --line: rgb(58 26 10 / 0.09); --line-strong: rgb(58 26 10 / 0.16);
  --text: #24120a; --muted: #6e4b39; --faint: #9c7c69;
  --accent: #d94806; --accent-hi: #f45d0c; --accent-ink: #b43f08; --on-accent: #ffffff;
  --glow: rgb(217 72 6 / 0.16); --header: rgb(246 242 237 / 0.82);
  --word-top: #e0550b; --shadow: 0 30px 70px -34px rgb(58 26 10 / 0.35);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0604; --surface: #140a05; --surface-2: #1d0f07;
  --line: rgb(255 228 205 / 0.09); --line-strong: rgb(255 228 205 / 0.16);
  --text: #fff4ec; --muted: #c9a793; --faint: #8c6b58;
  --accent: #f45d0c; --accent-hi: #ff7a2b; --accent-ink: #ffb27a; --on-accent: #ffffff;
  --glow: rgb(244 93 12 / 0.34); --header: rgb(11 6 4 / 0.78);
  --word-top: #ff9e5e; --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.8 'Dana', Tahoma, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
/* Persian script: no negative tracking on the display face, it breaks the joins */
h1, h2, h3, .brand, .wordmark { font-family: 'Samarqand', 'Dana', Tahoma, sans-serif; letter-spacing: 0 !important; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 8px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-ink); letter-spacing: 0.02em; }
.section { padding-block: 104px; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ——— buttons ——— */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding-inline: 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(-3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 34px -12px var(--glow); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 42px; padding-inline: 18px; font-size: 15px; }

/* ——— orb (the app's voice sphere, CSS only) ——— */
.orb { position: relative; border-radius: 50%; flex: none; }
.orb::before {
  content: ''; position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 110 30 / .5), rgb(255 80 10 / .14) 45%, transparent 70%);
  filter: blur(14px);
}
.orb i {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(circle at 34% 28%, #fff1e0 0%, #ffc28a 12%, #ff8a3a 30%, #f25a0d 50%, #a8320a 72%, #3d1005 100%);
  animation: blob 9s ease-in-out infinite;
  box-shadow: 0 18px 60px -14px rgb(255 90 20 / .6);
}
.orb i::after {
  content: ''; position: absolute; inset: -30%;
  background: conic-gradient(from 0deg, transparent 0 20%, #ffb070 30%, transparent 45%, #ff5a1a 65%, transparent 80%);
  mix-blend-mode: screen; opacity: .7; filter: blur(10px);
  animation: spin 14s linear infinite;
}
.orb.busy i { animation-duration: 2.6s; }
.orb.busy i::after { animation-duration: 2s; }
@keyframes blob {
  0%, 100% { border-radius: 50%; }
  25% { border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
  50% { border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%; }
  75% { border-radius: 53% 47% 60% 40% / 42% 55% 45% 58%; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— header + mega menu ——— */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.scrolled, .header.menu-open { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.brand .orb { width: 26px; height: 26px; }
.brand .orb::before { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding-inline: 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav-link .ico { width: 16px; height: 16px; transition: transform .25s ease; }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.header-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.login { font-size: 15px; font-weight: 500; color: var(--muted); padding-inline: 12px; }
.login:hover { color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); }
.burger .ico { width: 22px; height: 22px; }

.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; gap: 36px; padding-block: 36px 40px; }
.mega-grid.types { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr) 300px; }
.mega-col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: .04em; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega-item { display: flex; gap: 12px; padding: 10px; margin-inline: -10px; border-radius: 14px; transition: background-color .2s; }
.mega-item:hover { background: var(--surface-2); }
.mega-item .tile {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: color-mix(in oklab, var(--accent) 13%, transparent); color: var(--accent-ink);
}
.mega-item b { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.mega-item span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.mega-feature {
  position: relative; overflow: hidden; border-radius: 20px; padding: 24px;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--accent) 30%, var(--surface-2)), var(--surface-2) 70%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 240px;
}
/* orb sits in the flow and pushes the text to the bottom, so it can never cover the title */
.mega-feature .orb { width: 72px; height: 72px; margin-bottom: auto; }
.mega-feature .orb + b { margin-top: 20px; }
.mega-feature b { font-size: 18px; font-weight: 900; line-height: 1.5; }
.mega-feature span { font-size: 14px; color: var(--muted); }
.mega-feature .more { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.mega-feature .more .ico { width: 16px; height: 16px; }
.mega-item .type-sections { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.type-sections em { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.mega-item:hover .type-sections em { background: var(--bg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
  background: var(--bg); overflow-y: auto; padding: 12px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  display: none;
}
.drawer.open { display: block; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding-block: 18px; font-size: 19px; font-weight: 700; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .ico { transition: transform .25s; }
.drawer details[open] summary .ico { transform: rotate(180deg); }
.drawer .d-list { display: grid; gap: 2px; padding-bottom: 14px; }
.drawer .d-list a { display: flex; gap: 12px; align-items: center; padding: 10px 4px; color: var(--muted); font-size: 16px; }
.drawer .d-list a .ico { color: var(--accent-ink); }
.drawer > a.d-plain { display: block; padding-block: 18px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer .d-cta { display: grid; gap: 10px; margin-top: 28px; }
.drawer .d-cta .btn { justify-content: center; }

/* ——— hero ——— */
.hero { position: relative; padding-block: 72px 96px; overflow: clip; }
.hero::before {
  content: ''; position: absolute; width: 900px; height: 700px; inset-inline-end: -300px; top: -260px;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); font-weight: 900; line-height: 1.18; letter-spacing: -0.025em; margin-top: 30px; }
.hero h1 .dot { color: var(--accent); }
.hero .lead { margin-top: 24px; font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); max-width: 30em; line-height: 1.9; }
.hero .lead b { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: var(--faint); }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes .ico { width: 16px; height: 16px; color: var(--accent-ink); }
.pill-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-inline: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.pill-eyebrow b { font-size: 12px; font-weight: 700; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 1px 10px; }

/* voice demo */
.demo {
  position: relative; border-radius: 28px; padding: 26px;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.demo-top { display: flex; align-items: center; gap: 16px; }
.demo-top .orb { width: 58px; height: 58px; }
.demo-status { display: grid; }
.demo-status b { font-size: 15px; font-weight: 700; }
.demo-status span { font-size: 13px; color: var(--faint); }
.wave { margin-inline-start: auto; display: flex; gap: 3px; align-items: center; height: 28px; }
.wave i { width: 3px; height: 30%; border-radius: 3px; background: var(--accent); opacity: .75; }
.demo.listening .wave i { animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s !important; } .wave i:nth-child(3) { animation-delay: -.5s !important; }
.wave i:nth-child(4) { animation-delay: -.1s !important; } .wave i:nth-child(5) { animation-delay: -.7s !important; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.said {
  margin-top: 22px; min-height: 3.6em; font-size: clamp(19px, 2.1vw, 23px); font-weight: 700; line-height: 1.7;
}
.said .q { color: var(--accent); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -0.15em; margin-inline: 2px; animation: caret 1s steps(1) infinite; }
.demo:not(.listening) .caret { opacity: 0; animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.routes-label { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; }
.routes { display: grid; gap: 10px; margin-top: 12px; min-height: 172px; align-content: start; }
.route {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: rise .45s cubic-bezier(.2,.8,.2,1) both;
}
.route.out { animation: fall .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fall { to { opacity: 0; transform: translateY(-6px); } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-inline: 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  background: color-mix(in oklab, var(--k) 17%, transparent);
  color: color-mix(in oklab, var(--k) 60%, var(--text));
}
.chip .ico { width: 15px; height: 15px; }
.route .what { font-size: 15.5px; line-height: 1.5; }
.route .what b { font-weight: 700; }
.route .what span { color: var(--muted); }
.route .to { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.route .to .ico { width: 15px; height: 15px; color: var(--faint); }
.route .to b { color: var(--text); font-weight: 700; }
.demo-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.demo-dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .3s, background-color .3s; }
.demo-dots button[aria-current="true"] { width: 26px; background: var(--accent); }

/* ——— how it works ——— */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 28px 32px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step .num { font-size: 15px; font-weight: 900; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 18px; font-size: 24px; font-weight: 900; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.step .example { margin-top: 20px; font-size: 14px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 14px; }
.step .example b { color: var(--text); font-weight: 500; }

/* ——— for the owner ——— */
.owner-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.points { display: grid; gap: 28px; }
.point { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.point .tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 13%, transparent); color: var(--accent-ink); }
.point .tile .ico { width: 22px; height: 22px; }
.point h3 { font-size: 19px; font-weight: 700; }
.point p { margin-top: 4px; color: var(--muted); font-size: 16px; }

.board { border-radius: 28px; padding: 22px; background: linear-gradient(170deg, var(--surface-2), var(--surface)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 4px 4px 16px; }
.board-head b { font-size: 17px; font-weight: 900; }
.board-head span { font-size: 13px; color: var(--faint); }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .18); animation: livepulse 2s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / .5); } 100% { box-shadow: 0 0 0 9px rgb(34 197 94 / 0); } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 16px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat b { display: block; margin-top: 4px; font-size: 26px; font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 13px; font-weight: 500; color: var(--faint); }
.stat.attn { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 45%, transparent); background: color-mix(in oklab, var(--accent) 8%, var(--bg)); }
.stat.attn b { color: var(--accent-ink); }
.ask { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.ask .chip { --k: #f97316; }
.ask .txt { flex: 1 1 180px; font-size: 14.5px; line-height: 1.6; }
.ask .txt span { color: var(--muted); display: block; font-size: 13px; }
.ask .acts { display: flex; gap: 6px; }
.ask .acts span { height: 34px; padding-inline: 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 700; }
.ask .acts .ok { background: var(--accent); color: var(--on-accent); }
.ask .acts .no { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.chart { margin-top: 10px; padding: 16px 16px 12px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.chart-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 118px; align-items: end; margin-top: 12px; }
.bar { display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 4px; height: 100%; align-content: end; }
.bar em { font-style: normal; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bar i { width: 100%; max-width: 30px; border-radius: 8px 8px 3px 3px; background: color-mix(in oklab, var(--accent) 38%, transparent); height: calc(var(--v) / 68 * 84px); }
.bar.today i { background: var(--accent); }
.bar.today em { color: var(--accent-ink); font-weight: 700; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 6px; font-size: 12px; color: var(--faint); text-align: center; }

/* ——— faq ——— */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 22px; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .3s, background-color .3s; }
.faq summary .pm .ico { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); box-shadow: none; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 40em; }

/* ——— final call ——— */
.final { position: relative; overflow: hidden; border-radius: 36px; padding: 72px 32px; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; justify-items: center; gap: 18px; }
.final::before { content: ''; position: absolute; width: 700px; height: 500px; left: 50%; top: -60%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); }
.final > * { position: relative; }
.final .orb { width: 74px; height: 74px; }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; max-width: 16em; }
.final p { color: var(--muted); font-size: 18px; max-width: 34em; }
.final .hero-actions { justify-content: center; margin-top: 12px; }

/* ——— footer ——— */
.footer { position: relative; margin-top: 120px; overflow: hidden; border-top: 1px solid var(--line); }
.footer::before { content: ''; position: absolute; width: 1200px; height: 700px; left: 50%; bottom: -420px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.ticker { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(50%); } }
.say { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding-inline: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; white-space: nowrap; }
.say .chip { height: 26px; font-size: 12px; }
.say q { quotes: '«' '»'; color: var(--text); }

.foot-main { position: relative; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 64px 40px; }
.foot-brand p { margin-top: 16px; color: var(--muted); font-size: 15.5px; max-width: 22em; }
.foot-brand .brand { font-size: 26px; }
.foot-brand .brand .orb { width: 32px; height: 32px; }
.contact { margin-top: 22px; display: grid; gap: 8px; font-size: 15px; }
.contact span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.contact .ico { width: 17px; height: 17px; color: var(--accent-ink); }
.contact bdi { color: var(--text); user-select: all; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { height: 38px; padding-inline: 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); transition: color .2s, background-color .2s; }
.socials a:hover { color: var(--text); background: var(--surface-2); }
.foot-col h4 { margin: 0 0 16px; font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: .04em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 15.5px; color: var(--muted); transition: color .2s; position: relative; }
.foot-col a:hover { color: var(--text); }
.foot-col a::after { content: ''; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.foot-col a:hover::after { transform: scaleX(1); }

.wordmark {
  position: relative; display: block; text-align: center; user-select: none; pointer-events: none;
  font-size: clamp(96px, 27vw, 380px); font-weight: 900; line-height: .9; letter-spacing: -0.04em;
  margin-bottom: -0.2em; padding-top: .06em;
  background: linear-gradient(180deg, var(--word-top) 0%, color-mix(in oklab, var(--accent) 40%, transparent) 55%, transparent 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.theme-switch { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--bg); }
.theme-switch button { height: 32px; padding-inline: 14px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.theme-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); font-weight: 700; }

/* ——— responsive ——— */
/* ——— chain: the owner's feed, one item through one day ——— */
.chain-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.chain { list-style: none; display: grid; gap: 8px; padding-top: 2px; }
.ev {
  position: relative; display: grid; gap: 6px;
  padding: 14px 16px; padding-inline-start: 36px; border-radius: 18px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i) * .13s);
}
.chain.js:not(.in) .ev { opacity: 0; transform: translateY(12px); }
.ev .dot {
  position: absolute; inset-inline-start: 14px; top: 20px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--k); box-shadow: 0 0 0 4px color-mix(in oklab, var(--k) 22%, transparent);
}
.ev::before { content: ''; position: absolute; inset-inline-start: 18px; top: 36px; bottom: -10px; width: 2px; background: var(--line-strong); }
.ev:last-child::before { display: none; }
.ev .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ev .meta .time { margin-inline-start: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
.ev .txt { font-size: 15.5px; line-height: 1.55; }
/* plain text with the icon pinned at the start, so a long line wraps like a sentence, not like flex items */
.ev .to { position: relative; padding-inline-start: 23px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.ev .to .ico { position: absolute; inset-inline-start: 0; top: 3px; width: 15px; height: 15px; color: var(--faint); }
.ev .to b { color: var(--text); font-weight: 700; }
.ev .to.ok .ico { color: #22c55e; }
.ev .to.attn { color: var(--accent-ink); }
.ev .to.attn .ico { color: var(--accent-ink); }
.chain-sum {
  margin-top: 10px; padding: 14px 16px; border-radius: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  background: color-mix(in oklab, var(--accent) 8%, var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent);
  font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.chain-sum > b { color: var(--text); font-weight: 900; margin-inline-end: 4px; }
.chain-sum span b { color: var(--text); font-weight: 700; }

@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: grid; }
  .header-cta { gap: 8px; }
  .header-cta .login { display: inline-grid; place-items: center; height: 44px; padding-inline: 18px; border-radius: 999px; color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-strong); }
  .header-cta { margin-inline-start: auto; }
  .mega { display: none; }
  .hero-grid, .owner-grid, .chain-grid, .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .section { padding-block: 76px; }
}
@media (max-width: 520px) {
  .hero { padding-block: 40px 64px; }
  .demo, .board { padding: 18px; border-radius: 24px; }
  .stat b { font-size: 22px; }
  .bars, .days { gap: 6px; }
  .final { padding: 52px 20px; border-radius: 28px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ——— inner pages: contact, about, solutions, the guide ——— */
.page { padding-block: 36px 0; }
.page-hero { position: relative; padding-block: 24px 44px; overflow: clip; }
.page-hero::before { content: ''; position: absolute; width: 700px; height: 520px; inset-inline-end: -260px; top: -260px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.page-hero > * { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; max-width: 15em; }
.page-hero .lead { margin-top: 18px; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 34em; line-height: 1.9; }
.page-hero .lead b { color: var(--text); }
.page-hero .hero-actions { margin-top: 28px; }
.page-meta { margin-top: 16px; font-size: 14px; color: var(--faint); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { font-size: 14px; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.toc a:hover { color: var(--text); }
.page .section { padding-block: 52px; }
.page .section-head { margin-bottom: 36px; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; margin-top: 46px; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 30px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose b, .prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.prose .say { display: block; padding: 16px 20px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 500; }
.prose .say small { display: block; margin-top: 6px; color: var(--faint); font-weight: 400; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards .step h3 { margin-top: 10px; font-size: 21px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.contact-card .tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 13%, transparent); color: var(--accent-ink); margin-bottom: 8px; }
.contact-card h3 { font-size: 19px; font-weight: 700; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card .big { display: inline-block; font-size: 24px; font-weight: 900; color: var(--text); direction: ltr; unicode-bidi: isolate; font-family: 'Samarqand', 'Dana', sans-serif; }
.contact-card .big:hover { color: var(--accent-ink); }
.contact-card .links { display: grid; gap: 4px; }
.contact-card .links a { color: var(--text); font-weight: 700; }
.contact-card .links a:hover { color: var(--accent-ink); }
.page .final { margin-top: 24px; }
@media (max-width: 980px) { .cards, .cards.two, .contact-grid { grid-template-columns: 1fr; } }

/* ——— support chat (chat.js): a launcher at the corner, a panel over the page ——— */
.nchat { position: fixed; left: 20px; bottom: 20px; z-index: 90; font-size: 15px; line-height: 1.75; }
.nchat-fab {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffc28a 0%, #ff8a3a 28%, #f25a0d 55%, #a8320a 100%);
  color: #fff; box-shadow: 0 14px 40px -10px var(--glow), 0 0 0 1px rgb(255 255 255 / .12) inset;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.nchat-fab::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgb(244 93 12 / .45); animation: nchat-ring 2.6s ease-out infinite; }
.nchat-fab:hover { transform: translateY(-2px) scale(1.05); }
.nchat-fab .ico { width: 27px; height: 27px; stroke-width: 1.8; transition: transform .3s; }
.nchat.open .nchat-fab::before { animation: none; opacity: 0; }
.nchat.open .nchat-fab .ico { transform: rotate(-8deg) scale(.92); }
@keyframes nchat-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.nchat-badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #22c55e; color: #fff; font: 700 12px/22px 'Dana', sans-serif; box-shadow: 0 0 0 3px var(--bg); animation: nchat-bump .5s cubic-bezier(.3, 1.8, .5, 1);
}
@keyframes nchat-bump { 0% { transform: scale(0); } 100% { transform: scale(1); } }

.nchat-tip {
  position: absolute; left: 0; bottom: 74px; width: max-content; max-width: 250px; padding: 11px 16px 11px 36px; border-radius: 18px 18px 18px 6px;
  background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); cursor: pointer;
  animation: rise .45s cubic-bezier(.3, 1.4, .5, 1) both;
}
.nchat-tip-x { position: absolute; left: 8px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--faint); }
.nchat-tip-x:hover { background: var(--surface-2); color: var(--text); }
.nchat-tip-x .ico { width: 14px; height: 14px; }

.nchat-panel {
  position: absolute; left: 0; bottom: 76px; width: 380px; height: min(620px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 28px;
  background: var(--bg); box-shadow: 0 40px 100px -30px rgb(0 0 0 / .6), 0 0 0 1px var(--line-strong);
  transform-origin: bottom left; animation: nchat-in .38s cubic-bezier(.2, 1.2, .4, 1) both;
}
.nchat-panel[hidden] { display: none; }
@keyframes nchat-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.nchat-panel::before {
  content: ''; position: absolute; top: -160px; right: -80px; width: 420px; height: 300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(244 93 12 / .28), rgb(244 93 12 / .08) 60%, transparent);
}

.nchat-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nchat-head div { flex: 1; min-width: 0; line-height: 1.4; }
.nchat-head b { display: block; font-size: 16px; }
.nchat-head small { color: var(--muted); font-size: 12.5px; }
.nchat-ava { position: relative; width: 44px; height: 44px; flex: none; }
.nchat-ava .orb { position: absolute; inset: 0; }
.nchat-ava .orb::before { display: none; }
.nchat-ava em { position: absolute; left: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px var(--bg); animation: livepulse 1.8s ease-out infinite; }
.nchat-x { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: background .2s; }
.nchat-x:hover { background: var(--surface-2); color: var(--text); }

.nchat-body { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; scrollbar-width: none; }
.nchat-body::-webkit-scrollbar { display: none; }
.pop { animation: rise .4s cubic-bezier(.3, 1.3, .5, 1) both; }

.nchat-msg { display: flex; flex-direction: column; max-width: 84%; margin-top: 3px; }
.nchat-msg.head { margin-top: 12px; }
.nchat-msg.me { margin-inline: 0 auto; align-items: flex-start; }
.nchat-msg.team { margin-inline: auto 0; align-items: flex-end; }
.nchat-msg p { position: relative; padding: 8px 14px; border-radius: 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.8; }
.nchat-msg.me p { background: linear-gradient(135deg, var(--accent-hi), var(--accent)); color: var(--on-accent); box-shadow: 0 10px 24px -14px var(--glow); }
.nchat-msg.team p { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; }
.nchat-msg.me.tail p { border-bottom-right-radius: 7px; }
.nchat-msg.team.tail p { border-bottom-left-radius: 7px; }
.nchat-msg small { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; font-size: 10.5px; opacity: .65; translate: 0 2px; }
.nchat-msg small .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.nchat-msg.failed p { opacity: .55; }
.nchat-who { padding: 0 8px 3px; color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.nchat-retry { padding: 3px 8px 0; color: #ef4444; font-size: 12px; font-weight: 700; }
.nchat-day { margin: 14px 0 6px; text-align: center; }
.nchat-day span { padding: 3px 12px; border-radius: 99px; background: var(--surface-2); color: var(--faint); font-size: 11.5px; }
.nchat-note { margin: 18px 10px 4px; text-align: center; color: var(--faint); font-size: 12.5px; line-height: 1.9; animation: rise .5s .5s both; }

.nchat-starters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 14px; }
.nchat-starters button {
  padding: 7px 13px; border-radius: 99px; font-size: 13.5px; color: var(--text);
  box-shadow: 0 0 0 1px var(--line-strong) inset; transition: background .2s, box-shadow .2s, transform .2s;
}
.nchat-starters button:hover { background: var(--surface-2); box-shadow: 0 0 0 1px var(--accent) inset; transform: translateY(-1px); }

.nchat-intro { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.nchat-intro > p { color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.nchat-intro label { display: grid; gap: 4px; }
.nchat-intro label span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.nchat-intro input {
  height: 46px; padding: 0 14px; border: 0; border-radius: 14px; outline: 0; font: inherit; font-size: 15px;
  background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong) inset; transition: box-shadow .2s;
}
.nchat-intro input[dir="ltr"] { text-align: left; }
.nchat-intro input:focus { box-shadow: 0 0 0 2px var(--accent) inset; }
.nchat-intro input::placeholder { color: var(--faint); }
.nchat-intro .btn { width: 100%; justify-content: center; height: 48px; margin-top: 2px; }
.nchat-intro .btn:disabled { opacity: .7; cursor: default; }
.nchat-err { color: #ef4444; font-size: 13px; font-weight: 500; }

.nchat-compose { position: relative; display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 6px 14px 6px 6px; border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong) inset, 0 10px 30px -14px rgb(0 0 0 / .5); }
.nchat-compose[hidden] { display: none; }
.nchat-compose textarea { flex: 1; min-width: 0; max-height: 132px; padding: 8px 0; border: 0; outline: 0; resize: none; background: none; color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; scrollbar-width: none; }
.nchat-compose textarea::placeholder { color: var(--faint); }
.nchat-compose button { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); color: #fff; box-shadow: 0 0 22px var(--glow); transition: transform .2s, opacity .2s; }
.nchat-compose button:disabled { opacity: .4; transform: scale(.88); cursor: default; }
.nchat-compose button:not(:disabled):active { transform: scale(.9); }

/* a phone: the panel is the whole screen */
@media (max-width: 559px) {
  .nchat { left: 16px; bottom: 16px; }
  .nchat-panel { position: fixed; inset: 0; width: auto; height: 100dvh; border-radius: 0; transform-origin: bottom center; }
  .nchat-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .nchat-compose { margin-bottom: max(12px, env(safe-area-inset-bottom)); }
  .nchat.open .nchat-fab, .nchat.open .nchat-tip { display: none; }
  html.nchat-lock, html.nchat-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .nchat *, .nchat *::before { animation: none !important; transition: none !important; }
}
