/* ===== Fernando Gonzalez — v2 ===== */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(18, 24, 40, .62);
  --panel-solid: #0e1424;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef1f7;
  --muted: #9ba4b9;
  --dim: #7c859b; /* was #6b7489: raised to pass WCAG AA (4.5:1) on the dark background */
  --amber: #ffb347;
  --coral: #ff7a59;
  --cyan: #5ee7ff;
  --violet: #8b7cff;
  --red: #ff6b6b;
  --teal: #3ddbb5;
  --grad: linear-gradient(100deg, var(--amber), var(--coral));
  --grad-ai: linear-gradient(100deg, var(--cyan), var(--violet));
  --r: 20px;
  --r-sm: 12px;
  --nav-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1em; height: 1em; fill: currentColor; }

/* ---------- ambient ---------- */
#ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.mesh { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.mesh i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(255,122,89,.16), transparent 62%); }
.mesh i:nth-child(2) { right: -30vmax; top: 10vmax; background: radial-gradient(circle, rgba(94,231,255,.10), transparent 62%); animation-delay: -9s; }
.mesh i:nth-child(3) { left: 10vmax; bottom: -45vmax; background: radial-gradient(circle, rgba(139,124,255,.12), transparent 62%); animation-delay: -17s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }

/* ---------- glass + glow + tilt ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -30px rgba(0,0,0,.8);
}
.glow { position: relative; isolation: isolate; }
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,179,71,.13), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.glow:hover::after { opacity: 1; }
.tilt { transform-style: preserve-3d; transition: transform .25s var(--ease); will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.45em; border-radius: 999px; border: 0; text-decoration: none;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, opacity .2s;
}
.btn:not(.magnetic):hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn--accent { background: var(--grad); color: #1d0f06; box-shadow: 0 10px 30px -10px rgba(255,122,89,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--accent:hover { box-shadow: 0 16px 40px -10px rgba(255,122,89,.95), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--electric { background: var(--grad-ai); color: #06101c; }
.btn--ghost { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--small { padding: .6em 1.1em; font-size: .88rem; }
.btn--tiny { padding: .45em .95em; font-size: .82rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.magnetic { transition: transform .3s var(--ease), box-shadow .25s; will-change: transform; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(5,7,13,.62); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; font-weight: 800; color: var(--amber); background: linear-gradient(140deg, #18213a, #0b101e); box-shadow: inset 0 0 0 1px rgba(255,179,71,.35); }
.nav__links { display: flex; gap: 26px; font-size: .92rem; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__menu-btn { display: none; place-content: center; gap: 4px; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.nav__menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav.menu-open .nav__menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .nav__menu-btn span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav__menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.footer a:hover { color: var(--text); }
.lang { display: flex; align-items: center; gap: 2px; color: var(--dim); font-size: .82rem; }
.lang__btn { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 6px; border-radius: 6px; letter-spacing: .05em; }
.lang__btn[aria-pressed="true"] { color: var(--amber); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--nav-h)); padding: clamp(22px, 3.6vh, 44px) 0 40px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow__short { display: none; }
@media (max-width: 560px) {
  .eyebrow--built { border-radius: 16px; line-height: 1.35; text-align: left; max-width: 100%; }
  .eyebrow--built .eyebrow__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .eyebrow--built .eyebrow__short { display: inline; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); margin-bottom: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(94,231,255,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(94,231,255,0); } 100% { box-shadow: 0 0 0 0 rgba(94,231,255,0); } }
.hero__title { font-size: clamp(2.05rem, 4.3vw, 3.55rem); font-weight: 850; letter-spacing: -.04em; line-height: 1.06; margin-bottom: 12px; }
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); margin: 0 auto 24px; max-width: 62ch; text-wrap: balance; text-align: center; }
.hero__title > span { display: block; }
/* Spanish headline lines are ~45% longer: on phones scale with the viewport so each line stays on one row */
@media (max-width: 760px) { html[lang="es"] .hero__title { font-size: clamp(1.4rem, 6.55vw, 2.05rem); } }
.hero__title > span { text-wrap: balance; }
.grad-text { background: linear-gradient(100deg, var(--amber) 0%, var(--coral) 45%, #ff9a8b 60%, var(--cyan) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite alternate; padding-bottom: .06em; }
@keyframes sheen { to { background-position: 100% 0; } }

.load-in { animation: loadIn .9s var(--ease) both; }
.hero__inner > .load-in:nth-child(2) { animation-delay: .08s; }
.hero__inner > .load-in:nth-child(3) { animation-delay: .18s; }
.hero__inner > .load-in:nth-child(4) { animation-delay: .26s; }
.hero__inner > .load-in:nth-child(5) { animation-delay: .34s; }
.hero__inner > .load-in:nth-child(6) { animation-delay: .42s; }
.hero__inner > .load-in:nth-child(7) { animation-delay: .5s; }
@keyframes loadIn { from { opacity: 0; translate: 0 18px; } }

/* command bar */
.cmd {
  position: relative; width: min(860px, 100%); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; min-height: 68px; border-radius: 20px;
  background: rgba(9, 13, 25, .82); text-align: left;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.cmd::before {
  content: ""; position: absolute; inset: -14px; border-radius: 34px; z-index: -1;
  background: conic-gradient(from var(--a), rgba(255,179,71,.55), rgba(255,122,89,.5), rgba(94,231,255,.55), rgba(139,124,255,.5), rgba(255,179,71,.55));
  filter: blur(28px); opacity: .45; animation: spinA 8s linear infinite; transition: opacity .4s;
}
.cmd.is-thinking::before, .cmd:focus-within::before { opacity: .8; }
.cmd__ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a), var(--amber), var(--coral), var(--cyan), var(--violet), var(--amber));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spinA 8s linear infinite;
}
.cmd.is-thinking .cmd__ring, .cmd.is-thinking::before { animation-duration: 1.6s; }
@keyframes spinA { to { --a: 360deg; } }
.cmd__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(94,231,255,.1); color: var(--cyan); }
.cmd__icon svg { width: 20px; height: 20px; fill: currentColor; }
.cmd.is-thinking .cmd__icon svg { animation: twinkle 1s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.75) rotate(20deg); opacity: .6; } }
.cmd__field { flex: 1; min-width: 0; display: grid; align-items: center; }
.cmd__field > * { grid-area: 1 / 1; }
.cmd__field input { width: 100%; min-height: 44px; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: clamp(1rem, 1.6vw, 1.2rem); padding: 0; }
.cmd__field input::placeholder { color: var(--dim); }
.cmd.autoplay .cmd__field input::placeholder { color: transparent; }
.cmd__typed { pointer-events: none; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text); line-height: 1.4; padding: 2px 0; white-space: nowrap; overflow: hidden; min-width: 0; }
.cmd__typed.is-long { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.cmd:not(.autoplay) .cmd__typed { display: none; }
.cmd__typed::after { content: ""; display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.2em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cmd__go { flex: none; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 13px; padding: 12px 16px; font-weight: 700; color: #06101c; background: var(--grad-ai); box-shadow: 0 8px 24px -10px rgba(94,231,255,.7); transition: transform .2s, box-shadow .2s; }
.cmd__go:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(94,231,255,.9); }
.cmd__go kbd { font-family: var(--mono); font-size: .8rem; padding: 1px 6px; border-radius: 6px; background: rgba(6,16,28,.18); }
.cmd__shimmer { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cmd__shimmer::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(94,231,255,.14), transparent); animation: sweep 1.2s linear infinite; }
.cmd.is-thinking .cmd__shimmer { opacity: 1; }
@keyframes sweep { to { left: 100%; } }
.cmd.shake { animation: shake .4s; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }

.cmd__meta { width: min(860px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.live-label { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); text-align: left; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; animation: blink 1.6s steps(1) infinite; }
.cmd__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cmd__chips .try { font-size: .78rem; color: var(--dim); align-self: center; margin-right: 2px; }
.qchip { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: all .2s; }
.qchip:hover { color: var(--text); border-color: rgba(94,231,255,.5); background: rgba(94,231,255,.08); }
.qchip[aria-current="true"] { color: var(--cyan); border-color: rgba(94,231,255,.45); }

/* stage */
.stage { width: min(1040px, 100%); margin-top: 18px; text-align: left; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.node {
  flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 12px 13px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.02); transition: opacity .35s, border-color .35s, background .35s, box-shadow .35s;
}
.node__top { display: flex; align-items: center; gap: 8px; }
/* pending steps: dimmed by colour (not opacity) so the text keeps AA contrast */
.node:not(.on) .node__title { color: var(--muted); }
.node:not(.on) .node__ico { opacity: .45; }
.node:not(.on) { border-color: rgba(255,255,255,.1); }
.node__ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--muted); flex: none; transition: all .35s; }
.node__ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.node__kicker { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.node__title { font-size: .84rem; font-weight: 650; line-height: 1.3; color: var(--text); min-height: 2.6em; }
.node.on { opacity: 1; border-style: solid; border-color: rgba(94,231,255,.28); background: linear-gradient(180deg, rgba(94,231,255,.07), rgba(139,124,255,.03)), rgba(12,17,31,.85); animation: pop .5s var(--ease); }
.node.on .node__ico { background: rgba(94,231,255,.14); color: var(--cyan); }
.node.on:last-child { border-color: rgba(255,179,71,.45); background: linear-gradient(180deg, rgba(255,179,71,.1), rgba(255,122,89,.03)), rgba(12,17,31,.85); }
.node.on:last-child .node__ico { background: rgba(255,179,71,.16); color: var(--amber); }
.node.active { box-shadow: 0 0 0 4px rgba(94,231,255,.12), 0 0 30px -6px rgba(94,231,255,.6); }
@keyframes pop { 0% { transform: scale(.88); opacity: 0; } 60% { transform: scale(1.03); } 100% { transform: none; } }
.link { flex: 0 0 28px; align-self: center; height: 2px; position: relative; background: rgba(255,255,255,.08); border-radius: 2px; }
.link__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--grad-ai); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); box-shadow: 0 0 10px rgba(94,231,255,.7); }
.link.on .link__fill { transform: none; }
.link__pulse { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--cyan); opacity: 0; }
.stage[data-state="done"] .link__pulse { animation: travel 1.6s linear infinite; }
.stage[data-state="done"] .link:nth-child(4) .link__pulse { animation-delay: .4s; }
.stage[data-state="done"] .link:nth-child(6) .link__pulse { animation-delay: .8s; }
.stage[data-state="done"] .link:nth-child(8) .link__pulse { animation-delay: 1.2s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

.stage[data-state="custom"] .flow, .stage[data-state="custom"] .stage__bottom { display: none; }
.custom { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 250px; margin-top: 14px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); }
.custom[hidden] { display: none; }
.custom.in { animation: rise .55s var(--ease); }
.custom::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(110deg, transparent 15%, rgba(94,231,255,.75) 40%, rgba(255,179,71,.75) 60%, transparent 85%) 0 0 / 250% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: sheen 3.4s linear infinite alternate; }
.custom__head { display: flex; align-items: center; justify-content: space-between; }
.custom__kicker { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.custom__spark { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(94,231,255,.6); animation: ping 1.8s infinite; }
.custom__title { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.custom__quote { quotes: '“' '”'; color: var(--amber); }
.custom__quote.typing::after { content: '▍'; color: var(--cyan); animation: blink .9s steps(1) infinite; }
.custom__body { margin: 0; color: var(--muted); font-size: 1rem; max-width: 60ch; }
.custom__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 6px; }
.custom__note { font-size: .8rem; color: var(--dim); }
.field textarea.prefilled { animation: prefill 1.6s var(--ease); }
@keyframes prefill { 0%, 40% { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255,179,71,.18); } }
@media (prefers-reduced-motion: reduce) { .custom.in, .custom::before, .custom__spark, .field textarea.prefilled { animation: none; } }
.stage__bottom { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.log { padding: 12px 14px; height: 236px; display: flex; flex-direction: column; border-radius: 16px; }
.log__head { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.log__head .badge { margin-left: auto; }
.log__dots { display: inline-flex; gap: 5px; }
.log__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.log__list { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .76rem; line-height: 1.55; color: #c7cfe0; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.log__list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadeUp .3s ease; }
.log__list li .t { color: var(--dim); margin-right: 8px; }
.log__list li.ok { color: var(--teal); }
.log__list li.ai { color: var(--cyan); }
.log__list li.wait { color: var(--amber); }
.log__list li.think::after { content: "…"; display: inline-block; animation: dots 1s steps(4) infinite; width: 0; overflow: hidden; vertical-align: bottom; }
@keyframes dots { to { width: 1.2em; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } }

.result { padding: 14px 16px; height: 236px; border-radius: 16px; position: relative; overflow: hidden; }
.result__ghost { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: .86rem; color: var(--dim); border: 1px dashed rgba(255,255,255,.1); border-radius: 12px; }
.result__ghost-icon { width: 30px; height: 30px; border-radius: 9px; border: 1px dashed rgba(255,255,255,.2); }
.result__body { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.result__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.result__kicker { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.result__title { font-size: 1.02rem; margin: 0 0 8px; }
.result__items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 5px; }
.result__items li { font-size: .8rem; color: #c9d0df; padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadeUp .35s ease both; }
.result__items li:nth-child(2) { animation-delay: .08s; }
.result__items li:nth-child(3) { animation-delay: .16s; }
.result__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result__toast { margin: 8px 0 0; font-size: .76rem; color: var(--amber); }

.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill--wait { color: var(--amber); background: rgba(255,179,71,.1); border: 1px solid rgba(255,179,71,.25); }
.pill--ok { color: var(--teal); background: rgba(61,219,181,.1); border: 1px solid rgba(61,219,181,.25); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(1) infinite; }
.badge { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.badge--example { background: rgba(255,179,71,.12); color: var(--amber); border: 1px solid rgba(255,179,71,.22); }

.hero__ctas { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 24px; }

/* spots (real count from /api/spots; the dots never animate the number) */
.spots { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: .9rem; color: var(--muted); margin: 0; }
.spots__dots { display: inline-flex; gap: 5px; flex-wrap: nowrap; }
.spots__dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--amber); display: block; }
.spots__dots i:not(.taken) { animation: dotPulse 2.4s ease-in-out infinite; }
.spots__dots i:nth-child(even):not(.taken) { animation-delay: .6s; }
.spots__dots i.taken { background: var(--amber); }
.spots__n { display: inline-block; color: var(--amber); font-variant-numeric: tabular-nums; }
.spots-meta { margin: 8px 0 0; font-size: .82rem; color: var(--dim); }
.spots-meta span + span::before { content: ' · '; }
@keyframes dotPulse { 50% { box-shadow: 0 0 0 4px rgba(255,179,71,.18); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.kicker { font-size: .76rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; display: inline-block; }
.fine { font-size: .78rem; color: var(--dim); margin: 14px 2px 0; }
.fine--center { text-align: center; }

/* ---------- chaos -> calm ---------- */
.chaos { position: relative; height: 270vh; --p: 0; --hp: 0; }
.chaos__sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; overflow: hidden; }
.chaos__head { padding-top: clamp(20px, 5vh, 56px); text-align: center; }
.chaos__title { display: grid; font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 10px; }
.chaos__h { grid-area: 1 / 1; transition: opacity .5s var(--ease), translate .5s var(--ease); }
.chaos__h--b { opacity: 0; translate: 0 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chaos.calm .chaos__h--a { opacity: 0; translate: 0 -14px; }
.chaos.calm .chaos__h--b { opacity: 1; translate: none; }
.chaos__sub { color: var(--muted); max-width: 640px; margin: 0 auto; }
.chaos__stage { position: relative; flex: 1; margin-top: clamp(16px, 3vh, 32px); margin-bottom: clamp(36px, 7vh, 64px); min-height: 0; }
.chaos__lanes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-content: center; align-items: start; --chip-h: 52px; }
.chaos__stage { --chip-h: 52px; }
.clane { padding: 20px 18px; opacity: calc(.18 + var(--hp) * .82); transition: opacity .2s linear; display: flex; flex-direction: column; }
.clane__head { display: flex; align-items: center; gap: 10px; }
.clane__head h3 { margin: 0; font-size: 1rem; }
.clane__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.clane--auto .clane__dot { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.clane--draft .clane__dot { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.clane--human .clane__dot { background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.clane__sub { font-size: .8rem; color: var(--muted); margin: 4px 0 12px; }
.clane__slots { display: flex; flex-direction: column; gap: 8px; }
.slot { height: var(--chip-h, 46px); }
.tchip {
  position: absolute; left: 0; top: 0; height: var(--chip-h, 46px); display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-radius: 13px; font-size: .92rem; font-weight: 650; line-height: 1.2;
  background: rgba(16, 21, 37, .95); border: 1px solid rgba(255,255,255,.1); color: var(--text);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.9); will-change: transform; z-index: 2;
}
.tchip__txt { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tchip__ico { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,107,107,.15); color: var(--red); transition: background .3s, color .3s; }
.tchip__ico svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tchip__ico .i-ok { display: none; }
.tchip.settled .i-alert { display: none; }
.tchip.settled .i-ok { display: block; }
.tchip.settled[data-lane="auto"] { border-color: rgba(94,231,255,.3); }
.tchip.settled[data-lane="auto"] .tchip__ico { background: rgba(94,231,255,.15); color: var(--cyan); }
.tchip.settled[data-lane="draft"] { border-color: rgba(255,179,71,.3); }
.tchip.settled[data-lane="draft"] .tchip__ico { background: rgba(255,179,71,.15); color: var(--amber); }
.tchip.settled[data-lane="human"] { border-color: rgba(255,122,89,.3); }
.tchip.settled[data-lane="human"] .tchip__ico { background: rgba(255,122,89,.15); color: var(--coral); }
.chaos__progress { position: absolute; left: 50%; bottom: 22px; width: min(260px, 50%); height: 3px; transform: translateX(-50%); background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.chaos__progress span { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--grad); }
.chaos__hint { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0; opacity: calc(1 - var(--p) * 4); }
.chaos.static { height: auto; }
.chaos.static .chaos__sticky { position: relative; top: 0; height: auto; min-height: 720px; }
.chaos.static .chaos__stage { height: 480px; flex: none; }
.chaos.static .chaos__progress, .chaos.static .chaos__hint { display: none; }

/* ---------- inbox demo ---------- */
.demo__panel { padding: clamp(14px, 2.4vw, 26px); border-radius: 28px; }
.demo__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); border-radius: 999px; padding: .5em 1em; font-size: .88rem; font-weight: 600; transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgba(255,179,71,.5); }
.chip[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.demo__buttons { display: flex; gap: 8px; }
.demo__status { min-height: 1.6em; font-size: .86rem; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.spin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cyan); border-right-color: transparent; animation: spinr .8s linear infinite; margin-right: 8px; vertical-align: -1px; }
@keyframes spinr { to { transform: rotate(360deg); } }
.okmark { color: var(--teal); font-weight: 800; margin-right: 6px; }
.demo__board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 14px; align-items: start; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.col { border-radius: 18px; padding: 12px; min-height: 120px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.col__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 750; font-size: .86rem; padding: 2px 4px 10px; }
.col__head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.lane__dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lane--urgent .lane__dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.lane--followup .lane__dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.lane--fyi .lane__dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.lane--urgent { background: rgba(255,107,107,.04); }
.lane--followup { background: rgba(255,179,71,.04); }
.lane--fyi { background: rgba(61,219,181,.04); }
.lane__count { font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 999px; padding: 1px 8px; transition: transform .25s var(--ease); }
.lane__count.bump { transform: scale(1.3); color: var(--text); }
.col__empty { text-align: center; color: var(--dim); font-size: .86rem; margin: 18px 0 8px; }
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 8px; }
.mail { background: rgba(16,22,38,.96); border: 1px solid var(--line); border-left: 3px solid rgba(255,255,255,.18); border-radius: 12px; padding: 9px 11px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.9); }
.mail__from { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--dim); }
.mail__from b { color: var(--muted); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__subj { font-weight: 700; font-size: .86rem; line-height: 1.3; margin: 2px 0; }
.mail__snip { font-size: .77rem; color: var(--dim); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail.messy:nth-child(odd) { rotate: -.7deg; translate: 3px 0; }
.mail.messy:nth-child(even) { rotate: .6deg; translate: -2px 0; }
.mail.is-urgent { border-left-color: var(--red); }
.mail.is-followup { border-left-color: var(--amber); }
.mail.is-fyi { border-left-color: var(--teal); }
.mail.is-target { box-shadow: 0 0 0 1.5px var(--amber), 0 10px 26px -10px rgba(255,179,71,.6); }
.mail.scan { animation: scan .7s ease; }
@keyframes scan { 50% { box-shadow: 0 0 0 1.5px rgba(94,231,255,.6), 0 0 24px -6px rgba(94,231,255,.6); } }
.draft { margin-top: 14px; border-radius: 18px; padding: 16px 18px; background: rgba(255,179,71,.04); border: 1px dashed rgba(255,179,71,.35); animation: rise .5s var(--ease); }
.draft__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.draft__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; }
.draft__label .ico { color: var(--amber); }
.draft__to { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.draft__body { font-family: var(--font); white-space: pre-wrap; margin: 0 0 10px; font-size: .92rem; line-height: 1.55; background: rgba(5,7,13,.55); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 6em; color: #dfe4ee; }
.draft__body.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; vertical-align: -.2em; background: var(--amber); animation: blink 1s steps(1) infinite; margin-left: 1px; }
.draft__note { font-size: .82rem; color: var(--teal); margin: 0; }

/* ---------- steps / who ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px 26px; }
.step p, .mini p { color: var(--muted); margin: 0; }
.step__num { display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--cyan); padding: 4px 10px; border-radius: 8px; background: rgba(94,231,255,.08); border: 1px solid rgba(94,231,255,.2); margin-bottom: 18px; }
.how__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.free-note { font-size: .9rem; color: var(--muted); margin: 0; }
.free-note--center { text-align: center; margin-top: 12px; }
.trust { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 20px 24px; border-color: rgba(61,219,181,.22); background: linear-gradient(90deg, rgba(61,219,181,.07), rgba(255,255,255,.02)), var(--panel); }
.trust p { margin: 0; color: var(--muted); }
.trust strong { color: var(--text); }
.trust__ico { color: var(--teal); flex: none; }
.trust__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.mini { padding: 24px; }
.who__examples { color: var(--muted); margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { padding: .7em 1.3em; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-weight: 650; white-space: nowrap; }
.marquee__more { background: var(--grad) !important; color: #1d0f06; border-color: transparent !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { all: unset; display: block; cursor: pointer; perspective: 1200px; border-radius: var(--r); }
.case:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.case__inner { display: grid; min-height: 230px; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.case[aria-pressed="true"] .case__inner { transform: rotateY(180deg); }
.case__face { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 26px; border-radius: var(--r); -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 1px solid var(--line); }
.case__front { background: radial-gradient(420px 220px at 100% 0%, rgba(255,122,89,.22), transparent 60%), radial-gradient(300px 200px at 0% 100%, rgba(94,231,255,.1), transparent 60%), var(--panel-solid); }
.case__back { background: var(--panel-solid); border: 1px dashed rgba(255,179,71,.4); transform: rotateY(180deg); justify-content: center; }
.case__tag { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.case__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.case__title--sm { font-size: 1rem; color: var(--muted); }
.case__hint { font-size: .84rem; color: var(--dim); }
.case__label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-top: 6px; }
.case__text { display: block; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.case__li { display: block; position: relative; padding-left: 14px; font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.case__li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.case__blank { color: var(--amber); font-style: italic; }
.case__status { display: block; margin-top: 8px; font-size: .74rem; color: var(--dim); border-top: 1px dashed rgba(255,255,255,.12); padding-top: 8px; }
.case__back--full { justify-content: flex-start; gap: 4px; text-align: left; border-style: solid; border-color: var(--line-2); }
.case__placeholder { font-size: 1.04rem; font-weight: 700; color: var(--amber); background: rgba(255,179,71,.08); border-radius: 12px; padding: 14px 16px; line-height: 1.4; }

/* ---------- apply ---------- */
.apply::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 500px at 10% 20%, rgba(255,122,89,.1), transparent 60%), radial-gradient(800px 500px at 90% 80%, rgba(94,231,255,.07), transparent 60%); pointer-events: none; z-index: -1; }
.apply__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.apply__sub { color: var(--muted); font-size: 1.06rem; }
.apply .spots { margin-bottom: 24px; }
.apply .spots + .spots-meta { margin: -14px 0 24px; }
.apply__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.apply__list li { position: relative; padding-left: 32px; color: #d4d9e4; }
.apply__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(61,219,181,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddbb5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.apply__card { padding: clamp(20px, 3vw, 34px); border-radius: 28px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: .86rem; color: #cfd5e1; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 12px; padding: .75em .9em; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.field select option { background: #0e1424; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(94,231,255,.04); box-shadow: 0 0 0 4px rgba(94,231,255,.12); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consents { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 6px; margin: 4px 0 16px; }
.consents legend { font-size: .78rem; color: var(--muted); padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: .94rem; cursor: pointer; color: #d4d9e4; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--coral); flex: none; }
.form__error { color: #ffb4a8; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.25); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.thanks { text-align: center; padding: 28px 8px; animation: rise .5s var(--ease); }
.thanks:focus { outline: none; }
.thanks__check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad); color: #1d0f06; box-shadow: 0 0 40px -6px rgba(255,122,89,.8); }
.thanks__check svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks p { color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; color: var(--dim); background: rgba(5,7,13,.6); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.ph { color: var(--amber); font-weight: 600; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .25s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: none; }

/* ---------- responsive ---------- */
/* ================= AI team tiles ================= */
.team__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.team__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tfilter { font: inherit; font-size: .82rem; font-weight: 650; color: var(--muted); padding: 7px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.tfilter:hover { color: var(--text); border-color: var(--line-2); }
.tfilter[aria-pressed="true"] { color: var(--bg); background: var(--grad); border-color: transparent; }
.tfilter:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.team__legend { margin: 0; font-size: .8rem; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.team__sep { margin: 0 6px; }
.tbadge { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tbadge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tbadge--draft { color: var(--amber); background: rgba(255,179,71,.1); border: 1px solid rgba(255,179,71,.28); }
.tbadge--auto { color: var(--teal); background: rgba(61,219,181,.1); border: 1px solid rgba(61,219,181,.28); }
.tbadge--auto::before { box-shadow: 0 0 0 0 rgba(61,219,181,.6); animation: tpulse 2.4s ease-out infinite; }
@keyframes tpulse { 0% { box-shadow: 0 0 0 0 rgba(61,219,181,.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(61,219,181,0); } }
.team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ttile { --c: var(--cyan); --cb: rgba(94,231,255,.12); transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease); }
.ttile--day { --c: var(--amber); --cb: rgba(255,179,71,.12); }
.ttile--inbox { --c: var(--cyan); --cb: rgba(94,231,255,.12); }
.ttile--ops { --c: var(--teal); --cb: rgba(61,219,181,.12); }
.ttile--build { --c: var(--violet); --cb: rgba(139,124,255,.14); }
.ttile--growth { --c: var(--coral); --cb: rgba(255,122,89,.12); }
.ttile.is-dim { opacity: .28; filter: saturate(.3); transform: scale(.985); }
.ttile__btn { position: relative; overflow: hidden; width: 100%; height: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--panel-solid); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.ttile__btn::before { content: ''; position: absolute; inset: 0; background: radial-gradient(240px 120px at var(--rx, 50%) var(--ry, 0%), var(--cb), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ttile__btn::after { content: ''; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c); opacity: 0; transform: scale(0); pointer-events: none; }
.ttile__btn.ping::after { animation: tping .6s var(--ease); }
@keyframes tping { 0% { opacity: .35; transform: scale(0); } 100% { opacity: 0; transform: scale(28); } }
.ttile__btn:hover, .ttile__btn:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 10px 30px -14px var(--c); }
.ttile__btn:hover::before, .ttile__btn:focus-visible::before { opacity: 1; }
.ttile__btn:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.ttile__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ttile__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: var(--cb); transition: transform .35s var(--ease); }
.ttile__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ttile__btn:hover .ttile__ico, .ttile__btn:focus-visible .ttile__ico { transform: rotate(-8deg) scale(1.08); }
.ttile__name { font-size: .98rem; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.ttile__detail { display: grid; grid-template-rows: 1fr; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.ttile__detail > span { overflow: hidden; }
.ttile__group { margin-top: auto; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.team__hint { display: none; margin: 14px 0 0; font-size: .8rem; color: var(--dim); }
@media (max-width: 960px) { .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .team__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
  .team__filters::-webkit-scrollbar { display: none; }
  .tfilter { white-space: nowrap; flex: none; }
  .team__grid { gap: 10px; }
  .ttile__btn { padding: 13px 12px 12px; gap: 7px; border-radius: 14px; }
  .ttile__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ttile__ico { width: 30px; height: 30px; }
  .ttile__name { font-size: .88rem; }
  .ttile__group { display: none; }
  .ttile__detail { grid-template-rows: 0fr; font-size: .8rem; transition: grid-template-rows .3s var(--ease); }
  .ttile__btn[aria-expanded="true"] .ttile__detail { grid-template-rows: 1fr; }
  .ttile__btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
  .team__hint { display: block; }
}
@media (prefers-reduced-motion: reduce) { .tbadge--auto::before, .ttile__btn.ping::after { animation: none; } .ttile__btn, .ttile__ico, .ttile, .ttile__detail { transition: none; } .ttile__btn:hover, .ttile__btn:focus-visible { transform: none; } }

/* ================= Phone line (rendered only when PHONE_NUMBER is set in site.config.json) ================= */
.phone { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.phone__link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; padding: 8px 16px 8px 10px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 700; border: 1px solid rgba(94,231,255,.35); background: rgba(94,231,255,.07); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.phone__link:hover { background: rgba(94,231,255,.13); border-color: rgba(94,231,255,.6); transform: translateY(-1px); }
.phone__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.phone__link svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; flex: none; fill: none; stroke: var(--bg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; background: var(--grad-ai); }
.phone__num { font-variant-numeric: tabular-nums; color: var(--cyan); font-weight: 650; }
.phone__note { font-size: .8rem; color: var(--dim); }
.phone--hero { align-items: center; margin-top: 6px; flex-basis: 100%; }
.phone--hero .phone__link { align-self: center; }
.phone--form { margin: 18px 0 22px; }
.phone--footer { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.phone--footer .phone__link { min-height: 40px; padding: 4px 12px 4px 6px; font-size: .9rem; }
.phone--footer .phone__link svg { width: 26px; height: 26px; padding: 6px; }
@media (max-width: 560px) {
  /* icon on the left, label over number, so a wrapped number never lands under the icon */
  .phone__link { display: inline-grid; grid-template-columns: auto auto; justify-content: start; column-gap: 10px; row-gap: 0; border-radius: 20px; text-align: left; }
  .phone__link svg { grid-row: span 2; }
  .hero__ctas .spots { justify-content: center; }
  .spots-meta span { display: block; }
  .spots-meta span + span::before { content: none; }
}

.hero__ctas .spots-meta { flex-basis: 100%; text-align: center; margin-top: -6px; }

/* ---------- "Like her?" nudge: hand-drawn arrow pointing at the phone button ---------- */
.phone__row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; }
.phone--hero .phone__row { align-self: center; align-items: center; }
.nudge { display: inline-flex; flex-direction: row-reverse; align-items: flex-end; gap: 0 2px; color: var(--amber); pointer-events: none; }
.nudge__text { font-size: .86rem; font-weight: 650; font-style: italic; line-height: 1.25; letter-spacing: .005em; transform: rotate(-2deg); max-width: 15.5em; text-wrap: balance; }
.nudge__arrow { width: 54px; height: 30px; flex: none; overflow: visible; transform: translate(-4px, 4px) rotate(-64deg) scaleY(-1); margin-left: -4px; }
.nudge__arrow path { fill: none; stroke: var(--coral); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* draw-in: only when JS is on and motion is allowed; main.js adds .is-drawn when the nudge scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .js .nudge__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .nudge__text { opacity: 0; translate: 0 4px; transition: opacity .5s var(--ease) .55s, translate .5s var(--ease) .55s; }
  .js .nudge.is-drawn .nudge__shaft { animation: nudge-draw .8s var(--ease) .15s forwards; }
  .js .nudge.is-drawn .nudge__head { animation: nudge-draw .25s ease-out .9s forwards; }
  .js .nudge.is-drawn .nudge__text { opacity: 1; translate: none; }
}
@keyframes nudge-draw { to { stroke-dashoffset: 0; } }
.phone--footer .phone__row { gap: 4px; }
.phone--footer .nudge__text { font-size: .8rem; }
.phone--footer .nudge__arrow, .phone--form .nudge__arrow { transform: translate(-4px, -3px) rotate(-64deg) scaleY(-1); }
/* wide screens: the hero nudge sits to the right of the button, arrow pointing left at it */
@media (min-width: 1024px) {
  .phone--hero .nudge { position: absolute; left: calc(100% + 6px); top: 50%; flex-direction: row; align-items: center; gap: 6px; transform: translateY(-62%); width: max-content; }
  .phone--hero .nudge__arrow { width: 66px; height: 34px; transform: none; }
  .phone--hero .nudge__text { max-width: 13.5em; text-wrap: balance; }
}

@media (max-width: 1080px) {
  .demo__board { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: grid; }
  .nav.menu-open .nav__links { display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 8px 20px 16px; background: rgba(5,7,13,.96); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); font-size: 1.02rem; }
  .nav.menu-open .nav__links a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text); }
  .nav.menu-open .nav__links a:last-child { border-bottom: 0; }
  .apply__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .hero { min-height: 0; padding-top: 22px; }
  .hero__title { margin-bottom: 10px; }
  .hero__sub { margin-bottom: 20px; }
  .cmd { padding: 8px 8px 8px 12px; gap: 10px; min-height: 60px; border-radius: 18px; }
  .cmd__icon { width: 30px; height: 30px; }
  .cmd__go { padding: 11px 12px; }
  .cmd__go kbd { display: none; }
  .cmd__meta { flex-direction: column; align-items: flex-start; }
  .cmd__chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .cmd__chips::-webkit-scrollbar { display: none; }
  .qchip { white-space: nowrap; }
  .flow { flex-direction: column; }
  .node { flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px; }
  .node__top { flex-direction: column; align-items: flex-start; gap: 0; }
  .node__top { display: contents; }
  .node__kicker { width: 78px; flex: none; letter-spacing: .06em; } /* fits DISPARADOR without colliding with the title */
  .node__title { min-height: 2.6em; display: flex; align-items: center; font-size: .82rem; } /* reserve 2 lines: no height jump between flows */
  .link { flex: 0 0 12px; width: 2px; height: auto; margin-left: 25px; align-self: flex-start; }
  .link__fill { transform: scaleY(0); transform-origin: top; }
  .link.on .link__fill { transform: none; }
  .stage[data-state="done"] .link__pulse { animation: none; }
  .stage__bottom { grid-template-columns: minmax(0, 1fr); }
  .log { height: 172px; }
  .result { height: auto; min-height: 262px; } /* fixed so the autoplay result doesn't shift the page while anchors scroll */
  .result__ghost { min-height: 230px; }
  .chaos__lanes, .chaos__stage { --chip-h: 42px; }
  .message__grid, .steps, .case-grid, .who__grid { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .col { min-height: 0; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .case__inner { min-height: 190px; }
  .chaos { height: 240vh; }
  .chaos__lanes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .clane { padding: 10px 10px 12px; }
  .clane__head { gap: 8px; }
  .clane__head h3 { font-size: .86rem; }
  .clane__sub { display: none; }
  .clane__slots { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; gap: 6px; }
  .chaos__sub { font-size: .88rem; }
  .tchip { font-size: .74rem; padding: 0 8px; gap: 7px; border-radius: 10px; }
  .tchip__ico { width: 16px; height: 16px; }
  .tchip__ico svg { width: 9px; height: 9px; }
  .chaos__sub { font-size: .92rem; }
}
@media (max-width: 560px) {
  .wrap { width: min(1200px, 100% - 28px); }
  .brand__name { display: none; }
  .nav__cta { font-size: .8rem; padding: .55em .9em; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .demo__buttons { width: 100%; }
  .demo__buttons .btn { flex: 1; }
  .btn { white-space: normal; text-align: center; }
  .trust { flex-direction: column; gap: 8px; }
}

/* ---------- phones: shorter page (Oct 4, 2026). Same copy and sections, less vertical space ---------- */
.team__more { display: none; }
@media (max-width: 640px) {
  .team__grid.is-collapsed .ttile:nth-child(n+9) { display: none; }
  .team__more { display: flex; margin: 14px auto 0; }
}
@media (max-width: 760px) {
  .chaos { height: 190vh; }
}
@media (max-width: 560px) {
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head p { font-size: 1rem; }
  .hero { padding-top: 16px; padding-bottom: 28px; }
  .eyebrow { margin-bottom: 12px; }
  .hero__sub { margin-bottom: 16px; }
  /* the call to action and the phone button come right after the command bar; the animated flow demo follows them */
  .hero__inner > .stage { order: 1; margin-top: 22px; }
  .hero__ctas { margin-top: 14px; gap: 10px 22px; }
  .phone--hero { margin-top: 2px; }
  .apply__inner { gap: 22px; }
  .phone--form { margin: 12px 0 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask: none; mask: none; }
  .case__inner { transform-style: flat; }
  .case[aria-pressed="true"] .case__inner { transform: none; }
  .case__back { transform: none; visibility: hidden; }
  .case[aria-pressed="true"] .case__back { visibility: visible; }
  .case[aria-pressed="true"] .case__front { visibility: hidden; }
}

/* "Your accounts, your billing, your call." moved into How it works (Oct 4, 2026, when Before/After and What I can build were cut) */
.how .trust { margin: 0 0 30px; }
@media (max-width: 640px) { .how .trust { margin-bottom: 22px; } }

/* ---------- footer legal links + /privacy and /terms pages (Oct 4, 2026) ---------- */
.footer__legal { display: flex; gap: 18px; }
.footer__legal a, .footer p a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
.legal { padding: 40px 0 72px; }
.legal__wrap { max-width: 820px; }
.legal__back { margin: 0 0 18px; font-size: .92rem; }
.legal__back a { color: var(--muted); text-decoration: none; }
.legal__back a:hover { color: var(--text); }
.legal__card { padding: 40px 44px; border-radius: 26px; }
.legal__card h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .4em; }
.legal__card h2 { font-size: 1.22rem; font-weight: 750; margin: 1.8em 0 .5em; letter-spacing: -.01em; }
.legal__card p, .legal__card li { color: var(--muted); }
.legal__card strong { color: var(--text); }
.legal__card ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal__card li { margin-bottom: .45em; }
.legal__card a { color: var(--cyan); text-underline-offset: 3px; }
.legal__lead { font-size: 1.06rem; color: var(--text) !important; }
.nav--legal .lang__btn { text-decoration: none; }
.nav--legal .lang__btn[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) {
  .legal { padding: 24px 0 48px; }
  .legal__card { padding: 26px 20px; border-radius: 20px; }
  .legal__card h2 { margin-top: 1.5em; }
}
