/* Detalia public site. Night base, Electric Blue for light and focus, white for the primary action.
   Lime and mint never fill a control: they appear only inside gradients (see brand/identity.html). */

@font-face { font-family: "Geist"; src: url("../fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #0A0716;            /* Night */
  --surface: #100B22;
  --surface-2: #15102B;     /* Panel */
  --surface-3: #231A4A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --muted: #9A93B8;         /* Slate */
  --faint: #6A6290;
  --accent: #9A7BFF;        /* Sky: accent text, icons, focus on dark */
  --accent-ink: #1A0E4F;    /* Ink: text on white */
  --accent-soft: rgba(154, 123, 255, 0.14);
  --blue: #5B2EFF;          /* Electric Blue: glows and gradients */
  --electric: radial-gradient(90% 90% at 85% 0%, #9A7BFF, transparent 60%), linear-gradient(150deg, #5B2EFF, #3504D6 55%, #0A0716);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --narrow: 1000px;
  --gutter: 24px;
  --nav-height: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would make body a scroll container and break scroll-driven animations */
}
img { display: block; max-width: 100%; }
/* Side-entering elements start off-screen; clip keeps them from widening the page without breaking sticky layout. */
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page to page: the page you leave lifts slightly and fades while the next one rises into place. The navigation bar
   stays put. Browsers without cross-page View Transitions simply navigate. */
@view-transition { navigation: auto; }
html { background: var(--bg); }
.nav { view-transition-name: site-nav; }
/* Transform and opacity only, so the browser moves the two page snapshots on the GPU and the swap stays smooth. */
::view-transition-old(root) { animation: page-leave 0.42s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: page-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
@keyframes page-leave { to { transform: translateY(-6%); opacity: 0; } }
@keyframes page-enter { from { transform: translateY(8%); opacity: 0; } }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; }
.brand__mark { width: 26px; height: 26px; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 45px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.button svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.button:hover svg { transform: translate(2px, -2px); }
.button:active { transform: scale(0.97); }
.button--primary { background: #fff; color: var(--accent-ink); box-shadow: inset 0 -2px 0 rgba(26, 14, 79, 0.08); }
.button--primary:hover { background: #EFEAFF; }
.button--dark { background: #15102B; border-color: var(--line-strong); color: var(--text); }
.button--dark:hover { background: #231A4A; }
.button--ghost { background: var(--glass); border-color: rgba(255, 255, 255, 0.2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.button--ghost:hover { border-color: rgba(255, 255, 255, 0.36); }

/* ---------- Navigation ---------- */
/* Clear over the hero; once the page scrolls, a tinted panel slides down behind the links while the bar frosts what
   passes under it. The blur sits on the bar itself: its view-transition-name makes it a backdrop root, so a blur on a
   child would only see the bar's own contents. Both also show while the mobile menu is open. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-height);
  display: flex; align-items: center;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition: backdrop-filter 0.55s var(--ease-out), -webkit-backdrop-filter 0.55s var(--ease-out);
}
.nav.is-scrolled, .nav[data-open="true"] { -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(10, 7, 22, 0.6); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out), opacity 0.45s var(--ease-out);
}
.nav.is-scrolled::before, .nav[data-open="true"]::before { opacity: 1; transform: none; }
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 15px; color: #d8d8d8; transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__actions { display: flex; gap: 10px; justify-content: flex-end; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; justify-self: end; }
.nav__toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared section parts ---------- */
.section { padding: 100px 0; position: relative; }
.badge { display: block; width: min(380px, 80vw); text-align: center; white-space: nowrap; overflow: hidden; color: var(--accent); font: 500 12.5px/1.6 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
/* A looping eyebrow: the label repeats and slides sideways inside a strip with faded ends (built by site.js). */
/* Same box before and after site.js builds the strip, so nothing shifts when it starts. */
.badge--loop { text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.badge__track { display: flex; width: max-content; animation: eyebrow-loop var(--loop, 22s) linear infinite; }
.badge--reverse .badge__track { animation-direction: reverse; }
.badge__item { display: inline-flex; align-items: center; gap: 16px; padding-right: 16px; white-space: nowrap; }
.badge__item svg { width: 9px; height: 9px; fill: currentColor; opacity: 0.6; }
@keyframes eyebrow-loop { to { transform: translateX(-50%); } }
.section-title { margin: 0; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.section-lead { margin: 16px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }
.section-head { margin-bottom: 48px; text-align: center; display: grid; justify-items: center; }
.section-head .section-lead { margin-inline: auto; }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .section-lead { margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-height) + 80px) 0 0; position: relative; overflow: hidden; }
.hero__copy { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero__title { margin: 0; font-size: clamp(40px, 5.6vw, 76px); white-space: nowrap; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.hero__title em, .section-title em, .waitlist-hero__title em, .scroll-text em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.hero__lead { margin: 0; max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
/* The product window rises from below into place as soon as the page is ready (or as the preloader lifts),
   then flattens as the page scrolls. Both are transform-only on their own layers, so they run on the GPU. */
.hero__stage { position: relative; margin: 64px auto 0; width: min(var(--narrow), 100% - 2 * var(--gutter)); perspective: 1600px; perspective-origin: 50% 0; }
.js .hero__stage { opacity: 0; transform: translateY(160px); transition: opacity 0.9s var(--ease-out), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity; }
.js.is-revealed .hero__stage { opacity: 1; transform: none; }
/* hero.js eases --tilt from 0 (tilted back) to 1 (flat) as the page scrolls, so each wheel step glides instead of jumping. */
.hero__tilt { --tilt: 0; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--tilt)) * 18deg)) scale(calc(0.94 + var(--tilt) * 0.06)); will-change: transform; }
/* The window fades into the page under a gradient layer (a mask on a moving 3D layer would repaint every frame). */
.hero__stage::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 14%; z-index: 2; pointer-events: none; background: linear-gradient(transparent, var(--bg) 95%); }

/* Product window shown in the hero: Studio's real Enhance screen with several images. hero.js plays it: the shared
   prompt types, Enhance all is pressed, three images enhance at once, then the fourth. */
.studio { position: relative; border-radius: var(--radius); padding: 10px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.app { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #050A22; font-size: 13px; color: var(--muted); }
.app__top { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.app__logo { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 14px; }
.app__logo svg { width: 16px; height: 16px; }
.app__crumb { color: var(--faint); }
.app__account { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; }
.app__account i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #0E1A55; color: #D6CCFF; font-style: normal; font-weight: 600; }
.app__body { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.app__rail { display: grid; align-content: start; justify-items: center; gap: 10px; padding: 14px 0; border-right: 1px solid var(--line); }
.app__rail i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--faint); }
.app__rail i.is-on { background: #fff; color: var(--accent-ink); }
.app__rail svg { width: 17px; height: 17px; }
.app__main { display: grid; gap: 14px; padding: 18px 20px 20px; min-width: 0; }
.app__head { display: flex; align-items: center; justify-content: space-between; }
.app__head b { color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.app__toggle { display: flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); }
.app__toggle span { padding: 5px 12px; border-radius: 9px; font-size: 11.5px; }
.app__toggle .is-on { background: var(--surface-3); color: var(--text); }
.app__tools { display: flex; align-items: center; gap: 12px; }
.app__add { padding: 6px 12px; border-radius: 10px; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 600; }
.app__count { font-size: 12px; }
/* One photo, three selections: the scene with each selection outlined, and the list of selections beside it. */
.app__work { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.app__canvas { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #000; aspect-ratio: 1600 / 1081; }
.app__canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-region { --placed: 0; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.app-region img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.app-region__after { clip-path: inset(0 calc(100% - var(--placed) * 100%) 0 0); }
.app-region::after { content: ""; position: absolute; inset: 0; border: 1.5px dashed rgba(255, 255, 255, 0.85); border-radius: 4px; transition: opacity 0.5s, border-color 0.4s; }
.app-region.is-running::after { border-color: var(--accent); border-style: solid; }
.app-region.is-done::after { opacity: 0; }
.app-region__tag { position: absolute; z-index: 1; left: 6px; top: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #fff; color: var(--accent-ink); font-size: 11px; font-weight: 700; transition: opacity 0.5s; }
.app-region.is-done .app-region__tag { opacity: 0; }
.app__regions { display: grid; gap: 8px; }
.app__regions-title { display: flex; align-items: center; justify-content: space-between; color: var(--faint); font: 500 10.5px/1.6 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.app__regions-title b { color: var(--text); }
.app-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 9px 10px; overflow: hidden; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color 0.4s; }
.app-row.is-running { border-color: rgba(154, 123, 255, 0.6); }
.app-row__thumb { position: relative; grid-row: span 2; width: 40px; height: 40px; }
.app-row__thumb img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.app-row__thumb b { position: absolute; left: -4px; top: -4px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: #fff; color: var(--accent-ink); font-size: 10px; }
.app-row__name { display: grid; min-width: 0; color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.app-row__name small { overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 10.5px; font-weight: 500; }
.app-row__status { font-size: 11px; }
.app-row.is-running .app-row__status { color: var(--accent); }
.app-row.is-done .app-row__status { color: #7EE2A8; }
.app-row__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.app-row__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.app__composer { display: flex; align-items: flex-start; gap: 16px; padding: 14px 14px 14px 18px; border-radius: 18px; border: 1px solid var(--line-strong); background: #0A1033; }
.app__composer-text { flex: 1; min-width: 0; display: grid; gap: 8px; }
.app__composer-top { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.app__composer-top small { color: var(--faint); font-size: 10.5px; }
.app__atonce { margin-left: auto; }
.app__atonce b { margin-left: 6px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--text); }
.app__prompt { display: grid; margin: 0; color: #E4DCFF; font-size: 12.5px; line-height: 1.55; }
.app__prompt > span { grid-area: 1 / 1; }
.app__prompt-ghost { visibility: hidden; }
.app__prompt-text.is-caret::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: flow-caret 0.9s steps(1) infinite; }
.app__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.app__pills span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--surface-3); color: var(--text); font-size: 11.5px; font-weight: 600; }
.app__pills img { width: 16px; height: 16px; border-radius: 4px; }
.app__pills img + img { margin-left: -4px; }
.app__pills svg { width: 13px; height: 13px; }
.app__go { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; background: #fff; color: var(--accent-ink); font-size: 13.5px; font-weight: 700; transition: scale 0.2s var(--ease-out), background-color 0.3s, color 0.3s; }
.app__go svg { width: 15px; height: 15px; }
.app__go.is-pressed { scale: 0.94; }
.app__go.is-busy { background: var(--surface-3); color: #D6CCFF; }

/* ---------- Stats strip ---------- */
/* Stats: four figures that count up when they reach the screen; a line under each fills as it counts. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { position: relative; padding: 26px 24px 30px; transition: background-color 0.4s; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:hover { background: linear-gradient(180deg, rgba(154, 123, 255, 0.07), transparent); }
.stat__value { display: flex; align-items: baseline; gap: 6px; font-size: 44px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #B9A6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__value small { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: #D6CCFF; -webkit-text-fill-color: #D6CCFF; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 230px; }
.stat__bar { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.stats.is-counted .stat__bar { transform: scaleX(1); }
.stats.is-counted .stat:nth-child(2) .stat__bar { transition-delay: 0.12s; }
.stats.is-counted .stat:nth-child(3) .stat__bar { transition-delay: 0.24s; }
.stats.is-counted .stat:nth-child(4) .stat__bar { transition-delay: 0.36s; }

/* ---------- Features ---------- */
/* Features as a bento: tiles of two sizes, each opening on a small live visual of the feature at work. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento__tile {
  position: relative; grid-column: span 2; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: border-color 0.35s, translate 0.5s var(--ease-out);
}
.bento__tile:hover { border-color: var(--line-strong); translate: 0 -3px; }
.bento__tile--panel { grid-column: span 4; }
.bento__tile--whole, .bento__tile--saved { grid-column: span 3; }
.bento__visual {
  position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, rgba(154, 123, 255, 0.16), transparent 70%), radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0) 0 0 / 18px 18px;
}
.bento__body { display: grid; align-content: start; gap: 8px; padding: 22px 24px 26px; }
.bento__kicker { color: var(--accent); font: 500 12px/1.4 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.bento__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.bento__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* In Photoshop: a Detalia panel working through a batch. */
/* The panel rises from the bottom edge of its tile, so a tall batch reads as a window peeking in, not a cropped box. */
.bento__tile--panel .bento__visual { align-items: end; padding-top: 26px; }
.bento__tile--panel .ps-panel { margin-bottom: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 18px; }
.ps-panel { width: min(400px, 86%); padding: 10px; border-radius: 14px; background: #0A0F2B; border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9); display: grid; gap: 6px; font-size: 12.5px; }
.ps-panel__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; font-weight: 600; }
.ps-panel__head .flow-app { width: 22px; height: 22px; border-radius: 6px; }
.ps-panel__head .flow-app svg { width: 12px; height: 12px; }
.ps-panel__tab { margin-left: auto; color: var(--faint); font: 500 10.5px/1 "Geist Mono", ui-monospace, monospace; }
.ps-panel__row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.ps-panel__row img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.ps-panel__row span { display: grid; color: #E4DCFF; font-weight: 600; }
.ps-panel__row small { color: var(--faint); font-weight: 400; font-size: 11px; }
.ps-panel__row em { display: inline-flex; align-items: center; gap: 7px; font-style: normal; color: var(--faint); font: 500 10.5px/1 "Geist Mono", ui-monospace, monospace; }
.ps-panel__row.is-done em { color: #7EE2A8; }
.ps-panel__row.is-running { background: var(--accent-soft); outline: 1px solid rgba(154, 123, 255, 0.35); }
.ps-panel__row.is-running em { color: var(--accent); }
.ps-panel__bar { position: relative; width: 44px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ps-panel__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: bento-bar 2.6s var(--ease-out) infinite; }
@keyframes bento-bar { from { transform: scaleX(0.1); } to { transform: scaleX(1); } }

/* Batches: twenty regions, eight done, five running, the rest queued. */
.regions { display: grid; grid-template-columns: repeat(5, 26px); gap: 8px; }
.regions i { width: 26px; height: 26px; border-radius: 7px; border: 1px dashed rgba(255, 255, 255, 0.18); }
.regions i.is-done { border: 0; background: var(--accent); }
.regions i.is-running { border: 1px solid var(--accent); background: var(--accent-soft); animation: bento-pulse 1.6s ease-in-out infinite; animation-delay: calc(var(--n) * 0.12s); }
@keyframes bento-pulse { 50% { background: rgba(154, 123, 255, 0.45); } }
.regions__count { position: absolute; right: 16px; bottom: 14px; color: var(--faint); font: 500 11px/1 "Geist Mono", ui-monospace, monospace; }
.regions__count b { color: var(--text); font-weight: 600; }

/* Identity: the same face before and after, split down the middle. */
.mini-compare { position: absolute; inset: 0; }
.mini-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mini-compare__after { clip-path: inset(0 0 0 50%); }
.mini-compare__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); }
.mini-compare__badge { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 7, 22, 0.78); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.mini-compare__badge svg { width: 12px; height: 12px; color: #7EE2A8; }

/* Platforms: the five platforms, and the two ways to pay for them. */
.platforms { display: grid; justify-items: center; gap: 18px; }
.platforms__logos { display: flex; }
.platforms__logos img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); background: #1D1638; object-fit: cover; }
.platforms__logos img + img { margin-left: -10px; }
.platforms__ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.platforms__ways span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: #D6CCFF; font-size: 12px; }
.platforms__ways span:first-child { border-color: rgba(154, 123, 255, 0.5); color: var(--accent); }

/* Review: a loupe over the result, at pixel zoom. */
.loupe { position: absolute; inset: 0; }
.loupe > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.loupe__lens { position: absolute; left: 50%; top: 46%; width: 116px; height: 116px; translate: -50% -50%; border-radius: 50%; border: 2px solid #fff;
  background: url("../img/flow/phone-after.webp") 46% 38% / 420% no-repeat; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.08); }
.loupe__chips { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; }
.loupe__chips span { padding: 3px 8px; border-radius: 6px; background: rgba(10, 7, 22, 0.8); font: 500 10.5px/1.5 "Geist Mono", ui-monospace, monospace; }
.loupe__chips span:first-child { color: var(--accent); }

/* The bento is alive: tiles rise in and sink back out as they cross the screen, a light follows the pointer, and each
   visual keeps moving (the panel and the batch grid are stepped by site.js). */
.bento__tile::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(154, 123, 255, 0.14), transparent 70%);
}
.bento__tile:hover::before { opacity: 1; }
.bento__tile:hover { border-color: rgba(154, 123, 255, 0.35); }
.bento__visual > * { transition: scale 0.7s var(--ease-out); }
.bento__tile:hover .bento__visual > * { scale: 1.03; }
.js .bento__tile[data-reveal] { transform: translateY(46px) scale(0.96); filter: blur(6px); transition: opacity 0.8s var(--ease-out) var(--delay, 0s), transform 0.9s var(--ease-out) var(--delay, 0s), filter 0.8s var(--ease-out) var(--delay, 0s), border-color 0.35s, translate 0.5s var(--ease-out); }
.js .bento__tile[data-reveal].is-in { transform: none; filter: none; }

.ps-panel__row { transition: background-color 0.4s, outline-color 0.4s; outline: 1px solid transparent; }
.ps-panel__row em { transition: color 0.4s; }
.regions i { transition: background-color 0.35s, border-color 0.35s; }
.mini-compare { --split: 50%; animation: bento-split 5s ease-in-out infinite; }
.mini-compare__after { clip-path: inset(0 0 0 var(--split)); }
.mini-compare__line { left: var(--split); }
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@keyframes bento-split { 0%, 100% { --split: 28%; } 50% { --split: 72%; } }
.platforms__logos img { animation: bento-bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.18s); }
.platforms__logos img:nth-child(2) { --i: 1; } .platforms__logos img:nth-child(3) { --i: 2; } .platforms__logos img:nth-child(4) { --i: 3; } .platforms__logos img:nth-child(5) { --i: 4; }
@keyframes bento-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.platforms__ways span { transition: border-color 0.4s, color 0.4s; animation: bento-toggle 4s steps(1) infinite; }
.platforms__ways span:last-child { animation-delay: -2s; }
@keyframes bento-toggle { 0% { border-color: rgba(154, 123, 255, 0.55); color: var(--accent); } 50% { border-color: var(--line-strong); color: #D6CCFF; } }
.loupe__lens { animation: bento-lens 7s ease-in-out infinite; }
@keyframes bento-lens {
  0%, 100% { left: 42%; top: 42%; background-position: 42% 32%; }
  33% { left: 60%; top: 52%; background-position: 60% 46%; }
  66% { left: 50%; top: 34%; background-position: 50% 24%; }
}
.saved__check { animation: bento-check 4.5s var(--ease-out) infinite; }
.saved__item:nth-child(2) .saved__check { animation-delay: 0.35s; }
.saved__item:nth-child(3) .saved__check { animation-delay: 0.7s; }
@keyframes bento-check { 0%, 8% { scale: 0; } 18%, 88% { scale: 1; } 100% { scale: 0; } }

/* Whole image (soon): the scene under a grid of tiles that sharpen one after another. */
.tiles { position: absolute; inset: 0; }
.tiles > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(0.9); }
.tiles__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.tiles__grid i { border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 7, 22, 0.35); animation: tiles-sharpen 6s ease-in-out infinite; animation-delay: calc(var(--n) * 0.32s); }
@keyframes tiles-sharpen { 0%, 100% { background: rgba(10, 7, 22, 0.35); border-color: rgba(255, 255, 255, 0.18); } 18%, 60% { background: rgba(154, 123, 255, 0); border-color: rgba(154, 123, 255, 0.7); } }
.tiles__soon { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }

/* Saved: finished results, each checked off into history. */
.saved { display: flex; align-items: center; gap: 14px; padding: 24px; }
.saved__item { position: relative; width: 74px; height: 74px; }
.saved__item img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; border: 1px solid var(--line-strong); }
.saved__check { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #7EE2A8; color: #052012; border: 2px solid var(--surface); }
.saved__check svg { width: 12px; height: 12px; }
.saved__note { display: grid; margin-left: 6px; color: var(--faint); font-size: 12.5px; }
.saved__note b { color: var(--text); font-size: 15px; font-weight: 600; }
.section-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Comparison ---------- */
/* Why Detalia: one row per topic, typical tools against Detalia. The Detalia column is lit, and a soft light runs
   down it on a loop. */
.vs { position: relative; display: grid; }
.vs::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: calc((100% - 150px) * 0.54); border-radius: 22px; pointer-events: none;
  border: 1px solid rgba(154, 123, 255, 0.4); background: linear-gradient(180deg, rgba(154, 123, 255, 0.1), rgba(154, 123, 255, 0.03));
}
.vs::before {
  content: ""; position: absolute; z-index: 1; right: 0; width: calc((100% - 150px) * 0.54); height: 140px; top: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(154, 123, 255, 0.16), transparent); animation: vs-sweep 6s ease-in-out infinite;
}
@keyframes vs-sweep { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 140px); opacity: 0; } }
.vs__head, .vs__row { position: relative; z-index: 2; display: grid; grid-template-columns: 150px 0.46fr 0.54fr; align-items: center; }
.vs__head { padding: 22px 0 14px; }
.vs__label { padding: 0 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.vs__label--ours { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; }
.vs__label--ours .flow-app { width: 28px; height: 28px; }
.vs__label--ours .flow-app svg { width: 15px; height: 15px; }
.vs__row { border-top: 1px solid var(--line); transition: background-color 0.3s; }
.vs__row:hover { background: rgba(255, 255, 255, 0.025); }
.vs__topic { padding: 18px 0; color: var(--faint); font: 500 12px/1.4 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.vs__cell { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; font-size: 15px; line-height: 1.5; }
.vs__cell svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.vs__cell--other { color: var(--muted); }
.vs__cell--other svg { color: var(--faint); }
.vs__cell--ours { color: var(--text); font-weight: 500; }
.vs__cell--ours svg { color: var(--accent); transition: scale 0.5s var(--ease-out) 0.3s; }
.js .vs__row:not(.is-in) .vs__cell--ours svg { scale: 0; }
.vs__row:hover .vs__cell--ours svg { scale: 1.2; }

/* ---------- Where Detalia works (display only) ---------- */
.everywhere { padding: 64px 0 0; }
/* One bar: the title on the left, each way in on the right with the services it reaches. */
.ways {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 14px 12px 26px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
}
.ways__title { margin: 0; font-size: 15.5px; font-weight: 500; color: #ECE6FF; letter-spacing: -0.01em; white-space: nowrap; }
.ways__list { display: flex; align-items: center; }
.way { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 14px; color: #ECE6FF; font-size: 15px; font-weight: 500; transition: background-color 0.25s; }
.way + .way { position: relative; }
.way + .way::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line-strong); }
.way:hover { background: rgba(255, 255, 255, 0.05); }
.way__arrow { width: 15px; height: 15px; color: var(--muted); transition: transform 0.35s var(--ease-out), color 0.25s; }
.way:hover .way__arrow { transform: translate(2px, -2px); color: var(--text); }
.way__icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent-ink); }
.way__icon svg { width: 16px; height: 16px; }
.way__icon--ps { background: #001e36; color: #31a8ff; font-size: 11.5px; font-weight: 800; border-radius: 9px; }
.way__logos { display: flex; align-items: center; }
.way__logos img, .way__more { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--surface); background: #1D1638; object-fit: cover; }
.way__logos > * + * { margin-left: -9px; }
.way__more { display: grid; place-items: center; font: 600 11px/1 "Geist Mono", ui-monospace, monospace; color: var(--text); background: var(--surface-3); }

/* ---------- Scroll-driven statement: words light up as the section passes ---------- */
.statement { padding: 120px 0 90px; }
.scroll-text { margin: 0 auto; max-width: 960px; text-align: center; font-size: clamp(28px, 4vw, 46px); line-height: 1.2; font-weight: 500; letter-spacing: -0.035em; }
.scroll-text__word { opacity: 0.16; transition: opacity 0.25s linear; }
.scroll-text__word--accent { background: linear-gradient(90deg, #9A7BFF, #FF7A5C); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Showreel: a curved ring of results (after the owner's portfolio). site.js places every card each frame;
   the centre card holds while its Detalia result sweeps in, then the ring travels on. ---------- */
.ring { --card: clamp(250px, 24vw, 400px); }
.ring__viewport {
  position: relative; width: 100%; height: calc(var(--card) * 1.25 + clamp(110px, 11vw, 200px)); overflow: hidden;
  perspective: calc(var(--card) * 4.5); perspective-origin: 50% 46%; touch-action: pan-y pinch-zoom; cursor: grab; user-select: none;
}
.ring.is-dragging .ring__viewport { cursor: grabbing; }
.ring__viewport::before, .ring__viewport::after {
  content: ""; position: absolute; z-index: 1100; top: 0; bottom: 0; width: clamp(48px, 14vw, 260px); background: var(--bg); pointer-events: none;
}
.ring__viewport::before { left: 0; -webkit-mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.6) 45%, transparent); mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.6) 45%, transparent); }
.ring__viewport::after { right: 0; -webkit-mask-image: linear-gradient(270deg, #000, rgba(0,0,0,.6) 45%, transparent); mask-image: linear-gradient(270deg, #000, rgba(0,0,0,.6) 45%, transparent); }
.ring__card {
  --reveal: 0; position: absolute; top: 47%; left: 50%; width: var(--card); aspect-ratio: 4 / 5; margin: 0; overflow: hidden;
  border-radius: 20px; background: #000; outline: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translate3d(-50%, -50%, 0); will-change: transform, opacity;
}
.ring__card:first-child { opacity: 1; }
.ring__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
/* The result sweeps in from the left; a soft light rides its edge instead of a hard line. */
.ring__after { clip-path: inset(0 calc(100% - var(--reveal) * 100%) 0 0); }
.ring__glow {
  position: absolute; top: 0; bottom: 0; left: calc(var(--reveal) * 100%); width: 90px; translate: -50% 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); opacity: calc(var(--sweeping, 0) * 1);
}
.ring__tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: opacity 0.4s; }
.ring__tag--before { left: 14px; background: rgba(10, 7, 22, 0.68); opacity: calc(1 - var(--reveal)); }
.ring__tag--after { right: 14px; background: #fff; color: var(--accent-ink); opacity: var(--reveal); }
/* Without motion the ring is a plain scrolling row of finished results. */
.ring.is-static .ring__viewport { height: auto; display: flex; gap: 16px; overflow-x: auto; padding: 8px var(--gutter); perspective: none; cursor: auto; scroll-snap-type: x mandatory; }
.ring.is-static .ring__viewport::before, .ring.is-static .ring__viewport::after { display: none; }
.ring.is-static .ring__card { position: relative; top: auto; left: auto; flex: 0 0 var(--card); opacity: 1; transform: none; --reveal: 1; scroll-snap-align: center; }
.reel-section .stats { margin-top: 40px; }

/* ---------- How it works: the Photoshop ↔ AI web round trip as a live, boxless node graph. flow.js plays one lap
   at a time (select, prepare, render on one platform, place) by drawing the wires and toggling the classes below. ---------- */
.flow { --flow-dir: row; }
.flow__graph {
  position: relative; display: grid; grid-template-columns: 1.25fr 1.15fr 0.85fr 1fr; align-items: center; gap: clamp(40px, 4.6vw, 66px);
  padding: 24px 0;
}
/* A dot grid behind the nodes that fades out toward the edges, so the graph sits on the page with no frame. */
.flow__graph::before {
  content: ""; position: absolute; inset: -40px -24px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.flow__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-wire { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; transition: stroke 0.4s, opacity 0.6s; }
.flow-wire.is-hot { stroke: var(--accent); stroke-width: 2; }
.flow-pulse { fill: #fff; stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity 0.2s; }
.flow-pulse.is-on { opacity: 1; }

.flow-node {
  position: relative; z-index: 1; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface-2);
  border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.95);
  transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out), scale 0.7s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.flow-node.is-focus { border-color: rgba(154, 123, 255, 0.75); box-shadow: 0 0 0 4px rgba(154, 123, 255, 0.12), 0 30px 60px -28px rgba(0, 0, 0, 0.95); }
/* While the loop runs, nodes wait off stage until their wire reaches them. */
.flow.is-live .flow-node:not(.flow-node--ps):not(.is-shown) { opacity: 0; translate: 0 14px; scale: 0.96; }
.flow.is-live.is-fading .flow-node:not(.flow-node--ps), .flow.is-live.is-fading .flow-wire { opacity: 0; }

.flow-node__head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.flow-node__kind { margin-left: auto; color: var(--faint); font: 500 10.5px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.45s; }
.flow-node.is-focus .flow-node__kind { color: var(--accent); }
.flow-app { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #001e36; color: #31a8ff; font-size: 11.5px; font-weight: 800; }
.flow-app--detalia { background: var(--electric); }
.flow-app--detalia svg { width: 14px; height: 14px; }
.flow-port { position: absolute; z-index: 2; top: 50%; width: 11px; height: 11px; translate: -50% -50%; border-radius: 50%; background: var(--surface); border: 2px solid rgba(255, 255, 255, 0.35); transition: border-color 0.45s, background-color 0.45s; }
.flow-port--in { left: 0; }
.flow-port--out { left: 100%; }
.flow-node.is-focus .flow-port { border-color: var(--accent); background: var(--accent); }

/* Photoshop canvas: one document at a time on a Photoshop-grey pasteboard. Each job is a patch over its exact spot
   (--x/--y/--w/--h, fractions of the document): the cursor drags its selection (--sel), the stage zooms in, the result
   sweeps in (--placed) and the stage pulls back. flow.js sets those and the stage transform. */
.flow-canvas { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: #26282C; }
.flow-canvas__stage { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.flow-doc { position: absolute; left: 0; right: 0; top: 0; bottom: 0; width: 100%; margin: auto; opacity: 0; transition: opacity 0.6s; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.flow-doc.is-current { opacity: 1; }
.flow-doc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow-patch { --sel: 0; --placed: 0; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
/* The crops are feathered at the edges so they melt into the document. */
.flow-patch > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.flow-patch > .flow-patch__after { clip-path: inset(0 calc(100% - var(--placed) * 100%) 0 0); transition: opacity 0.8s; }
.flow.is-fading .flow-patch__after { opacity: 0; }
.flow-patch__select {
  position: absolute; left: 0; top: 0; width: calc(100% * var(--sel)); height: calc(100% * var(--sel)); opacity: 0;
  background-image: linear-gradient(90deg, #fff 50%, transparent 0), linear-gradient(90deg, #fff 50%, transparent 0), linear-gradient(0deg, #fff 50%, transparent 0), linear-gradient(0deg, #fff 50%, transparent 0);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y; background-size: 6px 1px, 6px 1px, 1px 6px, 1px 6px;
  background-position: 0 0, 0 100%, 0 0, 100% 0; animation: flow-ants 0.8s linear infinite;
  box-shadow: 0 0 0 999px rgba(10, 7, 22, 0.38); transition: opacity 0.4s;
}
.flow-patch.is-selecting .flow-patch__select { opacity: 1; }
@keyframes flow-ants { to { background-position: 6px 0, -6px 100%, 0 -6px, 100% 6px; } }
.flow-patch__size { position: absolute; left: 50%; top: -20px; translate: -50% 0; padding: 1px 6px; border-radius: 5px; background: rgba(10, 7, 22, 0.85); font: 500 9.5px/1.5 "Geist Mono", ui-monospace, monospace; white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.flow-patch.is-selected:not(.is-zoomed) .flow-patch__size { opacity: 1; }
.flow-canvas__cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -3px 0 0 -4px; fill: #fff; stroke: #0A0716; stroke-width: 1.4; opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.flow-canvas.is-dragging .flow-canvas__cursor { opacity: 1; }
.flow-canvas__zoom { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(10, 7, 22, 0.75); color: #D6CCFF; font: 500 10.5px/1.6 "Geist Mono", ui-monospace, monospace; }
.flow-node__title { display: grid; line-height: 1.2; }
.flow-node__title small { color: var(--faint); font: 500 10.5px/1.3 "Geist Mono", ui-monospace, monospace; }

/* HUD: the clock and the steps that never happen. */
.flow__hud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.flow__hud li { display: flex; align-items: baseline; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.flow__hud b { color: var(--text); font: 600 14px/1 "Geist Mono", ui-monospace, monospace; }
.flow__clock { border-color: rgba(154, 123, 255, 0.45) !important; }
.flow__clock b { color: var(--accent); min-width: 3.2ch; }

.flow-fields { margin: 0; display: grid; gap: 7px; }
.flow-fields > div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; transition: background-color 0.4s; }
.flow-fields dt { color: var(--faint); font: 500 10.5px/1.7 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.flow-fields dd { margin: 0; color: #E4DCFF; transition: opacity 0.4s; }
.flow-fields dd small { color: var(--faint); font-size: 11.5px; }
/* Enhance: pressed once the prompt is written, then busy while the platform renders. */
.flow-enhance { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: 12.5px; font-weight: 700; transition: scale 0.2s var(--ease-out), background-color 0.3s, color 0.3s; }
.flow-enhance.is-pressed { scale: 0.93; }
.flow-enhance.is-busy { background: var(--surface-3); color: #D6CCFF; }
.flow-enhance.is-busy::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--accent); animation: flow-spin 0.8s linear infinite; }
@keyframes flow-spin { to { rotate: 360deg; } }
.flow.is-live .flow-fields > div:not(.is-filled) dd { opacity: 0; }
.flow.is-live .flow-fields > div[data-flow-field="prompt"] dd { opacity: 1; }
.flow-fields > div.is-typing { background: rgba(154, 123, 255, 0.08); }
.flow-fields [data-flow-model] { color: var(--accent); font-weight: 600; }
/* The prompt types over an invisible copy of itself, so the node never changes height (and its wires never move). */
.flow-type { display: grid; }
.flow-type > span { grid-area: 1 / 1; }
.flow-type__ghost { visibility: hidden; }
.flow-type__text.is-caret::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: flow-caret 0.9s steps(1) infinite; }
@keyframes flow-caret { 50% { opacity: 0; } }

.flow-providers { position: relative; z-index: 1; display: grid; gap: 10px; }
.flow-node--provider { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600; overflow: visible; }
.flow-node--provider img { width: 26px; height: 26px; flex: none; border-radius: 7px; }
.flow-provider__name { display: grid; line-height: 1.25; }
.flow-provider__name small { color: var(--faint); font-size: 11px; font-weight: 500; }
.flow-node--provider.is-focus .flow-provider__name small { color: var(--accent); }
/* Render progress along the bottom edge of the platform at work. */
.flow-provider__bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--render, 0)); opacity: 0; transition: opacity 0.3s; }
.flow-node--provider.is-focus .flow-provider__bar { opacity: 1; }

.flow-layer { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; }
.flow-layer:not(.flow-layer--new) { grid-template-columns: auto 1fr; }
.flow-layer__thumb { width: 38px; height: 38px; overflow: hidden; border-radius: 6px; background: #000; }
.flow-layer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.flow-layer__mask { width: 38px; height: 38px; border-radius: 6px; background: radial-gradient(42% 46% at 50% 56%, #fff 96%, #000 100%); }
.flow-layer__name { display: grid; color: #E4DCFF; font-weight: 600; }
.flow-layer__name small { color: var(--faint); font-weight: 400; font-size: 11.5px; }
.flow-layer--new { background: var(--accent-soft); outline: 1px solid rgba(154, 123, 255, 0.35); transition: opacity 0.5s var(--ease-out), translate 0.6s var(--ease-out); }
.flow.is-live .flow-layer--new:not(.is-shown) { opacity: 0; translate: 0 -10px; }
.flow-node--layers { align-self: center; }

/* The four steps below act as the reel's timeline: each line fills while its step plays (--p from flow.js). */
.flow__steps { counter-reset: flow; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.flow__steps li { --p: 0; counter-increment: flow; position: relative; display: grid; align-content: start; gap: 6px; padding-top: 18px; color: var(--muted); font-size: 14.5px; transition: color 0.45s; }
.flow__steps li::before, .flow__steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line-strong); }
.flow__steps li::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.flow:not(.is-live) .flow__steps li::after { transform: none; opacity: 0.6; }
.flow__steps b { display: flex; align-items: baseline; gap: 10px; color: var(--text); font-size: 16px; font-weight: 600; }
.flow__steps b::before { content: "0" counter(flow); color: var(--faint); font: 500 12px/1 "Geist Mono", ui-monospace, monospace; transition: color 0.45s; }
.flow__steps li.is-active { color: #D6CCFF; }
.flow__steps li.is-active b::before { color: var(--accent); }
.flow__note { margin: 26px 0 0; text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- Pricing (shared by Home and the Pricing page) ---------- */
.pricing__toggle { display: flex; width: max-content; margin: 0 auto 56px; padding: 5px; gap: 4px; border-radius: 999px; background: #15102B; border: 1px solid var(--line-strong); }
.pricing__toggle button { height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: none; color: #d0d0d0; font-weight: 600; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.pricing__toggle button[aria-selected="true"] { background: #fff; color: var(--accent-ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin: 0 auto; }
.plans--two { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.plans[hidden] { display: none; }
.plan {
  position: relative; display: grid; gap: 18px; padding: 30px; border-radius: var(--radius-lg);
  background: radial-gradient(130% 60% at 50% 0%, rgba(154, 123, 255, 0.16), transparent 62%), #100B22;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.plan--popular { translate: 0 -36px; background: radial-gradient(130% 62% at 50% 0%, rgba(154, 123, 255, 0.3), transparent 65%), #100B22; border-color: rgba(154, 123, 255, 0.35); }
.plan__head { display: flex; align-items: center; gap: 10px; }
.plan__head svg { width: 26px; height: 26px; color: var(--accent); }
.plan__name { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.plan__badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.plan__desc { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.plan__amount { font-size: 46px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan__period { color: var(--muted); font-size: 15px; }
.plan .button { width: 100%; height: 50px; }
.plan .button--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.plan__features { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 13px; }
.plan__features li { display: flex; gap: 12px; color: #dcdcdc; font-size: 15px; }
.plan__features li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid rgba(154, 123, 255, 0.7); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C8DFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pricing__note { margin: 26px auto 0; text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- Integrations orbit ---------- */
/* clip, not hidden: a hidden overflow would make the section a scroll container and freeze the orbit's view timeline. */
.orbit-section { overflow: clip; }
.orbit {
  --size: 780px; --node: 64px;
  position: relative; width: var(--size); height: var(--size); margin: 0 auto;
}
.orbit__system { position: absolute; inset: 0; }
.orbit__ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.09);
  animation: orbit-spin var(--duration) linear infinite; animation-direction: var(--direction);
}
.orbit__ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 82%, rgba(154, 123, 255, 0.5) 96%, transparent); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
/* A slot puts a node on its ring at angle --a; the upright layer cancels the ring's spin and the scroll turn. */
.orbit__slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.orbit__upright { width: 0; height: 0; animation: orbit-spin var(--duration) linear infinite; animation-direction: var(--counter); }
.orbit__node {
  position: absolute; left: 0; top: 0; width: var(--node); height: var(--node); translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%; background: #15102B; border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.orbit__node img { width: 60%; height: 60%; border-radius: 10px; object-fit: contain; }
.orbit__node--text { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }
.orbit__node--ps { background: #001e36; color: #31a8ff; font-size: 18px; font-weight: 800; }
.orbit__node::after {
  content: attr(data-name); position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; padding: 3px 9px; border-radius: 999px;
  background: #1D1638; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: #d6d6d6;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.orbit__node:hover { border-color: rgba(154, 123, 255, 0.7); }
.orbit__node:hover::after { opacity: 1; }
.orbit:hover .orbit__ring, .orbit:hover .orbit__upright { animation-play-state: paused; }
.orbit__node--soon { border-style: dashed; }
.orbit__node--soon::before { content: "Soon"; position: absolute; top: -8px; right: -10px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: 10px; font-weight: 800; }
.orbit__center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; gap: 10px; text-align: center; }
.orbit__logo { width: 116px; height: 116px; border-radius: 30px; display: grid; place-items: center; background: var(--electric); border: 1px solid rgba(154, 123, 255, 0.5); animation: orbit-pulse 3.2s ease-in-out infinite; }
.orbit__logo svg { width: 70px; height: 70px; }
.orbit__center strong { font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
@keyframes orbit-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(154, 123, 255, 0.3), 0 0 60px -10px rgba(154, 123, 255, 0.5); } 50% { box-shadow: 0 0 0 18px rgba(154, 123, 255, 0), 0 0 90px -10px rgba(154, 123, 255, 0.7); } }
.orbit__glow { position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; max-width: 100vw; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 46, 255, 0.34), rgba(91, 46, 255, 0.12) 45%, transparent); pointer-events: none; }
.orbit-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.orbit-legend li { display: flex; align-items: center; gap: 8px; }
.orbit-legend i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.orbit-legend li:nth-child(2) i { border-color: #d0d0d0; }
.orbit-legend li:nth-child(3) i { border-style: dashed; border-color: var(--faint); }
.orbit-names { margin: 18px auto 0; max-width: 720px; text-align: center; color: var(--faint); font-size: 13.5px; }
/* Entrance: the mark appears first, rings open outwards, then each tool slides in from its own side. */
.js .orbit__center { scale: 0.4; opacity: 0; transition: scale 1s var(--ease-out), opacity 0.8s var(--ease-out); }
.js .orbit__ring { opacity: 0; scale: 0.55; transition: scale 1.2s var(--ease-out), opacity 1s var(--ease-out); transition-delay: var(--ring-delay); }
.js .orbit__node { opacity: 0; transform: translateX(var(--from, 0)); transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out), border-color 0.3s, box-shadow 0.3s; transition-delay: var(--node-delay, 0s), var(--node-delay, 0s), 0s, 0s; }
.js .orbit.is-in .orbit__center, .js .orbit.is-in .orbit__ring { opacity: 1; scale: 1; }
.js .orbit.is-in .orbit__node { opacity: 1; transform: none; }

/* ---------- Pricing page hero ---------- */
.page-hero { position: relative; padding: calc(var(--nav-height) + 90px) 0 10px; text-align: center; overflow: hidden; }
.page-hero__inner { position: relative; display: grid; justify-items: center; gap: 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-height) + 30px); display: grid; gap: 22px; justify-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq__item { overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, background-color 0.3s; }
.faq__item:hover { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(154, 123, 255, 0.05), transparent), var(--surface); }
.faq__item.is-open { border-color: rgba(154, 123, 255, 0.4); background: linear-gradient(180deg, rgba(154, 123, 255, 0.07), transparent 60%), var(--surface); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.faq__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__number { color: var(--accent); font: 500 13px/1 "Geist Mono", ui-monospace, monospace; }
.faq__icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform 0.35s var(--ease-out), background-color 0.3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; translate: -50% -50%; background: var(--text); }
.faq__icon::after { rotate: 90deg; transition: rotate 0.35s var(--ease-out); }
.faq__item:hover .faq__icon { border-color: rgba(154, 123, 255, 0.7); transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: #fff; border-color: #fff; transform: none; }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--accent-ink); }
.faq__item.is-open .faq__icon::after { rotate: 0deg; }
.faq__item summary { transition: color 0.3s; }
.faq__item:hover summary { color: #fff; }
.faq__answer { padding: 0 24px 22px 58px; color: var(--muted); font-size: 15px; opacity: 0; translate: 0 -6px; transition: opacity 0.35s, translate 0.45s var(--ease-out); }
.faq__item.is-open .faq__answer { opacity: 1; translate: 0 0; transition-delay: 0.08s; }
.faq__answer p { margin: 0; }

/* ---------- Closing call to action ---------- */
.closing { text-align: center; padding: 120px 0 130px; overflow: hidden; }
.closing__inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.closing .section-title { max-width: 680px; }

/* ---------- Waitlist form (shared by Home and the Waitlist page) ---------- */
.waitlist-form { width: min(470px, 100%); display: grid; gap: 12px; }
.waitlist-form__field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); transition: border-color 0.25s, box-shadow 0.25s; }
.waitlist-form__field:focus-within { border-color: rgba(154, 123, 255, 0.6); box-shadow: 0 0 0 4px rgba(154, 123, 255, 0.1); }
.waitlist-form__field input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 15px; }
.waitlist-form__field input::placeholder { color: var(--faint); }
.waitlist-form .button { flex: none; }
.waitlist-form .button[disabled] { opacity: 0.7; cursor: progress; }
.waitlist-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-form__check { display: flex; justify-content: center; }
.waitlist-form__check:empty { display: none; }
.waitlist-form__status { min-height: 22px; margin: 0; font-size: 14px; color: var(--muted); }
.waitlist-form__status[data-tone="success"] { color: var(--accent); }
.waitlist-form__status[data-tone="error"] { color: #ff7a7a; }
.waitlist-form.is-done .waitlist-form__field { border-color: rgba(154, 123, 255, 0.6); }

/* ---------- Waitlist page ---------- */
.waitlist-page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.waitlist-hero { position: relative; display: grid; place-items: center; padding: calc(var(--nav-height) + 60px) 0 80px; overflow: hidden; }
.waitlist-hero__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.waitlist-hero__title { margin: 0; font-size: clamp(42px, 6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.waitlist-hero__lead { margin: 0; max-width: 470px; color: var(--muted); font-size: 18px; }
.waitlist-hero__note { margin: 0; color: var(--faint); font-size: 14px; }
.socials { display: flex; gap: 10px; justify-content: center; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.25s, transform 0.35s var(--ease-out); }
.social:hover { border-color: rgba(154, 123, 255, 0.6); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__about { display: grid; gap: 16px; align-content: start; }
.footer__about p { margin: 0; color: var(--muted); font-size: 15px; max-width: 320px; }
.footer__heading { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { color: #d0d0d0; font-size: 15px; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Aura: the live Iris background behind every page hero; it leans toward the pointer and a soft light follows the cursor ---------- */
.hero, .page-hero, .waitlist-hero { isolation: isolate; }
.aura {
  --mx: 0; --my: 0; --px: 50%; --py: 40%;
  position: absolute; inset: 0 0 auto; height: min(1100px, 140vh); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.aura__spot {
  position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 123, 255, 0.28), rgba(255, 122, 92, 0.06) 60%, transparent);
  translate: var(--px) var(--py); opacity: 0; transition: opacity 0.8s var(--ease-out);
}
.aura.is-lit .aura__spot { opacity: 1; }
/* The Iris (detalia-fx.js), dimmed toward Night so the copy keeps its contrast. */
.aura--fx { -webkit-mask-image: linear-gradient(#000 45%, transparent 88%); mask-image: linear-gradient(#000 45%, transparent 88%); }
/* Shorter heroes: the aura fits the hero, so its fade ends inside it instead of being cut by the hero's edge. */
.page-hero .aura, .waitlist-hero .aura { height: 100%; }
.page-hero .aura__fx, .waitlist-hero .aura__fx { opacity: 0.48; }
.aura__fx { position: absolute; inset: -5%; opacity: 0.62; translate: calc(var(--mx) * -50px) calc(var(--my) * -50px); will-change: translate; }
.aura.aura--fx::before { background: radial-gradient(42% 36% at 50% 30%, rgba(10, 7, 22, 0.72), transparent 75%), radial-gradient(90% 80% at 50% 30%, transparent 40%, rgba(10, 7, 22, 0.8)); }
/* Depth: a vignette pulls the edges back into Night, a fine grain keeps the gradients from banding. */
.aura::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 70% at 50% 35%, transparent 35%, rgba(10, 7, 22, 0.75)); }
.aura::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0.09;
  background: 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");
}

/* ---------- Live brand backgrounds (assets/js/detalia-fx.js) behind whole sections ---------- */
.has-fx { position: relative; isolation: isolate; }
.fx-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fx-layer--streak { opacity: 0.7; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.fx-layer--beam { inset: 0 0 auto; height: 900px; opacity: 0.8; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.fx-layer--horizon { inset: auto 0 0; height: 100%; opacity: 0.9; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }

/* ---------- Motion ---------- */
/* Hidden start states apply only when JavaScript runs, so content stays readable without it. */
.js [data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-150px); }
.js [data-reveal="right"] { transform: translateX(150px); }
.js [data-reveal="rise"] { transform: perspective(1200px) translateY(150px); transition-duration: 1.1s, 1.3s, 0.9s; }
.js [data-reveal="blur"] { filter: blur(12px); transform: translateY(20px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__tilt { transform: none !important; }
  .js .hero__stage { opacity: 1; transform: none; transition: none; }
  .badge__track { animation: none; }
  .orbit__ring, .orbit__upright, .orbit__logo, .flow-patch__select, .flow-enhance::before, .ps-panel__bar::after, .regions i,
  .mini-compare, .platforms__logos img, .platforms__ways span, .loupe__lens, .saved__check, .vs::before, .tiles__grid i { animation: none; }
  .js .bento__tile[data-reveal] { transform: none; filter: none; }
  .js .vs__row:not(.is-in) .vs__cell--ours svg { scale: 1; }
  .scroll-text__word { opacity: 1 !important; }
  .js .orbit__center, .js .orbit__ring, .js .orbit__node { opacity: 1; scale: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .nav, .nav::before { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ways { flex-direction: column; align-items: stretch; padding: 18px; text-align: center; }
  .ways__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .way { justify-content: center; background: rgba(255, 255, 255, 0.03); }
  .way + .way::before { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-height) 0 auto; display: grid; gap: 22px; padding: 24px var(--gutter) 30px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity 0.25s, translate 0.35s var(--ease-out), visibility 0.25s;
  }
  .nav[data-open="true"] .nav__menu { opacity: 1; visibility: visible; translate: 0 0; }
  .nav__links { flex-direction: column; gap: 18px; }
  .nav__links a { font-size: 18px; }
  .nav__actions { justify-content: flex-start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__tile, .bento__tile--panel { grid-column: span 1; }
  .bento__tile--panel { grid-column: 1 / -1; }
  .bento__tile--whole, .bento__tile--saved { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan--popular { translate: none; }
  .flow { --flow-dir: column; }
  .flow__graph { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 46px; }
  .flow-port--in { top: 0; left: 50%; }
  .flow-port--out { top: 100%; left: 50%; }
  .flow-providers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .flow-node--provider { flex-direction: column; gap: 6px; padding: 10px 4px 12px; font-size: 11.5px; text-align: center; }
  .flow-provider__name small { display: none; }
  .flow__steps { grid-template-columns: 1fr 1fr; }
  .orbit { --size: 620px; --node: 56px; }
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (min-width: 961px) { .nav__menu { display: contents; } }
@media (max-width: 640px) {
  .hero__title { white-space: normal; }
  :root { --gutter: 16px; --nav-height: 70px; }
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-height) + 50px); }
  .hero__lead { font-size: 16px; }
  .hero__stage { margin-top: 48px; }
  .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__rail, .app__account, .app__composer-top small { display: none; }
  .app__work { grid-template-columns: minmax(0, 1fr); }
  .orbit { --size: 340px; --node: 32px; }
  .orbit__logo { width: 76px; height: 76px; border-radius: 22px; }
  .orbit__logo svg { width: 46px; height: 46px; }
  .orbit__center strong { font-size: 16px; }
  .orbit__node--soon::before { display: none; }
  .flow-provider__name { display: none; }
  .flow-node--provider img { width: 30px; height: 30px; }
  .flow__steps { grid-template-columns: 1fr; gap: 18px; }
  .plan--popular { translate: none; }
  .scroll-text { font-size: 26px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq__answer { padding-left: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .waitlist-form__field { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 22px; }
  .waitlist-form__field input { padding: 0 12px; }
}

/* ---------- Phones and small tablets: tighter rhythm, compact cards, nothing clipped ---------- */
@media (max-width: 960px) {
  /* The reel keeps every node on screen while it plays: on a stacked graph, waiting nodes would leave tall gaps. */
  .flow.is-live .flow-node:not(.flow-node--ps):not(.is-shown), .flow.is-live.is-fading .flow-node:not(.flow-node--ps) { opacity: 1; translate: none; scale: 1; }
  .flow-canvas { aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  /* Desktop line breaks in titles leave a single word on its own line at this width. */
  h1 br, h2 br { display: none; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }

  /* Hero product window: the comparison takes the full width at its own square size. */
  .studio { padding: 6px; }
  .app__main { padding: 14px; gap: 12px; }
  .app__toggle span:not(.is-on), .app__pills span:nth-child(n + 3) { display: none; }
  .app__composer { flex-direction: column; padding: 12px; }
  .app__go { align-self: stretch; justify-content: center; }

  /* Ways in: four compact tiles that fit their logos and labels. */
  .ways { padding: 16px 12px; gap: 14px; }
  .ways__list { gap: 8px; }
  .way { gap: 8px; padding: 10px 6px; font-size: 14px; }
  .way__arrow { display: none; }
  .way__logos img, .way__more { width: 24px; height: 24px; }
  .way__logos > * + * { margin-left: -8px; }
  .way__icon { width: 26px; height: 26px; }

  /* How it works: the HUD as a tidy grid, the clock across the top. */
  .flow__hud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
  .flow__hud li { justify-content: center; padding: 7px 10px; font-size: 12px; }
  .flow__hud .flow__clock { grid-column: 1 / -1; }
  .flow__steps { margin-top: 30px; }

  /* Stats and features: one compact row per item instead of tall boxes. */
  .stat { padding: 20px 16px 22px; }
  .stat__value { font-size: 34px; }
  .stat__label { font-size: 13px; }
  .stat__bar { left: 16px; right: 16px; }
  /* Comparison: each topic becomes a small card, typical first, Detalia under it. */
  .vs::after, .vs::before, .vs__head { display: none; }
  .vs { gap: 10px; }
  .vs__row { grid-template-columns: 1fr; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .vs__topic { padding: 0 0 8px; }
  .vs__cell { padding: 6px 0; font-size: 14px; }
  .vs__cell--ours { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento__visual { height: 180px; }
  .bento__body { padding: 18px 20px 22px; }
  .bento__title { font-size: 18px; }
  .bento__text { font-size: 14px; }
  .saved { padding: 20px; gap: 12px; }
  .saved__item { width: 60px; height: 60px; }

  /* Footer: link groups side by side, with links tall enough to tap. */
  .footer { padding: 48px 0 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer__links { gap: 2px; }
  .footer__links a { display: inline-block; padding: 7px 0; }
  .footer__bottom { margin-top: 36px; }
  .waitlist-form__field input { min-height: 44px; }
  /* FAQ intro centred like every other section head on a phone. */
  .faq__intro { display: grid; justify-items: center; text-align: center; }
}
