/* Hasperflow — site styles.
 *
 * One theme: white pages, soft grey tiles, colour only where it means
 * something (the orb, the gradient, status pills). Sections share the page
 * background, which is what lets the fixed 3D orb float between them.
 */

/* --- fonts ------------------------------------------------------------------
 * Apple devices use the system font (SF Pro). Everyone else gets Inter,
 * self-hosted so no visitor data goes to a font CDN. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- tokens ----------------------------------------------------------------- */
:root {
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #86868b;
  --fg-4: #c7c7cc;
  --surface: #f5f5f7;
  --surface-2: #e8e8ed;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --link: #2458f0;

  --blue: #2f6bff;
  --violet: #8b5cf6;
  --ember: #ff6a3d;
  --green: #1f9d55;
  --green-bg: #e3f6ea;
  --amber: #b25e00;
  --amber-bg: #fff1dc;
  --grad: linear-gradient(100deg, #4f7bff 0%, #8b5cf6 48%, #ff6a3d 100%);
  --btn: #2458f0;
  --btn-hover: #1747d6;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 36px -18px rgba(0, 0, 0, 0.18);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1160px;
  --gutter: clamp(20px, 4.5vw, 44px);
  --nav-h: 56px;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --section-y: clamp(104px, 14vw, 200px);

  /* Phones get a larger orb than vmin alone would give them. */
  --orb-size: max(min(92vmin, 900px), min(125vw, 560px));

  color-scheme: light;
}

/* --- base ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}
html.lenis { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: rgba(139, 92, 246, 0.22); }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(980px + 2 * var(--gutter)); }

main { position: relative; z-index: 1; }

/* --- type ------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.25rem, 1.4rem + 7.2vw, 7.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.375rem, 1.3rem + 4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(1.1875rem, 1rem + 0.62vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--fg-2);
  font-weight: 450;
  text-wrap: pretty;
}
.lead strong { color: var(--fg); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- buttons & links -------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); box-shadow: 0 10px 30px -12px rgba(36, 88, 240, 0.6); }
.btn--dark { background: var(--fg); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.btn--sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--link);
  font-size: 17px;
  font-weight: 500;
}
.link-arrow svg { width: 0.7em; height: 0.7em; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--down:hover svg { transform: translateY(3px); }

/* --- navigation ------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.brand__mark { width: 24px; height: 24px; flex: none; }
.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
}
.nav__links a { color: var(--fg-2); transition: color .2s; }
.nav__links a:hover,
.nav__links a.is-active { color: var(--fg); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: -8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 49;
  padding: 24px var(--gutter) 48px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu a:not(.btn) {
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
}
.menu .btn { margin-top: 28px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* --- the orb ---------------------------------------------------------------- */
.orb {
  position: absolute;
  z-index: 0;
  left: 50%;
  /* Without JS: centred just below the fold, so only its top rises into the hero. */
  top: calc(max(100svh, 640px) + var(--orb-size) * 0.04);
  width: var(--orb-size);
  height: var(--orb-size);
  margin: calc(var(--orb-size) / -2) 0 0 calc(var(--orb-size) / -2);
  pointer-events: none;
  will-change: transform, opacity;
}
.orb.is-fixed { position: fixed; top: 50%; }
.orb__glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 50% 52%, rgba(91, 124, 255, 0.34), rgba(139, 92, 246, 0.2) 46%, rgba(255, 106, 61, 0.1) 72%, transparent 100%);
  filter: blur(40px);
  transform: scale(1.18);
}
.orb__canvas,
.call__orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orb__fallback,
.call__fallback,
.notice__orb {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 70% 75%, #ff6a3d 0%, rgba(255, 106, 61, 0) 46%),
    radial-gradient(circle at 30% 70%, #8b5cf6 0%, rgba(139, 92, 246, 0) 55%),
    linear-gradient(160deg, #5b86ff, #6a4df0 55%, #c0477a);
  box-shadow: inset -24px -36px 80px rgba(20, 10, 60, 0.35), inset 10px 14px 40px rgba(255, 255, 255, 0.25);
  animation: orb-breathe 6s var(--ease-io) infinite alternate;
}
.orb__fallback { position: absolute; inset: 19%; }
.orb.has-webgl .orb__fallback,
.call__avatar.has-webgl .call__fallback { display: none; }
.orb:not(.has-webgl) .orb__canvas,
.call__avatar:not(.has-webgl) .call__orb { display: none; }
@keyframes orb-breathe { to { transform: scale(1.04) rotate(8deg); } }

/* --- hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: max(100svh, 640px);
  padding-top: calc(var(--nav-h) + clamp(64px, 11vh, 132px));
  text-align: center;
}
.hero__eyebrow { margin-bottom: 18px; }
.hero__title { margin-inline: auto; }
.hero__lead { max-width: 640px; margin: 28px auto 0; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  margin-top: 38px;
}
.js.is-loading [data-hero],
.js.is-loading .hero__title { opacity: 0; }

/* --- statement -------------------------------------------------------------- */
.statement { padding-block: var(--section-y); }
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: pretty;
}
.motion .statement { height: 220vh; padding: 0; }
.motion .statement__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

/* --- section heads ---------------------------------------------------------- */
.section { padding-block: var(--section-y); }
/* Width limits go on the children, so a head can share an element with .wrap. */
.section-head > * { max-width: 820px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { margin-top: 22px; max-width: 680px; }
.section-head--center { text-align: center; }
.section-head--center > * { margin-inline: auto; }

/* --- the story player ------------------------------------------------------- */
.player {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(12px, 1.6vw, 20px);
  border-radius: 36px;
  background: var(--surface);
  isolation: isolate;
}
.player__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 16px;
}
.tabs {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s;
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--fg); color: #fff; }
.player__controls { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  cursor: pointer;
  transition: box-shadow .2s;
}
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .when-off { display: none; }
.icon-btn[aria-pressed="false"] .when-on { display: none; }
.icon-btn[aria-pressed="false"] .when-off { display: block; }
.player__toggle { height: 40px; padding: 0 18px 0 14px; font-size: 15px; }

.player__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.72fr) minmax(0, 1.4fr);
  gap: 14px;
  min-height: 580px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* the call */
.call__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.call__state { display: inline-flex; align-items: center; gap: 8px; }
.call__state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-4);
  transition: background-color .3s;
}
.call[data-state="ringing"] .call__state::before { background: #ff9f0a; animation: blink 0.8s steps(2) infinite; }
.call[data-state="live"] .call__state::before { background: #34c759; }
@keyframes blink { 50% { opacity: 0.25; } }
.call__timer { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--fg-2); letter-spacing: 0; text-transform: none; }

.call__avatar {
  position: relative;
  width: min(220px, 66%);
  aspect-ratio: 1;
  margin: 18px auto 6px;
}
.call__glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 124, 255, 0.35), rgba(139, 92, 246, 0.18) 55%, transparent);
  filter: blur(18px);
  transform: scale(1.25);
}
.call__fallback { position: absolute; inset: 19%; }
.call__rings { position: absolute; inset: 19%; border-radius: 50%; pointer-events: none; }
.call__rings::before,
.call__rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
  opacity: 0;
}
.call[data-state="ringing"] .call__rings::before { animation: ripple 1.4s var(--ease) infinite; }
.call[data-state="ringing"] .call__rings::after { animation: ripple 1.4s 0.45s var(--ease) infinite; }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }

.call__who { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.call__number { text-align: center; font-size: 13px; color: var(--fg-3); margin-top: 2px; }

.captions { margin-top: auto; padding-top: 18px; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end; }
.captions__prev {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.captions__speaker { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-height: 18px; }
.captions__speaker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.captions:not([data-who]) .captions__speaker::before { display: none; }
.captions[data-who="caller"] .captions__speaker::before { background: var(--fg-3); }
.captions__line {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  min-height: 2.64em;
}
.captions__line .w { color: var(--fg-4); transition: color .18s; }
.captions__line .w.is-on { color: var(--fg); }
.voice-bars { display: none; align-items: center; gap: 2px; height: 12px; margin-left: 2px; }
.voice-bars i { display: block; width: 2px; height: 100%; border-radius: 2px; background: currentColor; animation: bars .7s var(--ease-io) infinite alternate; }
.voice-bars i:nth-child(2) { animation-delay: -.2s; }
.voice-bars i:nth-child(3) { animation-delay: -.45s; }
.voice-bars i:nth-child(4) { animation-delay: -.1s; }
.captions.is-speaking .voice-bars { display: inline-flex; }
@keyframes bars { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* Sits where the captions will appear, below the agent's name. */
.play-big {
  position: absolute;
  left: 50%;
  bottom: clamp(48px, 9%, 72px);
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 18px 40px -14px rgba(36, 88, 240, 0.55);
}
.play-big:active { transform: translateX(-50%) scale(0.97); }
.play-big[hidden] { display: none; }

/* captured details */
.capture__list { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.capture__row {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  transition: background-color .5s var(--ease);
}
.capture__row dt { font-size: 12px; font-weight: 500; color: var(--fg-3); }
.capture__row dd {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-4);
  min-height: 1.4em;
}
.capture__row.is-filled dd { color: var(--fg); }
.capture__row.is-flash { background: #ece7ff; }
.capture__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
}
.capture__status::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--fg-4);
  flex: none;
}
.capture__status[data-state="listening"]::before { border-color: #8b5cf6; animation: pulse-ring 1.2s var(--ease) infinite; }
.capture__status[data-state="saving"]::before { border-color: rgba(36, 88, 240, 0.25); border-top-color: var(--btn); animation: spin .7s linear infinite; }
.capture__status[data-state="saved"] { color: var(--green); }
.capture__status[data-state="saved"]::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3.5 7.2 2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
@keyframes pulse-ring { 50% { transform: scale(0.8); opacity: 0.5; } }

/* the business's dashboard */
.console { padding: 0; overflow: hidden; }
.console__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.console__logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.console__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.console__sub { font-size: 12px; color: var(--fg-3); }
.console__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.console__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; animation: blink 2s steps(2) infinite; }
.console__body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; flex: 1; }
.console__notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef3ff;
  color: #1c3fae;
  font-size: 13.5px;
  font-weight: 500;
}
.console__notice[hidden] { display: none; }
.console__notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--btn); flex: none; }
.stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats-mini div { padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.stats-mini dt { font-size: 12px; color: var(--fg-3); font-weight: 500; }
.stats-mini dd { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats-mini dd.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--btn); } }

.bookings { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bookings caption { text-align: left; font-size: 13px; font-weight: 600; padding-bottom: 6px; }
.bookings th { padding: 6px 8px; text-align: left; font-size: 11.5px; font-weight: 500; color: var(--fg-3); white-space: nowrap; }
.bookings td { padding: 9px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.bookings td:first-child { font-weight: 600; }
.bookings tr.is-new td { background: #f3f0ff; }
.bookings tr.is-new td:first-child { border-radius: 10px 0 0 10px; }
.bookings tr.is-new td:last-child { border-radius: 0 10px 10px 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.status--ok { background: var(--green-bg); color: var(--green); }
.status--wait { background: var(--amber-bg); color: var(--amber); }
.row-approve {
  margin-left: 6px;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: default;
  transition: transform .15s var(--ease), background-color .2s;
}
.row-approve.is-pressed { transform: scale(0.88); background: var(--btn-hover); }

.calllog {
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
}
.calllog[hidden] { display: none; }
.calllog__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 600; }
.calllog__wave { display: flex; align-items: center; gap: 2px; height: 16px; flex: 1; max-width: 120px; }
.calllog__wave i { flex: 1; border-radius: 2px; background: #c9c3f5; }
.calllog__meta { margin-left: auto; color: var(--fg-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.calllog__summary { color: var(--fg-2); line-height: 1.45; min-height: 2.9em; }
.calllog__summary b { color: var(--fg); font-weight: 600; }

.toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(29, 29, 31, 0.94);
  color: #f5f5f7;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
}
.toast[hidden] { display: none; }
.toast strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.toast span { color: #c7c7cc; }
.toast__icon { width: 26px; height: 26px; border-radius: 8px; background: #34c759; display: grid; place-items: center; flex: none; }
.toast__icon svg { width: 14px; height: 14px; }

.cursor {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}
.cursor[hidden] { display: none; }

.fly-chip {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* progress */
.player__progress { margin-top: 16px; padding: 0 6px; }
.progress__track { position: relative; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.progress__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--grad); transition: width .4s linear; }
.progress__chapters { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.progress__chapters li { transition: color .3s; }
.progress__chapters li.is-active { color: var(--fg); }
.progress__chapters li:nth-child(2) { text-align: center; }
.progress__chapters li:nth-child(3) { text-align: center; }
.progress__chapters li:last-child { text-align: right; }
.player__note { margin-top: 14px; padding: 0 6px; font-size: 12.5px; color: var(--fg-3); }

.finale {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: inherit;
  background: rgba(245, 245, 247, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: center;
}
.finale[hidden] { display: none; }
.finale .lead { margin: 14px auto 0; max-width: 520px; }
.finale__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

@media (max-width: 1068px) {
  .player__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .console { grid-column: 1 / -1; min-height: 440px; }
}
@media (max-width: 680px) {
  .player { border-radius: 28px; }
  .player__stage { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bookings th:nth-child(2), .bookings td:nth-child(2) { display: none; }
  .captions { min-height: 150px; }
  .progress__chapters { font-size: 12px; }
}

/* --- solutions / bento ------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 7vw, 88px);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  grid-column: span 2;
}
.tile--voice { grid-column: span 4; }
.tile--voice::before {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 85%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(91, 124, 255, 0.2), rgba(139, 92, 246, 0.1) 55%, transparent);
  filter: blur(10px);
}
.tile__kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 10px;
}
.tile__text {
  margin-top: 12px;
  max-width: 36ch;
  color: var(--fg-2);
  font-size: 17px;
}
.tile__visual { margin-top: auto; padding-top: 34px; }

/* waveform */
.wave {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.45vw, 5px);
  height: 130px;
}
.wave span {
  flex: 1;
  height: calc(var(--h, 0.5) * 100%);
  border-radius: 99px;
  transform: scaleY(0.3);
  animation: wave 1.5s var(--ease-io) infinite alternate;
  animation-delay: calc(var(--i, 0) * -97ms);
  animation-play-state: paused;
}
.is-playing .wave span { animation-play-state: running; }
@keyframes wave { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
.voice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--fg-2);
}
.voice-meta .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.voice-meta .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
}
.voice-meta .tag {
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.35; }
.chat__msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: 9s var(--ease) infinite paused;
}
.is-playing .chat__msg { animation-play-state: running; }
.chat__msg--in { align-self: flex-start; background: var(--card); border-bottom-left-radius: 6px; animation-name: chat-1; }
.chat__msg--out { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; animation-name: chat-2; }
.chat__msg--in.chat__msg--last { animation-name: chat-3; }
@keyframes chat-1 { 0% { opacity: 0; transform: translateY(10px); } 5%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes chat-2 { 0%, 18% { opacity: 0; transform: translateY(10px); } 23%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes chat-3 { 0%, 38% { opacity: 0; transform: translateY(10px); } 43%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }

/* flow graph */
.flow { width: 100%; height: auto; overflow: visible; }
.flow .edge { fill: none; stroke: var(--line); stroke-width: 1.5; }
.flow .edge--live { stroke: url(#flow-grad); stroke-dasharray: 4 7; animation: dash 1.6s linear infinite paused; }
.is-playing .flow .edge--live { animation-play-state: running; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.flow .node rect { fill: var(--card); }
.flow .node text {
  fill: var(--fg);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.flow .packet { fill: #8b5cf6; }

/* bars */
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 150px;
}
.bars__col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars__bar {
  width: 100%;
  height: calc(var(--v) * 1%);
  border-radius: 8px 8px 4px 4px;
  background: var(--card);
  transform-origin: bottom;
  transform: scaleY(var(--grow, 1));
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.bars__bar--hot { background: var(--grad); }
.bars__col span { font-size: 12px; color: var(--fg-3); font-weight: 500; }
.motion .bars:not(.is-in) .bars__bar { --grow: 0.04; }
.bars-note { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--fg-2); }
.bars-note strong { color: var(--fg); font-weight: 600; }

/* marquee */
.marquee { display: flex; flex-direction: column; gap: 10px; margin-inline: calc(-1 * clamp(28px, 3vw, 42px)); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; gap: 10px; width: max-content; animation: marquee 32s linear infinite paused; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 38s; }
.is-playing .marquee__row { animation-play-state: running; }
.marquee__row span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 2rem + 3.6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.stat__num.grad-text { display: inline-block; }
.stat__label { margin-top: 14px; max-width: 28ch; color: var(--fg-2); font-size: 17px; }

@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 1; }
  .tile--voice { grid-column: span 2; }
}
@media (max-width: 734px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--voice { grid-column: auto; min-height: 380px; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
}

/* --- principles ------------------------------------------------------------- */
.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(56px, 8vw, 96px);
}
.principle {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.principle__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-card);
}
.principle__icon svg { width: 26px; height: 26px; }
.principle p { margin-top: 12px; color: var(--fg-2); }
@media (max-width: 900px) { .principles__grid { grid-template-columns: 1fr; } }

/* --- industries ------------------------------------------------------------- */
.industries { padding-block: var(--section-y); }
.industries__pin { display: flex; flex-direction: column; justify-content: center; }
.motion .industries { padding-block: 0; }
.motion .industries__pin { min-height: 100vh; padding-block: calc(var(--nav-h) + 32px) 40px; overflow: hidden; }
.industries__head { margin-bottom: clamp(36px, 5vw, 60px); }
.industries__head .h2 { max-width: none; }
.industries__track {
  display: flex;
  gap: 20px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none;
  padding-bottom: 8px;
}
.industries__track::-webkit-scrollbar { display: none; }
.industry {
  position: relative;
  flex: none;
  width: clamp(290px, 30vw, 380px);
  min-height: clamp(380px, 50vh, 440px);
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  border-radius: var(--r-xl);
  background: var(--surface);
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
}
.industry::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--tint), transparent);
  opacity: 0.4;
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.industry:hover::after { opacity: 0.7; transform: translateY(-6%); }
.industry__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 40px;
}
.industry__icon svg { width: 24px; height: 24px; }
.industry p { margin-top: 12px; color: var(--fg-2); }
.industry ul {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.industry li { display: flex; align-items: center; gap: 10px; }
.industry li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}
.motion .industries__track { overflow: visible; scroll-snap-type: none; width: max-content; }
@media (max-width: 899px) {
  .motion .industries { padding-block: var(--section-y); }
  .motion .industries__pin { min-height: 0; padding: 0; }
  .motion .industries__track { overflow-x: auto; scroll-snap-type: x mandatory; width: auto; }
}

/* --- process ---------------------------------------------------------------- */
.process__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.process__head { position: sticky; top: calc(var(--nav-h) + 56px); }
.process__head .link-arrow { margin-top: 30px; }
.steps { position: relative; padding-left: 56px; }
.steps__list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 96px); }
.steps__track,
.steps__fill {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.steps__fill { background: linear-gradient(180deg, #5b86ff, #8b5cf6 55%, #ff6a3d); transform-origin: top; transform: scaleY(1); }
.motion .steps__fill { transform: scaleY(0); }
.step { position: relative; }
.step__num {
  position: absolute;
  left: -56px;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line-2);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg-3);
  transition: box-shadow .4s var(--ease), color .4s, background-color .4s;
}
.step.is-on .step__num,
html:not(.motion) .step__num { background: var(--fg); color: #fff; box-shadow: none; }
.step p { margin-top: 12px; color: var(--fg-2); max-width: 46ch; }
.step__meta { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--fg-3); }
@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__head { position: static; }
}

/* --- FAQ -------------------------------------------------------------------- */
.faq__list { max-width: 860px; margin: clamp(48px, 6vw, 72px) auto 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.022em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .28s var(--ease), background-color .2s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--fg);
}
.faq__icon::after { transform: rotate(90deg); transition: transform .28s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item summary:hover .faq__icon { background: var(--surface); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 56px 28px 0; color: var(--fg-2); max-width: 68ch; }

/* --- contact ---------------------------------------------------------------- */
.contact { padding-block: var(--section-y) clamp(72px, 9vw, 120px); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.contact__intro { position: sticky; top: calc(var(--nav-h) + 48px); }
.contact__intro .lead { margin-top: 22px; }
.contact__points { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.contact__points li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.contact__points svg { width: 22px; height: 22px; flex: none; color: var(--green); }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
}

.form-card {
  position: relative;
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -50px rgba(60, 40, 140, 0.35);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  backdrop-filter: blur(30px) saturate(140%);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form[hidden] { display: none; }
.form__row { display: grid; gap: 16px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(245, 245, 247, 0.85);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.012em;
  transition: box-shadow .2s var(--ease), background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.45; }
.field input:hover,
.field textarea:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.field input:focus,
.field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--link); }
.field label {
  position: absolute;
  left: 17px;
  top: 18px;
  color: var(--fg-2);
  font-size: 17px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s var(--ease), color .2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.76); }
.field input:focus + label,
.field textarea:focus + label { color: var(--link); }
.field .optional { color: var(--fg-3); }
.field__error { display: none; margin-top: 6px; padding-left: 4px; font-size: 14px; color: #d70015; }
.field.is-invalid input,
.field.is-invalid textarea { box-shadow: inset 0 0 0 2px #d70015; }
.field.is-invalid .field__error { display: block; }

.chips { border: 0; margin: 4px 0 0; padding: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 500; color: var(--fg-2); }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
  transition: background-color .2s var(--ease), color .2s, box-shadow .2s;
  -webkit-user-select: none;
  user-select: none;
}
.chip:hover span { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-3); }
.chip input:checked + span { background: var(--fg); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: 13.5px; color: var(--fg-3); }
.form__note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }
.form__status { min-height: 1.4em; font-size: 15px; color: #d70015; }
.form__status:empty { display: none; }

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.is-busy .btn__spinner { display: inline-block; }
.is-busy .btn__label { opacity: 0.75; }
.is-busy { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 4px;
}
.form-success[hidden] { display: none; }
.form-success svg { width: 64px; height: 64px; }
.form-success circle { stroke: rgba(31, 157, 85, 0.3); }
.form-success path { stroke: var(--green); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--ease) forwards; }
.form-success .btn { margin-top: 10px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- footer ----------------------------------------------------------------- */
.footer { position: relative; z-index: 1; padding: 48px 0 40px; font-size: 14px; color: var(--fg-2); border-top: 1px solid var(--line); background: var(--bg); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p { margin-top: 14px; max-width: 30ch; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.footer__cols h2 { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--fg); letter-spacing: 0; }
.footer__cols a { display: block; padding: 4px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--fg); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; color: var(--fg-3); font-size: 13px; }

/* --- simple pages (privacy, thanks, 404) -------------------------------------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.page-hero { padding-block: calc(var(--nav-h) + clamp(72px, 12vw, 150px)) clamp(48px, 6vw, 80px); }
.page-hero .lead { margin-top: 22px; max-width: 640px; }
.prose { max-width: 720px; padding-bottom: var(--section-y); }
.prose h2 {
  margin: 56px 0 14px;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.prose p, .prose li { color: var(--fg-2); }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 600; }

.notice {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 60px;
  text-align: center;
}
.notice__orb {
  width: 132px;
  height: 132px;
  margin: 0 auto 40px;
  box-shadow: 0 30px 80px -20px rgba(139, 92, 246, 0.55), inset -14px -20px 40px rgba(20, 10, 60, 0.3);
}
.notice .lead { margin: 20px auto 0; max-width: 520px; }
.notice .btn { margin-top: 36px; }

/* --- depth: floating cards, tilt, scroll progress, the closing mark ---------- */

/* The hero's glass cards orbit the orb in 3D. They live inside the orb's
 * fixed wrapper, so they rise and travel with it. */
.orb { perspective: 1100px; }
.orb__scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.float { position: absolute; transform-style: preserve-3d; will-change: transform; }
html:not(.motion) .float { translate: -50% -50%; }
.float--1 { left: 2%; top: 31%; }
.float--2 { left: 98%; top: 25%; }
.float--3 { left: -9%; top: 9%; }
.float--4 { left: 109%; top: 11%; }
.float-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 24px 50px -24px rgba(40, 30, 90, 0.35);
  white-space: nowrap;
  opacity: var(--scene-o, 1);
  animation: bob var(--bob, 6s) var(--ease-io) var(--delay, 0s) infinite alternate;
}
@keyframes bob { from { transform: translate3d(0, -8px, 0); } to { transform: translate3d(0, 8px, 0); } }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--c);
  color: #fff;
  flex: none;
}
.float-card__icon svg { width: 16px; height: 16px; }
.float-card strong { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); line-height: 1.25; }
.float-card small { display: block; font-size: 12px; color: var(--fg-2); line-height: 1.3; }
@media (max-width: 1199px) { .float--3, .float--4 { display: none; } }
@media (max-width: 734px) {
  .float--1 { left: 24%; top: 25%; }
  .float--2 { left: 76%; top: 33%; }
  .float-card { scale: 0.84; }
}

/* A highlight that follows the pointer across tilting cards. */
.has-glare::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.6), transparent 50%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.has-glare:hover::after { opacity: 1; }
.principle { position: relative; }

.scroll-progress {
  position: fixed;
  z-index: 51;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
}
html:not(.motion) .scroll-progress { display: none; }

.footer__mark {
  margin: 44px 0 6px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 15rem);
  line-height: 0.84;
  letter-spacing: -0.065em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* While the demo plays silently, the sound button asks to be pressed. */
.player.is-previewing .player__toggle { animation: invite 2.4s var(--ease-io) infinite; }
@keyframes invite {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 88, 240, 0); }
  50% { box-shadow: 0 0 0 8px rgba(36, 88, 240, 0.16); }
}

/* --- reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .chat__msg { opacity: 1; transform: none; }
  .wave span { transform: scaleY(0.6); }
}

/* --- tale: one night at your business ----------------------------------------
 * A scroll-driven story in six beats. Everything inside the stage is laid out
 * on a fixed canvas (1000 × 560 landscape, 420 × 720 portrait) that JS scales
 * to fit, so the illustration keeps its proportions on every screen. */
.tale {
  --tale-bg: #ffffff;
  --tale-ink: var(--fg);
  --tale-ink-2: var(--fg-2);
  position: relative;
  background: var(--tale-bg);
  color: var(--tale-ink);
}
.tale__pin {
  position: relative;
  background: var(--tale-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(16px, 3.2vh, 36px)) 0 clamp(14px, 2.6vh, 28px);
}
.tale__head { flex: none; text-align: center; }
.tale__meta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.tale__eyebrow { font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.125rem); }
.tale__clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  font: 600 14px/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--tale-ink);
  background: color-mix(in srgb, var(--tale-ink) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tale-ink) 12%, transparent);
}
.tale__clock-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, transparent 44%, #e9e4ff 46%);
  box-shadow: inset -4px 0 0 #e9e4ff;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.tale.is-day .tale__clock-icon { background: radial-gradient(circle, #ffb23f 0 52%, rgba(255, 178, 63, .25) 54% 100%); box-shadow: none; }
.tale__captions {
  position: relative;
  display: grid;
  margin: clamp(10px, 1.8vh, 18px) auto 0;
  max-width: 980px;
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.75rem, 1rem + 2.7vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.tale__caption { grid-area: 1 / 1; }
.motion .tale__caption { opacity: 0; }
.motion .tale__caption:first-child { opacity: 1; }

.tale__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  margin: clamp(14px, 2.6vh, 28px) auto 0;
  border-radius: clamp(22px, 2.4vw, 34px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 90px -40px rgba(20, 12, 60, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
}
.tale__sky { position: absolute; inset: 0; z-index: -3; }
.tale__sky--night {
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(50% 40% at 15% 90%, rgba(79, 123, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #05061a 0%, #12103b 55%, #2a1d5a 100%);
}
.tale__sky--day {
  opacity: 0;
  background:
    radial-gradient(45% 55% at 16% 22%, rgba(255, 214, 150, 0.75), transparent 70%),
    linear-gradient(180deg, #a8c3ff 0%, #d9d1ff 48%, #ffe0cf 100%);
}
.tale__stars { position: absolute; inset: 0 0 30% 0; z-index: -2; }
.tale__stars i {
  position: absolute;
  width: var(--d, 2px); height: var(--d, 2px);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o, .7);
  animation: twinkle var(--t, 4s) var(--ease-io) var(--delay, 0s) infinite alternate;
}
@keyframes twinkle { to { opacity: calc(var(--o, .7) * .25); } }
.tale__street {
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--street, 84%);
  z-index: -1;
  background: linear-gradient(180deg, #17153a 0, #0b0a22 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.tale__street::before { /* pavement line */
  content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 26px, transparent 26px 52px);
}
.tale__street-day { position: absolute; inset: 0; background: linear-gradient(180deg, #eeecf5, #e2dfec); opacity: 0; }

.tale__canvas {
  --cw: 1000px;
  --ch: 560px;
  position: absolute;
  left: 50%; top: 50%;
  width: var(--cw); height: var(--ch);
  --rw: 0;
  --lift: 0;
  transform: translate(-50%, -50%) translate(calc(var(--rw) * -28px), calc(var(--lift) * -10px)) scale(var(--k, 1)) skewX(calc(var(--rw) * -5deg));
  transform-origin: 50% 50%;
  filter: blur(calc(var(--rw) * 2.5px)) saturate(calc(1 - var(--rw) * 0.7)) hue-rotate(calc(var(--rw) * 40deg));
}
.tale__canvas > * { position: absolute; }

.tale__moon {
  left: 820px; top: 46px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffef6, #e8e2ff 62%, #c9c0ff);
  box-shadow: 0 0 40px 10px rgba(200, 190, 255, .35), 0 0 120px 30px rgba(139, 92, 246, .25);
}
.tale__sun {
  left: 646px; top: 36px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff6d8, #ffc25a 58%, #ff8a3d);
  box-shadow: 0 0 60px 20px rgba(255, 180, 90, .45);
  opacity: 0;
}

/* buildings */
.tale__shop { left: 340px; top: 172px; width: 320px; height: 300px; --wall: #2b2660; --cornice: #1d1a47; --plate: #3a3474; --plate-ink: #9a92d6; --glass: #12102c; --frame: #3b3578; --door: #191636; --sill: #3b3578; }
.tale__shop-svg { width: 100%; height: 100%; overflow: visible; }
.s-wall { fill: var(--wall); }
.s-cornice { fill: var(--cornice); }
.s-plate { fill: var(--plate); }
.s-plate-text { fill: var(--plate-ink); font: 700 15px/1 var(--font-text); letter-spacing: 0.16em; }
.s-frame, .s-sill { fill: var(--frame); }
.s-glass { fill: var(--glass); }
.s-door { fill: var(--door); }
.s-knob { fill: #c9c0ff; }
.tale__window { position: absolute; left: 36px; top: 152px; width: 146px; height: 106px; border-radius: 3px; overflow: hidden; }
.tale__window-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(closest-side, rgba(170, 140, 255, .95), rgba(110, 90, 255, .55) 45%, rgba(91, 134, 255, 0) 100%);
  opacity: 0;
}
.tale__ava { position: absolute; left: 3px; top: -20px; width: 140px; height: 140px; opacity: 0; }
.tale__ava-fallback {
  position: absolute; left: 44px; top: 16px; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 26%), linear-gradient(160deg, #5b86ff, #6a4df0 55%, #c0477a);
  opacity: 0;
}
.tale__stage.has-webgl .tale__ava-fallback { display: none; }
.tale__wave { position: absolute; left: 0; right: 0; bottom: 12px; height: 20px; display: flex; align-items: center; justify-content: center; gap: 3px; opacity: 0; }
.tale__wave i { width: 3px; height: 100%; border-radius: 2px; background: #fff; transform: scaleY(.2); }
.tale__stage[data-beat="2"] .tale__wave i { animation: talk 0.9s var(--ease-io) calc(var(--i) * -0.11s) infinite alternate; }
@keyframes talk { to { transform: scaleY(var(--h, .9)); } }
.tale__sign {
  position: absolute; left: 222px; top: 180px; width: 56px; height: 22px;
  transform-style: preserve-3d; perspective: 400px;
}
.tale__sign::before { content: ""; position: absolute; left: 50%; top: -12px; width: 26px; height: 12px; translate: -50% 0; border: 1.5px solid rgba(255,255,255,.35); border-bottom: 0; border-radius: 14px 14px 0 0; }
.tale__sign-face {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 4px;
  font: 800 10px/1 var(--font-text); letter-spacing: .14em; backface-visibility: hidden;
}
.tale__sign-face--closed { background: #ff4d6d; color: #fff; box-shadow: 0 0 16px rgba(255, 77, 109, .5); }
.tale__sign-face--open { background: #1fbf6a; color: #fff; transform: rotateY(180deg); box-shadow: 0 0 16px rgba(31, 191, 106, .45); }
.tale__sign-flip { position: absolute; inset: 0; transform-style: preserve-3d; }

.tale__rival { left: 790px; top: 282px; width: 170px; height: 190px; opacity: 0; }
.tale__rival-svg { width: 100%; height: 100%; }
.r-wall { fill: #2a2350; } .r-cornice { fill: #1c1840; } .r-glass { fill: #ffd2a8; opacity: .85; } .r-door { fill: #1a1636; }
.tale__neon {
  position: absolute; left: 50%; top: 2px; translate: -50% 0;
  padding: 4px 10px; border-radius: 6px;
  font: 800 13px/1 var(--font-text); letter-spacing: .12em; white-space: nowrap;
  color: #fff; background: #ff3d7f;
  box-shadow: 0 0 18px rgba(255, 61, 127, .8), 0 0 50px rgba(255, 106, 61, .5);
}

/* phones */
.tale__phone {
  width: 196px; height: 356px; padding: 8px; border-radius: 38px;
  background: linear-gradient(160deg, #2c2c34, #0d0d12);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.tale__phone--caller { left: 64px; top: 104px; }
.tale__phone--owner { left: 734px; top: 74px; width: 210px; height: 390px; opacity: 0; }
.tale__screen {
  position: relative; height: 100%; border-radius: 31px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 44px 14px 14px;
  background: linear-gradient(180deg, #1b1a3a, #0d0c20);
  color: #fff; text-align: center;
}
.tale__island { position: absolute; top: 10px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 10px; background: #000; }
.tale__avatar {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  font: 600 24px/1 var(--font-display); color: #fff;
  background: linear-gradient(140deg, #ff9a6b, #ff5f8f);
}
.tale__who { margin-top: 10px; font: 600 18px/1.2 var(--font-display); letter-spacing: -0.01em; }
.tale__whosub { font-size: 12px; color: rgba(255,255,255,.55); }
.tale__states { position: relative; width: 100%; margin-top: 18px; height: 54px; }
.tale__state { position: absolute; inset: 0; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); opacity: 0; }
.tale__state:first-child { opacity: 1; }
.tale__state small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.55); }
.tale__state--bad { color: #ff6b81; }
.tale__state--good { color: #4ade80; }
.tale__ringdots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.tale__ringdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.tale__ringdots i.on { background: #fff; }
.tale__rings { position: absolute; inset: 0; border-radius: 38px; pointer-events: none; }
.tale__rings i { position: absolute; inset: 0; border-radius: 38px; border: 2px solid rgba(160, 140, 255, .6); opacity: 0; }
.tale__stage[data-beat="0"] .tale__rings i { animation: ring 2.1s var(--ease) calc(var(--n) * .7s) infinite; }
.tale__stage[data-beat="0"] .tale__phone--caller { animation: buzz 2.1s linear infinite; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.32); } }
@keyframes buzz { 0%, 12%, 100% { rotate: 0deg; } 2%, 6%, 10% { rotate: -2.2deg; } 4%, 8% { rotate: 2.2deg; } }
.tale__sms {
  position: absolute; left: 10px; right: 10px; bottom: 14px;
  padding: 10px 12px; border-radius: 16px; text-align: left;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0;
}
.tale__sms small { display: block; font-size: 10.5px; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.tale__sms p { font-size: 12.5px; line-height: 1.35; font-weight: 500; }

.tale__screen--lock {
  justify-content: flex-start;
  background: radial-gradient(120% 70% at 20% 0%, #ffd2b8 0%, transparent 60%), linear-gradient(180deg, #b9c8ff, #e4d7ff 55%, #ffd9cb);
  color: #1d1d1f;
}
.tale__lock-date { margin-top: 6px; font-size: 13px; font-weight: 600; color: rgba(29,29,31,.7); }
.tale__lock-time { font: 700 56px/1 var(--font-display); letter-spacing: -0.03em; color: rgba(29,29,31,.88); }
.tale__note {
  margin-top: 26px; width: 100%; padding: 12px; border-radius: 18px; text-align: left;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -14px rgba(40, 30, 90, .45);
}
.tale__note-head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #1d1d1f; }
.tale__note-head small { margin-left: auto; font-weight: 500; color: var(--fg-3); }
.tale__note-app { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); }
.tale__note-title { margin-top: 6px; font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.tale__note-text { margin-top: 2px; font-size: 12px; color: var(--fg-2); }
.tale__approve {
  position: relative; display: grid; margin-top: 10px; height: 32px; border-radius: 10px;
  font-size: 13px; font-weight: 650; color: #fff; overflow: hidden;
  background: var(--btn);
}
.tale__approve > span { grid-area: 1 / 1; display: grid; place-items: center; }
.tale__approve-done { background: #1f9d55; opacity: 0; }

/* the lost-customer line */
.tale__arc { left: 0; top: 0; width: 1000px; height: 560px; overflow: visible; pointer-events: none; }
.tale__arc-path { fill: none; stroke: #ff5f8f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 95, 143, .7)); }
.tale__lost {
  left: 560px; top: 88px; padding: 8px 14px; border-radius: 999px;
  font: 700 15px/1 var(--font-text); color: #fff;
  background: linear-gradient(100deg, #ff5f8f, #ff6a3d);
  box-shadow: 0 12px 30px -10px rgba(255, 80, 110, .7);
  opacity: 0;
}
.tale__rewind {
  left: 500px; top: 34px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  font: 700 14px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  opacity: 0;
}
.tale__rewind svg { width: 18px; height: 18px; }

/* conversation + booking */
.tale__bubbles { left: 690px; top: 150px; width: 280px; display: flex; flex-direction: column; gap: 10px; }
.tale__bubble {
  max-width: 230px; padding: 10px 14px; border-radius: 18px;
  font-size: 14px; line-height: 1.35; font-weight: 500; opacity: 0;
}
.tale__bubble--ava { align-self: flex-start; color: #fff; background: linear-gradient(120deg, #5b7cff, #8b5cf6); border-bottom-left-radius: 6px; box-shadow: 0 12px 28px -12px rgba(110, 90, 255, .8); }
.tale__bubble--her { align-self: flex-end; color: #1d1d1f; background: #fff; border-bottom-right-radius: 6px; }
.tale__card {
  left: 690px; top: 150px; width: 270px; padding: 16px; border-radius: 22px;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 30px 60px -24px rgba(20, 12, 60, .55), inset 0 0 0 1px rgba(255,255,255,.6);
  color: #1d1d1f; opacity: 0;
}
.tale__card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.tale__card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.tale__card dl { margin: 10px 0 0; }
.tale__card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tale__card dt { color: var(--fg-2); }
.tale__card dd { margin: 0; font-weight: 600; }

.tale__tally { left: 500px; top: 490px; translate: -50% 0; display: flex; gap: 10px; white-space: nowrap; opacity: 0; }
.tale__tally li {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #1d1d1f;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px -14px rgba(40, 30, 90, .5);
}
.tale__tally b { font-weight: 750; margin-right: 3px; }
.tale__tally li.is-zero b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tale__dots { flex: none; display: flex; justify-content: center; gap: 10px; margin-top: clamp(12px, 2.2vh, 22px); }
.tale__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--tale-ink) 22%, transparent);
  transition: width .4s var(--ease), background-color .4s var(--ease);
}
.tale__dots li.is-on button { width: 26px; background: var(--tale-ink); }

/* Portrait screens: the same story, stacked. */
.tale__stage.is-portrait .tale__canvas { --cw: 420px; --ch: 720px; }
.is-portrait .tale__moon { left: 336px; top: 30px; width: 50px; height: 50px; }
.is-portrait .tale__sun { left: 300px; top: 34px; width: 70px; height: 70px; }
.is-portrait .tale__shop { left: 50px; top: 352px; }
.is-portrait .tale__phone--caller { left: 18px; top: 22px; scale: .74; transform-origin: 0 0; }
.is-portrait .tale__rival { left: 262px; top: 150px; scale: .8; transform-origin: 0 0; }
.is-portrait .tale__arc { display: none; }
.is-portrait .tale__lost { left: 236px; top: 318px; font-size: 14px; }
.is-portrait .tale__rewind { left: 300px; top: 160px; }
.is-portrait .tale__bubbles { left: 176px; top: 40px; width: 232px; }
.is-portrait .tale__bubble { font-size: 13px; max-width: 200px; }
.is-portrait .tale__card { left: 186px; top: 48px; width: 226px; scale: .94; transform-origin: 0 0; }
.is-portrait .tale__phone--owner { left: 196px; top: 16px; scale: .78; transform-origin: 0 0; }
.is-portrait .tale__tally { left: 210px; top: 662px; flex-wrap: wrap; justify-content: center; width: 400px; gap: 6px; }
.is-portrait .tale__tally li { font-size: 12.5px; padding: 7px 11px; }

/* Without motion the story reads as a list beside the opening scene. */
html:not(.motion) .tale__captions { display: block; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); }
html:not(.motion) .tale__caption { display: block; margin-top: .35em; }
html:not(.motion) .tale__dots { display: none; }
html:not(.motion) .tale__pin { min-height: 0; padding-block: var(--section-y) 40px; }
html:not(.motion) .tale__stage { flex: none; height: min(70vh, 620px); }
