/* DauysPro customer web app — "Liquid Glass" design language.
   Translucent frosted materials over a vivid ambient backdrop, continuous large corners,
   system typography, springy-but-restrained motion. Light and dark are both first-class. */

/* ── Tokens ─────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f2f2f7;
  --bg-2: #e9e9f0;
  --text: #0b0b0f;
  --text-2: rgba(28, 28, 36, 0.72);
  --text-3: rgba(40, 40, 52, 0.58);
  --sep: rgba(60, 60, 67, 0.14);
  --sep-strong: rgba(60, 60, 67, 0.24);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-thin: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-edge: rgba(15, 15, 40, 0.07);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
  --shadow: 0 1px 2px rgba(20, 20, 50, 0.05), 0 8px 28px rgba(30, 30, 80, 0.08);
  --shadow-lg: 0 2px 6px rgba(20, 20, 50, 0.06), 0 24px 60px rgba(30, 30, 90, 0.16);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.2);
  --input: rgba(255, 255, 255, 0.72);

  --accent: #5147e5;
  --accent-2: #7c3aed;
  --accent-text: #4338ca;
  --accent-soft: rgba(81, 71, 229, 0.12);
  --on-accent: #fff;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #db2777 100%);
  --grad-cool: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
  --grad-warm: linear-gradient(135deg, #ff9f0a 0%, #ff375f 100%);
  --grad-green: linear-gradient(135deg, #30d158 0%, #0fb5ae 100%);

  --ok: #1a7f37;
  --ok-soft: rgba(48, 209, 88, 0.16);
  --warn: #9a5b00;
  --warn-soft: rgba(255, 159, 10, 0.18);
  --bad: #c9182f;
  --bad-soft: rgba(255, 55, 95, 0.14);
  --info: #0058c7;
  --info-soft: rgba(10, 132, 255, 0.14);

  --blob-1: rgba(99, 102, 241, 0.42);
  --blob-2: rgba(236, 72, 153, 0.26);
  --blob-3: rgba(14, 165, 233, 0.3);
  --blob-4: rgba(168, 85, 247, 0.26);

  --r-xs: 10px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 26px;
  --r-xl: 32px;
  --pill: 999px;
  --blur: saturate(180%) blur(24px);
  --blur-strong: saturate(200%) blur(36px);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --spring-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* One motion system: every transition uses these curves and durations. */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 0.2s;
  --dur-2: 0.45s;
  --dur-3: 0.8s;
  --focus: 0 0 0 3px rgba(81, 71, 229, 0.45);
  --maxw: 1180px;
  --gutter: 16px;
  --tabbar-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #05050a;
    --bg-2: #0d0d15;
    --text: #f5f5f7;
    --text-2: rgba(235, 235, 245, 0.74);
    --text-3: rgba(235, 235, 245, 0.56);
    --sep: rgba(255, 255, 255, 0.1);
    --sep-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(30, 30, 40, 0.52);
    --glass-strong: rgba(36, 36, 48, 0.8);
    --glass-thin: rgba(40, 40, 54, 0.36);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-edge: rgba(0, 0, 0, 0.4);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.5), 0 30px 70px rgba(0, 0, 0, 0.55);
    --fill: rgba(118, 118, 128, 0.24);
    --fill-2: rgba(118, 118, 128, 0.36);
    --input: rgba(20, 20, 28, 0.6);
    --accent: #7d74ff;
    --accent-2: #a78bfa;
    --accent-text: #a5a0ff;
    --accent-soft: rgba(125, 116, 255, 0.18);
    --ok: #4ade80;
    --ok-soft: rgba(48, 209, 88, 0.18);
    --warn: #fbbf24;
    --warn-soft: rgba(255, 159, 10, 0.18);
    --bad: #ff6b81;
    --bad-soft: rgba(255, 55, 95, 0.2);
    --info: #64b5ff;
    --info-soft: rgba(10, 132, 255, 0.2);
    --blob-1: rgba(79, 70, 229, 0.45);
    --blob-2: rgba(219, 39, 119, 0.28);
    --blob-3: rgba(14, 165, 233, 0.22);
    --blob-4: rgba(147, 51, 234, 0.32);
    --focus: 0 0 0 3px rgba(125, 116, 255, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05050a;
  --bg-2: #0d0d15;
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.74);
  --text-3: rgba(235, 235, 245, 0.56);
  --sep: rgba(255, 255, 255, 0.1);
  --sep-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(30, 30, 40, 0.52);
  --glass-strong: rgba(36, 36, 48, 0.8);
  --glass-thin: rgba(40, 40, 54, 0.36);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(0, 0, 0, 0.4);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.5), 0 30px 70px rgba(0, 0, 0, 0.55);
  --fill: rgba(118, 118, 128, 0.24);
  --fill-2: rgba(118, 118, 128, 0.36);
  --input: rgba(20, 20, 28, 0.6);
  --accent: #7d74ff;
  --accent-2: #a78bfa;
  --accent-text: #a5a0ff;
  --accent-soft: rgba(125, 116, 255, 0.18);
  --ok: #4ade80;
  --ok-soft: rgba(48, 209, 88, 0.18);
  --warn: #fbbf24;
  --warn-soft: rgba(255, 159, 10, 0.18);
  --bad: #ff6b81;
  --bad-soft: rgba(255, 55, 95, 0.2);
  --info: #64b5ff;
  --info-soft: rgba(10, 132, 255, 0.2);
  --blob-1: rgba(79, 70, 229, 0.45);
  --blob-2: rgba(219, 39, 119, 0.28);
  --blob-3: rgba(14, 165, 233, 0.22);
  --blob-4: rgba(147, 51, 234, 0.32);
  --focus: 0 0 0 3px rgba(125, 116, 255, 0.6);
}

/* ── Base ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
/* Ambient colour field every glass surface refracts. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 34vmax at 12% 8%, var(--blob-1), transparent 62%),
    radial-gradient(36vmax 30vmax at 92% 14%, var(--blob-2), transparent 60%),
    radial-gradient(42vmax 36vmax at 78% 88%, var(--blob-3), transparent 62%),
    radial-gradient(34vmax 30vmax at 8% 82%, var(--blob-4), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(2vmax, -2vmax, 0) scale(1.06); }
}

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

.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;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--accent); color: var(--on-accent); border-radius: var(--pill); transition: top 0.2s;
}
.skip:focus { top: 12px; }

.muted { color: var(--text-2); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.text-ok { color: var(--ok); }
.text-bad { color: var(--bad); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.icon { flex: none; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Glass material ─────────────────────────────────────────────────────────────────── */

.glass, .card, .widget, .topbar-in, .tabbar, .menu-pop, .dialog, .toast, .auth-card, .seg,
.studio-tabs, .land-card, .price-card, .faq-item, .demo, .calc, .usecase, .bento, .step {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .widget, .topbar-in, .tabbar, .menu-pop, .dialog, .toast, .auth-card, .seg,
  .studio-tabs, .land-card, .price-card, .faq-item, .demo, .calc, .usecase, .bento, .step { background: var(--glass-strong); }
}

/* ── Buttons ────────────────────────────────────────────────────────────────────────── */

.btn {
  --b-bg: var(--glass-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--glass-border);
  background: var(--b-bg);
  box-shadow: var(--glass-hi), 0 1px 2px rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform 0.35s var(--spring), background 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { background: var(--glass); }
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.08s; }
.btn:focus-visible { box-shadow: var(--glass-hi), var(--focus); border-radius: var(--pill); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--grad);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(81, 71, 229, 0.35);
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.06) saturate(1.05); }
.btn-inverse { background: #fff; color: #1a1446; border-color: #fff; }
.btn-inverse:hover { background: #fff; filter: brightness(0.97); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover { background: var(--fill); }
.btn-danger { background: #e11d48; border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3); }
.btn-danger:hover { background: #be123c; }
.btn-danger-outline { color: var(--bad); }
.btn-danger-outline:hover { background: var(--bad-soft); }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13.5px; gap: 6px; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid currentColor; border-color: var(--text-3); border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.btn-primary.busy::after, .btn-danger.busy::after { border-color: rgba(255, 255, 255, 0.9); border-top-color: transparent; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  box-shadow: var(--glass-hi);
  color: var(--text);
  transition: transform 0.35s var(--spring), background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--glass); }
.icon-btn:active { transform: scale(0.92); transition-duration: 0.08s; }
.icon-btn:focus-visible { border-radius: 50%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  border-radius: var(--pill);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi);
  color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums;
  text-decoration: none !important; white-space: nowrap;
  transition: transform 0.35s var(--spring);
}
.chip .icon { color: var(--accent-text); }
.chip:active { transform: scale(0.96); }
.chip-low { color: var(--bad); }
.chip-low .icon { color: var(--bad); }
.chip-unlimited .icon { color: var(--ok); }
.chip-inf { font-size: 1.25em; line-height: 1; }

/* ── Segmented control ──────────────────────────────────────────────────────────────── */

.seg {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: var(--pill);
  background: var(--fill);
  border-color: transparent;
  box-shadow: inset 0 0 0 0.5px var(--sep);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  max-width: 100%;
}
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 4px 12px;
  border: 0; border-radius: var(--pill);
  background: transparent; color: var(--text-2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background 0.3s var(--spring), color 0.2s, box-shadow 0.3s, transform 0.3s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.seg-btn:hover { color: var(--text); }
.seg-btn:active { transform: scale(0.96); }
.seg-btn[aria-checked="true"] {
  background: var(--glass-strong);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.seg-btn:focus-visible { border-radius: var(--pill); }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.seg-scroll { flex-wrap: nowrap; }

/* ── Top bar / shell ────────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: 10px var(--gutter) 0;
  padding-top: max(10px, env(safe-area-inset-top));
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 8px 8px 16px;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); font-weight: 750; font-size: 18px; letter-spacing: -0.03em;
  text-decoration: none !important; flex: none;
}
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(81, 71, 229, 0.35);
}
.brand-name b { font-weight: 750; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-nav { display: flex; gap: 2px; margin: 0 auto; padding: 3px; border-radius: var(--pill); background: var(--fill); }
.top-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border-radius: var(--pill);
  color: var(--text-2); font-weight: 600; font-size: 14.5px;
  text-decoration: none !important;
  transition: background 0.3s var(--spring), color 0.2s;
}
.top-link:hover { color: var(--text); }
.top-link[aria-current="page"] {
  background: var(--glass-strong); color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.top-link[aria-current="page"] .icon { color: var(--accent-text); }
.top-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-nav + .top-tools { margin-left: 0; }

.menu-wrap { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: 250px; padding: 12px;
  border-radius: var(--r);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  box-shadow: var(--glass-hi), var(--shadow-lg);
  display: flex; flex-direction: column; gap: 10px;
  transform-origin: top right;
  animation: pop 0.35s var(--spring);
}
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menu-item { justify-content: flex-start; }
.menu-phone { font-size: 13px; color: var(--text-3); padding: 0 4px; }

.shell { min-height: 100vh; min-height: 100dvh; }
.main {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px var(--gutter) calc(var(--tabbar-h) + 48px + env(safe-area-inset-bottom));
}
.boot { min-height: 70vh; display: grid; place-items: center; }

/* Floating tab bar (mobile). */
.tabbar {
  position: fixed; z-index: 45;
  left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 440px);
  display: none; gap: 2px; padding: 5px;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  box-shadow: var(--glass-hi), var(--shadow-lg);
}
.tab-link {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 54px; border-radius: var(--pill);
  color: var(--text-3); font-size: 10.5px; font-weight: 600;
  text-decoration: none !important;
  transition: background 0.35s var(--spring), color 0.2s, transform 0.35s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.tab-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab-link:active { transform: scale(0.94); }
.tab-link[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.tab-link:focus-visible { border-radius: var(--pill); }

.show-sm { display: none; }
@media (max-width: 480px) {
  .topbar:not(.topbar-land) .brand-name { display: none; }
  .topbar:not(.topbar-land) .topbar-in { padding-left: 10px; gap: 8px; }
  .topbar:not(.topbar-land) .top-tools { gap: 6px; }
}
@media (max-width: 860px) {
  .top-nav { display: none; }
  .top-nav + .top-tools { margin-left: auto; }
  .tabbar { display: flex; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-grid; }
}
@media (min-width: 861px) {
  .main { padding-bottom: 64px; }
}

/* ── Page header ────────────────────────────────────────────────────────────────────── */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 4px 20px; }
.page-title { font-size: clamp(30px, 6vw, 40px); font-weight: 750; letter-spacing: -0.035em; }
.page-title:focus-visible { box-shadow: none; text-decoration: underline; }
.page-lead { color: var(--text-2); margin-top: 6px; max-width: 62ch; }
.page-kicker { color: var(--text-3); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.page-tools { display: flex; gap: 8px; }

/* ── Cards ──────────────────────────────────────────────────────────────────────────── */

.card { border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head > div:first-child { flex: 1 1 220px; min-width: 0; }
.card-title { font-size: 19px; font-weight: 700; }
.card-sub { color: var(--text-2); font-size: 14px; margin-top: 3px; }
.card-actions { display: flex; gap: 8px; flex: none; }
.card-flush { padding: 20px 0 8px; }
.card-flush > .card-head { padding: 0 20px; }
.card-flush .empty, .card-flush .state { margin: 0 20px 12px; }
@media (min-width: 700px) { .card { padding: 24px; } .card-flush { padding: 24px 0 10px; } .card-flush > .card-head { padding: 0 24px; } }

/* ── Forms ──────────────────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-label { font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.field-hint { font-size: 13px; color: var(--text-3); }
.field-opt { font-size: 12.5px; color: var(--text-3); }
.input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--sep);
  background: var(--input);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-size: 16px;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--sep-strong); }
.input:focus, .input:focus-visible { border-color: var(--accent); box-shadow: var(--focus); border-radius: var(--r-sm); }
.input-lg { min-height: 54px; font-size: 18px; font-weight: 500; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-group { display: flex; align-items: stretch; }
.input-prefix {
  display: grid; place-items: center; padding: 0 14px;
  border: 1px solid var(--sep); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--fill); color: var(--text-2); font-weight: 650;
}
.input-group .input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-code { text-align: center; font-size: 28px; letter-spacing: 0.5em; font-variant-numeric: tabular-nums; padding-left: calc(14px + 0.5em); font-family: var(--mono); }
.form-error { color: var(--bad); font-size: 14px; font-weight: 500; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.grow { flex: 1 1 220px; min-width: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.form-status:empty { display: none; }
.under-text { display: flex; justify-content: space-between; gap: 12px; margin-top: -8px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.counter-warn { color: var(--warn); font-weight: 600; }
.estimate { font-weight: 600; color: var(--text-2); }

.range-wrap { display: flex; flex-direction: column; gap: 4px; }
.range { width: 100%; height: 28px; accent-color: var(--accent); background: transparent; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill-pct, 50%), var(--fill-2) var(--fill-pct, 50%)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--fill-2); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 1px 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--spring);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0.5px solid rgba(0, 0, 0, 0.08); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); }
.range:focus-visible { box-shadow: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }
.range-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.range-out { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-text); }

/* Voice picker (radiogroup of pills). */
.voices { display: flex; flex-wrap: wrap; gap: 8px; }
.voice {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 5px 14px 5px 5px;
  border-radius: var(--pill);
  border: 1px solid var(--sep);
  background: var(--input);
  font-weight: 600; font-size: 14.5px;
  transition: transform 0.35s var(--spring), border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.voice:active { transform: scale(0.96); }
.voice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.voice:focus-visible { border-radius: var(--pill); }
.voice-av {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; color: #fff; font-weight: 750; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.voice-meta { font-size: 11.5px; font-weight: 500; color: var(--text-3); display: block; line-height: 1.1; }
.voice-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.av-0 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.av-1 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.av-2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.av-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-4 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.av-5 { background: linear-gradient(135deg, #a855f7, #ec4899); }

/* ── Notices, badges, states ────────────────────────────────────────────────────────── */

.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--fill); font-size: 14.5px;
}
.notice > .icon { margin-top: 2px; }
.notice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice-title { font-weight: 700; }
.notice > .btn { align-self: center; }
.notice-ok { background: var(--ok-soft); } .notice-ok > .icon { color: var(--ok); }
.notice-info { background: var(--info-soft); } .notice-info > .icon { color: var(--info); }
.notice-warn { background: var(--warn-soft); } .notice-warn > .icon { color: var(--warn); }
.notice-bad { background: var(--bad-soft); } .notice-bad > .icon { color: var(--bad); }
@media (max-width: 520px) { .notice { flex-wrap: wrap; } .notice > .btn { margin-left: 30px; } }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 12.5px; font-weight: 650; line-height: 1.4; white-space: nowrap;
  background: var(--fill); color: var(--text-2);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-k1 { background: var(--accent-soft); color: var(--accent-text); }
.badge-k2 { background: rgba(236, 72, 153, 0.14); color: #be185d; }
:root[data-theme="dark"] .badge-k2 { color: #f9a8d4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-k2 { color: #f9a8d4; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px; color: var(--text-2); flex-wrap: wrap; text-align: center; }
.state-error { color: var(--bad); }
.spinner {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid var(--fill-2); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.working { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 500; }
.empty { padding: 22px 16px; text-align: center; color: var(--text-3); border-radius: var(--r); background: var(--fill); font-size: 14.5px; }
.empty-rich { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--glass-strong); color: var(--accent-text); box-shadow: var(--glass-hi), var(--shadow); }

/* ── Tables ─────────────────────────────────────────────────────────────────────────── */

.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { border-radius: 0; box-shadow: inset var(--focus); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 650; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 12px; border-bottom: 1px solid var(--sep); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--sep); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--fill); }
.cell-actions { text-align: right; }
@media (min-width: 700px) { .table th:first-child, .table td:first-child { padding-left: 24px; } .table th:last-child, .table td:last-child { padding-right: 24px; } }
.pager { display: flex; justify-content: space-between; padding: 12px 20px 8px; }
.key-prefix { padding: 2px 8px; border-radius: 8px; background: var(--fill); font-size: 13px; }
.key-inline { margin-left: 8px; }

/* ── Toasts ─────────────────────────────────────────────────────────────────────────── */

.toasts {
  position: fixed; z-index: 200; left: 50%; transform: translateX(-50%);
  top: max(12px, env(safe-area-inset-top));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(calc(100% - 24px), 420px); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--pill);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  box-shadow: var(--glass-hi), var(--shadow-lg);
  font-weight: 600; font-size: 14.5px;
  pointer-events: auto;
  animation: toast-in 0.5s var(--spring);
  transition: opacity 0.35s, transform 0.35s var(--spring);
}
.toast-ok .icon { color: var(--ok); }
.toast-error .icon { color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(-12px) scale(0.96); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(0.9); } }

/* ── Dialogs: centered glass on desktop, bottom sheet on phones ─────────────────────── */

.dialog {
  width: min(calc(100% - 32px), 460px); max-height: calc(100dvh - 48px);
  padding: 0; border-radius: var(--r-xl);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  box-shadow: var(--glass-hi), var(--shadow-lg);
  color: var(--text); overflow: auto;
  animation: pop 0.45s var(--spring);
}
.dialog::backdrop { background: rgba(10, 10, 20, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.3s; }
.dialog-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.dialog-title { font-size: 21px; font-weight: 750; }
.dialog-body { color: var(--text-2); display: flex; flex-direction: column; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }
@media (max-width: 600px) {
  .dialog {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0;
    animation: sheet 0.5s var(--spring);
  }
  .dialog-form { padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); }
  .dialog-form::before { content: ""; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--fill-2); margin-bottom: 4px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; min-height: 50px; }
}
.secret { padding: 14px; border-radius: var(--r-sm); background: var(--fill); word-break: break-all; font-size: 14px; color: var(--text); }

/* ── Code ───────────────────────────────────────────────────────────────────────────── */

.code { border-radius: var(--r); overflow: hidden; background: #0f0f1a; color: #e6e6f0; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow); min-width: 0; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); }
.code-label { font-size: 12px; font-weight: 650; color: rgba(230, 230, 240, 0.6); text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; }
.code-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 14px 0 0 #ff9f0a, 28px 0 0 #ff375f; margin-right: 34px; }
.code-copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--pill); border: 0; background: rgba(255, 255, 255, 0.08); color: #e6e6f0; font-size: 12.5px; font-weight: 600; }
.code-copy:hover { background: rgba(255, 255, 255, 0.14); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.code pre:focus-visible { box-shadow: inset var(--focus); border-radius: 0; }
.copy-line { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--r-sm); background: var(--fill); min-width: 0; }
.copy-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-chip { padding: 4px 10px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; }
.ref-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.ref-points li { display: flex; gap: 10px; align-items: flex-start; }
.ref-points .icon { margin-top: 3px; color: var(--accent-text); }
.ref-points code { background: var(--fill); padding: 1px 6px; border-radius: 6px; word-break: break-word; }
.ref-note { font-family: var(--mono); font-size: 12.5px; }

/* ── Sign-in ────────────────────────────────────────────────────────────────────────── */

.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--gutter); max-width: var(--maxw); width: 100%; margin: 0 auto; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 12px var(--gutter) 48px; }
.auth-card { width: min(100%, 440px); padding: 28px 24px; border-radius: var(--r-xl); animation: pop 0.6s var(--spring); }
@media (min-width: 600px) { .auth-card { padding: 36px; } }
.auth-glow { display: none; }
.signin-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 4px; }
.signin-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px rgba(81, 71, 229, 0.4); margin-bottom: 6px; }
.auth-title { font-size: 26px; font-weight: 750; }
.signin-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.auth-back { text-align: center; margin-top: 20px; }
.gift {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.16), rgba(15, 181, 174, 0.14));
  border: 1px solid rgba(48, 209, 88, 0.3); font-size: 14px;
}
.gift-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--grad-green); color: #fff; flex: none; }
.gift b { color: var(--ok); }

/* ── Home: widget grid ──────────────────────────────────────────────────────────────── */

.home-head { margin: 8px 4px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.widgets {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(158px, auto);
  grid-auto-flow: row dense;
}
@media (min-width: 900px) {
  .widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; grid-auto-rows: minmax(176px, auto); }
}
.widget {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2) var(--ease-out);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@media (min-width: 700px) { .widget { padding: 18px; } }
.w-s { grid-column: span 1; }
.w-m { grid-column: span 2; }
.w-l { grid-column: span 2; grid-row: span 2; }
.w-wide { grid-column: 1 / -1; }
.w-tap { cursor: pointer; text-decoration: none !important; color: inherit; }
.w-tap:active { transform: scale(0.975); transition-duration: 0.12s; }
.w-tap:focus-visible { border-radius: var(--r-lg); }
.w-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text-2); min-width: 0; }
.w-head > span:not(.w-glyph) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-head .w-more { margin-left: auto; color: var(--text-3); flex: none; }
.w-glyph { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.g-accent { background: var(--grad); } .g-cool { background: var(--grad-cool); }
.g-warm { background: var(--grad-warm); } .g-green { background: var(--grad-green); }
.w-big { font-size: clamp(28px, 7vw, 38px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.w-sub { font-size: 13px; color: var(--text-2); }
.w-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.w-empty { margin: auto 0; color: var(--text-3); font-size: 14px; }

/* Balance widget: tinted wallet-card material. */
.w-balance { background: linear-gradient(145deg, rgba(79, 70, 229, 0.92), rgba(124, 58, 237, 0.88) 55%, rgba(219, 39, 119, 0.85)); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.w-balance .w-head, .w-balance .w-sub { color: rgba(255, 255, 255, 0.85); }
.w-balance .w-glyph { background: rgba(255, 255, 255, 0.22); }
.w-balance .btn { background: rgba(255, 255, 255, 0.95); color: #2e1f7a; border-color: transparent; }
.w-balance .inf-label { background: rgba(255, 255, 255, 0.2); color: #fff; }
.w-balance.low { background: linear-gradient(145deg, rgba(225, 29, 72, 0.9), rgba(234, 88, 12, 0.88)); }
.inf-label { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.w-inf { font-size: clamp(44px, 10vw, 56px); line-height: 0.9; font-weight: 600; }

/* Usage chart widget. */
.w-chart { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin-top: auto; }
.w-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; height: 100%; }
.w-bar-track { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 8px; background: var(--fill); overflow: hidden; }
.w-bar { width: 100%; background: var(--accent); transition: height 0.8s var(--spring); min-height: 0; }
.w-bar-stt { background: #ec4899; }
.w-bar-day { font-size: 11px; color: var(--text-3); font-weight: 600; }
.w-bar-col.today .w-bar-day { color: var(--accent-text); }
.w-legend { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.w-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; background: var(--accent); }
.w-legend i.stt { background: #ec4899; }
.w-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.w-stat b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.w-stat span { font-size: 12px; color: var(--text-3); }

/* Quick TTS widget. */
.qtts-text { min-height: 96px; flex: 1; resize: none; font-size: 16px; border-radius: var(--r); }
.qtts-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qtts-row .btn-primary { margin-left: auto; }
.qtts-est { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.voice-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.voice-strip::-webkit-scrollbar { display: none; }
.voice-strip .voice { min-height: 38px; padding: 3px 12px 3px 3px; font-size: 13.5px; flex: none; }
.voice-strip .voice-av { width: 30px; height: 30px; font-size: 12.5px; }

/* Mini player (widgets, results, landing). */
.mini {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 12px 6px 6px; border-radius: var(--pill);
  background: var(--fill);
}
.mini-play {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px rgba(81, 71, 229, 0.35);
  transition: transform 0.35s var(--spring);
}
.mini-play:active { transform: scale(0.9); }
.mini-play:focus-visible { border-radius: 50%; }
.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-track { height: 4px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
.mini-fill { height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.mini-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }
.mini-dl { flex: none; width: 32px; height: 32px; }

.recent { display: flex; flex-direction: column; gap: 8px; }

/* Voices widget. */
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.voice-tile {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 4px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: transparent; font-size: 12.5px; font-weight: 600; min-width: 0;
  transition: transform 0.35s var(--spring), background 0.2s;
}
.voice-tile span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-tile:hover { background: var(--fill); }
.voice-tile:active { transform: scale(0.94); }
.voice-tile[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); }
.voice-tile:focus-visible { border-radius: var(--r-sm); }
.voice-tile .voice-av { width: 40px; height: 40px; font-size: 15px; }
@media (min-width: 900px) { .voice-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Status list (API / MCP widget). */
.status-list { display: flex; flex-direction: column; gap: 8px; margin-top: auto; font-size: 13.5px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-row span:first-child { color: var(--text-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--text-3); }
.dot-ok { background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.2); }
.dot-warn { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.2); }

/* Tools widget (shortcuts). */
.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.shortcut {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r);
  background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--text);
  font-weight: 650; font-size: 14px; text-decoration: none !important; min-width: 0;
  transition: transform 0.35s var(--spring);
}
.shortcut:active { transform: scale(0.96); }
.shortcut:focus-visible { border-radius: var(--r); }
.shortcut small { font-weight: 500; color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 520px) { .shortcut small { display: none; } .shortcut { align-items: center; text-align: center; padding: 12px 6px; font-size: 13px; } }

/* ── Studio ─────────────────────────────────────────────────────────────────────────── */

.studio-tabs {
  display: flex; gap: 2px; padding: 4px; margin-bottom: 18px;
  border-radius: var(--pill); width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.studio-tabs::-webkit-scrollbar { display: none; }
.studio-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 42px; padding: 0 18px; border-radius: var(--pill);
  color: var(--text-2); font-weight: 650; font-size: 15px;
  text-decoration: none !important; white-space: nowrap;
  transition: background 0.35s var(--spring), color 0.2s, transform 0.3s var(--spring);
}
.studio-tab:hover { color: var(--text); }
.studio-tab:active { transform: scale(0.96); }
.studio-tab[aria-current="page"] { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(81, 71, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.studio-tab:focus-visible { border-radius: var(--pill); }
@media (max-width: 520px) {
  .studio-tabs { width: 100%; }
  .studio-tab { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: 13.5px; gap: 6px; }
  .studio-tab .icon { display: none; }
}
.studio-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .studio-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .results-card { position: sticky; top: 96px; } }
.form-card .form-actions .btn-primary { min-width: 200px; }
@media (max-width: 520px) { .form-card .form-actions .btn { width: 100%; } }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-3); }
.consent .icon { margin-top: 3px; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 26px 16px; border-radius: var(--r);
  border: 1.5px dashed var(--sep-strong); background: var(--fill);
  transition: border-color 0.2s, background 0.2s, transform 0.35s var(--spring);
}
.drop-over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.drop-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--glass-strong); color: var(--accent-text); box-shadow: var(--glass-hi), var(--shadow); }
.drop-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.drop-text { color: var(--text-2); font-size: 14px; }
.file-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--fill); }
.file-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; flex: none; }
.file-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player { width: 100%; height: 40px; margin-top: 4px; border-radius: var(--pill); }
.rec { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--bad-soft); flex-wrap: wrap; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #ff375f; animation: pulse 1.2s ease-in-out infinite; flex: none; }
.rec-body { flex: 1; display: flex; flex-direction: column; min-width: 150px; }
.rec-time { font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { transform: scale(0.7); opacity: 0.5; } }

.results { display: flex; flex-direction: column; gap: 12px; }
.results-hint { margin: -8px 0 14px; }
.result { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--fill); }
.result-fresh { animation: rise 0.6s var(--spring); background: var(--accent-soft); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-time { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.result-text { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-meta { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.transcript { padding: 16px; border-radius: var(--r); background: var(--fill); white-space: pre-wrap; line-height: 1.65; max-height: 420px; overflow: auto; }
.transcript:focus-visible { border-radius: var(--r); }
.meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 0; }
.meta-row dt { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.meta-row dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.segments summary { cursor: pointer; font-weight: 650; color: var(--accent-text); padding: 6px 0; }
.seg-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.seg-list li { display: flex; gap: 12px; }
.seg-time { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); flex: none; padding-top: 2px; }

/* ── Balance ────────────────────────────────────────────────────────────────────────── */

.balance-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; align-items: start; }
@media (min-width: 900px) { .balance-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.balance-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; min-height: 230px;
  background: linear-gradient(145deg, #4f46e5, #7c3aed 55%, #db2777);
  color: #fff; border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 50px rgba(81, 71, 229, 0.35);
}
.balance-card::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%); pointer-events: none;
}
.balance-card.unlimited { background: linear-gradient(145deg, #059669, #0ea5e9 60%, #6366f1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 50px rgba(14, 165, 233, 0.3); }
.balance-label { display: flex; align-items: center; gap: 8px; font-weight: 650; color: rgba(255, 255, 255, 0.88); }
.balance-value { font-size: clamp(40px, 10vw, 56px); font-weight: 750; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.balance-sub { color: rgba(255, 255, 255, 0.9); }
.balance-prices { margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.balance-card .inf-label { background: rgba(255, 255, 255, 0.22); color: #fff; align-self: flex-start; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.quick-btn {
  flex: 1 1 0; min-height: 42px; padding: 6px 12px; border-radius: var(--pill);
  border: 1px solid var(--sep); background: var(--input); font-weight: 650; font-variant-numeric: tabular-nums;
  transition: transform 0.35s var(--spring), background 0.2s, border-color 0.2s;
}
.quick-btn:active { transform: scale(0.95); }
.quick-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.quick-btn:focus-visible { border-radius: var(--pill); }
.pending { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.pending-pulse { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--grad-warm); color: #fff; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255, 159, 10, 0.12); } }
.pending-title { font-size: 20px; font-weight: 750; }
.pending-amount { font-size: 36px; font-weight: 750; letter-spacing: -0.04em; }
.pending-status { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); }

/* ── Developers ─────────────────────────────────────────────────────────────────────── */

.locked { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--fill); flex-wrap: wrap; }
.locked > div { flex: 1 1 220px; }
.locked-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--grad-warm); color: #fff; flex: none; }
.dev-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dev-stat { border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none !important; transition: transform var(--dur-2) var(--ease-spring); }
.dev-stat b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dev-stat b { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; }
.dev-stat span { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
@media (max-width: 520px) { .dev-stat { padding: 12px; } .dev-stat b { font-size: 18px; } }

/* ── Landing ────────────────────────────────────────────────────────────────────────── */

.land { overflow-x: clip; }
.topbar-land .topbar-in { gap: 16px; }
.land-nav { display: flex; gap: 4px; margin: 0 auto; }
.land-nav a { padding: 8px 12px; border-radius: var(--pill); color: var(--text-2); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.land-nav a:hover { background: var(--fill); color: var(--text); }
@media (max-width: 960px) { .land-nav { display: none; } }
@media (max-width: 359px) { .topbar-land .brand-name { display: none; } }
@media (max-width: 480px) {
  .topbar-land .topbar-in { padding-left: 12px; gap: 8px; }
  .topbar-land .brand { font-size: 16px; gap: 7px; }
  .topbar-land .brand-mark { width: 30px; height: 30px; }
  .topbar-land .icon-btn { width: 36px; height: 36px; }
  .topbar-land .top-tools { gap: 6px; }
  .topbar-land .seg-btn { padding: 4px 9px; }
  .topbar-land .btn { padding: 8px 13px; min-height: 36px; }
  .topbar-land .seg-btn { min-height: 30px; }
}

.section { padding: 72px var(--gutter); }
.section-in { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.section-title { font-size: clamp(30px, 5.5vw, 48px); font-weight: 780; letter-spacing: -0.04em; }
.section-lead { color: var(--text-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 62ch; }
@media (max-width: 600px) { .section { padding: 56px var(--gutter); } }

/* Hero: centered copy over a living "voice stage" */
.hero { position: relative; padding: 48px var(--gutter) 24px; }
.hero-in { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
@media (min-width: 980px) { .hero { padding: 72px var(--gutter) 32px; } }
.gift-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--pill);
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-hi);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none !important;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform var(--dur-2) var(--ease-spring), color var(--dur-1);
}
.gift-pill:hover { color: var(--text); transform: translateY(-1px); }
.gift-pill b { display: inline-grid; place-items: center; padding: 2px 9px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.hero-title { text-wrap: balance; font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; letter-spacing: -0.042em; line-height: 1.06; max-width: 15em; }
.hero-title:focus-visible { box-shadow: none; }
.hero-lead { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--text-2); max-width: 34em; line-height: 1.55; text-wrap: pretty; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-cta .btn-lg { min-height: 52px; padding: 12px 24px; }
.hero-meta { font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
@media (max-width: 480px) { .hero-cta { width: 100%; } .hero-cta .btn { flex: 1 1 100%; } }

.stage { position: relative; max-width: 760px; margin: 12px auto 0; padding: 0 var(--gutter) 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.orb-wrap { position: relative; width: min(74vw, 360px); aspect-ratio: 1; margin: 0 auto; }
.orb-canvas { position: absolute; inset: -22%; width: 144%; height: 144%; pointer-events: none; }
.orb-lens {
  position: absolute; inset: 21%; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.02) 70%);
  -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.55), inset 0 -10px 30px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(40, 30, 120, 0.25);
  transition: transform 0.18s linear;
  will-change: transform;
}
.orb-play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.9); color: #2a1f6e;
  box-shadow: 0 10px 30px rgba(20, 10, 80, 0.3), inset 0 1px 0 #fff;
  transition: transform var(--dur-2) var(--ease-spring), background var(--dur-1);
}
.orb-play:hover { transform: scale(1.06); }
.orb-play:active { transform: scale(0.92); transition-duration: 0.1s; }
.orb-play:focus-visible { border-radius: 50%; box-shadow: var(--focus), 0 10px 30px rgba(20, 10, 80, 0.3); }
.orb-play .icon { transition: transform var(--dur-2) var(--ease-spring); }
.orb-play.playing .icon { transform: scale(0.92); }

.stage-caption {
  max-width: 34em; min-height: 3.2em; text-align: center; text-wrap: balance;
  font-size: clamp(17px, 2.2vw, 22px); font-weight: 560; line-height: 1.5; letter-spacing: -0.015em;
  transition: opacity var(--dur-2) var(--ease-out), filter var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
}
.stage-caption.swap { opacity: 0; filter: blur(8px); transform: translateY(6px); }
.stage-caption .w { color: var(--text-3); transition: color 0.35s var(--ease-out), text-shadow 0.35s; }
.stage-caption .w.said { color: var(--text); }
.stage-caption .w.now { color: var(--accent-text); }
.stage-meta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.stage-meta .sep { opacity: 0.5; }
.stage-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.stage-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transition: background var(--dur-1); }
.stage-live.on::before { background: #ff375f; animation: pulse 1.2s infinite; }

/* Morphing voice switch: one glass thumb slides between options. */
.vswitch { position: relative; display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-hi), var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); max-width: 100%; }
.vswitch-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: var(--pill);
  background: var(--glass-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform var(--dur-3) var(--ease-spring), width var(--dur-3) var(--ease-spring);
}
.vswitch-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 4px 16px 4px 5px; border: 0; border-radius: var(--pill); background: transparent;
  color: var(--text-2); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
}
.vswitch-btn[aria-checked="true"] { color: var(--text); }
.vswitch-btn:active { transform: scale(0.96); }
.vswitch-btn:focus-visible { border-radius: var(--pill); }
.vswitch-btn .voice-av { width: 34px; height: 34px; transition: transform var(--dur-3) var(--ease-spring); }
.vswitch-btn[aria-checked="true"] .voice-av { transform: scale(1.06); }
.vswitch-btn small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); line-height: 1.1; text-align: left; }
.vswitch-btn .voice-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
@media (max-width: 420px) { .vswitch-btn { padding-right: 10px; gap: 6px; font-size: 13.5px; } .vswitch-btn .voice-av { width: 30px; height: 30px; } }

/* Use cases */
.usecases { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .usecases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.usecase { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.45s var(--spring); }
.usecase:hover { transform: translateY(-3px); }
.usecase h3 { font-size: 19px; font-weight: 720; }
.usecase p { color: var(--text-2); font-size: 15px; }
.uc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.12); margin-bottom: 4px; }
.uc-tag { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 650; color: var(--accent-text); }

/* Bento features */
.bentos { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bentos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bento-wide { grid-column: span 2; } }
.bento { border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; min-width: 0; }
.bento h3 { font-size: 22px; font-weight: 750; }
.bento p { color: var(--text-2); }
.bento-art { margin-top: auto; padding-top: 10px; }
.bento-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.bento-list li { display: flex; gap: 8px; align-items: flex-start; }
.bento-list .icon { color: var(--ok); margin-top: 3px; }
.srt { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; padding: 14px; border-radius: var(--r); background: var(--fill); color: var(--text-2); white-space: pre-wrap; }
.srt b { color: var(--accent-text); font-weight: 600; }
.clone-art { display: flex; align-items: center; gap: 12px; }
.clone-art .mini-wave { flex: 1; height: 44px; display: flex; align-items: center; gap: 3px; }
.mini-wave i { flex: 1; border-radius: 2px; background: var(--accent); opacity: 0.8; }
.mini-wave.alt i { background: #ec4899; }
.clone-arrow { color: var(--text-3); flex: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 6px 16px rgba(81, 71, 229, 0.35); }
.step h3 { font-size: 19px; font-weight: 720; }
.step p { color: var(--text-2); font-size: 15px; }

/* Pricing */
.pricing-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); } }
.price-card { border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.price-name { font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.price-value { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-value small { font-size: 16px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-left: 6px; }
.price-step { font-size: 14px; color: var(--text-2); }
.price-note { font-size: 14px; color: var(--text-3); }
.price-free { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sep); font-size: 14px; font-weight: 600; color: var(--ok); display: flex; gap: 8px; align-items: center; }
.calc { border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(160deg, rgba(81, 71, 229, 0.16), rgba(219, 39, 119, 0.1)), var(--glass); }
.calc-title { font-size: 19px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.price-ex { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; font-size: 14.5px; }
.price-ex li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sep); }
.price-ex li span { color: var(--text-2); }
.price-ex li b { font-variant-numeric: tabular-nums; }
.calc-out { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-min { font-size: 15px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.calc-cost { font-size: 44px; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.calc-note { font-size: 13.5px; color: var(--text-2); }
.calc-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.calc-examples button { border: 1px solid var(--sep); background: var(--input); border-radius: var(--pill); padding: 5px 12px; font-size: 13px; font-weight: 600; transition: transform 0.3s var(--spring); }
.calc-examples button:active { transform: scale(0.95); }
.calc-examples button:focus-visible { border-radius: var(--pill); }
.billing-note { margin-top: 18px; text-align: center; color: var(--text-3); font-size: 14px; max-width: 760px; margin-left: auto; margin-right: auto; }

/* Developers (landing) */
.dev-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .dev-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.dev-copy { display: flex; flex-direction: column; gap: 16px; }
.dev-copy .section-title, .dev-copy .section-lead { text-align: left; }
.dev-points { display: flex; flex-direction: column; gap: 14px; }
.dev-point { display: flex; gap: 14px; align-items: flex-start; }
.dev-point h3 { font-size: 17px; font-weight: 700; }
.dev-point p { color: var(--text-2); font-size: 15px; }
.dev-code { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--r); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 680; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { border-radius: var(--r); box-shadow: inset var(--focus); }
.faq-item summary .icon { transition: transform 0.4s var(--spring); color: var(--text-3); }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--accent-text); }
.faq-item p { padding: 0 20px 18px; color: var(--text-2); }

/* Final CTA */
.final { padding: 32px var(--gutter) 72px; }
.final-in {
  max-width: var(--maxw); margin: 0 auto; border-radius: var(--r-xl); padding: 48px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4338ca, #7c3aed 50%, #db2777);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 30px 70px rgba(81, 71, 229, 0.35);
}
.final-in::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%); pointer-events: none; }
.final-in h2 { font-size: clamp(30px, 5.5vw, 50px); font-weight: 800; letter-spacing: -0.045em; max-width: 18em; }
.final-in p { color: rgba(255, 255, 255, 0.88); font-size: 18px; max-width: 40em; }
.final-in .btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.final-in .fine { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }

.footer { padding: 28px var(--gutter) 40px; border-top: 1px solid var(--sep); }
.footer-in { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 14px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); }


/* ── Motion system: scroll reveals, spotlight glass, depth ──────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-spring);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
.widget[data-reveal], .dev-stat[data-reveal] { transition-duration: 0.55s; }
[data-reveal="fade"] { transform: none; }
.hero-in > * { animation: hero-in var(--dur-3) var(--ease-spring) both; }
.hero-in > :nth-child(2) { animation-delay: 0.06s; } .hero-in > :nth-child(3) { animation-delay: 0.12s; }
.hero-in > :nth-child(4) { animation-delay: 0.18s; } .hero-in > :nth-child(5) { animation-delay: 0.24s; }
.stage { animation: hero-in 1.1s 0.2s var(--ease-out) both; }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(6px); } }

/* Glass cards catch a soft specular light that follows the pointer. */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 45%);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  .spot:hover::after { opacity: 1; }
  .usecase.spot:hover, .bento.spot:hover, .price-card.spot:hover, .step.spot:hover, .w-tap:hover { transform: translateY(-3px); }
}

/* Depth: the ambient field drifts slower than the page (where scroll timelines exist). */
@supports (animation-timeline: scroll()) {
  body::before { animation: drift 40s ease-in-out infinite alternate, depth linear both; animation-timeline: auto, scroll(root); }
  @keyframes depth { to { translate: 0 -14vh; } }
}

/* Usage bars grow in once the widget is revealed. */
.widget:not(.in) .w-bar { height: 0 !important; }

/* Tiny equaliser shown on a playing mini player. */
.mini.playing .mini-play { animation: glow 1.6s var(--ease-out) infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px var(--accent-soft), 0 4px 12px rgba(81, 71, 229, 0.35); } }

/* ── Motion preferences ─────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  body::before { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .stage-caption.swap { filter: none; transform: none; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .top-link { padding: 0 11px; }
  .top-link .icon { display: none; }
}
