:root {
  --bg: #0b1020;
  --bg-soft: #111831;
  --card: #151d38;
  --line: #26305a;
  --text: #eef1fb;
  --muted: #9aa4c6;
  --orange: #fb8c1a;
  --violet: #7c3aed;
  --green: #10b981;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #fb8c1a 0%, #f2662f 45%, #7c3aed 100%);
  --radius: 20px;
  --shadow: 0 20px 60px rgba(4, 8, 25, 0.55);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6fb;
    --bg-soft: #efedf7;
    --card: #ffffff;
    --line: #e3e0ef;
    --text: #141733;
    --muted: #5b6080;
    --shadow: 0 20px 50px rgba(40, 30, 90, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- header ------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .cta-small {
  color: #fff; background: var(--grad); padding: 7px 16px; border-radius: 999px; font-weight: 600;
}
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Language menu: a <details>, so it opens without any script. */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; color: var(--muted);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--text); border-color: var(--muted); }
.langs summary svg { width: 15px; height: 15px; }
.langs .menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 20;
  min-width: 150px; padding: 6px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid;
}
.langs .menu a { padding: 8px 12px; border-radius: 9px; color: var(--text); }
.langs .menu a:hover { background: var(--bg-soft); }
.langs .menu a[aria-current] { color: var(--orange); font-weight: 600; }
body.lang-zh { font-family: 'Noto Sans SC', system-ui, sans-serif; }

/* ---- hero -------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 56px; }
.hero::before {
  /* Kept inside the page's width: wider, it scrolls an RTL page sideways. */
  content: ''; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(40% 50% at 75% 30%, rgba(251, 140, 26, 0.28), transparent 70%),
    radial-gradient(45% 55% at 25% 40%, rgba(124, 58, 237, 0.30), transparent 70%);
  filter: blur(10px);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
/* Grid items default to their content's width; this lets them shrink to the screen. */
.hero .wrap > * { min-width: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-soft);
  padding: 5px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.2; margin: 18px 0 14px; letter-spacing: -0.01em;
}
h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }

.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 16px; text-decoration: none;
  font-weight: 700; font-size: 1.05rem; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 30px rgba(242, 102, 47, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(242, 102, 47, 0.45); }
.btn-primary svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 500; font-size: 0.78rem; opacity: 0.9; }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--bg-soft); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-disabled { color: var(--muted); border: 1px dashed var(--line); background: transparent; cursor: default; }
.meta { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

/* The page renders one of the two buttons, depending on whether a build is on the server. */
body.dl-soon .when-ready { display: none !important; }
body.dl-ready .when-soon { display: none !important; }

/* ---- demo card --------------------------------------------------------- */
.demo { position: relative; }
.phone {
  background: var(--card); border: 1px solid var(--line); border-radius: 32px;
  padding: 22px; box-shadow: var(--shadow); max-width: 380px; margin-inline: auto;
}
.bubble {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; font-size: 1rem;
  display: flex; gap: 12px; align-items: center;
}
.mic {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 0 0 6px rgba(251, 140, 26, 0.15);
}
.mic svg { width: 20px; height: 20px; }
.wave { display: flex; gap: 3px; align-items: center; height: 18px; margin-top: 6px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--orange); opacity: 0.8; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 0.1s } .wave i:nth-child(3) { animation-delay: 0.2s }
.wave i:nth-child(4) { animation-delay: 0.3s } .wave i:nth-child(5) { animation-delay: 0.4s }
.wave i:nth-child(6) { animation-delay: 0.5s } .wave i:nth-child(7) { animation-delay: 0.6s }
@keyframes wave { 0%, 100% { height: 4px } 50% { height: 18px } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; height: 10px; } }

.arrow { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 14px 0; }
.entry {
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: linear-gradient(0deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.06)), var(--card);
}
.entry + .entry { margin-top: 10px; background: linear-gradient(0deg, rgba(245, 158, 11, 0.07), rgba(245, 158, 11, 0.07)), var(--card); }
.entry .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--bg-soft); }
.entry b { display: block; font-size: 1.02rem; }
.entry span { color: var(--muted); font-size: 0.84rem; }
.amount { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; direction: ltr; }
.due { font-weight: 600; color: var(--amber); font-size: 0.9rem; }

/* ---- sections ---------------------------------------------------------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 10px; line-height: 1.3; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); transform: translateY(-2px); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 14px;
  background: color-mix(in srgb, var(--orange) 14%, var(--bg-soft));
}
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pro {
  border-radius: 28px; padding: 44px; text-align: center; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
}
.pro::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0.16; background: var(--grad);
}
.pro > * { position: relative; }
.pro h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.pro p { margin: 0 auto 22px; color: var(--muted); max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: var(--bg-soft); padding: 6px 14px; border-radius: 999px; font-size: 0.92rem; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
footer .brand { font-size: 1rem; color: var(--text); }
footer .brand img { width: 26px; height: 26px; border-radius: 8px; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---- motion ------------------------------------------------------------ */
/* Everything below is decoration: with reduced motion it all switches off. */

.top { transition: box-shadow .3s ease, background-color .3s ease; }
.top.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.brand img { transition: transform .4s cubic-bezier(.34, 1.4, .5, 1); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }

/* hero: the copy rises in, line by line */
.hero-copy > * { animation: rise-in .8s cubic-bezier(.22, .9, .3, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
.hero-copy > :nth-child(5) { animation-delay: .5s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } }

.eyebrow .dot { animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }

h1 .grad { background-size: 220% 100%; animation: sheen 6s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }

.hero::before { animation: glow-drift 14s ease-in-out infinite alternate; }
@keyframes glow-drift { to { transform: translate3d(0, 30px, 0) scale(1.06); opacity: .8; } }

/* download button: a light sweep every few seconds */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 4.5s ease-in-out 1.2s infinite;
}
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
.btn-primary:active, .btn-ghost:active { transform: scale(.97); }
.btn-primary svg { transition: transform .3s cubic-bezier(.34, 1.4, .5, 1); }
.btn-primary:hover svg { transform: translateY(3px); }

/* demo: the phone floats, the mic listens, the results land in turn */
.phone { animation: phone-in 1s cubic-bezier(.22, .9, .3, 1) .2s both, float 7s ease-in-out 1.2s infinite; }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(-2deg) scale(.96); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.mic { position: relative; animation: mic-beat 1.6s ease-in-out infinite; }
.mic svg { position: relative; z-index: 1; }
.mic .ripple {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(251, 140, 26, .6);
  animation: ripple 2.2s cubic-bezier(.2, .6, .4, 1) infinite;
}
.mic .ripple + .ripple { animation-delay: 1.1s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
@keyframes mic-beat { 50% { transform: scale(1.07); } }

.wave { height: 22px; }
.wave i { animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: .8s; }
.wave i:nth-child(3n + 1) { animation-duration: 1.25s; }
.wave i:nth-child(4n) { animation-delay: .35s; }
.wave i:nth-child(5n) { animation-delay: .15s; }
.wave i:nth-child(7n) { animation-delay: .55s; }
.wave i:nth-child(8) { animation-delay: .25s; } .wave i:nth-child(9) { animation-delay: .45s; }
.wave i:nth-child(10) { animation-delay: .05s; } .wave i:nth-child(11) { animation-delay: .65s; }
.wave i:nth-child(12) { animation-delay: .3s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 20px; } }

.arrow { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); opacity: .7; } }

/* each result pops in, holds, and leaves, on an 8-second loop */
.entry { animation: land 8s cubic-bezier(.34, 1.3, .5, 1) 1s infinite both; transform-origin: center top; }
.entry + .entry { animation-delay: 1.6s; }
@keyframes land {
  0% { opacity: 0; transform: translateY(14px) scale(.94); }
  7%, 82% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translateY(-6px) scale(.98); }
}
.entry .ico { animation: tick 8s ease 1s infinite both; }
.entry + .entry .ico { animation-delay: 1.6s; }
@keyframes tick { 0%, 6% { transform: scale(.4) rotate(-20deg); } 12%, 100% { transform: none; } }

/* cards */
.feature { transition: border-color .25s ease, transform .35s cubic-bezier(.22, .9, .3, 1), box-shadow .35s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ico { transition: transform .45s cubic-bezier(.34, 1.6, .5, 1); }
.feature:hover .ico { transform: scale(1.12) rotate(-6deg); }
.step { transition: transform .35s cubic-bezier(.22, .9, .3, 1), border-color .25s; }
.step:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.step::before { animation: step-glow 3s ease-in-out infinite; }
.step:nth-child(2)::before { animation-delay: 1s; }
.step:nth-child(3)::before { animation-delay: 2s; }
@keyframes step-glow { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .45); } 35% { box-shadow: 0 0 0 9px rgba(124, 58, 237, 0); } }
.pro::before { background-size: 200% 200%; animation: pro-shift 10s ease-in-out infinite alternate; }
@keyframes pro-shift { to { background-position: 100% 100%; } }
.chip { transition: transform .3s cubic-bezier(.34, 1.6, .5, 1), border-color .2s; }
.chip:hover { transform: translateY(-3px); border-color: var(--orange); }

/* scroll reveal (site.js adds .motion only when it will reveal them) */
.motion .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
.motion .reveal {
  transition: opacity .8s cubic-bezier(.22, .9, .3, 1), transform .8s cubic-bezier(.22, .9, .3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion .reveal.in { transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms); }
/* once revealed, hover motion should not wait for the stagger */
.motion .feature.reveal.in:hover, .motion .step.reveal.in:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mic .ripple { display: none; }
  .wave i { height: 10px; }
}

/* ---- app preview -------------------------------------------------------- */
/* A working copy of the app's screens, in the app's own colours (app_theme.dart).
   The phone is drawn at the app's size, 360 × 760, and zoomed to fit. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.preview { position: relative; }
.preview::before {
  content: ''; position: absolute; inset: 10% 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 60% 50%, rgba(124, 58, 237, .22), transparent 70%),
              radial-gradient(30% 35% at 35% 60%, rgba(251, 140, 26, .14), transparent 70%);
}
.pv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
@media (max-width: 860px) { .pv { grid-template-columns: minmax(0, 1fr); gap: 28px; } .pv-stage { order: -1; } }

.pv-tour { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pv-step {
  width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: start;
  font: inherit; color: var(--text); cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 18px; padding: 16px 18px;
  transition: background-color .25s, border-color .25s, transform .3s cubic-bezier(.22, .9, .3, 1);
}
.pv-step:hover { background: var(--bg-soft); }
.pv-step[aria-current] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.pv-step b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.pv-step small { display: block; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.pv-step-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--muted); transition: background .3s, color .3s;
}
.pv-step-ico svg { width: 19px; height: 19px; }
.pv-step[aria-current] .pv-step-ico { background: var(--grad); color: #fff; }
.pv-step:focus-visible, .device button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 860px) {
  .pv-tour { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pv-step { padding: 12px; gap: 10px; }
  .pv-step small { display: none; }
  .pv-step b { font-size: .95rem; margin: 0; align-self: center; }
  .pv-step-ico { width: 34px; height: 34px; }
}

.pv-stage { display: flex; justify-content: center; }
.device {
  --s: 1; zoom: var(--s);
  position: relative; width: 384px; height: 784px; padding: 12px; border-radius: 54px;
  background: linear-gradient(145deg, #2a2f3d, #0b0d14 40%, #1b1f2b);
  box-shadow: 0 0 0 1.5px #3a4052 inset, 0 40px 90px -20px rgba(2, 6, 23, .75), 0 0 0 1px rgba(255, 255, 255, .04);
}
.device::before, .device::after { /* side keys */
  content: ''; position: absolute; inset-inline-end: -3px; width: 4px; border-radius: 3px; background: #2a2f3d;
}
.device::before { top: 150px; height: 70px; }
.device::after { top: 240px; height: 44px; }
.device-screen {
  position: relative; width: 360px; height: 760px; overflow: hidden; border-radius: 42px;
  background: #0f172a; color: #fff; isolation: isolate;
  font-family: 'Inter', 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Noto Sans SC', system-ui, sans-serif;
  font-size: 14px; line-height: 1.25; -webkit-font-smoothing: antialiased; user-select: none;
}
.lang-zh .device-screen { font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif; }
.device-screen svg { width: 1em; height: 1em; flex: none; }
.device-screen h3, .device-screen h4, .device-screen h5, .device-screen p { margin: 0; }
.device-screen ul { list-style: none; margin: 0; padding: 0; }
.app-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.app-backdrop::before, .app-backdrop::after { content: ''; position: absolute; border-radius: 50%; }
.app-backdrop::before { width: 340px; height: 340px; left: -80px; top: -140px; background: radial-gradient(closest-side, rgba(16, 185, 129, .13), transparent); }
.app-backdrop::after { width: 380px; height: 380px; right: -100px; bottom: -160px; background: radial-gradient(closest-side, rgba(124, 58, 237, .2), transparent); }

.app-status {
  position: absolute; top: 0; inset-inline: 0; height: 34px; z-index: 6; direction: ltr;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0;
  font-size: 12.5px; font-weight: 600; color: #f1f5f9; background: linear-gradient(#0f172a 55%, transparent);
}
.app-cam { position: absolute; left: 50%; top: 10px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #05070c; box-shadow: 0 0 0 2px #111520; }
.app-sys { display: flex; gap: 5px; align-items: center; }
.app-sys svg { width: auto; height: 11px; }

.app-view { position: absolute; inset: 0; }
.app-view[hidden] { display: none; }
.app-view.is-in { animation: view-in .26s cubic-bezier(.33, 1, .68, 1); }
@keyframes view-in { from { opacity: 0; transform: translateY(1.5%); } }
.app-scroll {
  height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 48px 20px 168px;
}
.app-scroll::-webkit-scrollbar { display: none; }

.eyebrow-app { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: #94a3b8; text-transform: uppercase; }
.lang-ar .eyebrow-app, .lang-ar .rec-label, .lang-ar .status { letter-spacing: 0; }
.t-head { display: flex; justify-content: space-between; gap: 10px; }
.t-greet { font-size: 25px; font-weight: 700; letter-spacing: -.6px; line-height: 1.12; margin: 5px 0 !important; white-space: pre-line; }
.ws-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--ws, #a78bfa);
  font-size: 12px; font-weight: 700; color: #f1f5f9;
}
.ws-chip svg { width: 13px; height: 13px; color: rgba(226, 232, 240, .87); }
.t-tools { display: flex; gap: 10px; align-items: flex-start; padding-top: 4px; }
.icon-tile {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e2e8f0;
}
.icon-tile svg { width: 17px; height: 17px; }
.avatar {
  position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #f59e0b, #7c3aed); color: #0f172a; font-weight: 700; font-size: 13px;
}
.avatar i {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); font-style: normal;
  background: #fbbf24; color: #0f172a; border: 1.5px solid #0f172a; border-radius: 999px;
  font-size: 7.5px; font-weight: 800; padding: 0 5px; line-height: 1.5; white-space: nowrap;
}
.avatar--lg { width: 66px; height: 66px; font-size: 21px; box-shadow: 0 0 26px rgba(124, 58, 237, .5); }
.avatar--lg i { bottom: -7px; background: linear-gradient(#fbbf24, #f59e0b); font-size: 9px; padding: 1px 8px; letter-spacing: .4px; }

.pills { display: flex; gap: 8px; margin-top: 22px; }
.pills--eq .pill { flex: 1; padding-inline: 4px; }
.pill {
  text-align: center; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  background: rgba(30, 41, 59, .62); border: 1px solid rgba(51, 65, 85, .9); color: #94a3b8;
}
.pill.is-on { background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .5); color: #fbbf24; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat { padding: 14px; border-radius: 14px; border: 1px solid; }
.stat--green { --c: #10b981; background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(255, 255, 255, .03)); border-color: rgba(16, 185, 129, .28); }
.stat--amber { --c: #f59e0b; background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(255, 255, 255, .03)); border-color: rgba(245, 158, 11, .28); }
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.stat-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.stat-ico svg { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 8px; font-size: 10px; font-weight: 700; }
.badge svg { width: 11px; height: 11px; }
.badge--green { background: rgba(16, 185, 129, .15); color: #34d399; }
.badge--amber { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.stat-label { margin-top: 14px; font-size: 11px; font-weight: 600; color: #94a3b8; }
.stat-value { margin-top: 3px; font-size: 24px; font-weight: 700; letter-spacing: -.8px; white-space: nowrap; }
.stat-value small { font-size: 12px; font-weight: 600; color: #94a3b8; letter-spacing: 0; }
.stat-value.bump { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); color: #34d399; }
@keyframes bump { 40% { transform: scale(1.12); } }

.glass { background: rgba(30, 41, 59, .62); border: 1px solid rgba(51, 65, 85, .9); border-radius: 14px; }
.row-sb { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.budget { margin-top: 24px; padding: 14px; border-radius: 16px; }
.budget b { font-size: 12px; color: #f1f5f9; }
.budget .row-sb span { font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.budget small, .chart small, .hc-prog small { font-size: 10.5px; font-weight: 600; color: #94a3b8; }
.bar { height: 8px; border-radius: 999px; background: rgba(15, 23, 42, .7); margin: 9px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: #a78bfa; }
.bar--amber { height: 9px; background: rgba(15, 23, 42, .65); }
.bar--amber i { background: #f59e0b; }
.debts { margin-top: 12px; padding: 14px; border-radius: 16px; display: flex; gap: 12px; align-items: center; }
.debts > div { flex: 1; min-width: 0; }
.debts b { font-size: 13px; color: #f1f5f9; }
.debt-line { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; font-size: 11.5px; font-weight: 700; }
.debt-line span { white-space: nowrap; }
.pos { color: #34d399; } .neg { color: #f87171; } .vio { color: #c4b5fd; }
.tile { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tile svg { width: 18px; height: 18px; }
.tile--green { background: rgba(16, 185, 129, .14); color: #10b981; }
.tile--violet { background: rgba(196, 181, 253, .14); color: #c4b5fd; }
.chev { width: 16px !important; height: 16px !important; color: rgba(255, 255, 255, .6); }
[dir='rtl'] .device .flip { transform: scaleX(-1); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 14px; }
.sec-head h4 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.sec-head small { font-size: 12px; font-weight: 600; color: #94a3b8; }
.list { display: grid; gap: 10px; }
.list li[hidden] { display: none; }
.rem { padding: 13px; display: flex; gap: 12px; align-items: center; }
.rem b, .act b { display: block; font-size: 14px; font-weight: 600; color: #f1f5f9; }
.rem-when { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11px; font-weight: 700; color: #c4b5fd; }
.rem-when svg { width: 11px; height: 11px; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .4); flex: none; }
.timeline { gap: 12px; }
.tl { position: relative; padding-inline-start: 22px; }
.tl::before { content: ''; position: absolute; inset-inline-start: 1.5px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.tl::after { content: ''; position: absolute; inset-inline-start: 4.5px; top: 30px; bottom: -14px; width: 1px; background: rgba(255, 255, 255, .09); }
.tl:last-child::after { display: none; }
.act { padding: 13px; display: flex; gap: 12px; align-items: center; }
.act > div { flex: 1; min-width: 0; }
.act b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-row { display: flex; flex-wrap: wrap; gap: 5px 7px; margin-top: 5px; align-items: center; }
.tm { font-size: 11px; font-weight: 600; color: #94a3b8; }
.tag, .ws { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.tag--green { background: rgba(16, 185, 129, .14); color: #34d399; }
.tag--amber { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.tag--violet { background: rgba(196, 181, 253, .14); color: #c4b5fd; }
.ws { background: rgba(255, 255, 255, .08); color: var(--ws, #a78bfa); }
.amt { font-size: 15px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.amt--green { color: #34d399; } .amt--violet { color: #c4b5fd; }
.hint { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 22px !important; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .4); text-align: center; }
.hint svg { width: 13px; height: 13px; }
.is-new.in { animation: entry-new .55s cubic-bezier(.34, 1.3, .64, 1); }
.is-new.in .glass { animation: entry-glow 2.4s ease; }
@keyframes entry-new { from { opacity: 0; transform: translateY(-25%) scale(.96); } }
@keyframes entry-glow { 0%, 40% { border-color: rgba(16, 185, 129, .8); box-shadow: 0 0 22px rgba(16, 185, 129, .35); } }

/* history */
.s-head { padding-bottom: 22px; }
.s-head h3, .r-head h3 { font-size: 27px; font-weight: 700; letter-spacing: -.6px; margin-top: 5px !important; }
.chart { padding: 16px 18px 14px; }
.chart .big { font-size: 22px; font-weight: 700; letter-spacing: -.6px; margin-top: 4px; }
.badge--green svg, .badge--red svg { width: 11px; height: 11px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 112px; margin-top: 20px; align-items: end; }
.bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bars i { display: block; width: 100%; max-height: 88px; min-height: 3px; border-radius: 8px; background: rgba(16, 185, 129, .32); transform-origin: bottom; }
.bars .is-today i { background: linear-gradient(0deg, #f59e0b, #7c3aed); box-shadow: 0 0 14px rgba(124, 58, 237, .35); }
.bars span { font-size: 10px; font-weight: 700; color: #94a3b8; height: 12px; }
.bars .is-today span { color: #fff; }
.app-view.is-in .bars i { animation: grow .7s cubic-bezier(.22, 1, .36, 1) both; }
.bars > div:nth-child(2) i { animation-delay: .04s; } .bars > div:nth-child(3) i { animation-delay: .08s; }
.bars > div:nth-child(4) i { animation-delay: .12s; } .bars > div:nth-child(5) i { animation-delay: .16s; }
.bars > div:nth-child(6) i { animation-delay: .2s; } .bars > div:nth-child(7) i { animation-delay: .24s; }
@keyframes grow { from { transform: scaleY(0); } }
.month { margin-top: 24px; }
.month h4 { font-size: 15px; font-weight: 700; }
.navs { display: flex; gap: 8px; }
.nav-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #f1f5f9; }
.nav-btn.is-off { background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .2); }
.nav-btn svg { width: 17px; height: 17px; }
.month + .pills { margin-top: 12px; }
.sum { margin: 14px 0 10px; }
.sum small { font-size: 12px; font-weight: 600; color: #94a3b8; }
.day { margin-top: 10px; }
.day-head { padding: 14px; display: flex; gap: 12px; align-items: center; }
.day-head > div { flex: 1; min-width: 0; }
.day-head > div b { display: block; font-size: 14px; font-weight: 600; color: #f1f5f9; }
.day-head > div small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: #94a3b8; }
.day-head > div small i { font-style: normal; color: rgba(255, 255, 255, .4); margin: 0 10px; }
.date-tile { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-content: center; text-align: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); line-height: 1.05; }
.date-tile b { font-size: 13px; }
.date-tile small { font-size: 8px; font-weight: 700; letter-spacing: .6px; color: #94a3b8; text-transform: uppercase; }
.chev.up { transform: rotate(180deg); color: rgba(255, 255, 255, .8); }
.day-body { margin: 0 14px; padding: 8px 0 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.day-body li { display: flex; align-items: center; gap: 7px; padding: 4px 0; font-size: 12.5px; }
.day-body li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); flex: none; margin-inline-end: 3px; }
.day-body span { font-weight: 500; color: rgba(226, 232, 240, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.day-body em { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--ws, #a78bfa); white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.day-body b { margin-inline-start: auto; font-weight: 700; white-space: nowrap; color: rgba(255, 255, 255, .9); }

/* rewards */
.r-head { display: flex; gap: 14px; align-items: center; }
.r-head .eyebrow-app { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.r-head h3 { font-size: 17px; letter-spacing: -.3px; margin-top: 2px !important; }
.hero-card {
  margin-top: 20px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, rgba(124, 58, 237, .2), rgba(245, 158, 11, .1), rgba(30, 41, 59, .7));
}
.hc-top { display: flex; gap: 16px; align-items: center; }
.hc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #c4b5fd; text-transform: uppercase; }
.xp { margin-top: 3px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.xp b { font-size: 30px; font-weight: 800; letter-spacing: -1.2px; color: #fff; }
.streak { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #ea580c); color: #0f172a; font-size: 11px; font-weight: 800; }
.streak svg { width: 12px; height: 12px; }
.hc-prog { margin-top: 20px; }
.hc-prog small { font-size: 11px; color: rgba(226, 232, 240, .85); }
.hc-prog b { font-size: 11px; color: #fbbf24; }
.app-view.is-in .hero-card .bar i { animation: fill 1s cubic-bezier(.22, 1, .36, 1) .2s both; }
@keyframes fill { from { width: 0; } }
.rules { margin-top: 24px; border-radius: 16px; overflow: hidden; }
.rules h5 { padding: 14px 15px 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; color: #94a3b8; text-transform: uppercase; }
.rule { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-top: 1px solid rgba(255, 255, 255, .06); }
.rule .tile { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); color: var(--c); }
.rule .tile svg { width: 16px; height: 16px; }
.rule b { flex: 1; font-size: 13.5px; font-weight: 600; color: #f1f5f9; }
.rule em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--c); white-space: nowrap; }
.pro-card {
  margin-top: 16px; padding: 16px; border-radius: 16px; display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(124, 58, 237, .2)); border: 1px solid rgba(251, 191, 36, .35);
}
.pro-card .tile { width: 36px; height: 36px; background: rgba(251, 191, 36, .2); color: #fbbf24; }
.pro-card > div { flex: 1; min-width: 0; }
.pro-card b { display: block; font-size: 14px; font-weight: 800; }
.pro-card small { display: block; margin-top: 3px; font-size: 11.5px; color: rgba(203, 213, 225, .9); line-height: 1.4; }

/* shell: nav bar and mic */
.app-fade { position: absolute; inset: auto 0 0; height: 150px; z-index: 3; pointer-events: none; background: linear-gradient(to top, #0f172a 28%, transparent); }
.app-nav {
  position: absolute; inset-inline: 20px; bottom: 30px; height: 66px; z-index: 4;
  display: grid; grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr); align-items: center; padding: 0 8px;
  border-radius: 22px; background: rgba(30, 41, 59, .55); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.app-nav button {
  min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0;
  background: none; border: 0; color: #94a3b8; cursor: pointer; font: inherit;
  font-size: 8px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap;
  transition: color .2s;
}
.lang-ar .app-nav button { letter-spacing: 0; font-size: 9px; }
.nav-group { display: flex; justify-content: space-around; gap: 4px; min-width: 0; }
.app-nav button svg { width: 20px; height: 20px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.app-nav button.is-on { color: #f59e0b; }
.app-nav button.is-on svg { transform: translateY(-1px) scale(1.08); }
.app-nav button.nope { animation: nope .35s; }
@keyframes nope { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.nav-gap { width: 78px; }
.app-mic {
  position: absolute; left: 50%; bottom: 52px; z-index: 5; width: 74px; height: 74px; margin-left: -37px;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, #f59e0b, #f97316, #7c3aed);
  box-shadow: 0 0 34px rgba(245, 158, 11, .5), 0 0 60px rgba(124, 58, 237, .4);
  animation: breathe 1.5s ease-in-out infinite alternate;
  transition: background .3s, box-shadow .3s;
}
.app-mic svg { width: 29px; height: 29px; position: relative; }
.app-mic .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(245, 158, 11, .5); animation: ring 2.4s linear infinite; pointer-events: none; }
.app-mic .ring + .ring { border-color: rgba(124, 58, 237, .5); animation-delay: -1.2s; }
@keyframes breathe { to { transform: scale(1.045); } }
@keyframes ring { from { transform: scale(.72); opacity: .5; } to { transform: scale(1.57); opacity: 0; } }
.device-screen.recording .app-mic {
  background: linear-gradient(135deg, #f87171, #dc2626, #b91c1c);
  box-shadow: 0 0 34px rgba(220, 38, 38, .55), 0 0 60px rgba(220, 38, 38, .4);
  animation: none; transform: scale(1.14); transition: transform .24s cubic-bezier(.34, 1.56, .64, 1), background .3s;
}
.device-screen.recording .app-mic .ring { border: 2.5px solid rgba(248, 113, 113, .8); animation: ring-rec .9s linear infinite; }
@keyframes ring-rec { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.try-tip {
  position: absolute; left: 50%; bottom: 134px; z-index: 5; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 10px; background: #f1f5f9; color: #0f172a; font-size: 12px; font-weight: 700; white-space: nowrap;
  pointer-events: none; animation: tip 1.6s ease-in-out infinite; transition: opacity .3s;
}
.try-tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #f1f5f9; }
@keyframes tip { 50% { transform: translateX(-50%) translateY(-4px); } }
.device-screen.used .try-tip { opacity: 0; }

/* recording card and result sheet */
.app-barrier { position: absolute; inset: 0; z-index: 7; background: rgba(2, 6, 23, .72); animation: fade-in .25s; }
.app-barrier[hidden], .rec-card[hidden], .sheet[hidden], .burst[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.rec-card {
  position: absolute; z-index: 8; inset-inline: 28px; top: 50%; transform: translateY(-62%);
  padding: 22px 24px; border-radius: 26px; text-align: center;
  background: rgba(21, 31, 53, .96); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 50px rgba(124, 58, 237, .35);
  animation: rec-in .28s cubic-bezier(.33, 1, .68, 1);
}
@keyframes rec-in { from { opacity: 0; transform: translateY(-62%) scale(.9); } }
.rec-time { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.rec-time i { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 10px rgba(220, 38, 38, .7); animation: rec-dot .85s ease-in-out infinite alternate; }
@keyframes rec-dot { from { opacity: .3; transform: scale(.85); } }
.rec-label { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: #94a3b8; }
.wave-canvas { display: block; width: 100%; height: 72px; margin: 18px 0; }
.rec-hint { font-size: 12.5px; font-weight: 600; color: #94a3b8; }
.sheet {
  position: absolute; z-index: 8; inset: auto 0 0; padding: 14px 22px 26px;
  background: rgba(21, 31, 53, .92); border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 26px 26px 0 0;
  display: grid; gap: 16px; animation: sheet-in .3s cubic-bezier(.33, 1, .68, 1);
}
.sheet.out { animation: sheet-out .3s ease forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12%); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(30%); } }
.grab { justify-self: center; width: 40px; height: 4px; border-radius: 8px; background: rgba(255, 255, 255, .22); }
.status { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: rgba(226, 232, 240, .9); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #c4b5fd; box-shadow: 0 0 10px rgba(196, 181, 253, .7); }
.sheet.parsed .status i { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, .7); }
.sheet .st-done, .sheet.parsed .st-work { display: none; }
.sheet.parsed .st-done { display: inline; }
.wave-canvas.frozen { height: 56px; margin: 0; opacity: .35; }
.said { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.said small { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; color: #94a3b8; }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #c4b5fd; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet.parsed .spin { display: none; }
.said p { margin-top: 7px !important; font-size: 15px; font-weight: 600; line-height: 1.4; }
.said-wait { color: #94a3b8; }
.said-text, .fields { display: none !important; }
.sheet.heard .said-wait { display: none; }
.sheet.heard[data-sample='1'] .said-text[data-for='1'], .sheet.heard[data-sample='2'] .said-text[data-for='2'] { display: block !important; }
.sheet.parsed[data-sample='1'] .fields[data-for='1'], .sheet.parsed[data-sample='2'] .fields[data-for='2'] { display: grid !important; animation: rise-in .35s cubic-bezier(.22, .9, .3, 1); }
.fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.f { padding: 10px 11px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); min-width: 0; }
.f small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .7px; color: #94a3b8; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f b { display: block; margin-top: 3px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f--green { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .24); }
.f--green b { color: #34d399; }
.filed { display: none; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 12px; background: rgba(124, 58, 237, .16); border: 1px solid rgba(167, 139, 250, .34); font-size: 11.5px; font-weight: 600; color: #c4b5fd; }
.filed svg { width: 15px; height: 15px; }
.filed b { color: #fff; font-weight: 800; }
.sheet.parsed .filed { display: flex; animation: rise-in .35s cubic-bezier(.22, .9, .3, 1) .08s both; }
.actions { display: flex; gap: 10px; }
.actions button { font: inherit; border-radius: 14px; padding: 14px; cursor: pointer; font-size: 14px; }
.actions .ghost { flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: rgba(226, 232, 240, .92); font-weight: 600; }
.actions .go { flex: 2; border: 0; color: #fff; font-weight: 700; background: linear-gradient(90deg, #7c3aed, #f59e0b); opacity: .45; transition: opacity .3s, transform .15s; }
.sheet.parsed .actions .go { opacity: 1; }
.actions .go:active { transform: scale(.97); }
.burst {
  position: absolute; z-index: 9; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: #10b981; color: #fff; box-shadow: 0 0 40px rgba(16, 185, 129, .55);
  animation: burst 1s ease forwards;
}
.burst svg { width: 42px; height: 42px; stroke-width: 3; }
@keyframes burst { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .app-mic .ring, .try-tip { display: none; }
}
