/* ============================================================================
   VILKAX AGENDA - landing surface
   Built on the shared role tokens (vilkax-tokens.css). No raw hex that has a
   token, so a theme change lands here for free.
   ========================================================================= */

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

/* ── hero ──────────────────────────────────────────────────────────────── */
.ag-hero {
  position: relative;
  padding: clamp(56px, 11vw, 132px) 0 clamp(40px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
/* The aurora is painted with two radial gradients rather than an image: it
   scales to any viewport, costs no request, and cannot be blocked. */
.ag-hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background:
    radial-gradient(60% 45% at 22% 18%, var(--vx-accent-glow), transparent 70%),
    radial-gradient(50% 40% at 82% 28%, rgba(76, 140, 255, 0.24), transparent 72%),
    radial-gradient(45% 35% at 55% 88%, rgba(0, 229, 184, 0.16), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  animation: ag-drift 22s ease-in-out infinite alternate;
}
@keyframes ag-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.ag-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--vx-accent-sf); border: 1px solid var(--vx-accent-ln);
  color: var(--vx-accent-ink); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.ag-h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 7.2vw, 78px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; color: var(--vx-text);
}
.ag-h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--vx-accent-br), var(--vx-mint-br) 55%, var(--vx-blue-br));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ag-sub { font-size: clamp(16px, 2.1vw, 21px); line-height: 1.55; color: var(--vx-text-muted); max-width: 62ch; }

/* ── the console: the demo IS the hero ─────────────────────────────────── */
.ag-console {
  margin-top: clamp(28px, 5vw, 46px);
  background: linear-gradient(180deg, var(--vx-surface-2), var(--vx-surface-1));
  border: 1px solid var(--vx-line-2); border-radius: 22px;
  box-shadow: var(--vx-shadow-2);
  overflow: hidden;
}
.ag-console-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--vx-line);
  background: var(--vx-surface-0);
}
.ag-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vx-mint); box-shadow: 0 0 12px var(--vx-mint); }
.ag-console-title { font-size: 13px; font-weight: 600; color: var(--vx-text-dim); letter-spacing: .04em; text-transform: uppercase; }
.ag-langsel {
  margin-left: auto; background: var(--vx-surface-3); color: var(--vx-text);
  border: 1px solid var(--vx-line-2); border-radius: 10px; padding: 7px 10px; font-size: 13px;
}

.ag-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 880px) { .ag-stage { grid-template-columns: 1.05fr 1fr; } }

.ag-say { padding: clamp(22px, 3.4vw, 34px); border-bottom: 1px solid var(--vx-line); }
@media (min-width: 880px) { .ag-say { border-bottom: 0; border-right: 1px solid var(--vx-line); } }

/* the orb */
.ag-orb-row { display: flex; align-items: center; gap: 18px; }
.ag-orb {
  position: relative; flex: none;
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid var(--vx-accent-ln);
  background: radial-gradient(circle at 34% 30%, var(--vx-accent-br), var(--vx-accent) 46%, #4a1580 100%);
  color: var(--vx-on-accent);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 0 var(--vx-accent-glow), var(--vx-shadow-1);
  transition: transform .18s ease, box-shadow .3s ease;
}
.ag-orb:hover { transform: translateY(-2px) scale(1.02); }
.ag-orb:focus-visible { outline: 3px solid var(--vx-accent-br); outline-offset: 4px; }
.ag-orb svg { width: 34px; height: 34px; }
/* Ring pulse is driven by a CSS variable the script sets from real mic
   amplitude, so the animation reflects the room rather than a fixed loop. */
.ag-orb[data-state="listening"] {
  box-shadow: 0 0 0 calc(6px + var(--ag-level, 0) * 26px) var(--vx-accent-sf), var(--vx-shadow-2);
}
.ag-orb[data-state="listening"]::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--vx-accent-ln); animation: ag-ring 1.6s ease-out infinite;
}
@keyframes ag-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.ag-orb[data-state="denied"] { background: var(--vx-surface-3); border-color: var(--vx-sev-elevated-ln); color: var(--vx-sev-elevated); }

.ag-orb-copy { min-width: 0; }
.ag-orb-copy strong { display: block; font-size: 17px; color: var(--vx-text); }
.ag-orb-copy span { display: block; font-size: 14px; color: var(--vx-text-dim); margin-top: 3px; }

.ag-input {
  width: 100%; margin-top: 18px; min-height: 92px; resize: vertical;
  background: var(--vx-surface-3); color: var(--vx-text);
  border: 1px solid var(--vx-line-2); border-radius: 14px;
  padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5;
}
.ag-input:focus { outline: none; border-color: var(--vx-accent-ln); box-shadow: 0 0 0 3px var(--vx-accent-sf); }
.ag-input::placeholder { color: var(--vx-text-faint); }

.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ag-chip {
  background: var(--vx-surface-3); border: 1px solid var(--vx-line-2); color: var(--vx-text-muted);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; transition: all .15s ease;
}
.ag-chip:hover { border-color: var(--vx-accent-ln); color: var(--vx-text); background: var(--vx-accent-sf); }

/* ── the read-back card ────────────────────────────────────────────────── */
.ag-read { padding: clamp(22px, 3.4vw, 34px); display: flex; flex-direction: column; gap: 14px; min-height: 320px; }

.ag-speak {
  font-size: clamp(17px, 2.3vw, 22px); line-height: 1.45; color: var(--vx-text); font-weight: 600;
}
.ag-speak[data-tone="clarify"] { color: var(--vx-sev-elevated); font-weight: 500; }
.ag-idle { color: var(--vx-text-dim); font-weight: 400; }

.ag-card {
  background: var(--vx-surface-0); border: 1px solid var(--vx-line-2); border-radius: 16px; padding: 16px;
}
.ag-card-title { font-size: 19px; font-weight: 700; color: var(--vx-text); margin-bottom: 10px; word-break: break-word; }
.ag-facts { display: grid; gap: 8px; }
.ag-fact { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.ag-fact b { flex: none; width: 84px; color: var(--vx-text-dim); font-weight: 500; }
.ag-fact span { color: var(--vx-text); }

/* Evidence: the user's own words, underlined where each field came from.
   This is the honesty device - it shows WHY we read the sentence that way. */
.ag-evidence { font-size: 13px; line-height: 1.9; color: var(--vx-text-dim); word-break: break-word; }
.ag-ev { border-radius: 5px; padding: 2px 4px; color: var(--vx-text); }
.ag-ev[data-f="date"] { background: var(--vx-blue-sf); box-shadow: inset 0 -2px 0 var(--vx-blue); }
.ag-ev[data-f="time"] { background: var(--vx-mint-sf); box-shadow: inset 0 -2px 0 var(--vx-mint); }
.ag-ev[data-f="reminder"] { background: var(--vx-accent-sf); box-shadow: inset 0 -2px 0 var(--vx-accent); }
.ag-ev[data-f="recurrence"] { background: var(--vx-sev-elevated-sf); box-shadow: inset 0 -2px 0 var(--vx-sev-elevated); }
.ag-ev[data-f="intent"], .ag-ev[data-f="duration"] { background: var(--vx-surface-3); }

.ag-conf { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--vx-text-dim); }
.ag-meter { flex: 1; height: 5px; border-radius: 99px; background: var(--vx-surface-3); overflow: hidden; }
.ag-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--vx-sev-elevated), var(--vx-mint)); transition: width .3s ease; }

.ag-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.ag-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border-radius: 12px; padding: 11px 16px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--vx-line-2); background: var(--vx-surface-3); color: var(--vx-text);
  transition: all .15s ease; text-decoration: none;
}
.ag-btn:hover { border-color: var(--vx-accent-ln); background: var(--vx-accent-sf); }
.ag-btn--primary { background: var(--vx-accent); border-color: var(--vx-accent); color: var(--vx-on-accent); }
.ag-btn--primary:hover { background: var(--vx-accent-br); border-color: var(--vx-accent-br); }
.ag-btn--ghost { background: transparent; }
.ag-btn[disabled] { opacity: .45; cursor: not-allowed; }

.ag-adds { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-add {
  font-size: 13px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--vx-line-2); background: var(--vx-surface-3); color: var(--vx-text-muted);
  text-decoration: none; transition: all .15s ease;
}
.ag-add:hover { color: var(--vx-text); border-color: var(--vx-mint-ln); background: var(--vx-mint-sf); }

/* ── generic sections ──────────────────────────────────────────────────── */
.ag-section { padding: clamp(52px, 8vw, 96px) 0; }
.ag-section--tint { background: var(--vx-surface-0); border-top: 1px solid var(--vx-line); border-bottom: 1px solid var(--vx-line); }
.ag-h2 { font-size: clamp(27px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; color: var(--vx-text); margin: 0 0 12px; }
.ag-lead { font-size: clamp(15px, 1.9vw, 18px); color: var(--vx-text-muted); max-width: 64ch; line-height: 1.6; margin: 0 0 32px; }

.ag-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.ag-tile {
  background: var(--vx-surface-1); border: 1px solid var(--vx-line); border-radius: 16px; padding: 22px;
  transition: transform .18s ease, border-color .18s ease;
}
.ag-tile:hover { transform: translateY(-3px); border-color: var(--vx-accent-ln); }
.ag-tile h3 { font-size: 17px; font-weight: 700; color: var(--vx-text); margin: 12px 0 8px; }
.ag-tile p { font-size: 14.5px; line-height: 1.6; color: var(--vx-text-muted); margin: 0; }
.ag-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--vx-accent-sf); border: 1px solid var(--vx-accent-ln); color: var(--vx-accent-ink);
}
.ag-ico svg { width: 21px; height: 21px; }

/* two-column consumer / business split */
.ag-split { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ag-panel { border-radius: 20px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--vx-line-2); background: var(--vx-surface-1); }
.ag-panel--biz { background: linear-gradient(180deg, var(--vx-blue-sf), var(--vx-surface-1) 60%); border-color: var(--vx-blue-ln); }
.ag-panel h3 { margin: 0 0 6px; font-size: 22px; font-weight: 750; color: var(--vx-text); }
.ag-panel > p { color: var(--vx-text-muted); margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ag-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--vx-text-muted); line-height: 1.5; }
.ag-list li::before { content: "→"; color: var(--vx-mint); flex: none; }

/* language marquee */
.ag-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-lang {
  padding: 8px 13px; border-radius: 10px; font-size: 13.5px;
  background: var(--vx-surface-1); border: 1px solid var(--vx-line); color: var(--vx-text-muted);
}

/* CTA */
.ag-cta {
  text-align: center; border-radius: 24px; padding: clamp(34px, 6vw, 66px) 24px;
  background: linear-gradient(140deg, var(--vx-accent-sf), var(--vx-surface-1) 55%, var(--vx-blue-sf));
  border: 1px solid var(--vx-accent-ln);
}
.ag-cta .ag-actions { justify-content: center; }

.ag-note { font-size: 12.5px; color: var(--vx-text-faint); margin-top: 14px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .ag-hero::before, .ag-orb[data-state="listening"]::after { animation: none; }
  .ag-tile:hover, .ag-orb:hover { transform: none; }
}
