/* Angel — loveangel.ai
   Daylight page, one night disc. The halo is the brand mark, the headline glyph and the workflow loop. */

:root {
  --pearl: #eceef2;      /* page: overcast daylight */
  --cloud: #f7f8fa;      /* raised surfaces */
  --mist: #d9dde5;       /* rules and quiet fills */
  --ink: #1c2033;        /* text, buttons: deep indigo, the same family as the night disc */
  --ink-2: #4a5068;      /* secondary text */
  --ink-3: #737a92;      /* tertiary text */
  --night: #141a35;      /* the disc where Angel works while you sleep */
  --halo: #b9862a;       /* halo gold, used for marks only, never for text */
  --halo-glow: #f6cf7a;  /* halo gold on night */
  --rose: #f2a3b5;       /* iridescent fringe */
  --sky: #8fc3ff;

  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --bar-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--cloud); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 100;
  background: var(--ink); color: var(--cloud); padding: 10px 16px; border-radius: 999px;
  transform: translateY(-160%); transition: transform .2s var(--ease); text-decoration: none;
}
.skip:focus { transform: none; }

/* ---------- Header ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand__halo { width: 30px; height: 18px; color: var(--ink); transform: translateY(-7px); }
.brand__word { font: 500 25px/1 var(--display); letter-spacing: -.035em; }

.bar__actions { display: flex; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 16px;
  height: 50px; padding: 0 6px 0 24px;
  border: 0; border-radius: 999px;
  font: 500 15px/1 var(--text); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pill__chip {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .35s var(--ease);
}
.pill__chip svg { width: 17px; height: 17px; }
.pill--light { background: rgba(213, 218, 227, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); }
.pill--light .pill__chip { background: var(--cloud); }
.pill--light:hover .pill__chip { transform: rotate(-8deg) scale(1.06); }
.pill--ink { background: var(--ink); color: var(--cloud); }
.pill--ink .pill__chip { background: #2c3354; }
.pill__chip--dots { display: flex; gap: 4px; justify-content: center; }
.pill__chip--dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--cloud); transition: transform .35s var(--ease); }
.pill--ink[aria-expanded="true"] .pill__chip--dots i:first-child { transform: translateX(4px); }
.pill--ink[aria-expanded="true"] .pill__chip--dots i:last-child { transform: translateX(-4px); }

/* ---------- Menu ---------- */

.menu {
  position: fixed; z-index: 39;
  top: 8px; right: 8px;
  width: min(460px, calc(100vw - 16px));
  border-radius: 28px;
  background: var(--cloud);
  box-shadow: 0 40px 80px -40px rgba(20, 26, 53, .45), 0 0 0 1px rgba(28, 32, 51, .06);
  padding: calc(var(--bar-h) + 8px) 28px 28px;
  clip-path: inset(0 0 calc(100% - 66px) calc(100% - 140px) round 28px);
  opacity: 0;
  transition: clip-path .55s var(--ease), opacity .2s linear;
}
.menu.is-open { clip-path: inset(0 0 0 0 round 28px); opacity: 1; }
.menu__links { display: grid; gap: 2px; counter-reset: none; }
.menu__links a {
  display: block; padding: 6px 0;
  font: 400 clamp(28px, 3.2vw, 38px)/1.12 var(--display); letter-spacing: -.03em;
  text-decoration: none;
  transition: transform .3s var(--ease), color .2s;
}
.menu__links a:hover { transform: translateX(6px); }
.menu__foot { display: grid; gap: 10px; margin-top: 28px; }
.menu__foot .btn { justify-content: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--text);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--cloud); }
.btn--ink:hover { background: #2c3354; }
.btn--line { border-color: rgba(28, 32, 51, .22); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }

.icon-btn {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-grid; place-items: center;
  background: rgba(213, 218, 227, .72); color: var(--ink);
  text-decoration: none;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--sm { width: 36px; height: 36px; border-radius: 50%; background: var(--cloud); }
.icon-btn--sm svg { width: 16px; height: 16px; }
.icon-btn--ink { background: var(--ink); color: var(--cloud); border-radius: 50%; width: 42px; height: 42px; }

/* ---------- Stage: the scroll film ---------- */

.stage { position: relative; }
.is-film .stage { height: 696vh; } /* keep in step with TRAVEL in main.js */
.stage__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 45%, #f4f5f8 0%, var(--pearl) 100%);
  /* Where the night disc sits. JS reads the disc's box to place the loop on it. */
  --disc: min(70vh, 42vw);
  --disc-x: 29%;
  --disc-y: 50%;
}
.stage__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

.stage__circle {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: min(118vh, 150vw); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(28, 32, 51, .08);
  background: radial-gradient(closest-side, rgba(28, 32, 51, .055), rgba(28, 32, 51, .02) 62%, transparent 100%);
  transform: translate(-50%, -50%) scale(var(--circle-s, .9));
  opacity: var(--circle-o, 0);
  pointer-events: none;
}
.stage__disc {
  position: absolute; left: var(--disc-x); top: var(--disc-y); z-index: 1;
  width: var(--disc); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 34% 28%, rgba(120, 140, 220, .16), transparent 70%),
    radial-gradient(circle at 50% 50%, #1b2246 0%, var(--night) 62%, #0d1229 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .08),
    inset 0 -30px 60px rgba(0, 0, 0, .35),
    0 60px 90px -50px rgba(20, 26, 53, .6);
  transform: translate(-50%, -50%) scale(var(--disc-s, 0));
  pointer-events: none;
}

/* Hero */
.hero { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero a, .hero button { pointer-events: auto; }

.hero__title {
  position: absolute; left: calc(var(--gutter) - .04em); top: calc(var(--bar-h) - 4px);
  font: 400 clamp(54px, 8.6vw, 156px)/.9 var(--display);
  letter-spacing: -.05em;
  color: var(--ink);
}
.hero__line { display: block; white-space: nowrap; }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .ch { display: inline-block; will-change: transform, opacity, filter; }
.hero__halo {
  display: inline-block; vertical-align: -.02em;
  width: .7em; height: .7em; margin: 0 .07em 0 .1em;
  perspective: 3em;
}
.hero__halo svg {
  width: 100%; height: 100%;
  transform: rotateX(var(--halo-tilt, 64deg)) rotateZ(var(--halo-spin, 0deg));
  transform-origin: 50% 50%;
}

.hero__intro {
  position: absolute; left: var(--gutter); bottom: clamp(20px, 4vh, 44px);
  width: min(420px, calc(100% - 2 * var(--gutter)));
}
.hero__intro > p:first-child { font-size: 16px; line-height: 1.5; color: var(--ink); }
.hero__ctas { display: flex; gap: 8px; margin-top: 20px; }
.hero__note { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }

.hero__card {
  position: absolute; right: var(--gutter); bottom: clamp(20px, 4vh, 44px);
  display: flex; gap: 8px; align-items: stretch;
}
.hero__card-text {
  width: 228px; padding: 16px 16px 14px;
  border-radius: 20px;
  background: rgba(247, 248, 250, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.hero__card-text p { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.hero__card-icons { display: flex; gap: 6px; }

.hero__thread {
  width: 168px; padding: 12px;
  border-radius: 20px;
  background: var(--night);
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  font-size: 11px; line-height: 1.35;
}
.bubble { padding: 7px 9px; border-radius: 12px; max-width: 92%; }
.bubble--in { background: #2a3258; color: #dfe4f2; border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--cloud); color: var(--ink); border-bottom-right-radius: 4px; }
.hero__thread-tick { align-self: flex-end; color: var(--halo-glow); font-size: 10.5px; }

/* Chapter 2: the halo over the city */
.chapter { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.wordmark {
  position: absolute; left: 50%; top: calc(var(--bar-h) + 1vh);
  font: 400 clamp(80px, 12.5vw, 230px)/.86 var(--display);
  letter-spacing: -.04em;
  color: var(--ink);
}
.wordmark [data-letters], .loop__title [data-letters] { display: inline-block; white-space: nowrap; }
.ltr { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.ltr > span { display: inline-block; will-change: transform; }
.is-film .wordmark .ltr > span, .is-film .loop__title .ltr > span { transform: translateY(105%); }

.chapter__lede {
  position: absolute; left: 61%; top: 57%;
  width: min(34ch, 32vw);
  font-size: 17px; line-height: 1.55; color: var(--ink);
}
.is-film .chapter__lede { opacity: 0; }

/* Chapter 3: the loop. The night disc holds the story clock; the panel beside it shows Angel at work. */
.loop__clock {
  position: absolute; left: var(--disc-x); top: var(--disc-y);
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 6px;
  color: #eef0f7; text-align: center;
  pointer-events: none;
}
.is-film .loop__clock { opacity: 0; }
.loop__clock span { font-size: 13px; color: #8d95b3; }
.loop__clock b { font: 400 clamp(30px, 4.8vh, 50px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.loop__clock.is-ticking > * { animation: clockTick .5s var(--ease); }
@keyframes clockTick { from { opacity: 0; transform: translateY(6px); } }

.loop {
  --k: 1;
  position: absolute; left: 55%; top: 50%;
  width: min(500px, 40vw);
  transform: translateY(-50%);
  color: var(--ink);
  pointer-events: auto;
}
.is-film .loop { opacity: 0; }
.loop__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.loop__count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.loop__navs { display: flex; gap: 8px; }
.loop__nav {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cloud); cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.loop__nav svg { width: 18px; height: 18px; }
.loop__nav:hover { background: #2c3354; }
.loop__nav:disabled { opacity: .3; cursor: default; }

.loop__steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.loop__step {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.loop__step.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.loop__step h3 { font: 400 clamp(28px, 2.6vw, 40px)/1.05 var(--display); letter-spacing: -.03em; }
.loop__step > p { margin-top: 10px; max-width: 44ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.loop__note { margin-top: 14px; font-size: 12px; color: var(--ink-3); }

.loop__title {
  position: absolute; left: var(--gutter); bottom: 0;
  font: 400 clamp(56px, 8.6vw, 156px)/.84 var(--display);
  letter-spacing: -.045em; white-space: nowrap;
  color: var(--ink);
}

/* ---------- Workflow scenes: drawn at 500 x 360, scaled by --k ---------- */

.scene-fit { margin-top: 20px; width: calc(500px * var(--k)); height: calc(360px * var(--k)); }
.scene {
  width: 500px; height: 360px;
  transform: scale(var(--k)); transform-origin: 0 0;
  display: flex; flex-direction: column;
  padding: 16px 18px 18px;
  border-radius: 24px;
  background: var(--cloud);
  border: 1px solid rgba(28, 32, 51, .07);
  box-shadow: 0 40px 70px -45px rgba(20, 26, 53, .5);
  font-size: 13px; line-height: 1.4; color: var(--ink);
  text-align: left;
  overflow: hidden;
}
.scene svg { flex: none; }
.scene__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--mist); }
.scene__me { width: 30px; height: 30px; border-radius: 50%; background: var(--night); display: grid; place-items: center; }
.scene__me svg { width: 18px; height: 11px; color: var(--halo-glow); }
.scene__who { display: grid; line-height: 1.25; }
.scene__who b { font-size: 13.5px; font-weight: 600; }
.scene__who span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--halo); box-shadow: 0 0 0 3px rgba(185, 134, 42, .2); }
.loop__step.is-active .live { animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(185, 134, 42, 0); } }
.scene__tool {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: var(--pearl);
  font-size: 11.5px; color: var(--ink-2); white-space: nowrap;
}
.scene__tool svg { width: 14px; height: 14px; }
.scene__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.scene__body > * { flex-shrink: 0; }
.scene__body > .msg--out:last-child, .scene__body > .chip:last-child { margin-top: auto; }

.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(185, 134, 42, .13); color: #6a4c10;
  font-size: 12px; font-weight: 500;
}
.chip svg { width: 14px; height: 14px; color: var(--halo); }
.chip--gold svg { width: 17px; height: 10px; }

/* Chat */
.msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.42; }
.msg time { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-3); text-align: right; }
.msg--in { align-self: flex-start; background: #fff; border: 1px solid var(--mist); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--ink); color: #eef0f7; border-bottom-right-radius: 4px; }
.msg--out time { color: #9aa1bd; }
.slot { display: grid; justify-items: end; }
.slot > * { grid-area: 1 / 1; }
.msg--typing { display: flex; gap: 4px; align-self: start; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa1bd; animation: dot 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Buyer profile */
.profile { padding: 8px 12px 6px; border-radius: 16px; background: #fff; border: 1px solid var(--mist); }
.profile__title { display: flex; justify-content: space-between; margin-bottom: 2px; font-size: 11.5px; color: var(--ink-3); }
.profile__title span { color: var(--ink); font-weight: 600; }
.profile__grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.profile__grid div { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; align-items: center; padding: 3px 0; border-top: 1px solid var(--pearl); }
.profile__grid dt { grid-column: 1; font-size: 10.5px; color: var(--ink-3); }
.profile__grid dd { grid-column: 1; margin: 0; font-size: 12.5px; font-weight: 500; }
.profile__grid svg { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--halo); }

/* Listing matches */
.sources { position: relative; display: flex; gap: 6px; padding-bottom: 6px; overflow: hidden; }
.sources span { padding: 5px 10px; border-radius: 999px; background: var(--pearl); font-size: 11.5px; color: var(--ink-2); }
.sources__scan { position: absolute; left: 0; bottom: 0; width: 30%; height: 2px; background: linear-gradient(90deg, transparent, var(--halo), transparent); opacity: 0; }
.matches { display: grid; gap: 7px; }
.matches li { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 14px; background: #fff; border: 1px solid var(--mist); }
.thumb { width: 44px; height: 44px; clip-path: inset(0 round 10px); }
.matches p { flex: 1; display: grid; line-height: 1.3; }
.matches b { font-size: 13px; font-weight: 600; }
.matches p span { font-size: 11.5px; color: var(--ink-3); }
.fit { width: 72px; display: grid; gap: 4px; font-size: 11px; font-weight: 600; text-align: right; }
.fit i { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--halo) var(--w), var(--pearl) 0); }

/* Calendar */
.cal { display: grid; grid-template-columns: 40px repeat(4, 1fr); grid-template-rows: 20px repeat(4, 40px); gap: 4px; }
.cal b { align-self: center; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.cal em { grid-column: 1; padding-top: 2px; font-style: normal; font-size: 10px; color: var(--ink-3); }
.cal__busy { padding: 5px 7px; border-radius: 8px; background: #e3e6ed; font-size: 10.5px; color: var(--ink-3); }
.cal__new {
  position: relative; z-index: 1;
  padding: 5px 7px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 10.5px; line-height: 1.25;
  box-shadow: 0 0 0 2px var(--halo-glow), 0 10px 20px -8px rgba(20, 26, 53, .5);
}

/* Follow-up trail */
.trail { display: grid; gap: 7px; }
.trail li { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--mist); }
.trail time { padding-top: 1px; font-size: 11px; color: var(--ink-3); }
.trail p { font-size: 12.5px; }
.ok { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); }
.ok svg { width: 13px; height: 13px; color: var(--halo); }
.trail .trail__ask { grid-template-columns: 74px 1fr; }
.ask { grid-column: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 26px; margin-top: 4px; }
.ask > * { grid-row: 1; }
.ask__wait { grid-column: 1; font-size: 11.5px; color: #6a4c10; opacity: 0; visibility: hidden; }
.ask__btn { grid-column: 2; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; opacity: 0; visibility: hidden; }
.ask__done { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.ask__done svg { width: 14px; height: 14px; color: var(--halo); }

/* Generated marketing */
.brief { font-size: 12.5px; color: var(--ink-2); }
.brief b { color: var(--ink); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr) .82fr; gap: 8px; height: 172px; }
.art { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #e3e6ed; }
.art > svg { width: 100%; height: 100%; display: block; }
.art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #e3e6ed 30%, #f5f6f9 50%, #e3e6ed 70%);
  background-size: 250% 100%;
  opacity: 0;
}
.art--video .play { position: absolute; left: 50%; top: 44%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.art--video .play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.art--video .bar { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .4); }
.art--video .bar i { display: block; width: 100%; height: 100%; background: #fff; transform-origin: 0 50%; }
.art--video .len { position: absolute; right: 8px; top: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(20, 26, 53, .55); color: #fff; font-size: 10px; }

/* Publishing */
.publish { flex-direction: row; gap: 14px; }
.post { width: 226px; flex: none; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--mist); }
.post header { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.post__avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 7px var(--halo-glow); }
.post header p { display: grid; line-height: 1.2; }
.post header b { font-size: 11.5px; }
.post header span { font-size: 10px; color: var(--ink-3); }
.post .art { flex: 1; border-radius: 0; }
.post__copy { padding: 8px 10px 10px; font-size: 11.5px; }
.results { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.results dl { margin: 0; display: grid; gap: 6px; }
.results dl div { padding: 7px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--mist); }
.results dt { font-size: 11px; color: var(--ink-3); }
.results dd { margin: 0; font: 400 24px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.results__note { margin-top: auto; font-size: 11.5px; color: var(--ink-3); }

/* Weekly report */
.report { display: grid; gap: 10px; }
.report__kpis { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report__kpis div { display: flex; flex-direction: column-reverse; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--mist); }
.report__kpis dd { margin: 0; font: 400 28px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.report__kpis dt { margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.report__chart { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--mist); }
.report__chart p { margin-bottom: 6px; font-size: 11px; color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; margin-bottom: 14px; }
.bars span { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: #cfd5e2; transform-origin: 50% 100%; }
.bars span:nth-child(6) { background: var(--ink); }
.bars i { position: absolute; left: 0; right: 0; bottom: -16px; text-align: center; font-style: normal; font-size: 9.5px; color: var(--ink-3); }
.reengage { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--night); color: #dfe4f2; font-size: 12px; }
.reengage svg { width: 20px; height: 20px; color: var(--halo-glow); }
.reengage b { color: #fff; font-weight: 600; }

/* Scene choreography: plays each time a step becomes active. */
.loop__step.is-active .a-up { animation: aUp .55s var(--ease) both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-pop { animation: aPop .5s var(--ease) both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-left { animation: aLeft .55s var(--ease) both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-drop { animation: aDrop .75s var(--ease) both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-typing { animation: aTyping 1.2s ease both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-scan { animation: aScan 1.1s ease-in-out both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-out { animation: aOut .3s ease both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-press { animation: aPress .8s ease both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-bar { animation: aBar .7s var(--ease) both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-gen::after { animation: aGen 1.5s ease-in-out both; animation-delay: var(--d, 0s); }
.loop__step.is-active .a-progress { animation: aProgress 4s linear both; animation-delay: var(--d, 0s); }
@keyframes aUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes aPop { from { opacity: 0; transform: scale(.9); } }
@keyframes aLeft { from { opacity: 0; transform: translateX(14px); } }
@keyframes aDrop { 0% { opacity: 0; transform: translateY(-46px) scale(1.04); } 60% { opacity: 1; transform: translateY(3px); } 100% { transform: none; } }
@keyframes aTyping { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes aScan { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 0; transform: translateX(340%); } }
@keyframes aOut { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes aPress { 0% { opacity: 1; visibility: visible; transform: none; } 35% { transform: scale(.88); } 65% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }
@keyframes aBar { from { transform: scaleY(0); } }
@keyframes aGen { 0% { opacity: 1; background-position: 100% 0; } 75% { opacity: 1; background-position: 0 0; } 100% { opacity: 0; background-position: 0 0; } }
@keyframes aProgress { from { transform: scaleX(0); } }

.stage__index {
  position: absolute; right: var(--gutter); bottom: clamp(20px, 4vh, 44px); z-index: 3;
  font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  opacity: 0;
}
.is-film .stage__index { transition: opacity .3s; }

.progress {
  position: fixed; right: 0; top: 0; z-index: 41;
  width: 2px; height: 100vh;
  background: var(--halo);
  transform-origin: 0 0; transform: scaleY(var(--page-p, 0));
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section { padding: clamp(96px, 13vw, 190px) 0; }
.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.h2 {
  font: 400 clamp(38px, 5vw, 80px)/1 var(--display);
  letter-spacing: -.04em;
  max-width: 20ch;
}
.section__intro { margin-top: 22px; max-width: 46ch; font-size: 19px; line-height: 1.5; color: var(--ink-2); }

.problem { padding-top: clamp(110px, 16vw, 220px); }
.statement {
  font: 300 clamp(30px, 3.9vw, 62px)/1.1 var(--display);
  letter-spacing: -.025em;
  max-width: 27ch;
}
.problem__answer {
  margin-top: clamp(56px, 7vw, 110px);
  margin-left: auto;
  width: min(100%, 640px);
  display: grid; gap: 34px;
}
.problem__answer > p { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li {
  padding: 9px 16px; border-radius: 999px;
  background: var(--cloud); border: 1px solid rgba(28, 32, 51, .07);
  font-size: 14.5px; color: var(--ink);
}

.compare .h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table {
  width: 100%; min-width: 640px;
  border-collapse: separate; border-spacing: 0;
  font-size: 17px;
}
.compare__table th, .compare__table td {
  padding: 20px 18px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--mist);
}
.compare__table thead th, .compare__table thead td {
  font: 400 16px/1.2 var(--text); color: var(--ink-2);
  border-bottom-color: rgba(28, 32, 51, .28);
}
.compare__table tbody th { font-weight: 400; color: var(--ink); width: 34%; }
.compare__table td { color: var(--ink-2); width: 22%; }
.compare__table td.is-no { color: var(--ink-3); }
.compare__table .is-angel { background: var(--ink); color: var(--cloud); border-bottom-color: rgba(255, 255, 255, .1); }
.compare__table thead .is-angel {
  color: var(--cloud); border-radius: 18px 18px 0 0;
  font: 500 19px/1 var(--display); letter-spacing: -.02em;
}
.compare__table thead .is-angel svg { display: inline-block; width: 22px; height: 13px; margin-right: 8px; vertical-align: -1px; color: var(--halo-glow); }
.compare__table tbody tr:last-child .is-angel { border-radius: 0 0 18px 18px; border-bottom: 0; }

.control__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px); align-items: start;
}
.control__list { margin-top: clamp(36px, 4vw, 56px); display: grid; }
.control__list > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--mist);
}
.control__list dt { font: 500 17px/1.4 var(--text); }
.control__list dd { margin: 0; color: var(--ink-2); }

.approval { position: relative; }
.approval__card {
  padding: 26px;
  border-radius: 26px;
  background: var(--cloud);
  border: 1px solid rgba(28, 32, 51, .07);
  box-shadow: 0 40px 70px -50px rgba(20, 26, 53, .5);
}
.approval__head { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--text); }
.approval__head svg { width: 26px; height: 16px; color: var(--halo); }
.approval__to { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); padding-left: 36px; }
.approval__msg {
  margin-top: 20px; padding: 16px 18px;
  border-radius: 18px 18px 18px 6px;
  background: var(--pearl);
  font-size: 16px; line-height: 1.5;
  transition: background-color .3s, box-shadow .3s;
}
.approval__msg[contenteditable="true"] { background: #fff; box-shadow: 0 0 0 2px var(--ink); outline: none; }
.approval__actions { display: flex; gap: 8px; margin-top: 20px; }
.approval__done { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.approval.is-sent .approval__actions { display: none; }
.approval.is-sent .approval__msg { background: var(--ink); color: var(--cloud); border-radius: 18px 18px 6px 18px; }
.approval__log { margin: 22px 26px 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.approval__log li { display: flex; gap: 14px; }
.approval__log span { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 40px; }
.approval__log li.is-new { animation: logIn .6s var(--ease) both; color: var(--ink); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

.founder__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }
.founder__lead {
  grid-column: 1 / span 10;
  font: 300 clamp(32px, 4.1vw, 66px)/1.08 var(--display);
  letter-spacing: -.03em;
}
.founder__facts { grid-column: 5 / span 8; margin-top: clamp(48px, 6vw, 96px); }
.founder__facts li {
  display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--mist);
}
.founder__facts b { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -.025em; }
.founder__facts span { color: var(--ink-2); }
.founder__close { grid-column: 5 / span 7; margin-top: 36px; font-size: 19px; color: var(--ink); }

.industry-list { margin-top: clamp(48px, 6vw, 88px); }
.industry-list li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--mist);
}
.industry-list li:last-child { border-bottom: 1px solid var(--mist); }
.industry-list h3 { font: 400 clamp(24px, 2.3vw, 34px)/1.1 var(--display); letter-spacing: -.025em; color: var(--ink-2); }
.industry-list p { color: var(--ink-3); }
.industry-list li.is-now h3 { color: var(--ink); }
.industry-list li.is-now p { color: var(--ink-2); }
.status { justify-self: end; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.status--now { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.status--now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--halo); box-shadow: 0 0 0 4px rgba(185, 134, 42, .18); }

.plans {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(28, 32, 51, .28);
}
.plan { padding: 34px 32px 36px; display: flex; flex-direction: column; gap: 10px; }
.plan + .plan { border-left: 1px solid var(--mist); }
.plan h3 { font: 400 34px/1 var(--display); letter-spacing: -.03em; }
.plan__for { color: var(--ink-3); font-size: 15px; }
.plan ul { margin: 22px 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: 16px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 13px; height: 6px; border-radius: 50%;
  border: 1.6px solid var(--ink-3);
}
.plan .btn { align-self: flex-start; }
.plan--featured { background: var(--cloud); border-radius: 0 0 24px 24px; }
.plan--featured li::before { border-color: var(--halo); }

.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); }
.faq__list { border-top: 1px solid rgba(28, 32, 51, .28); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font: 400 clamp(20px, 1.8vw, 26px)/1.25 var(--display); letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .35s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 58ch; color: var(--ink-2); font-size: 17px; }
.faq details[open] p { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

.demo__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.demo__copy > p { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 36ch; }
.demo__wa {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(28, 32, 51, .25); padding-bottom: 4px;
}
.demo__wa svg { width: 20px; height: 20px; }
.demo__wa:hover { border-bottom-color: var(--ink); }

.form {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: var(--cloud);
  border: 1px solid rgba(28, 32, 51, .07);
  display: grid; gap: 18px;
}
.form__mode {
  margin: 0 0 6px; padding: 4px; border: 0;
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: 999px; background: var(--pearl);
  justify-self: start;
}
.form__mode label { position: relative; cursor: pointer; }
.form__mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form__mode span {
  display: block; padding: 10px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s;
}
.form__mode input:checked + span { background: var(--ink); color: var(--cloud); }
.form__mode input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--ink-2); }
.field input, .field select {
  height: 50px; padding: 0 16px;
  border: 1px solid var(--mist); border-radius: 14px;
  background: #fff; color: var(--ink);
  font: 400 16px var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 32, 51, .1); }
.field input[aria-invalid="true"] { border-color: #b4233c; }
.form .btn--lg { justify-self: start; margin-top: 6px; }
.form__status { min-height: 1.5em; font-size: 15px; color: var(--ink-2); }
.form__status.is-error { color: #b4233c; }

.foot { padding: 48px 0 40px; border-top: 1px solid var(--mist); }
.foot__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.foot__line { color: var(--ink-2); font-size: 15px; }
.foot__links { display: flex; gap: 22px; font-size: 15px; }
.foot__links a { text-decoration: none; color: var(--ink-2); }
.foot__links a:hover { color: var(--ink); }
.foot__copy { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }

/* ---------- Static mode: reduced motion or no WebGL ---------- */

.is-static .stage__sticky { position: relative; height: auto; overflow: visible; background: none; }
.is-static .hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; }
.is-static .stage__sky { height: 100vh; height: 100svh; min-height: 640px; }
.is-static .stage__circle, .is-static .stage__disc, .is-static .stage__index, .is-static .loop__bar, .is-static .loop__clock, .is-static .msg--typing { display: none; }
.is-static .chapter { position: relative; inset: auto; pointer-events: auto; }
.is-static .chapter--watch {
  width: min(1320px, calc(100% - 2 * var(--gutter))); margin: clamp(80px, 10vw, 140px) auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end;
}
.is-static .wordmark, .is-static .chapter__lede { position: static; width: auto; }
.is-static .chapter__lede { font-size: 20px; max-width: 36ch; }
.is-static .chapter--loop {
  width: min(1320px, calc(100% - 2 * var(--gutter))); margin: clamp(80px, 10vw, 140px) auto 0;
  padding: clamp(28px, 5vw, 72px); border-radius: 36px;
  background: var(--night);
  display: flex; flex-direction: column-reverse; gap: 40px;
}
.is-static .loop__title { position: static; color: #fff; font-size: clamp(44px, 6vw, 96px); }
.is-static .loop { position: static; transform: none; width: auto; color: #e9ecf6; }
.is-static .loop__steps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 56px 40px; counter-reset: step; }
.is-static .loop__step { grid-area: auto; opacity: 1; visibility: visible; counter-increment: step; }
.is-static .loop__step::before { content: counter(step); display: block; margin-bottom: 10px; font-size: 13px; color: #8d95b3; }
.is-static .loop__step h3 { color: #fff; }
.is-static .loop__step > p { color: #c4cadf; }
.is-static .loop__note { color: #8d95b3; }
.is-static .loop [class*="a-"], .is-static .loop .a-gen::after { animation: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .stage__sticky { --disc: min(60vh, 44vw); --disc-x: 27%; }
  .loop { left: 52%; width: 44vw; }
  .control__grid, .demo__grid, .faq__grid { grid-template-columns: 1fr; }
  .founder__lead, .founder__facts, .founder__close { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--mist); }
  .plan--featured { border-radius: 24px; }
  .chapter__lede { left: var(--gutter); top: auto; bottom: 12vh; width: min(40ch, calc(100% - 2 * var(--gutter))); }
}

@media (max-width: 760px) {
  :root { --bar-h: 72px; }
  body { font-size: 16px; }
  .pill { height: 44px; padding-left: 18px; gap: 10px; font-size: 14px; }
  .pill__chip { width: 34px; height: 34px; }
  .pill--light span:first-child { display: none; }
  .pill--light { padding-left: 5px; }
  .brand__word { font-size: 22px; }
  .hero__title { font-size: clamp(40px, 11.4vw, 80px); }
  .hero__line { white-space: normal; }
  .hero__card { display: none; }
  .hero__intro > p:first-child { font-size: 15px; }
  .wordmark { left: var(--gutter); font-size: 25vw; }
  .chapter__lede { bottom: 9vh; }

  /* On phones the disc sits under the header and the scene fills the space below it. */
  .stage__sticky { --disc: min(56vw, 27vh); --disc-x: 50%; --disc-y: calc(var(--bar-h) + 8px + var(--disc) / 2); }
  .loop { left: var(--gutter); right: var(--gutter); top: calc(var(--bar-h) + var(--disc) + 22px); width: auto; transform: none; }
  .loop__bar { margin-bottom: 8px; }
  .loop__nav { width: 36px; height: 36px; }
  .loop__step h3 { font-size: 24px; }
  .loop__step > p { margin-top: 6px; min-height: 4.35em; font-size: 14px; line-height: 1.45; }
  .scene-fit { margin-top: 10px; }
  .loop__note { margin-top: 10px; font-size: 11px; }
  .loop__clock { gap: 3px; }
  .loop__clock span { font-size: 11px; }
  .loop__clock b { font-size: 26px; }
  .is-film .loop__title { display: none; }
  .control__list > div { grid-template-columns: 1fr; gap: 4px; }
  .founder__facts li { grid-template-columns: 1fr; gap: 6px; }
  .industry-list li { grid-template-columns: 1fr; gap: 8px; }
  .status { justify-self: start; }
  .form__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__links { flex-wrap: wrap; }
  .is-static .chapter--watch { grid-template-columns: 1fr; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .is-film .loop__step > p { display: none; }
}
