/* =========================================================
   Swift marketing site
   Tokens copied from the app's globals.css so the site and the
   product read as one thing. Light is the default; dark follows
   the device (or data-theme="dark" on <html>).
   ========================================================= */

:root {
  --bg: #f2f0eb;
  --surface: #fbfaf7;
  --surface-2: #f6f4ef;
  --surface-3: #ebe8e1;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(26, 22, 16, 0.08);
  --line: rgba(26, 22, 16, 0.08);
  --line-strong: rgba(26, 22, 16, 0.16);
  --text: #1b1814;
  --muted: #6c665d;
  --faint: #a29b90;

  --accent: #ff6a13;
  --accent-2: #ff9b3d;
  --accent-deep: #d9500a;
  --accent-weak: rgba(255, 106, 19, 0.12);
  --accent-ink: #c64a05;
  --on-accent: #ffffff;

  --btn-bg: #1b1814;
  --btn-fg: #ffffff;
  --btn-hover: #2e2a25;

  --good: #15803d;
  --good-weak: rgba(21, 128, 61, 0.11);
  --warn: #b45309;
  --warn-weak: rgba(180, 83, 9, 0.11);
  --info: #2457c5;
  --info-weak: rgba(36, 87, 197, 0.1);

  --glow-a: rgba(255, 128, 40, 0.26);
  --glow-b: rgba(255, 176, 92, 0.24);
  --glow-c: rgba(120, 150, 205, 0.14);
  --glow-wash: rgba(255, 205, 160, 0.22);

  --bubble-in: #ebe8e1;
  --shadow: 0 1px 2px rgba(26, 22, 16, 0.04), 0 8px 24px rgba(26, 22, 16, 0.05);
  --shadow-lg: 0 18px 48px rgba(26, 22, 16, 0.14);
  color-scheme: light;

  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  /* Page */
  --margin: clamp(16px, 2.6vw, 40px);
  --gutter: clamp(12px, 1.4vw, 24px);
  --max: 1680px;
  --section: clamp(88px, 10vw, 160px);

  /* Type steps: five on the page */
  --t-display: clamp(40px, 6.2vw, 88px);
  --t-h2: clamp(32px, 3.8vw, 56px);
  --t-h3: clamp(26px, 2.4vw, 34px);
  --t-body: 17px;
  --t-small: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0e; --surface: #161618; --surface-2: #1c1c1f; --surface-3: #262629;
    --glass: rgba(255, 255, 255, 0.07); --glass-strong: rgba(255, 255, 255, 0.12); --glass-line: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.07); --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f2ef; --muted: #9d978e; --faint: #68635c;
    --accent: #ff7424; --accent-2: #ffa04a; --accent-deep: #c4470a; --accent-weak: rgba(255, 116, 36, 0.15); --accent-ink: #ffa366;
    --btn-bg: #ffffff; --btn-fg: #0c0c0e; --btn-hover: #ebe8e3;
    --good: #4ade80; --good-weak: rgba(74, 222, 128, 0.12); --warn: #fbbf24; --warn-weak: rgba(251, 191, 36, 0.12); --info: #8fb4ff; --info-weak: rgba(143, 180, 255, 0.12);
    --glow-a: rgba(255, 106, 19, 0.42); --glow-b: rgba(214, 74, 10, 0.34); --glow-c: rgba(27, 42, 68, 0.75); --glow-wash: rgba(70, 25, 5, 0.35);
    --bubble-in: #262629;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.25); --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0e; --surface: #161618; --surface-2: #1c1c1f; --surface-3: #262629;
  --glass: rgba(255, 255, 255, 0.07); --glass-strong: rgba(255, 255, 255, 0.12); --glass-line: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.07); --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f2ef; --muted: #9d978e; --faint: #68635c;
  --accent: #ff7424; --accent-2: #ffa04a; --accent-deep: #c4470a; --accent-weak: rgba(255, 116, 36, 0.15); --accent-ink: #ffa366;
  --btn-bg: #ffffff; --btn-fg: #0c0c0e; --btn-hover: #ebe8e3;
  --good: #4ade80; --good-weak: rgba(74, 222, 128, 0.12); --warn: #fbbf24; --warn-weak: rgba(251, 191, 36, 0.12); --info: #8fb4ff; --info-weak: rgba(143, 180, 255, 0.12);
  --glow-a: rgba(255, 106, 19, 0.42); --glow-b: rgba(214, 74, 10, 0.34); --glow-c: rgba(27, 42, 68, 0.75); --glow-wash: rgba(70, 25, 5, 0.35);
  --bubble-in: #262629;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.25); --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}
/* The brand glow: orange from the top-left, deeper orange center, a cool tone at right, sinking into the canvas. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(78vh, 900px);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 70% at 16% -10%, var(--glow-a), transparent 62%),
    radial-gradient(45% 55% at 52% -14%, var(--glow-b), transparent 65%),
    radial-gradient(55% 70% at 100% 16%, var(--glow-c), transparent 70%),
    linear-gradient(180deg, var(--glow-wash), transparent 75%);
}
body > * { position: relative; z-index: 1; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.1; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--t-small); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: var(--pill); z-index: 50; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--margin); max-width: var(--max); margin-inline: auto; width: 100%; }
.statement { font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; line-height: 1.35; max-width: 34ch; letter-spacing: -0.005em; }

/* ---------- Brand mark ---------- */
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-weight: 600; font-size: 14px; color: var(--text); line-height: 1; letter-spacing: 0.02em;
  background: var(--surface-3); border: 1px solid var(--line-strong);
}
.brand-mark.sm { width: 24px; height: 24px; border-radius: 8px; font-size: 11px; }
.brand-mark.lg { width: clamp(64px, 9vw, 140px); height: clamp(64px, 9vw, 140px); border-radius: 22%; font-size: clamp(30px, 4.6vw, 72px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: var(--pill); font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--btn-hover); }
  .btn-ghost:hover { border-color: var(--text); }
}
.link { color: var(--text); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

.btn-accent { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-accent:hover { background: var(--accent-deep); } }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: linear-gradient(145deg, #ece6dc, #dcd4c7); color: #3b342b; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.brand-mark.round { border-radius: 99px; }
.round-icon { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; flex: none; background: var(--surface-3); border: 1px solid var(--glass-line); color: var(--text); }
.round-icon.sm { width: 30px; height: 30px; }
.round-icon.accent { color: var(--accent); background: var(--accent-weak); border-color: transparent; }
.round-icon.good { color: var(--good); background: var(--good-weak); border-color: transparent; }
.pill-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--surface-3); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text); }
.pill-tag.good { background: var(--good-weak); color: var(--good); }
.pill-tag.live { background: var(--accent-weak); color: var(--accent-ink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; transition: background-color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.nav-links > a, .dd-btn { text-decoration: none; font: inherit; font-weight: 500; font-size: 15.5px; color: var(--text); padding: 8px 12px; border-radius: var(--pill); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: background-color var(--t-hover) ease; }
.nav-links > a:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { background: var(--surface-3); }
.dd { position: relative; }
.dd-btn .ic { transition: transform var(--t-ui) var(--ease-out); }
.dd-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 8px); left: -8px; width: 360px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top left; pointer-events: none; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.dd.is-open .dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--text); }
.dd-item:hover, .dd-item:focus-visible { background: var(--surface-2); }
.dd-item b { display: block; font-size: 15px; }
.dd-item span span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.dd-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; flex: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.btn-sm-nav { height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); place-items: center; cursor: pointer; }
.mnav { padding: 8px var(--margin) 20px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { padding: 11px 4px; font-size: 17px; font-weight: 500; text-decoration: none; color: var(--text); }
.mnav-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 10px; }
.mnav .btn { margin-top: 12px; }
@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .menu-btn { display: grid; }
  .nav-actions { gap: 10px; }
}
@media (max-width: 380px) { .btn-sm-nav { padding: 0 14px; } }

/* ---------- Shared section heads ---------- */
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }
.sec-title { font-size: var(--t-h2); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.sec-title.small { font-size: clamp(26px, 2.6vw, 36px); }
.sec-sub { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; line-height: 1.5; }

/* ---------- Hero ---------- */
.hero, .p-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(40px, 7vw, 96px); gap: 24px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: var(--pill); background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow); font-size: 14.5px; font-weight: 600; }
.hero-pill .ic { color: var(--accent); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.display { font-size: var(--t-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display .line-inner { display: block; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 50ch; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { color: var(--muted); font-size: 15px; }
.hero-note a { color: var(--text); font-weight: 600; }

/* ---------- Live app panel (data-ui: the product's own conventions) ---------- */
.live-wrap { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lvp { position: relative; width: 100%; max-width: 1180px; height: 580px; display: grid; grid-template-columns: 210px minmax(0, 1fr); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow-lg), 0 40px 80px -40px color-mix(in srgb, var(--accent) 35%, transparent); overflow: hidden; text-align: left; font-size: 13.5px; }
.lv-side { background: var(--surface-2); border-right: 1px solid var(--line); padding: 18px 10px; display: flex; flex-direction: column; gap: 16px; }
.lv-biz { display: flex; align-items: center; gap: 9px; padding: 0 6px; }
.lv-biz b { display: block; font-size: 13px; line-height: 1.2; }
.lv-biz span:not(.brand-mark) { font-size: 12px; color: var(--muted); }
.lv-biz .brand-mark { width: 30px; height: 30px; font-size: 11px; }
.lv-navs { display: flex; flex-direction: column; gap: 2px; }
.lv-nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: var(--pill); color: var(--muted); font-weight: 500; border: 1px solid transparent; transition: background-color 300ms ease, color 300ms ease; }
.lv-nav.is-on { color: var(--text); background: var(--surface); border-color: var(--glass-line); box-shadow: var(--shadow); }
.lv-nav.is-on .ic { color: var(--accent); }
.lv-count { margin-left: auto; font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.lv-status { margin-top: auto; display: flex; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--glass-line); font-size: 12px; }
.lv-status b { display: block; } .lv-status span { color: var(--muted); }
.lv-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 99px; background: var(--good); box-shadow: 0 0 10px var(--good); flex: none; }
.lv-main { display: flex; flex-direction: column; min-width: 0; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lv-search { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--faint); width: 240px; }
.lv-live { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--accent-weak); color: var(--accent-ink); font-weight: 600; font-size: 12.5px; }
.lv-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-o 1.6s infinite; }
@keyframes pulse-o { 50% { opacity: 0.3; } }
.lv-scenes { position: relative; flex: 1; min-height: 0; }
.lv-scene { position: absolute; inset: 0; padding: 16px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 360ms ease, transform 500ms var(--ease-out), visibility 0s linear 360ms; }
.lv-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 360ms ease, transform 500ms var(--ease-out), visibility 0s; }
[data-t] { transition: opacity 280ms ease, transform 380ms var(--ease-out); }
.lvp.is-anim [data-t]:not(.is-shown):not([data-txt]):not(.lv-swap) { opacity: 0; transform: translateY(6px); }
.lvp.is-anim [data-until].is-gone { display: none; }
.lv-h { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 6px; }
.tag { font-style: normal; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--surface-3); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--text); transition: background-color 300ms ease, color 300ms ease; }
.tag.good { background: var(--good-weak); color: var(--good); }
.tag.live { background: var(--accent-weak); color: var(--accent-ink); }
.lv-inbox { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; height: 100%; }
.lv-list { display: flex; flex-direction: column; gap: 4px; }
.lv-lead { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 14px; }
.lv-lead > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lv-lead b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-lead span:not(.avatar) { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-lead.is-sel { background: var(--surface); box-shadow: var(--shadow); }
.lv-lead.is-sel span:not(.avatar) { color: var(--accent-ink); font-weight: 600; }
.lv-thread { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.lv-thread-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lv-thread-h span { color: var(--muted); font-size: 12px; }
.lv-thread-h .tag { margin-left: auto; }
.lv-msgs { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.lv-msgs .bubble { max-width: 78%; }
.lv-cal { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.lv-cal-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.lv-cal-h span { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-left: 8px; }
.k.a { background: var(--accent); } .k.o { background: var(--warn); }
.lv-grid { display: grid; grid-template-columns: 34px repeat(6, minmax(0, 1fr)); grid-auto-rows: 54px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lv-grid > span:nth-child(-n+7) { height: 54px; }
.lv-grid .d { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.lv-grid .d b { font-size: 15px; font-weight: 500; color: var(--text); width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; }
.lv-grid .d.today b { background: var(--accent); color: #fff; }
.lv-grid .hr { font-size: 11px; color: var(--faint); text-align: right; padding: 3px 6px 0 0; border-right: 1px solid var(--line); }
.lv-grid i { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev { position: absolute; left: 3px; right: 3px; top: 3px; height: calc(var(--h) * 54px - 6px); border-radius: 8px; padding: 5px 7px; background: var(--accent); color: #fff; font-style: normal; font-weight: 600; font-size: 11.5px; line-height: 1.2; z-index: 1; overflow: hidden; }
.ev small { display: block; font-weight: 500; opacity: 0.9; font-size: 10.5px; }
.ev.o { background: var(--warn); }
.ev.new { background: var(--text); color: var(--bg); box-shadow: 0 0 0 3px var(--accent); }
.lv-crew, .lv-pay { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; height: 100%; align-content: start; }
.lv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.lv-big { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lv-wave { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.lv-wave > div { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.lv-wave > div > div { display: flex; flex-direction: column; flex: 1; }
.lv-wave span:not(.avatar) { font-size: 12px; color: var(--muted); }
.lv-sms { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; align-self: start; }
.lv-sms.compact { grid-column: 1 / -1; background: transparent; border: 0; padding: 0; }
.lv-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-column: 1 / -1; }
.lv-kpis > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.lv-kpis span { font-size: 13px; font-weight: 500; }
.lv-kpis b { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; margin-top: 8px; }
.lv-kpis small { color: var(--muted); font-size: 12px; }
.lv-pay .lv-card { grid-column: 1 / -1; }
.lv-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.lv-inv > div { display: flex; flex-direction: column; min-width: 0; }
.lv-inv span { color: var(--muted); font-size: 12px; }
.lv-work { position: absolute; right: 18px; bottom: 18px; width: 290px; padding: 14px 16px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); z-index: 3; }
.lv-work-h { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.lv-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-weak); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#lv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#lv-steps li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); transition: color 240ms ease; }
#lv-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; box-sizing: border-box; transition: background-color 240ms ease, border-color 240ms ease; }
#lv-steps li.is-active { color: var(--text); font-weight: 600; }
#lv-steps li.is-active::before { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
#lv-steps li.is-done { color: var(--text); }
#lv-steps li.is-done::before { background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--good); }
.lv-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12.5px; white-space: nowrap; opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 260ms ease, transform 420ms var(--ease-out); pointer-events: none; }
.lv-chip b { display: block; font-size: 13.5px; } .lv-chip span span { color: var(--muted); }
.lv-chip.is-on { opacity: 1; transform: none; }
.lv-chip-a { left: 226px; bottom: 22px; }
.lv-chip-b { left: 226px; bottom: 22px; }
.lv-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lv-tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent; border: 0; padding: 6px 4px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; width: 120px; text-align: left; }
.lv-tabs button.is-on { color: var(--text); }
.lv-tabs .bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.lv-tabs .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.lv-tabs button.is-past .bar i { width: 100%; }
.lv-tabs button.is-on .bar i { width: var(--p, 0%); }
@media (max-width: 960px) {
  .lvp { grid-template-columns: 1fr; height: 600px; }
  .lv-side, .lv-search { display: none; }
  .lv-inbox { grid-template-columns: 1fr; }
  .lv-list { display: none; }
  .lv-crew, .lv-pay { grid-template-columns: 1fr; }
  .lv-chip-a, .lv-chip-b { left: auto; right: 10px; bottom: auto; top: 8px; padding: 6px 12px 6px 6px; }
  .lv-chip span span { display: none; }
  .lv-chip .round-icon { width: 28px; height: 28px; }
  .lv-work { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 12px 14px; }
  .lv-scene { padding: 12px 12px 170px; overflow: hidden; }
  .lv-tabs button { width: 76px; font-size: 13px; }
}
@media (max-width: 520px) {
  .lvp { height: 640px; }
  .lv-grid { grid-template-columns: 26px repeat(6, minmax(0, 1fr)); grid-auto-rows: 46px; }
  .lv-grid > span:nth-child(-n+7) { height: 46px; }
  .ev { height: calc(var(--h) * 46px - 6px); font-size: 9.5px; padding: 3px 4px; } .ev small { display: none; }
  .lv-grid .hr { font-size: 10px; padding-right: 3px; }
  .lv-top { padding: 10px 12px; }
  .lv-msgs .bubble { max-width: 90%; }
}

/* ---------- Channels ---------- */
.channels { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ch-title { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1120px; }
.ch { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.ch .ic { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { padding-top: var(--section); }
.stats .sec-title { max-width: 22ch; margin-bottom: clamp(32px, 4vw, 52px); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; min-height: 260px; box-shadow: var(--shadow); }
.stat-n { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.stat-v { font-size: clamp(36px, 3.6vw, 52px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin-top: auto; padding-top: 28px; }
.stat h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-top: 10px; }
.stat p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr; } .stat { min-height: 0; } }

/* ---------- Live demo ---------- */
.demo-sec { padding-top: var(--section); display: flex; flex-direction: column; align-items: center; }
.seg { display: inline-flex; padding: 5px; border-radius: var(--pill); background: var(--surface-3); gap: 4px; margin-bottom: 32px; }
.seg button { font: inherit; font-size: 15px; font-weight: 600; height: 42px; padding: 0 18px; border-radius: var(--pill); border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.seg button:active { transform: scale(0.97); }
.seg button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.demo-stage { width: 100%; max-width: 980px; padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 48px); border-radius: 32px; background: radial-gradient(80% 90% at 50% 0%, var(--accent-weak), transparent 70%), var(--surface-2); }
.demo-pane { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.demo-pane[hidden] { display: none; }

.hero-scene { position: relative; width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; }
.scene-phone { position: relative; margin: 0 auto; width: 320px; max-width: 100%; min-height: 420px; padding: 18px 16px 16px; border-radius: 36px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; }
.scene-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.scene-head .time { margin-left: auto; font-weight: 500; }
.call-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.thread { display: flex; flex-direction: column; gap: 8px; flex: 1; max-height: 330px; overflow-y: auto; scrollbar-width: none; padding: 4px 2px 4px 0; }
.thread::-webkit-scrollbar { display: none; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px; line-height: 1.4; font-size: 13.5px; overflow-wrap: anywhere; }
.bubble.in { align-self: flex-start; background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; color: #fff; border-bottom-right-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.bubble.note { align-self: center; background: transparent; color: var(--muted); font-size: 13px; text-align: center; max-width: 100%; }
.bubble.sys { align-self: center; background: var(--surface-3); color: var(--muted); font-size: 12.5px; text-align: center; max-width: 100%; }
.bubble.typing { display: inline-flex; gap: 4px; align-items: center; height: 32px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; animation: blink 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.15s; } .bubble.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.bubble.enter { animation: bubble-in 320ms var(--ease-out) both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.bubble .who { display: block; font-size: 11.5px; font-weight: 700; opacity: 0.75; margin-bottom: 2px; }
.bubble a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.bubble.out a { color: #fff; }
.bubble.out a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.quote-link { cursor: pointer; }
.quote-sheet { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: flex-end; padding: 10px; animation: qs-fade 200ms ease both; }
@keyframes qs-fade { from { opacity: 0; } }
.qs-card { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; animation: qs-up 280ms var(--ease-out) both; }
@keyframes qs-up { from { transform: translateY(24px); opacity: 0.6; } }
.qs-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.qs-head .brand-mark { font-size: 9px; }
.qs-close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.qs-label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.qs-service { font-size: 16px; font-weight: 600; }
.qs-price { font-size: 44px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.qs-rows { margin: 4px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.qs-rows dt { color: var(--muted); } .qs-rows dd { margin: 0; font-weight: 600; text-align: right; }
.qs-book { width: 100%; height: 44px; margin-top: 4px; }
.qs-book:disabled { opacity: 0.6; cursor: default; }
.qs-note { font-size: 12px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .quote-sheet, .qs-card { animation: none; } }
.scene-composer { display: flex; gap: 6px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.scene-composer input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.scene-composer input::placeholder { color: var(--faint); }
.scene-composer input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.send-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.send-btn:active { transform: scale(0.94); }
.call-play { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: none; border: 0; cursor: pointer; padding: 40px 10px; }
.call-play .ic { width: 64px; height: 64px; padding: 20px; border-radius: 50%; background: var(--accent); color: #fff; fill: currentColor; stroke: none; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform var(--t-press) var(--ease-out); }
.call-play:active .ic { transform: scale(0.94); }
.scene-chip { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13px; white-space: nowrap; transition: opacity var(--t-ui) ease, transform 420ms var(--ease-out); z-index: 1; }
.scene-chip b { display: block; font-size: 14px; }
.chip-reply { align-self: flex-end; margin-top: -18px; transform: rotate(2deg); }
.chip-booked { align-self: flex-start; margin-top: 8px; transform: rotate(-2deg); }
.scene-chip.is-hidden { opacity: 0; transform: translateY(10px) scale(0.96); pointer-events: none; }
.try { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.try-label { font-weight: 600; font-size: 15px; }
.try-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-btn { font: inherit; font-size: 15px; font-weight: 500; height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); cursor: pointer; transition: transform var(--t-press) var(--ease-out), border-color var(--t-hover) ease; }
.chip-btn:active { transform: scale(0.97); }
.chip-btn[data-reset] { color: var(--muted); border-style: dashed; }
@media (hover: hover) and (pointer: fine) { .chip-btn:hover { border-color: var(--text); } .send-btn:hover { background: var(--accent-deep); } }
.try-note { color: var(--muted); font-size: 14px; text-align: center; max-width: 52ch; }
@media (max-width: 420px) { .scene-phone { width: 100%; } .chip-reply, .chip-booked { font-size: 12px; } }

/* ---------- Fragments ---------- */
.frag { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.4; text-align: left; }
.frag-title { font-weight: 600; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.frag-meta { font-size: 13px; color: var(--muted); }
.frag-row { display: flex; align-items: center; gap: 10px; }
.frag-row > div { display: flex; flex-direction: column; min-width: 0; }
.frag-row .muted { font-size: 13px; }
.frag-row.sub { padding-top: 10px; border-top: 1px solid var(--line); }
.frag-row .pill-tag { margin-left: auto; }
.frag-cta { align-self: flex-start; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { pointer-events: none; }
.price-rows { display: flex; flex-direction: column; }
.price-rows > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.price-rows > div:last-child { border-bottom: 0; }
.price-rows b { font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots span { display: grid; place-items: center; font-size: 13px; font-weight: 500; height: 38px; border-radius: var(--pill); border: 1px solid var(--line-strong); }
.slots span.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.card-line { display: flex; align-items: center; gap: 10px; }
.card-line > div { display: flex; flex-direction: column; } .card-line .muted { font-size: 13px; }
.wave { display: flex; flex-direction: column; gap: 8px; }
.wave > div { display: flex; align-items: center; gap: 10px; }
.wave > div > div { display: flex; flex-direction: column; } .wave .muted { font-size: 13px; }
.wave .pill-tag { margin-left: auto; }
.checklist { display: flex; flex-wrap: wrap; gap: 6px; }
.checklist span { font-size: 13px; padding: 5px 10px 5px 8px; border-radius: var(--pill); background: var(--good-weak); color: var(--good); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.checklist span::before { content: ""; width: 5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin: 0 2px 0 3px; }
.paid { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.paid b { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fields > div { background: var(--surface-2); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; }
.fields span { font-size: 12px; color: var(--muted); } .fields b { font-size: 14px; font-weight: 600; }
.transcript { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.transcript b { margin-right: 6px; color: var(--muted); font-weight: 600; }
.quote-page { gap: 10px; }
.quote-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.quote-head .brand-mark { font-size: 9px; }
.quote-head .faint { margin-left: auto; font-weight: 500; font-size: 13px; }
.quote-service { font-size: 15px; font-weight: 600; margin-top: 6px; }
.quote-price { font-size: 56px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.draft { background: var(--surface-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex: none; box-shadow: 0 0 0 4px var(--warn-weak); }
.seq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.seq li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.seq li .muted { margin-left: auto; font-size: 13px; }
.seq li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--line-strong); flex: none; }
.seq li.done::before { background: var(--good); border-color: var(--good); }
.call-log { display: flex; align-items: center; gap: 10px; }
.call-log .ic { fill: currentColor; stroke: none; }
.cl-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--accent); }
.inbox { max-width: 440px; padding: 0; overflow: hidden; gap: 0; }
.inbox-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inbox-head > div { display: flex; flex-direction: column; min-width: 0; }
.inbox-head .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-head .pill-tag { margin-left: auto; }
.inbox-tabs { display: flex; gap: 4px; padding: 10px 12px 0; }
.inbox-tabs span { padding: 6px 10px; border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--muted); }
.inbox-tabs span.is-active { background: var(--surface-3); color: var(--text); }
.inbox-thread { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.inbox .fields { padding: 0 16px 16px; }

/* ---------- Flow tabs ---------- */
.flow { padding-top: var(--section); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.flow-tabs { display: flex; flex-direction: column; gap: 10px; }
.flow-grid > * { min-width: 0; }
.ft { width: 100%; min-width: 0; text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; transition: background-color var(--t-ui) ease, border-color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
.ft-n { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 4px; }
.ft-t { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.ft-body { grid-column: 2; display: none; flex-direction: column; gap: 10px; margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--text); }
.ft-body b { font-weight: 600; }
.ft.is-on { background: var(--surface); border-color: transparent; box-shadow: var(--shadow-lg); }
.ft.is-on .ft-n { color: var(--accent); }
.ft.is-on .ft-body { display: flex; }
@media (hover: hover) and (pointer: fine) { .ft:not(.is-on):hover { background: var(--surface-2); } }
.flow-panels { position: sticky; top: 100px; min-height: 480px; border-radius: 32px; padding: clamp(24px, 4vw, 48px); background: radial-gradient(80% 90% at 70% 0%, var(--accent-weak), transparent 70%), var(--surface-2); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.fp { width: 100%; min-width: 0; display: flex; justify-content: center; }
.fp > .frag, .block-frag > .frag { min-width: 0; }
.fp[hidden] { display: none; }
.fp.is-on .frag { animation: bubble-in 360ms var(--ease-out) both; }
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .ft { padding: 18px; } .ft-t { font-size: 19px; }
  .flow-panels { position: static; min-height: 0; order: 2; padding: 20px 14px; border-radius: 24px; }
}

/* ---------- Replaces ---------- */
.replaces { margin-top: var(--section); padding-block: var(--section); background: var(--surface-2); }
.rp-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.rp-label { width: 100%; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.rp-chip { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--pill); background: var(--bg); font-weight: 600; font-size: 16px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.rp-list { display: flex; flex-direction: column; gap: 8px; }
.rp-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: baseline; background: var(--bg); border-radius: 20px; padding: 22px 24px; }
.rp-name { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.rp-row p { font-size: 16px; }
.rp-move { background: var(--btn-bg); color: var(--btn-fg); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rp-move h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.rp-move p { font-size: 16px; opacity: 0.85; }
.rp-move .btn-primary { background: var(--accent); color: #fff; margin-top: auto; }
.rp-move .tile-ic { background: color-mix(in srgb, var(--accent) 22%, transparent); }
@media (max-width: 900px) { .rp-grid { grid-template-columns: 1fr; } .rp-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; } }

/* ---------- Tiles ---------- */
.tiles-sec { padding-top: var(--section); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.tile-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.tile h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.tile p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tile-grid { grid-template-columns: 1fr; } .tile { padding: 22px; } }


/* ---------- Journey: one job, followed after it's booked ---------- */
.journey { padding-top: var(--section); }
.jr-track { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.jr-track::before { content: ""; position: absolute; top: 15px; left: 16px; right: calc((100% - 56px) / 5 - 16px); height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); border-radius: 2px; }
.jr-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 52px; min-width: 0; }
.jr-dot { position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); z-index: 1; }
.jr-step:first-child .jr-dot { background: var(--accent); color: #fff; }
.jr-step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.jr-step > p { font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.jr-art { margin-top: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); font-size: 13px; }
.jr-art .bubble { font-size: 12.5px; padding: 8px 11px; max-width: 100%; }
.jr-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.jr-pay span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--surface-3); }
.jr-row { display: flex; align-items: center; gap: 8px; }
.jr-row > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jr-row b { font-size: 13px; } .jr-row span:not(.avatar) { font-size: 12px; color: var(--muted); }
.jr-amt { font-size: 16px !important; font-weight: 500; }
.jr-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--surface-3); color: var(--text); }
.jr-tag.good { background: var(--good-weak); color: var(--good); }
.jr-cal { display: flex; align-items: center; gap: 10px; }
.jr-cal > div { display: flex; flex-direction: column; min-width: 0; }
.jr-cal b { font-size: 13px; } .jr-cal span:not(.jr-day) { font-size: 12px; color: var(--muted); }
.jr-day { width: 44px; flex: none; text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; background: var(--accent-weak); border-radius: 12px; padding: 5px 0; display: flex; flex-direction: column; }
.jr-day b { font-size: 18px; color: var(--accent-ink); font-weight: 600; }
.jr-choice { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 36px; padding: 7px 14px; line-height: 1.3; border-radius: 18px; background: var(--accent-weak); color: var(--accent-ink); font-size: 14.5px; font-weight: 600; }
.jr-or { align-self: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.jr-more { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; color: var(--muted); font-size: 15.5px; text-align: center; }
.jr-more .ic { color: var(--accent); }
@media (max-width: 1100px) {
  .jr-track { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 620px; }
  .jr-track::before { top: 16px; bottom: 16px; left: 15px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); }
  .jr-step { padding-top: 4px; padding-left: 52px; }
  .jr-art { margin-top: 4px; max-width: 420px; }
  .jr-more { justify-content: flex-start; text-align: left; align-items: flex-start; }
}

/* ---------- CTA band ---------- */
.cta-band { padding-top: var(--section); }
.cta-card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 64px); background: var(--btn-bg); color: var(--btn-fg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-card::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(50% 50% at 50% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card h2 { font-size: var(--t-h2); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
.cta-card p { font-size: clamp(17px, 1.4vw, 19px); max-width: 52ch; opacity: 0.8; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; }
.cta-signin { color: inherit; opacity: 0.8; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq-head { grid-column: 1 / span 4; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.faq-head h2 { font-size: clamp(32px, 3.8vw, 56px); font-weight: 500; letter-spacing: -0.03em; max-width: 10ch; }
.faq-list { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 8px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--t-ui) ease; }
details[open] { box-shadow: var(--shadow-lg); border-color: transparent; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 18px 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center/12px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 12px no-repeat, var(--surface-3); transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-weak); color: var(--accent); }
details p { padding: 0 22px 22px; font-size: 16.5px; max-width: 60ch; line-height: 1.55; color: var(--muted); }
details[open] p { animation: faq-in 260ms var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 900px) {
  .faq-head { grid-column: 1 / -1; position: static; margin-bottom: 24px; }
  .faq-list { grid-column: 1 / -1; }
  summary { font-size: 17px; padding: 16px 18px; }
  details p { padding: 0 18px 18px; font-size: 16px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); overflow: hidden; }
.f-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); }
.f-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.f-brand p { color: var(--muted); font-size: 16px; max-width: 34ch; }
.f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-title { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.f-col a { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--text); }
.f-col a:hover { color: var(--accent-ink); }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.f-word { font-size: clamp(96px, 24vw, 360px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.78; margin-top: 24px; color: var(--surface-3); text-align: center; user-select: none; }
@media (max-width: 900px) { .f-top { grid-template-columns: 1fr; } .f-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* ---------- Product pages ---------- */
.blocks { padding-top: clamp(64px, 8vw, 120px); display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }
.block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.block.flip .block-copy { order: 2; }
.block-copy { display: flex; flex-direction: column; gap: 14px; }
.block-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.block-label span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-weak); font-size: 13px; }
.block h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.block-copy > p:last-child { font-size: 17px; max-width: 46ch; }
.block-frag { border-radius: 32px; padding: clamp(24px, 4vw, 56px); background: radial-gradient(80% 90% at 70% 0%, var(--accent-weak), transparent 70%), var(--surface-2); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 380px; }
.block > * { min-width: 0; }
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; }
  .block.flip .block-copy { order: 0; }
  .block-frag { min-height: 0; padding: 20px 14px; border-radius: 24px; }
}
.others { padding-top: var(--section); }
.others .sec-title { margin-bottom: 20px; }
.other-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.other { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: box-shadow var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.other b { display: block; font-size: 16px; } .other span span { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.other > .ic { margin-left: auto; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .other:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } }
@media (max-width: 900px) { .other-grid { grid-template-columns: 1fr; } }

/* ---------- Entrances (content is in place without script) ---------- */
.js .reveal-lines .line-inner { transition: transform 900ms var(--ease-expo); }
.js .reveal-lines .line:nth-child(2) .line-inner { transition-delay: 110ms; }
.js:not(.is-ready) .reveal-lines .line-inner { transform: translateY(110%); }
.js .fade-up { transition: opacity 700ms var(--ease-out) 420ms, transform 700ms var(--ease-out) 420ms; }
.js .hero-actions.fade-up { transition-delay: 520ms; }
.js .hero-note.fade-up { transition-delay: 620ms; }
.js:not(.is-ready) .fade-up { opacity: 0; transform: translateY(14px); }
.js.no-entrance .reveal-lines .line-inner, .js.no-entrance .fade-up, .js.entered .reveal-lines .line-inner, .js.entered .fade-up { transition: none; }
.js [data-enter] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.js [data-enter].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal-lines .line-inner, .js .fade-up, .js:not(.is-ready) .reveal-lines .line-inner, .js:not(.is-ready) .fade-up { transition: none; opacity: 1; transform: none; }
  .js [data-enter] { opacity: 1; transform: none; transition: none; }
  .bubble.enter, details[open] p, .fp.is-on .frag { animation: none; }
  .bubble.typing i, .pulse, .lv-spin, .lv-live::before, #lv-steps li.is-active::before { animation: none; }
  .scene-chip, .lv-scene, .lv-chip, .btn, .chip-btn, .tile, .other, .dd-panel { transition: none; }
}


/* ---------- Brand: flat mark + wordmark ---------- */
.brand { gap: 9px; }
.brand-logo { flex: none; color: var(--accent); --logo-ink: var(--on-accent); transition: transform var(--t-press) var(--ease-out); }
.brand:hover .brand-logo { transform: rotate(-6deg); }
.brand-word { display: inline-flex; align-items: baseline; gap: 3px; }
.brand-hq { font-size: 0.62em; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- Live indicator in the hero pill ---------- */
.hero-pill { position: relative; isolation: isolate; }
.hero-pill::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--pill-angle, 0deg), transparent 0 70%, color-mix(in srgb, var(--accent) 80%, transparent) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pill-sweep 4.5s linear infinite; }
@property --pill-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes pill-sweep { to { --pill-angle: 360deg; } }
.live { position: relative; width: 10px; height: 10px; flex: none; display: grid; place-items: center; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); }
.live::before, .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: live-ring 2.4s var(--ease-out) infinite; }
.live::after { animation-delay: 1.2s; }
@keyframes live-ring { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Light / dark toggle ---------- */
.theme-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; position: relative; overflow: hidden; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.theme-btn:hover { background: var(--glass-strong); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn .ic { position: absolute; transition: transform 320ms var(--ease-out), opacity 200ms ease; }
.theme-btn .ic-moon { transform: translateY(120%) rotate(-40deg); opacity: 0; }
.is-dark .theme-btn .ic-sun { transform: translateY(-120%) rotate(40deg); opacity: 0; }
.is-dark .theme-btn .ic-moon { transform: none; opacity: 1; }

/* ---------- Footer wordmark: halftone ---------- */
.f-word { position: relative; color: transparent; }
.f-word span { display: block;
  background-image: radial-gradient(circle, var(--text) 38%, transparent 42%);
  background-size: 9px 9px; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 10%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
  opacity: 0.55; transition: opacity 600ms ease; }
.site-footer:hover .f-word span { opacity: 0.85; }
@media (max-width: 700px) { .f-word span { background-size: 6px 6px; } }

/* ---------- Cursor bubble (fine pointers only) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  background: #fff; mix-blend-mode: difference; box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.45);
  opacity: 0; transition: opacity 200ms ease, width 220ms var(--ease-out), height 220ms var(--ease-out), margin 220ms var(--ease-out); will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; box-shadow: 0 0 28px 8px rgba(255, 255, 255, 0.35); }
.cursor.is-down { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-pill::before, .live::before, .live::after { animation: none; } .cursor { display: none; } }
