/* ═══ VaaniAI — warm light editorial ═══
   Ivory paper, coral-amber voice gradient, Fraunces + Albert Sans. */

:root {
  --paper: #faf7f1;         /* page */
  --card: #ffffff;
  --tint: #f3eee4;          /* raised sections */
  --line: #e8e1d3;
  --ink: #23262f;
  --muted: #82868f;
  --coral: #f0653f;         /* brand start */
  --amber: #f5a623;         /* brand end */
  --grad: linear-gradient(120deg, var(--coral), var(--amber));
  --teal: #0f9d8f;          /* AI signal */
  --sage: #e8f0e6;
  --rose-bg: #fdeae4;
  --shadow: 0 2px 8px rgba(35,38,47,.05), 0 12px 32px rgba(35,38,47,.06);
  --font-display: "Fraunces", serif;
  --font-body: "Albert Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--paper); color: var(--ink);
  min-height: 100vh; display: flex;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(245,166,35,.28); }

/* ── logo ── */
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-weight: 700; font-size: 23px; letter-spacing: -.3px; }
.logo em { font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(240,101,63,.3); flex: 0 0 auto;
}
.mark .wave { display: inline-flex; align-items: center; gap: 2.5px; height: 18px; }
.mark .wave i { width: 3px; background: #fff; border-radius: 3px; animation: wave 1.2s ease-in-out infinite; }
.mark .wave i:nth-child(1) { height: 35%; animation-delay: 0s; }
.mark .wave i:nth-child(2) { height: 80%; animation-delay: .15s; }
.mark .wave i:nth-child(3) { height: 100%; animation-delay: .3s; }
.mark .wave i:nth-child(4) { height: 60%; animation-delay: .45s; }
@keyframes wave { 0%,100% { transform: scaleY(.45);} 50% { transform: scaleY(1);} }

/* ── sidebar (app) ── */
.side {
  width: 236px; padding: 26px 18px; position: fixed; top: 0; bottom: 0; z-index: 10;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.side .logo { margin-bottom: 4px; }
.tagline { font-size: 11.5px; color: var(--muted); margin: 2px 0 26px; }
.side a.nav {
  color: var(--muted); padding: 10px 13px; border-radius: 11px;
  font-size: 14px; font-weight: 600; transition: all .16s ease;
}
.side a.nav:hover { color: var(--ink); background: var(--tint); }
.side a.nav.active { color: #fff; background: var(--grad);
  box-shadow: 0 4px 16px rgba(240,101,63,.28); }
.side .bottom { margin-top: auto; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.side .bottom b { color: var(--ink); }
.side .bottom a:hover { color: var(--coral); }

.wallet { margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--tint); font-size: 12px; }
.wallet .bar { height: 5px; border-radius: 5px; background: var(--line); margin-top: 8px; overflow: hidden; }
.wallet .bar i { display: block; height: 100%; background: var(--grad); border-radius: 5px; }

/* ── main ── */
main { margin-left: 236px; flex: 1; padding: 42px 48px 90px; max-width: 1180px; }
main.full { margin-left: 0; max-width: none; padding: 0; }
h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700;
  letter-spacing: -.5px; margin-bottom: 26px; }
h2 { font-size: 12px; margin: 28px 0 12px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px; }
.muted { color: var(--muted); font-size: 13.5px; }

main > * { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
main > *:nth-child(2) { animation-delay: .06s; }
main > *:nth-child(3) { animation-delay: .12s; }
main > *:nth-child(4) { animation-delay: .18s; }
main > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }

/* ── cards & stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--shadow); transition: transform .18s ease; }
.card:hover { transform: translateY(-2px); }
.card .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-top: 6px; }
.card .lbl { font-size: 11.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.1px; font-weight: 700; }

/* ── AI panel ── */
.ai-panel { border-radius: 18px; padding: 1.5px; margin: 18px 0 6px;
  background: linear-gradient(120deg, rgba(15,157,143,.55), rgba(245,166,35,.5), rgba(240,101,63,.45));
  background-size: 200% 200%; animation: shimmer 7s ease infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%;} 50% { background-position: 100% 50%;} }
.ai-inner { background: var(--card); border-radius: 16.5px; padding: 22px 26px; }
.ai-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; color: var(--teal); text-transform: uppercase;
  margin-bottom: 10px; font-weight: 600; }
.ai-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(15,157,143,.4);} 50% { box-shadow: 0 0 0 6px rgba(15,157,143,0);} }
.ai-inner p { font-size: 14.5px; line-height: 1.75; }
.ai-inner p + p { margin-top: 6px; }
.ai-inner p::before { content: "→ "; color: var(--teal); }

.dispo { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dispo .chip { display: flex; align-items: center; gap: 8px; padding: 7px 13px;
  border-radius: 20px; background: var(--tint); font-size: 12.5px; font-weight: 600; }
.dispo .chip b { font-family: var(--font-mono); color: var(--coral); }

/* ── tables ── */
table { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 13px 16px; font-size: 14px; }
th { background: var(--tint); color: var(--muted); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1.2px; }
tr + tr td { border-top: 1px solid var(--line); }
tr:hover td { background: #fdfaf4; }
td a { color: var(--coral); font-weight: 600; }
td a:hover { text-decoration: underline; }

/* ── forms ── */
form.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; max-width: 700px; box-shadow: var(--shadow); }
label { display: block; font-size: 11.5px; color: var(--muted); margin: 18px 0 7px;
  text-transform: uppercase; letter-spacing: 1.1px; font-weight: 700; }
label:first-child { margin-top: 0; }
input, select, textarea { width: 100%; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 14px;
  font-size: 14px; font-family: var(--font-body); transition: border-color .18s, box-shadow .18s; }
textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(240,101,63,.1); background: #fff; }

.btn { display: inline-block; border: none; cursor: pointer; margin-top: 20px;
  background: var(--grad); color: #fff; padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 700; font-family: var(--font-body);
  transition: transform .15s ease, box-shadow .2s ease; box-shadow: 0 4px 16px rgba(240,101,63,.25); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(240,101,63,.35); }
.btn.small { padding: 8px 15px; font-size: 13px; margin: 0; }
.btn.ghost { background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
  box-shadow: none; }
.btn.ghost:hover { border-color: var(--coral); color: var(--coral); }

/* ── badges ── */
.badge { padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: .2px; }
.badge.green { background: var(--sage); color: #3d7a35; }
.badge.red { background: var(--rose-bg); color: #c2410c; }
.badge.amber { background: #fdf3dd; color: #b07207; }
.badge.teal { background: #e0f2f0; color: var(--teal); }
.badge.grey { background: var(--tint); color: var(--muted); }

/* ── auth ── */
.auth-wrap { display: flex; align-items: center; justify-content: center;
  min-height: 100vh; width: 100%;
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(245,166,35,.12), transparent),
              radial-gradient(ellipse 50% 40% at 90% 100%, rgba(15,157,143,.08), transparent), var(--paper); }
.auth-box { width: 410px; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 40px; box-shadow: var(--shadow);
  animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
.auth-box .logo { justify-content: center; font-size: 28px; margin-bottom: 4px; }
.error { background: var(--rose-bg); color: #c2410c; padding: 11px 14px; border-radius: 11px;
  font-size: 13.5px; margin-top: 14px; }
.ok { background: var(--sage); color: #3d7a35; padding: 11px 14px; border-radius: 11px;
  font-size: 13.5px; margin-bottom: 14px; }

/* ── transcript ── */
.transcript { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; font-size: 14px; line-height: 1.8; box-shadow: var(--shadow); }
.transcript .turn { display: flex; gap: 14px; padding: 6px 0; }
.transcript .who { flex: 0 0 88px; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; padding-top: 3px; font-weight: 600; }
.transcript .who.agent { color: var(--coral); }
.transcript .who.customer { color: var(--teal); }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.topbar h1 { margin: 0; }

/* ── agent cards ── */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.agent-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; transition: transform .18s, box-shadow .2s; display: block; box-shadow: var(--shadow); }
.agent-card:hover { transform: translateY(-3px); box-shadow: 0 10px 34px rgba(35,38,47,.1); }
.agent-card .avatar { width: 48px; height: 48px; border-radius: 15px; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 21px; background: var(--grad); color: #fff; margin-bottom: 14px; }
.agent-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 2px; }
.agent-card .co { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.agent-card .meta { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.agent-card .meta b { color: var(--ink); font-weight: 600; }

/* ── voice picker ── */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voice-opt { display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 13px; cursor: pointer;
  background: var(--paper); transition: all .15s; }
.voice-opt:hover { border-color: #d9cfba; }
.voice-opt.sel { border-color: var(--coral); background: #fff;
  box-shadow: 0 0 0 4px rgba(240,101,63,.08); }
.voice-opt .vname { font-weight: 700; font-size: 14px; }
.voice-opt .vdesc { font-size: 12px; color: var(--muted); }
.voice-opt .play { margin-left: auto; width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer; background: var(--grad); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  transition: transform .15s; }
.voice-opt .play:hover { transform: scale(1.1); }

.summary-block { border-left: 3px solid var(--teal); padding: 14px 18px; margin-bottom: 8px;
  background: #f0faf8; border-radius: 0 12px 12px 0; font-size: 14.5px; line-height: 1.7; }

/* ═══ Homepage ═══ */
.home { width: 100%; }
.home nav.top { display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px; max-width: 1240px; margin: 0 auto; }
.home nav.top .links { display: flex; gap: 26px; align-items: center; font-size: 14.5px;
  font-weight: 600; color: var(--muted); }
.home nav.top .links a:hover { color: var(--ink); }

.hero { max-width: 1240px; margin: 0 auto; padding: 72px 56px 90px; text-align: center;
  position: relative; }
.hero::before { content: ""; position: absolute; inset: -80px 0 0;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(245,166,35,.14), transparent 70%);
  pointer-events: none; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 700; color: var(--coral); background: #fff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 30px; margin-bottom: 26px; box-shadow: var(--shadow); }
.hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 66px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.06; margin-bottom: 22px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; font-style: italic; }
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 34px;
  line-height: 1.65; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; }
.hero .cta-row .btn { margin: 0; padding: 15px 30px; font-size: 15.5px; }

/* equalizer strip */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px;
  height: 54px; margin: 56px auto 0; max-width: 520px; }
.eq i { flex: 1; background: var(--grad); border-radius: 4px; opacity: .8;
  animation: wave 1.4s ease-in-out infinite; }
.eq i:nth-child(odd) { animation-duration: 1.1s; }
.eq i:nth-child(3n) { animation-duration: 1.7s; }
.eq i:nth-child(1) { height: 30%; } .eq i:nth-child(2) { height: 65%; }
.eq i:nth-child(3) { height: 45%; } .eq i:nth-child(4) { height: 90%; }
.eq i:nth-child(5) { height: 55%; } .eq i:nth-child(6) { height: 100%; }
.eq i:nth-child(7) { height: 70%; } .eq i:nth-child(8) { height: 40%; }
.eq i:nth-child(9) { height: 85%; } .eq i:nth-child(10) { height: 50%; }
.eq i:nth-child(11) { height: 75%; } .eq i:nth-child(12) { height: 35%; }

.section { max-width: 1240px; margin: 0 auto; padding: 70px 56px; }
.section .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--coral); font-weight: 600; margin-bottom: 12px; }
.section h2.big { font-family: var(--font-display); font-size: 38px; font-weight: 700;
  letter-spacing: -.8px; margin: 0 0 40px; color: var(--ink); text-transform: none; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s; }
.feat:hover { transform: translateY(-4px); }
.feat .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.feat h3 { font-family: var(--font-display); font-size: 18.5px; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--tint); border-radius: 20px; }
.step::before { counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: block; margin-bottom: 10px; }
.step h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px;
  padding: 32px; text-align: center; box-shadow: var(--shadow); position: relative; }
.price.pop { border-color: var(--coral); }
.price .pop-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; letter-spacing: .5px; }
.price h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.price .amt { font-family: var(--font-display); font-size: 40px; font-weight: 700; margin: 12px 0 2px; }
.price .amt small { font-size: 15px; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; margin: 20px 0; font-size: 14px; color: var(--muted); line-height: 2.2; }
.price .btn { width: 100%; }

.home footer { border-top: 1px solid var(--line); padding: 40px 56px; text-align: center;
  color: var(--muted); font-size: 13.5px; line-height: 2; }

.reveal { opacity: 0; transform: translateY(24px); transition: all .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* mobile top bar + slide-in drawer (hidden on desktop) */
.mtop { display: none; }
.closex { display: none; }

@media (max-width: 960px) {
  .mtop {
    display: flex; position: fixed; top: 0; left: 0; right: 0; height: 58px;
    background: var(--card); border-bottom: 1px solid var(--line);
    align-items: center; gap: 14px; padding: 0 16px; z-index: 40;
  }
  .burger { font-size: 24px; cursor: pointer; padding: 4px 8px; }
  .side {
    display: flex; transform: translateX(-105%); transition: transform .25s ease;
    z-index: 50; box-shadow: 0 0 60px rgba(35,38,47,.25); width: 260px;
  }
  #mnav:checked ~ .side { transform: none; }
  .closex {
    display: block; position: absolute; top: 18px; right: 18px;
    font-size: 20px; cursor: pointer; color: var(--muted);
  }
  main { margin-left: 0; padding: 82px 18px 60px; }
  .stats, .feat-grid, .steps, .price-grid { grid-template-columns: 1fr 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .home nav.top, .hero, .section { padding-left: 22px; padding-right: 22px; }
  .home nav.top .links a:not(.btn) { display: none; }  /* keep Start free only */
  .topbar { flex-wrap: wrap; gap: 12px; }
  table { display: block; overflow-x: auto; }
}
@media (max-width: 620px) {
  .stats, .feat-grid, .steps, .price-grid { grid-template-columns: 1fr; }
}
