/* Inaima landing v2 — brand tokens come from the dashboard app (same as the PoC). */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --tint: #f0edff;
  --ink: #1c2438;
  --muted: #5b667f;
  --line: #e6e9f2;
  --purple: #6652ed;
  --purple-deep: #4c39d6;
  --green: #29b578;
  --night: #121829;
  --night-2: #1b2238;
  --coral: #ff7a59;
  --wa-bg: #efeae2;
  --wa-out: #d9fdd3;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--purple); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 104px); line-height: .96; letter-spacing: -0.03em; }
html:not(.motion) .row[data-msg=typing] { display: none; }
h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
h1 .line > span { display: inline-block; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1; }
h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; max-width: 34em; }

/* Buttons: one shape, fully round, decided once. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--purple); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px;
  transition: background .2s, transform .25s var(--ease);
}
.btn:hover { background: var(--purple-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--light { background: #fff; color: var(--purple-deep); }
.btn--light:hover { background: var(--tint); }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  min-height: 52px; padding: 0 6px;
}
.link span { transition: transform .25s var(--ease); }
.link:hover span { transform: translateY(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: var(--bg);
  transition: transform .35s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--display); letter-spacing: -0.04em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { color: var(--purple); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav ul a { text-decoration: none; padding: 8px 0; }
.nav ul a:hover { color: var(--purple); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 15px; }
@media (max-width: 860px) { .nav ul { display: none; } }

/* =========================================================
   STORY — hero + pinned phone narrative.
   Base styles = static, readable layout (no JS / reduced motion).
   html.motion switches to the sticky choreography.
   ========================================================= */
.story { position: relative; padding-top: calc(var(--nav-h) + 48px); }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 28px; }
.hero-copy .lede { margin-top: -4px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.chips { display: none; }

.stage-grid {
  display: grid; gap: 40px; align-items: start; margin-top: 72px;
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1.1fr);
}
.steps-bar { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.step h3 { margin-bottom: 10px; }
.step p { max-width: 30em; }

@media (max-width: 1080px) {
  .stage-grid { grid-template-columns: 1fr; justify-items: center; }
  .steps { max-width: 560px; }
}

/* ---------- Phone ---------- */
.phone {
  --pw: 300px; --ph: 616px;
  width: var(--pw); height: var(--ph);
  border-radius: 48px; padding: 10px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(28, 36, 56, .45);
  position: relative;
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px;
  margin-left: -46px; border-radius: 20px; background: #000; z-index: 3;
}
.screen {
  height: 100%; border-radius: 38px; overflow: hidden; background: var(--wa-bg);
  display: flex; flex-direction: column; font-size: 13px; line-height: 1.38;
}
.wa-head {
  background: #f6f6f6; padding: 52px 14px 10px; display: flex; align-items: center; gap: 10px;
}
.wa-head svg { width: 18px; height: 18px; color: #1a8cff; }
.wa-head img { width: 34px; height: 34px; border-radius: 50%; }
.wa-head b { display: block; font-size: 14px; font-weight: 600; }
.wa-head small { color: #6b7280; font-size: 11.5px; }
.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 10px 6px; overflow: hidden;
}
.day-pill { align-self: center; background: #fff; color: #54656f; font-size: 11px; padding: 3px 10px; border-radius: 8px; margin-bottom: 8px; }
.row { display: flex; overflow: hidden; flex-shrink: 0; }
.row + .row { padding-top: 6px; }
.row.out { justify-content: flex-end; }
.bubble {
  max-width: 82%; padding: 7px 10px 6px; border-radius: 12px; background: #fff; color: #111b21;
}
.out .bubble { background: var(--wa-out); border-top-right-radius: 4px; }
.in .bubble { border-top-left-radius: 4px; }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.bubble .ok { color: #53bdeb; }
.typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 22px; background: #f6f6f6; }
.wa-input span { flex: 1; background: #fff; border-radius: 18px; padding: 8px 12px; color: #8696a0; }
.wa-input i { width: 34px; height: 34px; border-radius: 50%; background: #1fa855; }

/* ---------- Inaima panel (real UI fragment) ---------- */
.panel {
  background: var(--surface); border-radius: 24px; padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(28, 36, 56, .3);
  font-size: 14px; width: 100%; max-width: 460px; position: relative;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.panel-head b { font: 650 20px/1.1 var(--display); letter-spacing: -0.02em; }
.panel-head small { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--tint); color: var(--purple-deep); white-space: nowrap; }
.pill.ok { background: #e3f6ec; color: #17794e; }
.pill.wait { background: #fff1e0; color: #a35a00; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: var(--bg);
  transition: background .3s;
}
.slot time { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot b { font-weight: 600; display: block; }
.slot small { color: var(--muted); font-size: 12.5px; }
.slot.free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.slot.free.lit { box-shadow: inset 0 0 0 2px var(--purple); background: var(--tint); color: var(--purple-deep); }
.slot.new { background: var(--tint); }
.slot .who { position: relative; min-height: 38px; }
.slot .who > * { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.slot .who .w-free { display: flex; align-items: center; }
.slot[data-state=free] .w-free, .slot[data-state=hold] .w-hold, .slot[data-state=done] .w-done { opacity: 1; }
.slot[data-state=free] .js-pill { opacity: 0; }
.js-pill { transition: opacity .3s; }
.panel-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.gcal { width: 18px; height: 18px; flex: none; }
.toast {
  position: absolute; right: -18px; top: -64px; width: 270px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px;
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center;
  font-size: 13px; line-height: 1.35; box-shadow: 0 20px 40px -16px rgba(18, 24, 41, .5);
}
.toast img { width: 30px; height: 30px; border-radius: 8px; }
.toast b { display: block; font-weight: 600; }
.toast span { color: #c8cde0; }
.static-only { display: block; }

/* ---------- Motion layout for the story ---------- */
html.motion .story { height: 640vh; padding-top: 0; }
html.motion .stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
html.motion .stage > .wrap { position: relative; height: 100%; }
html.motion .hero-copy {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 6vh); z-index: 4;
}
html.motion .stage-grid { display: block; margin: 0; height: 100%; }
/* Hide the hero until the opening animation takes over (no flash on slow loads); shows anyway after 3 s. */
html.motion.intro #hero-title, html.motion.intro .hero-copy .lede, html.motion.intro .hero-actions,
html.motion.intro .phone, html.motion.intro .chip .card { opacity: 0; animation: failsafe-show .01s 3s forwards; }
@keyframes failsafe-show { to { opacity: 1; } }
html.motion .chips { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
html.motion .phone-slot {
  position: absolute; left: 50%; top: 50%; margin-left: -150px; margin-top: -290px; z-index: 2;
}
html.motion .phone-scale { transform: scale(var(--ps, 1)); transform-origin: 50% 0; }
html.motion .steps-bar {
  display: flex; position: absolute; top: calc(var(--nav-h) + 22px); left: 0; gap: 8px; z-index: 5;
  list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600;
}
.steps-bar li { padding: 8px 16px; border-radius: 99px; background: var(--surface); color: var(--muted); transition: background .3s, color .3s; }
.steps-bar li.on { background: var(--ink); color: #fff; }
html.motion .steps { position: absolute; left: 0; top: 50%; width: 30%; margin-top: -90px; display: block; }
html.motion .step { position: absolute; inset: 0 0 auto; }
html.motion .step h3 { font-size: clamp(28px, 2.6vw, 40px); }
html.motion .panel-slot { position: absolute; right: 0; top: 50%; width: 34%; margin-top: -250px; z-index: 1; }
html.motion .static-only { display: none; }
/* When the nav slides away, the story's top furniture moves up with it. */
html.motion .steps-bar, html.motion .steps { transition: top .35s var(--ease); }
html.motion .nav.is-hidden ~ main .steps-bar { top: 22px; }

@media (min-width: 961px) {
  html.motion .phone-slot { left: 49%; }
}

/* Phone-width composition of the story */
@media (max-width: 960px) {
  html.motion .story { height: 600vh; }
  html.motion .hero-copy { top: calc(var(--nav-h) + 3vh); gap: 18px; }
  html.motion .hero-copy .lede { font-size: 17px; }
  /* keeps each headline line on one line down to 360px wide */
  html.motion .hero-copy h1 { font-size: min(8.7vw, 44px); letter-spacing: -0.035em; }
  html.motion .steps-bar { left: 50%; transform: translateX(-50%); font-size: 13px; gap: 4px; top: calc(var(--nav-h) + 10px); }
  .steps-bar li { padding: 7px 11px; }
  html.motion .steps { left: 0; right: 0; width: auto; top: calc(var(--nav-h) + 62px); margin: 0; text-align: center; }
  html.motion .nav.is-hidden ~ main .steps-bar { top: 12px; }
  html.motion .nav.is-hidden ~ main .steps { top: 64px; }
  html.motion .step h3 { font-size: 24px; margin-bottom: 6px; }
  html.motion .step p { font-size: 15px; margin-inline: auto; max-width: 26em; }
  html.motion .phone-slot { top: auto; bottom: 0; margin-top: 0; }
  html.motion .phone-scale { transform-origin: 50% 100%; }
  html.motion .panel-slot { left: 0; right: 0; width: auto; top: auto; bottom: 18px; margin: 0; z-index: 3; display: flex; justify-content: center; }
  html.motion .panel { padding: 16px; max-width: 380px; }
  html.motion .panel .slot:not(.key) { display: none; }
  html.motion .panel-head { margin-bottom: 10px; }
  html.motion .toast { left: 0; right: 0; margin-inline: auto; top: -96px; width: min(340px, calc(100% - 16px)); }
}

/* Floating hero chips */
.chip { position: absolute; width: 238px; }
.chip-float { animation: drift var(--dur, 7s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
@keyframes drift { from { transform: translate3d(0, -7px, 0) rotate(var(--r0, -1deg)); } to { transform: translate3d(0, 9px, 0) rotate(var(--r1, 1deg)); } }
.card {
  background: var(--surface); border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 18px 40px -18px rgba(28, 36, 56, .28);
  font-size: 13.5px; line-height: 1.4;
}
.card .from { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); }
.card .from b { color: var(--ink); font-weight: 600; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.wa-dot { width: 15px; height: 15px; flex: none; margin-left: auto; }
.card.metric { display: flex; align-items: baseline; gap: 10px; background: var(--ink); color: #fff; }
.card.metric b { font: 650 34px/1 var(--display); letter-spacing: -0.03em; }
.card.metric span { color: #c8cde0; font-size: 13px; }
.card.event { display: grid; grid-template-columns: 4px 1fr; gap: 10px; }
.card.event::before { content: ""; border-radius: 4px; background: var(--purple); }
.card.event small { color: var(--muted); display: block; }
.c1 { left: 2%; top: 50%; } .c1 .chip-float { --dur: 6.5s; --r0: -2deg; --r1: -.5deg; }
.c2 { left: 13%; top: 67%; } .c2 .chip-float { --dur: 8s; --delay: -2s; }
.c3 { left: 1%; top: 84%; } .c3 .chip-float { --dur: 7.2s; --delay: -4s; --r0: 1deg; --r1: 2deg; }
.c4 { right: 3%; top: 52%; } .c4 .chip-float { --dur: 7.6s; --delay: -1s; --r0: 1.5deg; --r1: .5deg; }
.c5 { right: 15%; top: 69%; width: 190px; } .c5 .chip-float { --dur: 6.2s; --delay: -3s; }
.c6 { right: 1%; top: 84%; } .c6 .chip-float { --dur: 8.4s; --delay: -5s; --r0: -1deg; --r1: -2deg; }
@media (max-width: 1180px) { .c2, .c5 { display: none; } }
@media (max-width: 960px) {
  .chip { width: 190px; font-size: 12.5px; }
  .c1 { left: -3%; top: 64%; } .c4 { right: -3%; top: 76%; }
  .c3, .c6 { display: none; }
}

/* =========================================================
   COST — dark field: word reveal + calculator
   ========================================================= */
.cost { background: var(--night); color: #fff; padding: clamp(110px, 16vw, 220px) 0 clamp(110px, 14vw, 200px); }
.reveal-text {
  font: 600 clamp(30px, 4.4vw, 64px)/1.08 var(--display); letter-spacing: -0.03em;
  max-width: 17em; text-wrap: balance;
}
.reveal-text .w { color: #fff; }
html.motion .reveal-text .w { color: #3a4363; transition: color .25s; }
html.motion .reveal-text .w.lit { color: #fff; }
html.motion .reveal-text .w.lit.hot { color: var(--coral); }

.calc { margin-top: clamp(110px, 14vw, 200px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.calc h2 { margin-bottom: 22px; font-size: clamp(34px, 3.4vw, 50px); }
.calc .lede { color: #d5d9e8; }
.controls { margin-top: 40px; display: grid; gap: 26px; }
.ctl label { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; margin-bottom: 10px; }
.ctl output { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0;
}
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(var(--purple), var(--purple)) 0 / var(--fill, 50%) 100% no-repeat, #2c3552; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: #2c3552; }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--purple); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; margin-top: -9px; transition: transform .2s var(--spring); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }

.result { background: var(--night-2); border-radius: 28px; padding: clamp(24px, 3vw, 40px); }
.toggle { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--night); margin-bottom: 30px; }
.toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; color: #aab2c8; transition: background .25s, color .25s; }
.toggle button[aria-pressed=true] { background: #fff; color: var(--ink); }
.big { font: 650 clamp(48px, 6.4vw, 92px)/.95 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big .unit { font-size: .42em; letter-spacing: -0.02em; color: #d5d9e8; }
.big-sub { margin-top: 12px; color: #d5d9e8; min-height: 3em; max-width: 34em; }
.waffle-wrap { margin-top: 34px; }
.waffle-wrap > p { font-size: 15px; color: #d5d9e8; margin-bottom: 12px; }
.waffle { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; max-width: 520px; }
.waffle i { aspect-ratio: 1; border-radius: 50%; background: var(--purple); transition: background .35s, transform .35s var(--spring); transition-delay: calc(var(--k) * 6ms); }
.waffle i.late { background: #59627f; }
.waffle i.lost { background: var(--coral); transform: scale(.82); }
.legend { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #d5d9e8; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--purple); }
.legend .late i { background: #59627f; } .legend .lost i { background: var(--coral); }
.speed { margin-top: 34px; display: grid; gap: 12px; }
.speed-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; font-size: 15px; }
.speed-row .bar { height: 14px; border-radius: 10px; background: #2c3552; overflow: hidden; }
.speed-row .bar i { display: block; height: 100%; border-radius: 10px; background: #59627f; width: 100%; transform-origin: left; transition: transform 1s var(--ease); }
.speed-row.ai .bar i { background: var(--green); }
.speed-row b { font-variant-numeric: tabular-nums; }
.measured { margin-top: 28px; font-size: 14px; color: #aab2c8; }
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .speed-row { grid-template-columns: 110px 1fr auto; }
  .waffle { gap: 4px; }
}

/* =========================================================
   FEATURES — bento of live UI fragments
   ========================================================= */
.features { padding: clamp(110px, 14vw, 200px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; margin-bottom: 56px; }
.sec-head .lede { justify-self: end; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 24px; }
.tile > p { color: var(--muted); font-size: 15.5px; max-width: 30em; }
.tile .demo { margin-top: auto; padding-top: 22px; }
.t-agenda { grid-column: span 2; grid-row: span 2; background: var(--tint); }
.t-voice { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; background: var(--ink); color: #fff; }
.t-voice > div > p { color: #c8cde0; margin-top: 10px; }

/* agenda demo */
.mini-day { background: var(--surface); border-radius: 20px; padding: 14px; display: grid; gap: 6px; position: relative; }
.mini-day .slot { background: var(--bg); }
.mover { position: absolute; left: 14px; right: 14px; top: var(--top, 14px); height: var(--h, 58px); background: var(--purple); color: #fff; border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; transition: transform 1s var(--spring); }
.mover b { display: block; font-weight: 600; }
.mover small { color: #ddd8ff; }
.mover .pill { background: #fff; color: var(--purple-deep); }
.t-agenda.play .mover { transform: translateY(var(--to, 0px)); }

/* reminder demo */
.rem { background: var(--wa-bg); border-radius: 20px; padding: 14px; font-size: 13.5px; }
.rem .bubble { max-width: 100%; }
.qr { display: grid; gap: 6px; margin-top: 6px; }
.qr span { background: #fff; border-radius: 10px; text-align: center; padding: 8px; color: #027eb5; font-weight: 500; transition: background .3s, color .3s; }
.t-rem.play .qr span:first-child { background: var(--green); color: #fff; }

/* alerts demo */
.alerts { display: grid; gap: 8px; }
.alert { background: var(--bg); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; }
.alert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--green); }
.alert.mv::before { background: var(--purple); } .alert.cx::before { background: var(--coral); }
.alert b { font-weight: 600; }

/* human handoff demo */
.handoff { display: grid; gap: 8px; font-size: 13.5px; }
.handoff .bubble { background: var(--wa-out); justify-self: end; }
.paused { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px; }
.sw { width: 36px; height: 22px; border-radius: 22px; background: var(--coral); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

/* calendar demo */
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 12px; text-align: center; }
.cal span { color: var(--muted); padding-bottom: 4px; }
.cal i { height: 34px; border-radius: 8px; background: var(--bg); }
.cal i.ev { background: var(--purple); }
.cal i.blk { background: repeating-linear-gradient(135deg, var(--line) 0 4px, var(--bg) 4px 8px); }

/* voice customizer (the live thing) */
.voice-form { display: grid; gap: 14px; }
.voice-form label { font-size: 14px; color: #c8cde0; display: grid; gap: 6px; }
.voice-form input[type=text], .voice-form select {
  background: #2a3350; border: 0; border-radius: 12px; padding: 12px 14px; color: #fff; font-size: 16px; width: 100%;
}
.seg { display: inline-flex; padding: 4px; background: #2a3350; border-radius: 99px; width: max-content; }
.seg button { border: 0; background: transparent; color: #c8cde0; padding: 8px 16px; border-radius: 99px; font-weight: 600; }
.seg button[aria-pressed=true] { background: #fff; color: var(--ink); }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.voice-preview { background: var(--wa-bg); color: #111b21; border-radius: 22px; padding: 18px; font-size: 15px; display: grid; gap: 8px; }
.voice-preview .bubble { max-width: 92%; }
.voice-preview .out .bubble { justify-self: end; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-voice { grid-column: span 2; grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .lede { justify-self: start; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .mini-day .slot .pill { display: none; }
  .t-agenda, .t-voice { grid-column: auto; grid-row: auto; }
  .voice-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   HUB — connected to what you already use
   ========================================================= */
.hub { background: var(--surface); padding: clamp(110px, 14vw, 200px) 0; }
.hub .sec-head { margin-bottom: 40px; }
.hub-map { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 24px; min-height: 420px; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hub-lines path { fill: none; stroke: #d9dcf0; stroke-width: 2; }
.hub-lines .flow { stroke: var(--purple); stroke-width: 2.5; stroke-dasharray: 6 14; stroke-linecap: round; }
html.motion .hub-lines .flow { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.node { position: relative; z-index: 1; background: var(--bg); border-radius: 22px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.node svg, .node img { width: 40px; height: 40px; flex: none; border-radius: 12px; }
.node b { display: block; font: 650 19px/1.15 var(--display); letter-spacing: -0.02em; }
.node small { color: var(--muted); font-size: 14px; }
.hub-col { display: grid; gap: 22px; }
.hub-core { justify-self: center; z-index: 1; width: min(280px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 30px; }
.hub-core img { width: 72px; height: 72px; border-radius: 20px; }
.hub-core b { font: 700 32px/1 var(--display); letter-spacing: -0.04em; }
.hub-core small { color: #e3dfff; font-size: 14px; max-width: 14em; }
html.motion .hub-core { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.03); } }
@media (max-width: 860px) {
  .hub-map { grid-template-columns: 1fr; min-height: 0; }
  .hub-lines { display: none; }
  .hub-core { width: 220px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(110px, 14vw, 200px) 0; }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 22px; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); position: relative; flex: none; transition: transform .35s var(--ease), background .25s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--purple); border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--purple); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details p { padding: 0 24px 24px; max-width: 40em; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* =========================================================
   START + FOOTER
   ========================================================= */
.start { background: var(--purple); color: #fff; padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.start .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.start h2 { font-size: clamp(44px, 6.4vw, 96px); margin-bottom: 26px; }
.start .lede { color: #ece9ff; margin-bottom: 36px; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.path li { background: var(--purple-deep); border-radius: 20px; padding: 18px 22px; }
.path b { display: block; font: 650 21px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.path span { color: #ddd8ff; font-size: 15.5px; }
@media (max-width: 860px) { .start .wrap { grid-template-columns: 1fr; } }

.foot { background: var(--purple); color: #fff; padding-bottom: 32px; overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; font-size: 15px; color: #ece9ff; padding-top: 28px; }
.foot-row nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-row a { text-decoration: none; }
.credits { margin: 14px 0 0; font-size: 12.5px; color: #cfc8ff; }
.credits a { color: inherit; }
.foot-row a:hover { color: #fff; text-decoration: underline; }
.wordmark { font: 700 clamp(96px, 25vw, 400px)/.8 var(--display); letter-spacing: -0.06em; margin: 0 0 0 -0.04em; white-space: nowrap; color: #fff; }
.wordmark span { color: #b9afff; }

/* =========================================================
   Entrances — content is visible unless motion is on.
   ========================================================= */
html.motion [data-rise] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.motion [data-rise].in > * { opacity: 1; transform: none; }

/* =========================================================
   CONTACT PAGE — form writes the WhatsApp message live
   ========================================================= */
[hidden] { display: none !important; }
.contact { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(80px, 10vw, 140px); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact h1 { font-size: clamp(40px, 5.4vw, 80px); }
.contact .lede { margin-top: 24px; }

.lead-form { margin-top: 44px; display: grid; gap: 22px; max-width: 640px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field > span, .choice legend { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; /* 16px stops iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #9aa3b8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--tint); }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { padding: 0; margin-bottom: 10px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; font-size: 15px;
  transition: background .2s, box-shadow .2s, color .2s;
}
.choice input:checked + span { background: var(--tint); box-shadow: inset 0 0 0 2px var(--purple); color: var(--purple-deep); }
.choice input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 3px; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.send .btn svg { width: 22px; height: 22px; }
.note { font-size: 14px; color: var(--muted); max-width: 28em; }

.contact-phone { position: sticky; top: calc(var(--nav-h) + 24px); justify-self: center; }
.contact-phone .chat { justify-content: flex-start; padding-top: 14px; }
.ticks { color: #8696a0; letter-spacing: -3px; }
.sent .ticks { color: #53bdeb; }
html.motion #reply, html.motion #reply-typing { animation: pop .35s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: 16px; resize: vertical; min-height: 96px; transition: border-color .2s, box-shadow .2s;
}
.field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--tint); }
.field > span i { font-style: normal; font-weight: 500; color: #9aa3b8; }
.email-fields { display: grid; gap: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alt-link { justify-self: start; border: 0; background: none; padding: 6px 0; font-weight: 600; color: var(--purple-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.alt-link:hover { color: var(--purple); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.contact-phone { transition: opacity .4s var(--ease), filter .4s var(--ease); }
.email-mode .contact-phone { opacity: .3; filter: grayscale(1); }
.next .note { color: #ddd8ff; margin-top: 12px; }
.demo-cta { margin-top: 8px; }

@media (max-width: 960px) {
  .contact .wrap { grid-template-columns: 1fr; }
  .contact-phone { position: static; zoom: .85; }
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* =========================================================
   LEGAL PAGE — aviso de privacidad
   ========================================================= */
.legal { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(80px, 10vw, 140px); }
.legal-head { max-width: 860px; display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.legal-head h1 { font-size: clamp(40px, 5.4vw, 80px); }
.legal-meta { font-size: 14px; color: var(--muted); }
.legal-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--muted); }
.legal-toc a::before { content: counter(toc); font-variant-numeric: tabular-nums; min-width: 1.4em; color: #9aa3b8; }
.legal-toc a:hover { background: var(--tint); color: var(--purple-deep); }
.legal-text { max-width: 44em; }
.legal-text section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal-text section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-text h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; margin-bottom: 18px; }
.legal-text h3 { font-size: 19px; letter-spacing: -0.01em; margin: 26px 0 10px; }
.legal-text p, .legal-text li { line-height: 1.65; }
.legal-text p + p, .legal-text ul + p, .legal-text ol + p, .legal-text p + ul, .legal-text p + ol { margin-top: 14px; }
.legal-text ul, .legal-text ol { padding-left: 1.3em; margin: 0; display: grid; gap: 8px; }
.legal-text a { color: var(--purple-deep); }
.callout { margin-top: 18px; padding: 20px 22px; border-radius: 18px; background: var(--tint); }
@media (max-width: 860px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; }
}
.legal-note { font-size: 13px; }
.legal-note a { color: var(--purple-deep); }
