@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin.woff2) format("woff2"); }
:root {
  --bg: #f4f6fb; --surface: #fff; --surface-2: #eef1f7; --text: #0e1a36; --muted: #56617b; --line: #e1e6f0;
  --accent: #1270d9; --accent-2: #1a8cff; --accent-soft: #e7f1ff; --ok: #1d7a4a; --bad: #b3261e;
  --navy: #0a1631; --navy-2: #0f2250; --sky: #6db6ff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #121a2c; --surface-2: #1a2338; --text: #e8edf7; --muted: #9aa6bf; --line: #243049;
    --accent: #3d95f5; --accent-2: #5aa9ff; --accent-soft: #15284a; --ok: #6fd39b; --bad: #ff8a80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #121a2c; --surface-2: #1a2338; --text: #e8edf7; --muted: #9aa6bf; --line: #243049;
  --accent: #3d95f5; --accent-2: #5aa9ff; --accent-soft: #15284a; --ok: #6fd39b; --bad: #ff8a80; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 24px; background: var(--accent-2); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; box-shadow: 0 8px 24px rgba(26, 140, 255, .35); }
.btn:hover { background: #0f7cf0; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn.small { padding: 9px 16px; font-size: .9rem; box-shadow: none; }
.btn.light { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.btn.light:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Hero ---------- */
.hero-band { position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 520px at 78% 38%, rgba(26, 140, 255, .28), transparent 65%), radial-gradient(700px 500px at 0% 0%, rgba(26, 140, 255, .12), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero-band a { color: #fff; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: inherit; }
.brand b { color: var(--accent-2); }
.hero-band .brand, .page-top .brand { background: #fff; color: #0e1a36; padding: 7px 16px 7px 9px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.hero-band .brand b, .page-top .brand b { color: #1a8cff; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .93rem; font-weight: 600; }
.nav a:not(.btn) { text-decoration: none; opacity: .82; }
.nav a:not(.btn):hover { opacity: 1; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 13px; border-radius: 999px; background: rgba(109, 182, 255, .14); border: 1px solid rgba(109, 182, 255, .3); color: #cfe6ff; font-weight: 700; font-size: .85rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
h1 { margin: 0 0 20px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
h1 span { color: var(--sky); }
.lead { margin: 0 0 30px; font-size: 1.18rem; color: #b9c7e2; max-width: 33em; }

.join { max-width: 560px; }
.join .row { display: flex; gap: 10px; }
.join input[type=email] { flex: 1; min-width: 0; padding: 15px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: #fff; color: #0e1a36; font: inherit; }
.join input[type=email]:focus { outline: none; box-shadow: 0 0 0 4px rgba(109, 182, 255, .45); }
.small-fields { margin-top: 12px; flex-wrap: wrap; }
.small-fields label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #b9c7e2; }
.small-fields select { padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: .9rem; }
.small-fields select option { color: #0e1a36; }
.hp { position: absolute; left: -9999px; }
.fine { margin: 12px 0 0; font-size: .88rem; color: #9fb0d0; }
.fine.ok { color: #7ff0ae; font-size: 1.02rem; }
.fine.bad { color: #ffb4ab; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: #d6e3fa; }
.trust li::before { content: "✓"; color: #3ddc84; font-weight: 800; margin-right: 7px; }

/* Ava demo phone */
.stage { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.glow { position: absolute; inset: 8% -18%; background: radial-gradient(closest-side, rgba(26, 140, 255, .55), transparent); filter: blur(30px); z-index: -1; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.94); } }
.phone { border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #1b2846, #070d1c); box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-2deg); transition: transform .4s; }
.phone[data-state="playing"] { transform: none; }
.phone-screen { position: relative; border-radius: 35px; background: #eef2f9; color: #0e1a36; padding: 16px 13px 18px; height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.call-bar { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 18px; background: var(--navy); color: #fff; }
.call-bar .live { margin-left: auto; font-size: .78rem; color: #9fc7ff; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: var(--h); border-radius: 3px; background: var(--sky); transform: scaleY(.3); transition: transform .12s; }
.phone[data-state="playing"] .wave i { animation: w .9s ease-in-out infinite; }
.phone[data-speaking="ava"] .wave i { animation-duration: .55s; }
.wave i:nth-child(1) { --h: 8px; animation-delay: -.2s } .wave i:nth-child(2) { --h: 15px; animation-delay: -.5s } .wave i:nth-child(3) { --h: 22px; animation-delay: -.1s }
.wave i:nth-child(4) { --h: 13px; animation-delay: -.7s } .wave i:nth-child(5) { --h: 19px; animation-delay: -.3s } .wave i:nth-child(6) { --h: 10px; animation-delay: -.6s } .wave i:nth-child(7) { --h: 6px; animation-delay: -.4s }
@keyframes w { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 12px 2px 4px; overflow: hidden; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.42; animation: pop .3s ease-out; }
.msg.ava { background: #fff; border: 1px solid #e1e6f0; border-bottom-left-radius: 4px; }
.msg.you { margin-left: auto; background: #1270d9; color: #fff; border-bottom-right-radius: 4px; }
.sent { align-self: center; font-size: .78rem; font-weight: 700; color: #1d7a4a; background: #e3f4ea; padding: 4px 11px; border-radius: 999px; animation: pop .3s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.play { position: absolute; left: 50%; top: 40%; white-space: nowrap; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 16px 26px 16px 18px; border: 0; border-radius: 999px; background: var(--accent-2); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 14px 34px rgba(26, 140, 255, .45); animation: nudge 2.4s ease-in-out infinite; }
.play:hover { background: #0f7cf0; }
.play-icon { width: 34px; height: 34px; border-radius: 50%; background: #fff; position: relative; flex-shrink: 0; }
.play-icon::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--accent-2); }
@keyframes nudge { 50% { box-shadow: 0 14px 34px rgba(26, 140, 255, .45), 0 0 0 12px rgba(26, 140, 255, .15); } }
.sound-note { position: absolute; left: 0; right: 0; top: calc(40% + 42px); text-align: center; margin: 0; font-size: .8rem; color: #56617b; }
.phone[data-state="playing"] .play, .phone[data-state="playing"] .sound-note { display: none; }
.phone[data-state="done"] .play { top: auto; bottom: 22px; transform: translateX(-50%); padding: 10px 18px 10px 12px; font-size: .9rem; animation: none; }
.phone[data-state="done"] .play-icon { width: 26px; height: 26px; }
.phone[data-state="done"] .play-icon::after { left: 10px; top: 7px; border-width: 6px 0 6px 9px; }
.phone[data-state="done"] .sound-note { display: none; }
.phone[data-state="done"] .chat { padding-bottom: 60px; }

/* Sound bars along the bottom of the hero */
.bars { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; opacity: .35; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(109, 182, 255, .9) 0 3px, transparent 3px 14px);
  -webkit-mask: radial-gradient(60% 100% at 50% 100%, #000 30%, transparent 75%); mask: radial-gradient(60% 100% at 50% 100%, #000 30%, transparent 75%); }

/* ---------- Sections ---------- */
.kicker { margin: 0 0 8px; color: var(--accent); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.12; margin: 0 0 30px; font-weight: 800; text-wrap: balance; }
.how { padding-top: 88px; padding-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

.features { padding-top: 72px; padding-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.grid h3 { margin: 0 0 8px; font-size: 1.08rem; }
.grid p { margin: 0; color: var(--muted); font-size: .97rem; }

.google { padding-top: 48px; padding-bottom: 32px; }
.google-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); max-width: 880px; }
.google-card h2 { margin-bottom: 16px; }
.google-card p { color: var(--muted); }
.google dl { margin: 18px 0; }
.google dt { font-weight: 700; margin-top: 14px; }
.google dd { margin: 4px 0 0; color: var(--muted); }
code { font: .82em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; margin-left: 6px; }

.faq { padding-top: 48px; padding-bottom: 40px; max-width: 800px; }
details { border-bottom: 1px solid var(--line); padding: 17px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

.cta { text-align: center; padding-top: 48px; padding-bottom: 80px; }
.cta h2 { margin-bottom: 22px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Text pages (privacy, terms) */
.page-top { background: var(--navy); color: #fff; }
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
.doc .updated { color: var(--muted); margin-top: -8px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -.01em; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); }
.doc td { color: var(--muted); }
.doc .callout { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; color: var(--text); }
.doc form { display: flex; gap: 10px; margin-top: 12px; }
.doc input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.doc .fine { color: var(--ok); }

.admin { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.admin table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin th, .admin td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .play, .msg, .sent { animation: none; }
  .phone[data-state="playing"] .wave i { animation: none; transform: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 16px; padding-bottom: 96px; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 2.55rem; }
  .lead { font-size: 1.06rem; }
  .join .row:first-child { flex-direction: column; }
  .steps, .grid { grid-template-columns: 1fr; }
  .phone { transform: none; }
  .phone-screen { height: 470px; }
  .hero { padding-top: 8px; }
  .top { padding-top: 14px; padding-bottom: 14px; }
  .eyebrow { margin-top: 6px; }
  .doc form { flex-direction: column; }
}
