/* نوتادو — the homepage only: the hero (a quiet dotted ground, the agents drifting, the app playing by itself),
   the agents as tabs, three steps, the overview, the price, the questions. Calm motion; none with reduced motion. */

/* ——— hero ——— */
.hero { position: relative; padding-block: 96px 32px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: -1px 0 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(22 22 22 / .09) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-bg .glow { position: absolute; left: 50%; top: 520px; width: 900px; height: 420px; translate: -50% 0; border-radius: 50%; background: var(--brand-soft, #f9eee9); filter: blur(80px); opacity: .9; }
:root[data-theme="dark"] .hero-bg .grid { background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .08) 1px, transparent 0); }
:root[data-theme="dark"] .hero-bg .glow { background: #2a1d18; }

.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.2; margin-top: 22px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; inset-inline: 2%; bottom: .02em; height: .09em; border-radius: 99px; background: currentColor; opacity: .22; transform: scaleX(0); transform-origin: right; animation: underline .9s .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { max-width: 34em; margin-top: 18px; color: var(--mute); }
.btn-lg { height: 52px; padding-inline: 24px; font-size: 16px; border-radius: 12px; }
.btn-primary .ico { transition: transform .2s ease; }
.btn-primary:hover .ico { transform: translateX(-3px); }

/* the first lines arrive one after another */
.in-1, .in-2, .in-3, .in-4 { animation: arrive .8s cubic-bezier(.2,.8,.2,1) both; }
.in-2 { animation-delay: .08s; } .in-3 { animation-delay: .18s; } .in-4 { animation-delay: .28s; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* the agents drifting around the line */
.float-marks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fm { position: absolute; --s: 46px; box-shadow: 0 10px 30px -14px rgb(22 22 22 / .25); animation: drift 9s ease-in-out infinite, arrive 1s cubic-bezier(.2,.8,.2,1) both; }
.fm .ico { width: 22px; height: 22px; }
.fm1 { top: 92px;  right: 9%;  rotate: -8deg; animation-delay: 0s, .4s; }
.fm2 { top: 250px; right: 4%;  rotate: 6deg;  animation-delay: -3s, .5s; --s: 40px; }
.fm3 { top: 380px; right: 13%; rotate: -4deg; animation-delay: -6s, .6s; --s: 38px; }
.fm4 { top: 110px; left: 10%;  rotate: 7deg;  animation-delay: -2s, .45s; }
.fm5 { top: 270px; left: 4%;   rotate: -6deg; animation-delay: -5s, .55s; --s: 40px; }
.fm6 { top: 390px; left: 14%;  rotate: 5deg;  animation-delay: -7s, .65s; --s: 38px; }
@keyframes drift { 50% { transform: translateY(-12px); } }

/* the app: tilted back a little, it settles flat as you scroll to it */
.stage { margin-top: 72px; perspective: 1800px; }
.mock.tilt { transform-origin: 50% 0; transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .96)); transition: transform .1s linear; box-shadow: 0 0 0 1px var(--hair), 0 50px 100px -50px rgb(22 22 22 / .35); animation: arrive 1s .35s cubic-bezier(.2,.8,.2,1) both; }
.mock-body { height: 540px; }
.ms-list li { transition: background-color .3s, box-shadow .3s; }
.ms-list li.talking { background: var(--page); box-shadow: 0 0 0 1px var(--hair); }
.ms-list li.talking .mark { animation: pop .5s ease; }
.ms-list li .count { transition: transform .3s; }
.ms-list li .count.bump { animation: pop .45s ease; }
@keyframes pop { 40% { transform: scale(1.18); } }

/* the conversation that plays by itself */
.mc-thread { justify-content: flex-end; }
.mc-thread > * { animation: msg .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes msg { from { opacity: 0; transform: translateY(10px); } }
.mc-thread.fade > * { opacity: 0; transition: opacity .4s; animation: none; }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.agc-acts .b-ok { transition: transform .15s, background-color .2s; }
.agc-acts .b-ok.press { transform: scale(.94); }
.ag-done { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--ok); }
.ag-done .ico { width: 16px; height: 16px; }
.mc-compose span.typed { color: var(--ink); }
.mc-compose span.typed::after { content: ''; display: inline-block; width: 1.5px; height: 1.1em; margin-inline-start: 2px; vertical-align: -3px; background: var(--ink); animation: blink .9s steps(1) infinite; }

/* ——— the agents as tabs ——— */
.ag-tabs { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ag-list { display: grid; gap: 4px; align-content: start; }
.ag-list button { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; text-align: start; overflow: hidden; transition: background-color .2s; }
.ag-list button:hover { background: var(--panel); }
.ag-list button[aria-selected="true"] { background: var(--page); box-shadow: 0 0 0 1px var(--hair), 0 10px 30px -20px rgb(22 22 22 / .25); }
.ag-list .mark { --s: 40px; }
.ag-list b { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.ag-list small { display: block; font-size: 13px; color: var(--mute); }
/* the selected tab shows how long until the next one */
.ag-list .bar { position: absolute; inset-inline: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--hair); opacity: 0; }
.ag-list button[aria-selected="true"] .bar { opacity: 1; }
.ag-list button[aria-selected="true"] .bar::after { content: ''; position: absolute; inset: 0; border-radius: 2px; background: var(--ink); transform-origin: right; transform: scaleX(0); animation: progress var(--t, 6s) linear forwards; }
.ag-tabs.paused .bar::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.ag-view { position: relative; display: grid; align-content: center; gap: 18px; min-height: 420px; padding: 40px clamp(20px, 5vw, 56px); border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.ag-view > * { animation: msg .5s cubic-bezier(.2,.8,.2,1) both; }
.ag-view > *:nth-child(2) { animation-delay: .35s; }
.ag-view > *:nth-child(3) { animation-delay: .7s; }
.ag-view .msg-me p { max-width: 90%; }
.ag-view .ag-body > p { color: var(--ink); }
.ag-view .ag-card { background: var(--page); }
.ag-view .what { font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.soon-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--mute); text-align: center; flex-wrap: wrap; }
.soon-line b { font-weight: 500; color: var(--body); }

/* ——— three steps ——— */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps3::before { content: ''; position: absolute; top: 27px; inset-inline: 16%; height: 1px; background: var(--border); transform: scaleX(0); transform-origin: right; transition: transform 1.2s .3s cubic-bezier(.2,.8,.2,1); }
.steps3.in::before, .steps3:has(.in)::before { transform: scaleX(1); }
.steps3 li { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 0 12px; }
.steps3 .n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1px var(--border); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.steps3 li:last-child .n { background: var(--act); color: var(--on-act); box-shadow: none; }
.steps3 h3 { font-size: 18px; }
.steps3 p { color: var(--mute); font-size: 15px; line-height: 1.9; max-width: 22em; }

/* ——— the overview ——— */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.ov-text h2 { margin-top: 10px; font-size: clamp(24px, 2.8vw, 34px); }
.ov-text > p { margin-top: 12px; color: var(--mute); font-size: 17px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--body); }
.ticks .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--fill); color: var(--ink); box-sizing: content-box; }
.ov-mock { padding: 16px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.ov-mock .ov-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
.ov-mock .ov-stats > div { padding: 14px 16px; border-radius: 14px; background: var(--page); box-shadow: 0 0 0 1px var(--hair); }
.ov-mock small { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.ov-mock small .mark { --s: 22px; }
.ov-mock small .mark .ico { width: 13px; height: 13px; }
.ov-mock .ov-stats b { display: block; margin-top: 6px; font-size: 26px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ov-mock .ov-stats em { font-style: normal; font-size: 12px; color: var(--mute); }
.ov-mock .ov-stats em.bad { color: var(--bad); }
.ov-feed { list-style: none; margin: 10px 0 0; padding: 0; border-radius: 14px; background: var(--page); box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.ov-feed li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.ov-mock.in .ov-feed li { opacity: 1; transform: none; }
.ov-mock.in .ov-feed li:nth-child(2) { transition-delay: .15s; }
.ov-mock.in .ov-feed li:nth-child(3) { transition-delay: .3s; }
.ov-feed li + li { border-top: 1px solid var(--hair); }
.ov-feed .pm { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); font-size: 13px; color: var(--body); flex: none; }
.ov-feed p { flex: 1; min-width: 0; font-size: 14px; color: var(--body); }
.ov-feed p b { font-weight: 500; color: var(--ink); }
.ov-feed small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.ov-feed small .mark { --s: 18px; }
.ov-feed small .mark .ico { width: 11px; height: 11px; }

/* ——— the price ——— */
.price-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 40px 44px; border-radius: 20px; background: var(--page); box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -40px rgb(22 22 22 / .2); }
.price-card h2 { margin-top: 8px; font-size: clamp(22px, 2.4vw, 30px); }
.price-card p { margin-top: 10px; color: var(--mute); font-size: 15.5px; }
.price-card .ticks { margin: 0; }

/* ——— the questions: no seam between the heading and the list on a phone ——— */
#faq { padding-top: 96px; }

@media (max-width: 1180px) { .float-marks { display: none; } }
@media (max-width: 980px) {
  .ag-tabs { grid-template-columns: minmax(0, 1fr); }
  .ag-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .ag-list::-webkit-scrollbar { display: none; }
  .ag-list small { display: none; }
  .ag-list button { padding: 10px 14px 12px; }
  .ag-list .mark { --s: 32px; }
  .ag-view { min-height: 380px; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .price-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 24px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .stage { margin-top: 44px; }
  .mock.tilt { --tilt: 0deg !important; --sc: 1 !important; }
  .mock-body { height: 470px; }
  .steps3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps3::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mock.tilt { transform: none; }
  .ov-feed li { opacity: 1; transform: none; }
}

/* the hero chat: as messages climb, they go soft at the top of the thread (the same layered blur, small) */
.mock-chat { position: relative; }
.mc-blur { position: absolute; inset-inline: 0; top: 58px; height: 90px; z-index: 2; pointer-events: none; }
.mc-blur i { position: absolute; inset: 0; }
.mc-blur i:nth-child(1) { backdrop-filter: blur(1px); mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 50%, transparent 75%); }
.mc-blur i:nth-child(2) { backdrop-filter: blur(3px); mask-image: linear-gradient(to top, transparent 25%, #000 50%, #000 75%, transparent 100%); }
.mc-blur i:nth-child(3) { backdrop-filter: blur(8px); mask-image: linear-gradient(to top, transparent 50%, #000 75%, #000 100%); }
.mc-blur::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--page), transparent); }
/* the hero's warm ground fades out instead of stopping at a line */
.hero-bg { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }

/* ——— hero, the AI touches ——— */
.ai-pill { gap: 8px; padding-inline: 12px 16px; background: var(--page); box-shadow: inset 0 0 0 1px var(--hair), 0 6px 20px -12px rgb(196 98 62 / .35); }
.ai-pill .ico { width: 16px; height: 16px; color: var(--brand, #c4623e); }
.shine {
  background: linear-gradient(100deg, var(--body) 0%, var(--body) 40%, var(--brand, #c4623e) 50%, var(--body) 60%, var(--body) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
/* the word that turns: every word in one cell, the shown one slides in */
.rot { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rot { transition: width .55s cubic-bezier(.2,.8,.2,1); }
.rot > span { grid-area: 1 / 1; justify-self: start; width: max-content; opacity: 0; transform: translateY(70%); filter: blur(6px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1), filter .5s; }
.rot > span.on { opacity: 1; transform: none; filter: none; }
.rot > span.out { opacity: 0; transform: translateY(-70%); filter: blur(6px); }
.hero-gift { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--mute); }

/* ——— the live log: the kitchen's events going by, a timestamp each ——— */
.ticker { position: relative; overflow: hidden; margin-top: 64px; padding-block: 16px; border-block: 1px solid var(--hair); background: var(--panel);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, 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%); } }
.lg { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding-inline: 8px 14px; border-radius: 12px; background: var(--page); box-shadow: inset 0 0 0 1px var(--hair); white-space: nowrap; font-size: 13.5px; color: var(--body); }
.lg .mark { --s: 26px; }
.lg .mark .ico { width: 14px; height: 14px; }
.lg time { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--faint); direction: ltr; }
.lg b { font-weight: 500; color: var(--ink); }

/* ——— how it understands ——— */
.brain .section-head { margin-bottom: 28px; }
.bx-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.bx-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 14px; border-radius: 999px; font-size: 14px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair); transition: color .2s, background-color .2s, box-shadow .2s; }
.bx-tabs button .ico { width: 16px; height: 16px; }
.bx-tabs button:hover { color: var(--ink); }
.bx-tabs button[aria-selected="true"] { background: var(--act); color: var(--on-act); box-shadow: none; }
.bx { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.15fr) 56px minmax(0, 1fr); align-items: stretch; }
.bx-col { display: flex; flex-direction: column; min-width: 0; }
.bx-step { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--mute); }
.bx-step b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 500; font-size: 12px; color: var(--brand, #c4623e); }
.bx-card { flex: 1; min-height: 300px; padding: 22px; border-radius: 18px; background: var(--page); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -36px rgb(22 22 22 / .25); position: relative; overflow: hidden; }
/* the links: a line with a light running along it, right to left */
.bx-link { position: relative; align-self: center; height: 2px; margin-top: 28px; }
.bx-link::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to left, var(--border) 0 6px, transparent 6px 12px); }
.bx-link span { position: absolute; top: 50%; right: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brand, #c4623e); box-shadow: 0 0 0 4px rgb(196 98 62 / .15); opacity: 0; }
.bx.run-1 .bx-link:nth-child(2) span, .bx.run-2 .bx-link:nth-child(4) span { animation: flow 0.9s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes flow { 0% { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { right: calc(100% - 8px); opacity: 0; } }

/* 01 — hearing: the voice note (bars that move) and the words as they come */
.vn { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--act); color: var(--on-act); }
.vn .play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .14); flex: none; }
.vn .play .ico { width: 15px; height: 15px; }
.vn .bars { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; }
.vn .bars i { flex: 1; max-width: 4px; border-radius: 2px; background: rgb(255 255 255 / .75); height: 30%; animation: bar 1s ease-in-out infinite; animation-delay: var(--d); }
.vn.done .bars i { animation: none; height: var(--h); opacity: .6; }
@keyframes bar { 50% { height: 100%; } }
.vn time { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; opacity: .7; direction: ltr; }
.heard { margin-top: 16px; font-size: 15.5px; line-height: 2; color: var(--ink); min-height: 4em; }
.heard .cur { display: inline-block; width: 1.5px; height: 1.1em; vertical-align: -3px; margin-inline-start: 2px; background: var(--ink); animation: blink .9s steps(1) infinite; }
.msg-in { display: flex; gap: 10px; align-items: flex-start; }
.msg-in .pm { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); font-size: 13px; color: var(--body); flex: none; }
.msg-in p { padding: 10px 14px; border-radius: 16px; border-start-start-radius: 6px; background: var(--fill); font-size: 15px; line-height: 1.9; }
.msg-in small { display: block; margin-bottom: 4px; font-size: 12px; color: var(--mute); }
.bx-meta { position: absolute; bottom: 16px; inset-inline: 22px; display: flex; gap: 6px; flex-wrap: wrap; }
.bx-meta span { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--mute); }

/* 02 — understanding: the same words, each part lit and named */
.tokens { font-size: 18px; line-height: 3.1; color: var(--faint); transition: color .4s; }
.tokens.on { color: var(--body); }
.tk { position: relative; padding: 2px 5px; border-radius: 7px; transition: background-color .45s, color .45s, box-shadow .45s; }
.tk::before { content: attr(data-l); position: absolute; bottom: calc(100% + 1px); right: 0; font-size: 10.5px; line-height: 1.4; font-weight: 500; white-space: nowrap; color: var(--c); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.tk.lit { background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--c) 60%, transparent); }
.tk.lit::before { opacity: 1; transform: none; }
.scan { position: absolute; inset-inline: 0; top: 0; height: 60px; background: linear-gradient(to bottom, transparent, rgb(196 98 62 / .08), transparent); opacity: 0; pointer-events: none; }
.bx-mid.scanning .scan { animation: scan 1.6s ease-in-out; }
@keyframes scan { 0% { top: -60px; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.intent { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); opacity: 0; transition: opacity .4s; }
.intent.on { opacity: 1; }
.intent b { font-weight: 500; color: var(--ink); }

/* 03 — doing: one card per agent, each arriving in turn */
.acts { display: grid; gap: 10px; }
.act { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); opacity: 0; transform: translateX(-14px); transition: opacity .45s, transform .5s cubic-bezier(.2,.8,.2,1); }
.act.on { opacity: 1; transform: none; }
.act .mark { --s: 32px; }
.act small { display: block; font-size: 12px; color: var(--mute); line-height: 1.6; }
.act p { font-size: 14px; line-height: 1.75; color: var(--ink); }
.act .wait { display: inline-flex; margin-top: 6px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft, #f9eee9); color: var(--brand, #c4623e); }

@media (max-width: 980px) {
  .bx { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bx-link { width: 2px; height: 36px; margin: 6px auto; align-self: auto; }
  .bx-link::before { background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px); }
  .bx-link span { display: none; }
  .bx-card { min-height: 0; }
  .bx-meta { position: static; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .act { opacity: 1; transform: none; }
  .shine { animation: none; color: var(--body); background: none; }
}

/* ═══════════════ colour and life (2026-11-29): each section its own colour ═══════════════
   white hero → espresso «how it understands» → sand «stock count» → the agents, tinted by the one on show
   → white questions → terracotta final call → espresso footer */

/* the hero: two warm lights drifting behind the line */
.hero-bg::before, .hero-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: hero-blob 16s ease-in-out infinite; }
.hero-bg::before { width: 460px; height: 380px; right: -80px; top: 40px; background: #f6c9a8; }
.hero-bg::after { width: 420px; height: 360px; left: -60px; top: 160px; background: #f3dcb0; animation-delay: -8s; }
@keyframes hero-blob { 50% { transform: translate(-40px, 40px) scale(1.08); } }
:root[data-theme="dark"] .hero-bg::before { background: #4a2a1c; }
:root[data-theme="dark"] .hero-bg::after { background: #3a2c16; }

/* a band: a full-width block with round corners, set a little in from the edges */
.band { position: relative; isolation: isolate; overflow: hidden; margin-inline: clamp(8px, 1.4vw, 20px); border-radius: clamp(28px, 4vw, 48px); }
.band + .band { margin-top: clamp(8px, 1.4vw, 20px); }
.brain.band { margin-top: 72px; }

/* ——— «how it understands»: espresso, a terracotta light from above ——— */
.brain.tone-dark { background: #1c1512; }
.brain.tone-dark::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -340px; width: 1100px; height: 640px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(196 98 62 / .42), transparent); }
.brain.tone-dark::after { content: ''; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgb(255 240 230 / .07) 1px, transparent 0); background-size: 26px 26px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.brain .eyebrow { color: #f0956a; }
.brain .section-head h2 { color: #fff; }
.brain .bx-card { background: rgb(255 240 230 / .045); box-shadow: inset 0 0 0 1px rgb(255 240 230 / .1), 0 30px 60px -30px rgb(0 0 0 / .7); backdrop-filter: blur(4px); }
.brain .bx-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.brain .vn { background: var(--brand); color: #fff; }
.brain .act { background: rgb(255 240 230 / .06); }
.brain .act .wait { background: rgb(236 141 98 / .16); color: #f0a07c; }
.brain .bx-step b { color: #f0956a; }

/* ——— «stock count»: warm sand, a soft terracotta light behind the phones ——— */
.band-sand { background: linear-gradient(180deg, #f6eadc 0%, #f3e3d1 100%); }
.band-sand::before { content: ''; position: absolute; z-index: -1; right: -200px; bottom: -260px; width: 700px; height: 600px; border-radius: 50%; background: radial-gradient(closest-side, rgb(228 140 90 / .35), transparent); }
.band-sand .cn-stage { background: rgb(255 255 255 / .5); box-shadow: inset 0 0 0 1px rgb(196 98 62 / .14), 0 40px 80px -50px rgb(120 50 20 / .35); }
.band-sand .cn-stage::before { background: radial-gradient(closest-side, rgb(244 170 120 / .45), transparent); }
.band-sand .section-head p, .band-sand .cn-fig figcaption > span { color: #7c6655; }
:root[data-theme="dark"] .band-sand { background: linear-gradient(180deg, #251c16, #2a1f17); }
:root[data-theme="dark"] .band-sand .section-head p, :root[data-theme="dark"] .band-sand .cn-fig figcaption > span { color: var(--mute); }
:root[data-theme="dark"] .band-sand .cn-stage { background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--hair); }
@media (max-width: 720px) { .band-sand .cn-stage { margin-inline: -20px; border-radius: 0; box-shadow: none; background: transparent; } }

/* ——— the agents: the whole band takes the colour of the agent on show, and changes with it ——— */
.band-agents { --ag-ink: #9a5b0b; --ag-bg: #fbecd2; background: var(--ag-bg); transition: background-color .8s ease; }
.band-agents[data-k="stock"] { --ag-ink: #28609e; --ag-bg: #dfeafa; }
.band-agents[data-k="prep"] { --ag-ink: #3d7a2c; --ag-bg: #e3f1da; }
.band-agents[data-k="cost"] { --ag-ink: #a8434a; --ag-bg: #f9e1e1; }
.band-agents[data-k="team"] { --ag-ink: #6a4bb0; --ag-bg: #ebe2fa; }
.band-agents::before { content: ''; position: absolute; z-index: -1; left: -160px; top: -200px; width: 640px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ag-ink) 22%, transparent), transparent); transition: background .8s ease; }
.band-agents .eyebrow { color: var(--ag-ink); transition: color .6s; }
.band-agents .section-head p, .band-agents .soon-line { color: color-mix(in srgb, var(--ag-ink) 55%, #3f3f3c); }
.band-agents .ag-list button:hover { background: rgb(255 255 255 / .45); }
.band-agents .ag-list button[aria-selected="true"] { background: #fff; box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--ag-ink) 55%, transparent); }
.band-agents .ag-list small { color: color-mix(in srgb, var(--ag-ink) 50%, #77736b); }
.band-agents .ag-list .bar { background: color-mix(in srgb, var(--ag-ink) 18%, transparent); }
.band-agents .ag-list button[aria-selected="true"] .bar::after { background: var(--ag-ink); }
.band-agents .ag-view { background: #fff; box-shadow: 0 40px 80px -46px color-mix(in srgb, var(--ag-ink) 70%, transparent); }
.band-agents .ag-view .ag-card { background: var(--ag-bg); box-shadow: none; transition: background-color .8s; }
.band-agents .ag-view .what { color: var(--ag-ink); }
:root[data-theme="dark"] .band-agents { --ag-bg: color-mix(in srgb, var(--ag-ink) 22%, #141414); }
:root[data-theme="dark"] .band-agents .ag-list button[aria-selected="true"], :root[data-theme="dark"] .band-agents .ag-view { background: #1a1a19; }
:root[data-theme="dark"] .band-agents .section-head p, :root[data-theme="dark"] .band-agents .soon-line, :root[data-theme="dark"] .band-agents .ag-list small { color: var(--mute); }
:root[data-theme="dark"] .band-agents .ag-view .what, :root[data-theme="dark"] .band-agents .eyebrow { color: color-mix(in srgb, var(--ag-ink) 50%, #fff); }

/* ——— the questions: each one a card; the open one warm ——— */
.faq { display: grid; gap: 10px; }
.faq details, .faq details:first-child { border: 0; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); padding-inline: 20px; transition: background-color .25s, box-shadow .25s; }
.faq details:hover { box-shadow: inset 0 0 0 1px var(--border); }
.faq details[open] { background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgb(196 98 62 / .22); }
.faq details[open] summary .pm { background: var(--brand); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .faq details[open] { background: #2a1d18; }

.final-wrap { margin-top: 24px; }
@media (max-width: 760px) { .brain.band { margin-top: 48px; } }

/* ——— نوتا, the felt barista: one pose per part of the page ——— */
.pill-face { width: 22px; height: 22px; border-radius: 30%; background: #f9eee9; object-fit: cover; }
.nota-by {
  position: absolute; z-index: 1; left: max(24px, calc(50% - 660px)); top: 210px; width: 200px; height: auto;
  filter: drop-shadow(0 24px 24px rgb(60 30 10 / .18)); pointer-events: none;
  animation: nota-in .9s .9s cubic-bezier(.2,.8,.2,1) both, nota-bob 5s 2s ease-in-out infinite;
}
@keyframes nota-in { from { opacity: 0; transform: translateX(-30px) rotate(-4deg); } }
@keyframes nota-bob { 50% { transform: translateY(-6px); } }
/* the agent tiles that drifted on his side make room for him */
.hero:has(.nota-by) .fm5, .hero:has(.nota-by) .fm6, .hero:has(.nota-by) .fm4 { display: none; }
@media (max-width: 1360px) { .nota-by { width: 160px; top: 250px; } }
@media (max-width: 1180px) { .nota-by { display: none; } }

/* the sidebar of the app: conversations by day, as in the app now */
.ms-day { margin: 16px 8px 4px; font-size: 11.5px; color: var(--faint); }
.ms-day + .ms-list { margin-top: 0; }
.ms-list li { padding: 9px 10px; }
.ms-list li .ms-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--brand, #c4623e); }

.sec-nota { width: 120px; height: auto; margin-bottom: -4px; filter: drop-shadow(0 16px 22px rgb(0 0 0 / .35)); }

/* it does the work: the copy and نوتا with his thumb up on one side, the sentences on the other */
.doer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.doer-copy { display: grid; gap: 12px; align-content: start; }
.doer-copy h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.4; }
.doer-copy p { color: var(--mute); font-size: 17px; }
.doer-nota { width: 170px; height: auto; margin-top: 18px; filter: drop-shadow(0 18px 22px rgb(60 30 10 / .16)); }
.doer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doer-list li { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1px var(--hair), 0 10px 30px -22px rgb(22 22 22 / .25); }
.doer-list .dq { justify-self: start; max-width: 100%; padding: 9px 14px; border-radius: 16px; border-end-start-radius: 5px; background: var(--act); color: var(--on-act); font-size: 14px; line-height: 1.8; }
.doer-list .da { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.85; color: var(--body); }
.doer-list .da .mark { --s: 26px; margin-top: 1px; }
.doer-list .da .mark .ico { width: 14px; height: 14px; }
.doer-list.rv li { transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.doer-list.rv:not(.in) li { opacity: 0; transform: translateY(12px); }
.doer-list li:nth-child(2) { transition-delay: .08s; } .doer-list li:nth-child(3) { transition-delay: .16s; }
.doer-list li:nth-child(4) { transition-delay: .24s; } .doer-list li:nth-child(5) { transition-delay: .32s; } .doer-list li:nth-child(6) { transition-delay: .4s; }
@media (max-width: 900px) {
  .doer-grid { grid-template-columns: 1fr; gap: 28px; }
  .doer-copy { justify-items: center; text-align: center; }
  .doer-nota { width: 130px; margin-top: 4px; order: -1; }
}
@media (max-width: 560px) { .doer-list { grid-template-columns: 1fr; } }

.faq-nota { width: 150px; height: auto; margin-top: 10px; filter: drop-shadow(0 16px 20px rgb(60 30 10 / .14)); }
@media (max-width: 900px) { .faq-nota { display: none; } }

.final-nota { width: 150px; height: auto; margin-bottom: 4px; filter: drop-shadow(0 18px 24px rgb(60 20 5 / .35)); }
@media (max-width: 520px) { .final-nota { width: 120px; } }
/* the bust poses end in a straight cut: let them fade out at the chest instead */
.sec-nota, .doer-nota, .faq-nota, .final-nota { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.faq-grid .section-head { align-content: start; }
