/* ==========================================================================
   voice-ai-agent.html — page-specific theme override.

   Loaded AFTER style.css, only on this one page. Overrides the shared
   :root variables (color/font) so this page gets its own look without
   touching the "Horizon AI" 6-page site that also uses style.css.

   CoolDock-inspired premium light theme (Sep 2026 revision 3)
   — see docs/superpowers/specs/2026-09-17-cooldock-redesign-design.md
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@600;700;800&display=swap');

:root {
  --bg: #F7F7F4;
  --bg-raised: #FAFAF8;
  --surface: #FFFFFF;
  --surface-hover: #FAFAF9;

  --text-high: #111111;
  --text-mid: #656A73;
  --text-low: #8A8F97;

  --accent: #2563EB;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-cyan: #0EA5E9;
  --accent-mint: #10B981;

  /* Legacy aliases: several shared style.css component rules (accent text
     spans, icon colors) reference these var names. Point them all at the
     single restrained accent color rather than three different hues. */
  --cyan: #2563EB;
  --violet: #2563EB;
  --magenta: #2563EB;
  --aurora: #2563EB;
  --aurora-soft: rgba(37, 99, 235, 0.08);
  --link: #2563EB;
  --violet-light: #2563EB;

  --border: rgba(17, 17, 17, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border-color: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(20px);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);

  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 14px;
}

/* ---- glass utility ----
   Reserved for floating nav, device-mockup frames, floating hero cards,
   and the onboarding sidebar — never for main content surfaces. ---- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* ---- typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: -0.02em;
  text-shadow: none;
}
h1 { font-weight: 800; }
h2, h3, h4 { font-weight: 700; }
h2 { font-style: normal; }
.hero h1 { font-style: normal; }
.step-num { font-style: normal; }
.accent, .accent-cyan, .accent-magenta, .accent-violet { font-style: normal; font-weight: 700; }

/* ---- section alternation ---- */
#pricing { background: var(--bg-raised); }

/* ---- buttons ---- */
.btn { border-radius: 10px; }
.btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35); }

.pill { border-color: var(--border); color: var(--text-mid); }
.pill .dot { background: var(--accent-mint); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

/* ---- icon badges (proof/features cards) ---- */
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  margin-bottom: 14px;
}
.icon-badge svg { width: 20px; height: 20px; }

/* ---- floating glass navigation ----
   Transparent and full-width at the very top of the hero (no visual
   weight competing with the hero copy); once scrolled, becomes a
   centered floating glass pill with a soft border and shadow. ---- */
.nav-wrap { top: 20px; padding: 0 20px; }
.nav {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 999px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav-wrap.scrolled .nav {
  background: var(--glass-bg);
  border-color: var(--glass-border-color);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 12px 22px;
}
@media (max-width: 860px) {
  .nav-wrap { top: 12px; padding: 0 16px; }
  .nav { padding: 12px 18px; }
  .nav-wrap.scrolled .nav { padding: 10px 16px; }
  .nav-links { top: 64px; }
}

/* ---- hero copy ---- */
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.hero-support {
  font-size: 13.5px;
  color: var(--text-low);
  margin-top: 22px;
}
.hero-inner { max-width: 640px; }

/* ---- keep the header CTA reachable at very small widths ----
   style.css (shared with unrelated pages) hides .nav .btn-primary
   entirely below 400px. On this page that button is the only
   persistent link to the pricing section in the header, so bring it
   back here, sized to fit. ---- */
@media (max-width: 400px) {
  .nav .btn-primary { display: inline-flex; padding: 9px 12px; font-size: 12px; }
}

/* ---- FAQ default-open backstop ----
   The first FAQ item's inline style="max-height:200px" on .faq-a is
   the only thing keeping its answer visible on load. This rule is a
   safe fallback ceiling in case that inline value is ever removed or
   the answer text grows past it. ---- */
.faq-item.open .faq-a { max-height: 600px; }

/* ---- pricing tiers ---- */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .pricing-tiers { grid-template-columns: 1fr; max-width: 480px; }
}

.pricing-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
.pricing-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), var(--surface) 40%);
  box-shadow: 0 4px 16px -6px rgba(37, 99, 235, 0.14);
}
.pricing-tier-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--cyan);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.pricing-tier-name { font-family: var(--font-mono); font-size: 13px; color: var(--text-mid); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.pricing-tier-price { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin-bottom: 4px; color: var(--text-high); }
.pricing-tier-price span { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--text-low); }
.pricing-tier-minutes { font-size: 13.5px; color: var(--text-mid); margin-bottom: 22px; }
.pricing-tier-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex-grow: 1; padding: 0; }
.pricing-tier-features li { display: flex; gap: 8px; font-size: 14px; color: var(--text-mid); }
.pricing-tier-features li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--cyan); margin-top: 2px; }
.pricing-tier-overage { font-size: 12.5px; color: var(--text-low); margin-bottom: 18px; }

.pricing-custom {
  max-width: 1080px;
  margin: 28px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pricing-custom-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 0; list-style: none; }
.pricing-custom-features span { font-size: 12.5px; color: var(--text-mid); background: rgba(17,18,20,0.04); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 640px) {
  .pricing-custom { flex-direction: column; align-items: flex-start; }
}

/* ---- hero visual: layout + background atmosphere ---- */
.hero-visual {
  position: relative;
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 20px 60px;
}
.hero-bg-shapes {
  position: absolute;
  inset: -80px 0 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-shape-blue { width: 420px; height: 420px; top: -60px; left: 4%; background: rgba(37, 99, 235, 0.16); }
.bg-shape-cyan { width: 360px; height: 360px; top: 40px; right: 8%; background: rgba(14, 165, 233, 0.14); }
.bg-shape-mint { width: 320px; height: 320px; bottom: -60px; left: 32%; background: rgba(16, 185, 129, 0.10); }

.device-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

/* ---- Mac dashboard mockup ---- */
.mac-mockup {
  width: 100%;
  max-width: 620px;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(17, 17, 17, 0.18);
  overflow: hidden;
}
.mac-sidebar {
  width: 150px;
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mac-sidebar-item {
  font-size: 12.5px;
  color: var(--text-mid);
  padding: 7px 10px;
  border-radius: 8px;
}
.mac-sidebar-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mac-main { flex: 1; min-width: 0; padding: 22px 24px; }
.mac-main-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-low); margin-bottom: 12px; }
.mac-conversation { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.mac-bubble { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.mac-bubble-name { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; color: var(--text-low); }
.mac-bubble-caller { background: var(--bg-raised); color: var(--text-high); align-self: flex-start; }
.mac-bubble-ai { background: var(--accent-soft); color: var(--text-high); align-self: flex-end; }
.mac-bubble-ai .mac-bubble-name { color: var(--accent); }
.mac-workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mac-workflow-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mac-workflow-card.visible { opacity: 1; transform: none; }
.mac-workflow-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-low); margin-bottom: 3px; }
.mac-workflow-value { font-size: 12.5px; font-weight: 600; color: var(--text-high); }
.mac-workflow-value-confirmed { color: var(--accent-mint); }

@media (max-width: 640px) {
  .hero-visual { margin-top: 40px; padding-bottom: 40px; }
  .mac-sidebar { display: none; }
}

/* ---- iPhone mockup ---- */
.iphone-mockup {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 30px 80px -30px rgba(17, 17, 17, 0.18);
  padding: 20px 16px;
}
.iphone-header { text-align: center; margin-bottom: 4px; }
.iphone-brand { font-size: 13px; font-weight: 700; color: var(--text-high); }
.iphone-status { font-size: 11px; color: var(--text-low); }
.iphone-call-time { text-align: center; font-size: 12px; color: var(--text-mid); margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.iphone-waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 24px; margin-bottom: 14px; }
.iphone-waveform span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: iphone-wave 1s ease-in-out infinite alternate;
}
.iphone-waveform span:nth-child(1) { animation-delay: 0s; }
.iphone-waveform span:nth-child(2) { animation-delay: 0.1s; }
.iphone-waveform span:nth-child(3) { animation-delay: 0.2s; }
.iphone-waveform span:nth-child(4) { animation-delay: 0.3s; }
.iphone-waveform span:nth-child(5) { animation-delay: 0.2s; }
.iphone-waveform span:nth-child(6) { animation-delay: 0.1s; }
.iphone-waveform span:nth-child(7) { animation-delay: 0s; }
@keyframes iphone-wave { from { height: 6px; } to { height: 22px; } }

.iphone-transcript { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.iphone-bubble { padding: 8px 11px; border-radius: 10px; font-size: 11.5px; line-height: 1.35; max-width: 92%; }
.iphone-bubble-customer { background: var(--bg-raised); align-self: flex-start; }
.iphone-bubble-ai { background: var(--accent-soft); align-self: flex-end; color: var(--text-high); }

.iphone-booked {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.iphone-booked.visible { opacity: 1; transform: none; }
.iphone-booked-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-mint); margin-bottom: 2px; }
.iphone-booked-value { font-size: 12.5px; font-weight: 600; color: var(--text-high); }

.iphone-controls { display: flex; justify-content: center; gap: 8px; }
.iphone-control {
  font-size: 10.5px;
  color: var(--text-mid);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}
.iphone-control-end { background: #FEE2E2; color: #DC2626; border-color: rgba(220, 38, 38, 0.2); }

/* ---- device-stage responsive layout ---- */
@media (max-width: 900px) {
  .device-stage { flex-direction: column; gap: 0; }
  .iphone-mockup { margin-top: -40px; margin-left: auto; margin-right: 24px; }
}
@media (max-width: 640px) {
  .device-stage { align-items: center; }
  .iphone-mockup { margin: 20px auto 0; }
}

/* ---- floating hero cards ---- */
.hero-floating-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floating-card {
  position: absolute;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 150px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.floating-card.visible { opacity: 1; transform: none; }
.floating-card.visible { animation: floating-drift 5s ease-in-out infinite alternate; }
.floating-card-title { font-size: 12px; font-weight: 600; color: var(--text-high); }
.floating-card-sub { font-size: 11px; color: var(--text-mid); margin-top: 1px; }

.floating-card-1 { top: 4%; left: -2%; animation-delay: 0s; }
.floating-card-2 { top: 8%; right: -4%; animation-delay: 0.6s; }
.floating-card-3 { bottom: 14%; left: -4%; animation-delay: 1.2s; }
.floating-card-4 { bottom: 4%; right: 0; animation-delay: 0.3s; }

@keyframes floating-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@media (max-width: 900px) {
  .floating-card-2, .floating-card-3 { display: none; }
}
@media (max-width: 640px) {
  .hero-floating-cards { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card.visible { animation: none; }
  .iphone-waveform span { animation: none; height: 14px; }
}

/* ---- how-it-works journey ---- */
.journey { display: flex; align-items: flex-start; gap: 0; max-width: 1000px; margin: 0 auto; }
.journey-node { flex: 1; min-width: 0; text-align: left; }
.journey-node-ui {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.journey-node-label { font-size: 12px; font-weight: 600; color: var(--text-high); }
.journey-node-detail { font-size: 12px; color: var(--accent); margin-top: 2px; }
.journey-node h3 { font-size: 17px; margin-bottom: 6px; }
.journey-node p { font-size: 14px; color: var(--text-mid); }
.journey-connector { width: 40px; flex-shrink: 0; height: 1px; background: var(--border); margin-top: 24px; }

@media (max-width: 860px) {
  .journey { flex-direction: column; gap: 28px; }
  .journey-connector { width: 1px; height: 28px; margin: 0 0 0 24px; }
}

/* ---- feature storytelling ---- */
.feature-story {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 0;
}
.feature-story-reverse { flex-direction: row-reverse; }
.feature-story-copy { flex: 1; min-width: 0; }
.feature-story-copy h3 { font-size: 28px; margin: 8px 0 12px; }
.feature-story-copy p { font-size: 15px; color: var(--text-mid); max-width: 420px; }
.feature-story-ui { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-ui {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.mini-ui-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-low); margin-bottom: 4px; }
.mini-ui-value { font-size: 14px; font-weight: 600; color: var(--text-high); }
.mini-ui-value-confirmed { color: var(--accent-mint); }

@media (max-width: 860px) {
  .feature-story, .feature-story-reverse { flex-direction: column; gap: 24px; padding: 40px 0; }
}

/* ---- proof section ---- */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.proof-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.proof-card h4 { font-size: 15px; margin-bottom: 6px; }
.proof-card p { font-size: 13.5px; color: var(--text-mid); }

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ---- CTA band ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

/* ---- card hover microinteractions ---- */
.proof-card, .mini-ui, .journey-node-ui, .pricing-tier, .mac-mockup, .iphone-mockup {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.proof-card:hover, .mini-ui:hover, .journey-node-ui:hover, .pricing-tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(17, 17, 17, 0.14);
}
