/* Rony Haddad V3: "Kinetic Operator". Tokens come from tokens/design-dna.md */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* Registered so the accent can transition when the mode switches */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #3ddc97;
}

:root {
  --bg: #0c0e11;
  --bg-2: #14171c;
  --bg-3: #1c2027;
  --paper: #e9ecef;
  --ink: #0c0e11;
  --ink-soft: #4a515c;
  --text: #e8ecf1;
  --muted: #8d95a2;
  --line: rgba(232, 236, 241, 0.12);
  --line-ink: rgba(12, 14, 17, 0.14);
  --growth: #3ddc97;
  --growth-deep: #0b7246;
  --ai: #6b9bff;
  --accent: var(--growth);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --content: min(100% - 2 * var(--gutter), 1320px);
  --radius: 4px;
  --sec: clamp(36px, 6vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  interpolate-size: allow-keywords;
  transition: --accent 700ms var(--ease);
}
:root[data-mode="ai"] { --accent: var(--ai); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Mode visibility: only once JS is running, so a no-JS visitor sees everything */
.js[data-mode="growth"] [data-when="ai"],
.js[data-mode="ai"] [data-when="growth"],
.js[data-mode="growth"] [data-panel="ai"],
.js[data-mode="ai"] [data-panel="growth"] { display: none; }

.short { display: none; }

/* ---------- Shared type ---------- */
.h2 {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: clamp(36px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 46ch; text-wrap: pretty; }
[data-reveal-lines] > div { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--radius);
  font-family: var(--body); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out;
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--growth); color: var(--ink); }
.btn--lg { min-height: 60px; padding: 0 28px; font-size: 17px; }
.textlink {
  color: var(--muted); font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  padding: 12px 0;
  transition: color 200ms ease-out;
}
.textlink:hover { color: var(--text); }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px var(--gutter);
  transition: background-color 300ms ease-out, border-color 300ms ease-out;
  border-bottom: 1px solid transparent;
}
.bar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.bar.is-solid { background: var(--bg); }
.bar__mark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; font-weight: 600; font-size: 15px; }
.bar__dot { width: 12px; height: 12px; border-radius: 2px; background: var(--accent); }
.bar__short { font-family: var(--display); font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; }
.bar__full { display: none; }
.bar__cta { min-height: 44px; padding: 0 14px; font-size: 14px; }
.bar__cta .long { display: none; }
.bar__cta .short { display: inline; }

.switch {
  justify-self: center;
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px; border: 1px solid var(--line); border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.switch__opt {
  position: relative; z-index: 1; display: grid; place-items: center;
  min-height: 44px; padding: 0 12px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--muted); border-radius: var(--radius);
  transition: color 300ms ease-out;
}
.switch__thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: var(--radius); background: var(--accent);
  transition: transform 520ms var(--ease);
}
.js[data-mode="growth"] .switch__opt[data-mode-set="growth"],
.js[data-mode="ai"] .switch__opt[data-mode-set="ai"] { color: var(--ink); }
.js[data-mode="ai"] .switch__thumb { transform: translateX(100%); }
html:not(.js) .switch__thumb { display: none; }

@media (max-width: 359px) {
  .switch .long { display: none; }
  .switch .short { display: inline; }
  .switch__opt { padding: 0 10px; font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 84px var(--gutter) 24px;
  background: radial-gradient(120% 70% at 60% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg);
}
.hero__field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero__fade {
  position: absolute; inset: auto 0 0; height: 34%; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 78%);
}
.hero__intro { position: relative; z-index: 3; color: var(--muted); font-size: 15px; text-shadow: 0 1px 14px var(--bg), 0 0 4px var(--bg); }
.hero__name {
  position: relative; z-index: 1;
  margin-top: 10px;
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(56px, 21vw, 220px);
  line-height: 0.8; letter-spacing: -0.035em; text-transform: uppercase;
  white-space: nowrap;
}
.hero__first, .hero__last { display: block; }
.hero__portrait {
  position: relative; z-index: 1;
  margin: -16vw auto 0; width: min(100%, 520px);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}
.hero__portrait img { width: 100%; }
.hero__copy { position: relative; z-index: 3; margin-top: -24%; text-shadow: 0 2px 24px rgba(12, 14, 17, 0.9); }
.hero__line {
  font-family: var(--display); font-stretch: 100%; font-weight: 500;
  font-size: clamp(21px, 5.4vw, 30px); line-height: 1.18; letter-spacing: -0.01em;
  max-width: 24ch; text-wrap: balance;
}
.doors { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.door {
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 300ms ease-out, background-color 300ms ease-out;
}
.door__title { font-family: var(--display); font-weight: 700; font-stretch: 100%; font-size: 19px; line-height: 1.1; }
.door__sub { color: var(--muted); font-size: 13px; line-height: 1.35; }
.door:hover { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.js[data-mode="growth"] .door[data-mode-set="growth"],
.js[data-mode="ai"] .door[data-mode-set="ai"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-2));
}

/* ---------- Panels ---------- */
.panel { position: relative; }

/* Statement */
.statement { padding: calc(var(--sec) * 1.3) 0 var(--sec); }
.statement__text {
  width: var(--content); margin-inline: auto;
  font-family: var(--display); font-stretch: 100%; font-weight: 500;
  font-size: clamp(28px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -0.02em;
}

/* Stores */
.stores { padding: var(--sec) 0; }
.stores__head { width: var(--content); margin-inline: auto; display: grid; gap: 16px; }
.stores__viewport {
  margin-top: 40px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.stores__viewport::-webkit-scrollbar { display: none; }
.stores__track {
  display: flex; gap: 20px; width: max-content;
  padding: 0 var(--gutter) 12px max(var(--gutter), calc((100vw - 1320px) / 2));
}
.store { scroll-snap-align: center; }
.store__btn {
  display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in;
}
.phone, .phone__screen { display: block; }
.phone {
  --w: min(62vw, 250px);
  flex: none; width: var(--w); height: calc(var(--w) * 19.2 / 9);
  padding: 7px; border-radius: 34px;
  background: linear-gradient(145deg, #2a2f38, #12151a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  margin-bottom: 14px;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 27px; clip-path: inset(0 round 27px); background: #fff; }
.phone__screen img { width: 100%; will-change: transform; }
.store.is-live .phone__screen img { animation: storeScroll 16s var(--ease) infinite alternate; }
@keyframes storeScroll {
  0%, 8% { transform: translateY(0); }
  100% { transform: translateY(calc(-100% + var(--screen-h, 480px))); }
}
.store__name { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.1; }
.store__cat { color: var(--muted); font-size: 14px; }
.store__btn:hover .phone, .store__btn:focus-visible .phone { transform: translateY(-8px); box-shadow: inset 0 0 0 1px var(--accent), 0 40px 70px -30px rgba(0, 0, 0, 0.9); }

/* Audit (the one light section) */
.audit { background: var(--paper); color: var(--ink); padding: calc(var(--sec) * 1.3) 0; }
.audit__inner { width: var(--content); margin-inline: auto; }
.audit .lede { color: var(--ink-soft); margin-top: 16px; }
.dial { display: none; }
.meter {
  position: sticky; top: 64px; z-index: 5;
  display: block; height: 44px; margin: 36px calc(var(--gutter) * -1) 28px;
  background: var(--paper); border-bottom: 1px solid var(--line-ink);
}
.meter__seg {
  position: absolute; bottom: 0; height: 3px;
  left: calc(var(--from) / 45 * 100% + 2px); width: calc(var(--len) / 45 * 100% - 4px);
  background: var(--line-ink);
}
.meter__fill {
  position: absolute; inset: auto auto 0 0; height: 3px; width: 100%;
  background: var(--growth); transform-origin: left; transform: scaleX(1);
}
.meter__label { position: absolute; left: var(--gutter); top: 11px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stages { display: grid; gap: 48px; }
.stage__time { display: block; color: var(--growth-deep); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.stage__title {
  font-family: var(--display); font-stretch: 100%; font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 12px;
  text-wrap: balance;
}
.stage p { color: var(--ink-soft); max-width: 40ch; font-size: 18px; }
.audit__cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.audit__note { color: var(--ink-soft); font-size: 15px; }

/* Steps (expanding rows) */
.steps { padding: calc(var(--sec) * 1.3) 0 var(--sec); width: var(--content); margin-inline: auto; }
.steps__head { display: grid; gap: 16px; margin-bottom: 48px; }
.row { border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.row summary::-webkit-details-marker { display: none; }
.row__title {
  font-family: var(--display); font-stretch: 100%; font-weight: 600;
  font-size: clamp(26px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em;
  transition: color 300ms ease-out, transform 500ms var(--ease), font-stretch 500ms var(--ease);
}
.row summary:hover .row__title, .row[open] .row__title { color: var(--accent); transform: translateX(8px); }
.row__icon { position: relative; flex: none; width: 22px; height: 22px; }
.row__icon::before, .row__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: currentColor; transition: transform 400ms var(--ease);
}
.row__icon::after { transform: rotate(90deg); }
.row[open] .row__icon::after { transform: rotate(0deg); }
.row::details-content { height: 0; overflow: clip; transition: height 500ms var(--ease), content-visibility 500ms allow-discrete; }
.row[open]::details-content { height: auto; }
.row__body { display: grid; gap: 16px; padding: 0 0 28px; color: var(--muted); }
.row__body p { max-width: 52ch; }
.row__body ul { display: grid; gap: 6px; color: var(--text); }
.row__body li::before, .offer__list li::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px;
  background: var(--accent); vertical-align: 0.15em;
}

/* ---------- AI: offers ---------- */
.offers { padding: var(--sec) 0; width: var(--content); margin-inline: auto; }
.offers__grid { display: grid; gap: 16px; margin-top: 40px; }
.offer {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2);
}
.offer__line { position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); transform-origin: left; }
.offer__demo {
  position: relative; min-height: 168px; margin-bottom: 8px; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1.6px) 0 0 / 18px 18px,
    var(--bg);
}
.offer__title {
  font-family: var(--display); font-stretch: 88%; font-weight: 700;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 0.98; letter-spacing: -0.02em;
}
.offer__pitch { font-size: 20px; line-height: 1.35; max-width: 28ch; }
.offer__list { display: grid; gap: 10px; color: var(--muted); }
.offer__list li { display: flex; align-items: baseline; }
.offer__list li::before { flex: none; }
.offer__for { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 16px; }
.offer__for .textlink { color: var(--accent); }

/* Chat bubbles: used in the coaching demo and the flow artifacts */
.bubble {
  max-width: 88%; padding: 9px 12px; border-radius: 12px;
  font-size: 14px; line-height: 1.4; color: var(--text);
}
.bubble--me, .bubble--brand { align-self: flex-end; border-bottom-right-radius: 3px; }
.demo-chat .bubble--me { max-width: 75%; }
.bubble--them, .bubble--ai { align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble--me, .bubble--them { background: var(--bg-3); }
.bubble--ai, .bubble--brand {
  background: color-mix(in srgb, var(--accent) 20%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.bubble--ai { position: relative; }
.typing { position: absolute; left: 12px; top: 50%; translate: 0 -50%; display: inline-flex; gap: 4px; opacity: 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .demo-chat.is-running .bubble--me { animation: chatIn 7s var(--ease) infinite; }
  .demo-chat.is-running .bubble--ai { animation: chatIn 7s var(--ease) 0.6s infinite; }
  .demo-chat.is-running .typing { animation: typingShow 7s steps(1) 0.6s infinite; }
  .demo-chat.is-running .bubble__text { animation: textShow 7s steps(1) 0.6s infinite; }
  .demo-chat.is-running .typing i { animation: dot 900ms ease-in-out infinite; }
  .demo-chat.is-running .typing i:nth-child(2) { animation-delay: 150ms; }
  .demo-chat.is-running .typing i:nth-child(3) { animation-delay: 300ms; }
}
@keyframes chatIn {
  0% { opacity: 0; transform: translateY(10px); }
  6%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes typingShow { 0% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes textShow { 0% { opacity: 0; } 22%, 100% { opacity: 1; } }
@keyframes dot { 50% { opacity: 1; transform: translateY(-2px); } }

.demo-chain { align-items: flex-start; justify-content: center; gap: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); font-size: 14px; font-weight: 600;
}
.chip small { color: var(--muted); font-weight: 500; font-size: 12px; }
.chip--ai { border-color: var(--accent); color: var(--accent); }
.wire {
  flex: none; width: 2px; height: 18px; margin-left: 22px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent) 0 -100% / 100% 60% no-repeat, var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .demo-chain.is-running .wire { animation: wire 2.4s linear infinite; }
  .demo-chain.is-running .wire + .chip + .wire { animation-delay: 1.2s; }
}
@keyframes wire { 0% { background-position: 0 -100%, 0 0; } 50%, 100% { background-position: 0 250%, 0 0; } }

/* ---------- AI: pick your business ---------- */
.explore { position: relative; isolation: isolate; padding: var(--sec) 0; }
.explore::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent) 1.2px, transparent 1.8px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000, transparent 75%);
  opacity: 0.5;
}
.explore__head, .explore__tabs, .industry { width: var(--content); margin-inline: auto; }
.explore__head { display: grid; gap: 16px; }
.explore__tabs { display: none; }
.js .explore__tabs {
  display: flex; gap: 8px; margin-top: 36px; overflow-x: auto; scrollbar-width: none; padding-right: 40px;
  -webkit-mask-image: linear-gradient(to right, #000 84%, transparent);
  mask-image: linear-gradient(to right, #000 84%, transparent);
}
.explore__tabs::-webkit-scrollbar { display: none; }
.explore__tabs button {
  flex: none; min-height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: 17px; color: var(--muted);
  transition: background-color 250ms ease-out, color 250ms ease-out, border-color 250ms ease-out;
}
.explore__tabs button:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.explore__tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.industry { margin-top: 24px; display: grid; gap: 16px; }
.industry__name { font-family: var(--display); font-size: 28px; font-weight: 700; margin-top: 24px; }
.js .industry__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.runs { display: grid; gap: 6px; }
.runs__item {
  position: relative; overflow: hidden; width: 100%; height: 100%; min-height: 48px;
  display: grid; align-content: start; gap: 2px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  transition: border-color 250ms ease-out, background-color 250ms ease-out;
}
.runs__item:hover { border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.runs__item[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); }
.runs__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.runs__line { display: none; color: var(--muted); font-size: 14px; line-height: 1.4; }
.runs__progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.run { display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.player { display: grid; gap: 16px; }
/* All runs share one grid cell, so the player is always as tall as its longest run and nothing below jumps */
.js .player > .run { grid-area: 1 / 1; }
.run.is-off { visibility: hidden; pointer-events: none; }
.run__bar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.run__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.run.is-playing .run__dot { background: var(--accent); animation: pulseDot 1.2s ease-in-out infinite; }
.run.is-done .run__dot { background: var(--accent); }
.run.is-done .run__status { color: var(--accent); font-weight: 600; }
.run__status { flex: none; color: var(--muted); }
.run__title { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.run__steps { --rail: 34px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 16px 20px var(--rail); }
.js .run__steps::before {
  content: ""; position: absolute; left: calc(var(--rail) - 20px); top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 55%, transparent), var(--line));
}
.run__signal {
  position: absolute; left: calc(var(--rail) - 24px); top: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 22px var(--accent);
  opacity: 0; transition: top 450ms var(--ease), opacity 300ms ease-out;
}
.run.is-playing .run__signal, .run.is-done .run__signal { opacity: 1; }
.run__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.run__built { color: var(--muted); font-size: 13px; }
.run__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.run__tools li { padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.run__replay {
  margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; font-weight: 600; font-size: 14px; transition: border-color 200ms ease-out;
}
.run__replay:hover { border-color: var(--accent); }
html:not(.js) .run__replay { display: none; }

/* Steps of a run. JS adds is-pending / is-running while it plays; without JS everything shows finished */
.step { display: grid; gap: 4px; max-width: 88%; transition: opacity 350ms ease-out; }
.step.is-pending { opacity: 0.26; }
.step__who { color: var(--muted); font-size: 12px; }
.step--in { align-self: flex-start; }
.step--out { align-self: flex-end; justify-items: end; }
.step--out .bubble { text-align: left; }
.step--think, .step--act, .step--trigger {
  align-self: stretch; max-width: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px;
}
.step--think { color: var(--muted); }
.step__result { flex-basis: 100%; padding-left: 26px; color: var(--text); font-weight: 500; }
.status-icon {
  position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--accent);
}
.status-icon::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 7px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.step.is-pending .status-icon { background: transparent; border-color: var(--line); }
.step.is-running .status-icon { background: transparent; border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.step.is-pending .status-icon::after, .step.is-running .status-icon::after { display: none; }
.step--act {
  padding: 12px 14px; border-radius: 8px; font-weight: 500;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-3));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.step--trigger { padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--text) 25%, transparent); border-radius: 8px; }
.step--act:last-child {
  padding: 14px 16px; font-size: 16px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-3)); border-color: var(--accent);
}
.step--act.is-landed { animation: land 900ms var(--ease); }
@keyframes land {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(0.98); }
  60% { box-shadow: 0 0 0 10px transparent; transform: none; }
  100% { box-shadow: none; }
}
.step__label { padding: 2px 8px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-size: 12px; font-weight: 700; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.file { padding: 6px 10px; border: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.step--doc { align-self: stretch; max-width: none; }
.doc { display: grid; gap: 6px; padding: 14px 16px; border-radius: 8px; background: var(--paper); color: var(--ink); }
.doc__title { font-family: var(--display); font-stretch: 100%; font-size: 18px; line-height: 1.2; }
.doc p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
[data-type] .wd { transition: opacity 120ms linear; }
[data-type] .wd.is-off { opacity: 0.3; }
.wave { display: flex; align-items: center; gap: 3px; height: 18px; margin-bottom: 6px; color: var(--accent); }
.wave i { width: 3px; height: 45%; border-radius: 2px; background: currentColor; opacity: 0.8; }
.wave i:nth-child(3n) { height: 75%; }
.wave i:nth-child(3n + 2) { height: 100%; }
.step--voice.is-running .wave i { animation: wave 0.9s ease-in-out infinite; }
.step--voice.is-running .wave i:nth-child(odd) { animation-delay: 0.15s; }
.step--voice.is-running .wave i:nth-child(3n) { animation-delay: 0.3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 50% { transform: scaleY(0.35); } }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); } }

/* ---------- AI: what you'll learn ---------- */
.learn { width: var(--content); margin-inline: auto; padding: var(--sec) 0; }
.learn__head { display: grid; gap: 16px; }
.learn__body { margin-top: 40px; display: grid; gap: 24px; align-items: start; }
.prompt {
  position: relative; display: grid; align-content: start; gap: 16px; min-height: 300px;
  padding: 20px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 12px;
  background: var(--bg-2); box-shadow: 0 40px 90px -50px var(--accent);
}
.prompt__label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.prompt__q { padding-right: 48px; }
.prompt__a { padding-top: 16px; border-top: 1px solid var(--line); }
.prompt__a .prompt__label { color: var(--accent); font-weight: 600; }
.prompt__answer { font-size: 16px; line-height: 1.55; color: var(--text); }
.prompt__answer .wd { transition: opacity 160ms linear; }
.prompt__answer .wd.is-off { opacity: 0; }
.prompt__text { font-family: var(--display); font-stretch: 100%; font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.01em; }
.prompt__caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--accent); animation: caret 1s steps(1) infinite; }
.prompt__send { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 6px; background: var(--accent); }
.prompt__send::after {
  content: ""; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px;
  border: solid var(--ink); border-width: 2px 0 0 2px; transform: rotate(45deg);
}
@keyframes caret { 50% { opacity: 0; } }
.skills { border-top: 1px solid var(--line); }
.skill { position: relative; display: grid; gap: 2px; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); cursor: pointer; }
.skill::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; background: var(--line); transition: background-color 250ms ease-out; }
.skill.is-active::before { background: var(--accent); }
.skill__title { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; transition: color 250ms ease-out; }
.skill.is-active .skill__title { color: var(--accent); }
.skill__line { color: var(--muted); font-size: 15px; }

.ai-close {
  width: var(--content); margin-inline: auto; padding: var(--sec) 0; border-top: 1px solid var(--line);
  display: grid; gap: 32px; justify-items: start;
}
.ai-close__why {
  font-family: var(--display); font-stretch: 100%; font-weight: 500;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; max-width: 28ch;
}

/* ---------- Store preview (stays on the page) ---------- */
.peek {
  width: min(100% - 24px, 980px); max-width: none; max-height: calc(100svh - 24px); margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--text); overflow: hidden;
}
.peek::backdrop { background: rgba(8, 9, 11, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.peek[open] { animation: peekIn 450ms var(--ease); }
@keyframes peekIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.peek__inner { position: relative; display: grid; gap: 20px; padding: 20px; max-height: calc(100svh - 26px); overflow: auto; }
.peek__phone {
  justify-self: center; width: min(68vw, 300px); height: min(56svh, 620px); padding: 8px; border-radius: 36px;
  background: linear-gradient(145deg, #2a2f38, #12151a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.peek__screen { height: 100%; overflow-y: auto; overscroll-behavior: contain; border-radius: 28px; background: #fff; scrollbar-width: none; }
.peek__screen::-webkit-scrollbar { display: none; }
.peek__screen img { width: 100%; }
.peek__copy { display: grid; gap: 10px; align-content: center; justify-items: start; }
.peek__cat { color: var(--muted); font-size: 15px; }
.peek__name { font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.02em; }
.peek__hint { color: var(--muted); font-size: 15px; }
.peek__pitch { font-size: 19px; line-height: 1.4; max-width: 30ch; margin: 8px 0 8px; }
.peek__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color 200ms ease-out;
}
.peek__close:hover { border-color: var(--accent); }
.peek__close::before, .peek__close::after {
  content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transform: rotate(45deg);
}
.peek__close::after { transform: rotate(-45deg); }
@media (min-width: 760px) {
  .peek__inner { grid-template-columns: auto 1fr; gap: 48px; padding: 40px; }
  .peek__phone { width: 300px; height: min(calc(100svh - 120px), 640px); }
}

/* ---------- About ---------- */
.about {
  display: grid; gap: 40px; padding: var(--sec) 0;
  width: var(--content); margin-inline: auto; border-top: 1px solid var(--line);
}
.about__photo { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 5; background: var(--bg-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.about__copy { display: grid; gap: 20px; align-content: start; }
.about__copy > p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.about__copy > p:first-of-type { color: var(--text); font-size: 20px; }
.about__label { margin-top: 20px; font-size: 16px; font-weight: 600; }
/* Brand wall: each brand's real logo, in its own colours, on a tile in its own colour */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.brand {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--tile); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transition: translate 400ms var(--ease), box-shadow 400ms var(--ease);
}
.brand img { width: calc(var(--s) * 100%); max-height: 62%; object-fit: contain; }
.brand:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 26px 50px -24px rgba(0, 0, 0, 0.95); }

/* ---------- Final ---------- */
.final { padding: calc(var(--sec) * 1.3) var(--gutter); text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; overflow: hidden; }
.final__title {
  width: 100%;
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(64px, 17vw, 280px); line-height: 0.82; letter-spacing: -0.04em;
  color: var(--accent); white-space: nowrap; text-align: center;
}
.final__line { font-size: clamp(19px, 2vw, 24px); max-width: 30ch; text-wrap: balance; }
.final__actions { display: grid; justify-items: center; gap: 6px; margin-top: 8px; }

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; gap: 0 28px; align-items: center;
  padding: 18px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.foot a { display: inline-block; padding: 10px 0; }
.foot a:hover { color: var(--text); }
.foot__copy { margin-left: auto; }

/* Fine film grain over everything; cheap: one fixed layer, no blend mode */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =================== Breakpoints =================== */
@media (min-width: 430px) {
  .bar__cta .long { display: inline; }
  .bar__cta .short { display: none; }
}

@media (min-width: 560px) {
  .bar__short { display: none; }
  .bar__full { display: inline; }
  .logos { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .bar { padding-block: 14px; grid-template-columns: 1fr auto 1fr; }
  .bar__cta { justify-self: end; }
  .switch__opt { padding-inline: 18px; }
  .hero { min-height: 100svh; padding-top: 104px; padding-bottom: 32px; }
  .hero__name { margin-top: 3vh; text-align: center; }
  .hero__first, .hero__last { display: inline; }
  .hero__portrait {
    position: absolute; z-index: 1; left: 50%; bottom: 0; margin: 0;
    width: auto; height: min(83svh, 980px); aspect-ratio: 1100 / 1213; transform: translateX(-46%);
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  }
  .hero__portrait img { height: 100%; width: auto; }
  .hero__copy { margin-top: auto; }
  .hero__line { max-width: 20ch; font-size: clamp(24px, 2.4vw, 34px); }
  .doors { margin-top: 28px; gap: 12px; max-width: 760px; }
  .door { padding: 18px 20px; }
  .door__title { font-size: 24px; }
  .door__sub { font-size: 14px; }

  .offers__grid { grid-template-columns: 1fr 1fr; }
  .offer { padding: 32px; }


  .about { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }

  .js .explore__tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  .runs { grid-template-columns: 1fr 1fr; }
  .runs__line { display: block; }
  .run__steps { --rail: 44px; }
  .explore__tabs button { min-height: 60px; font-size: 19px; }
  .run__steps { padding: 24px; }
}

@media (min-width: 1024px) {
  .hero__copy { max-width: 32vw; }
  .doors { position: absolute; right: var(--gutter); bottom: 32px; width: min(38vw, 560px); grid-template-columns: 1fr; }
  .hero__portrait { transform: translateX(-50%); }

  /* Audit: the stages live on the dial */
  .audit { padding-block: calc(var(--sec) * 1.5); }
  .audit__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .meter { display: none; }
  .stages { margin-top: 40px; }
  .dial { display: grid; place-items: center; position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: end; }
  .dial__svg { width: 100%; height: 100%; overflow: visible; }
  .dial__seg { fill: none; stroke: var(--line-ink); stroke-width: 10; }
  .dial__fill { fill: none; stroke: var(--growth); stroke-width: 10; }
  .dial__ticks line { stroke: var(--ink); stroke-width: 0.6; opacity: 0.3; }
  .dial__ticks line.is-major { stroke-width: 1.2; opacity: 0.8; }
  .dial__label { font-family: var(--body); font-size: 7.5px; font-weight: 600; fill: var(--ink-soft); dominant-baseline: middle; transition: fill 300ms ease-out; }
  .dial__label.is-active { fill: var(--growth-deep); }
  .dial__read { position: absolute; display: grid; justify-items: center; }
  .dial__num {
    font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: clamp(96px, 11vw, 168px); line-height: 0.85;
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  }
  .dial__unit { font-weight: 600; color: var(--ink-soft); margin-top: 6px; }

  /* With motion on, the section pins and one stage shows at a time */
  .audit.is-pinned { min-height: 100svh; display: grid; align-items: center; padding-block: 88px 40px; }
  .audit.is-pinned .stage { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
  .audit.is-pinned .stage.is-active { opacity: 1; transform: none; pointer-events: auto; }

  .steps__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .row__body { grid-template-columns: 1.4fr 1fr; gap: 48px; padding-left: 8px; }
  .row summary:hover .row__title, .row[open] .row__title { font-stretch: 118%; }

  .stores__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .stores__head .lede { justify-self: end; }

  .offer { padding: 44px 40px; }
  .offer__demo { min-height: 200px; }

  .industry { grid-template-columns: minmax(280px, 4fr) 7fr; gap: 24px; align-items: start; }
  .runs { grid-template-columns: 1fr; gap: 8px; position: sticky; top: 100px; }
  .runs__item { padding: 18px 20px; }
  .runs__title { font-size: 17px; }
  .run__steps { min-height: 400px; gap: 14px; }
  .run .bubble { font-size: 15px; }
  .step--think, .step--act, .step--trigger { font-size: 15px; }

  .learn__body { grid-template-columns: 6fr 5fr; gap: 48px; }
  .prompt { position: sticky; top: 120px; min-height: 400px; padding: 28px; }
  .prompt__answer { font-size: 18px; }
}

/* Desktop pinned store track: JS adds .is-pinned; the native scroller stays for everyone else */
@media (min-width: 1024px) {
  .stores.is-pinned { height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .stores.is-pinned .stores__head { padding-top: 76px; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
  .stores.is-pinned .h2 { font-size: clamp(40px, 4.4vw, 68px); white-space: nowrap; }
  .stores.is-pinned .stores__viewport { overflow: visible; scroll-snap-type: none; margin-top: 3vh; }
  .stores.is-pinned .stores__track { gap: 44px; padding-right: 12vw; }
  .stores.is-pinned .phone { --w: min(19vw, calc((100svh - 360px) * 9 / 19.2), 280px); margin-bottom: 10px; }
}

@media (min-width: 1440px) {
  :root { --gutter: 48px; }
}

/* Hero entrance: CSS only, runs at first paint and never waits for scripts.
   The portrait only moves (no fade), so it counts as painted straight away. */
@media (prefers-reduced-motion: no-preference) {
  .hero__first, .hero__last { animation: nameIn 1.1s var(--ease) both; }
  .hero__last { animation-delay: 0.08s; }
  .hero__portrait img { animation: portraitIn 1.4s var(--ease) backwards; }
  .hero__intro, .hero__copy, .doors { animation: riseIn 0.9s var(--ease) both; }
  .hero__intro { animation-delay: 0.1s; }
  .hero__copy { animation-delay: 0.45s; }
  .doors { animation-delay: 0.6s; }
}
@keyframes nameIn {
  from { clip-path: inset(0 0 100% 0); transform: translateY(0.3em); }
  to { clip-path: inset(0 0 -10% 0); transform: none; }
}
@keyframes portraitIn { from { transform: translateY(7%) scale(1.03); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Phones and tablets: a compact "pick your business" ---------- */
@media (max-width: 1023px) {
  .explore__tabs button { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .industry { margin-top: 16px; gap: 12px; }
  .runs { gap: 6px; }
  .runs__item { min-height: 44px; padding: 11px 14px; }
  .runs__title { font-size: 15px; }
  /* only the chosen example is in the page flow, so short examples don't leave a tall empty box */
  .js .player > .run { grid-area: auto; }
  .run.is-off { display: none; }
}
@media (max-width: 759px) {
  .run { position: relative; }
  .run__bar { min-height: 56px; padding: 6px 76px 6px 14px; }
  .run__title { display: none; }
  .run__replay { position: absolute; top: 6px; right: 8px; min-height: 44px; padding: 0 12px; font-size: 13px; }
  .run__steps { padding: 16px 14px 18px var(--rail); gap: 10px; }
  .run__foot { padding: 10px 14px; gap: 6px 8px; }
  .run__built { font-size: 12px; }
  .run__tools li { font-size: 12px; padding: 2px 8px; }
}

/* Instagram link: footer and under the brand wall */
.ig { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ig__icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig__icon .ig__dot { fill: currentColor; stroke: none; }
.ig--about {
  justify-self: start; margin-top: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 15px; transition: border-color 200ms ease-out, color 200ms ease-out;
}
.ig--about .ig__icon { color: var(--accent); }
.ig--about .ig__handle { color: var(--muted); font-weight: 500; }
.ig--about:hover { border-color: var(--accent); }
.foot .ig:hover { color: var(--text); }
.foot .ig { display: inline-flex; padding: 0; }
