/* Audibounce site. Palette from the app icon; one orchestrated moment in the hero. */
:root {
  --indigo: #4638cc;
  --ocean: #2166d1;
  --teal: #0aa8b3;
  --gold: #ffc244;
  --ink: #16173a;
  --paper: #f5f6fb;
  --muted: #5b5e7e;
  --line: #dcdff0;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 0.18em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, var(--indigo) 0%, var(--ocean) 48%, var(--teal) 100%);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
/* A menu bar across the top: the app lives in one. */
.menubar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.25rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(20, 22, 60, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 0.875rem/1 var(--body);
}
.menubar .brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; }
.menubar .brand img { width: 1.25rem; height: 1.25rem; border-radius: 0.3rem; }
.menubar nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; }
.menubar nav a { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 500; }
.menubar nav a:hover { color: #fff; }
.ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem 0.2rem 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-variant-numeric: tabular-nums;
}
.ring svg { width: 1.2rem; height: 1.2rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) 0;
}
.hero h1 {
  font: 700 clamp(2.6rem, 6.2vw, 4.75rem)/0.98 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 12ch;
  font-variation-settings: "opsz" 96;
}
.hero .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: var(--measure);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
}
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(18, 16, 80, 0.25);
}
.button[aria-disabled="true"] { cursor: default; }
.price { color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.price strong { font: 700 1.25rem/1 var(--display); color: #fff; }
.made {
  margin: 2.25rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  max-width: var(--measure);
}

/* The popover hangs from the menu bar ring. */
.stage { position: relative; width: min(24rem, 86vw); margin-top: -1rem; }
.stage .popover {
  width: 100%;
  border-radius: 1.1rem;
  box-shadow: 0 40px 80px rgba(14, 12, 70, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.ball {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d9, var(--gold) 45%, #ee8c24);
  box-shadow: 0 0 22px rgba(255, 194, 68, 0.7);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ball { animation: bounce 1.1s cubic-bezier(0.3, 0.6, 0.4, 1) 0.2s both; }
  .stage .popover { animation: drop 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.05) 1.05s both; }
  @keyframes bounce {
    0% { opacity: 0; transform: translate(-22rem, 26rem) scale(0.8); }
    15% { opacity: 1; }
    55% { transform: translate(-9rem, 4rem); }
    80% { opacity: 1; transform: translate(-1.2rem, -3.6rem) scale(1); }
    100% { opacity: 0; transform: translate(0, -3.2rem) scale(0.4); }
  }
  @keyframes drop {
    from { opacity: 0; transform: translateY(-1.5rem) scale(0.97); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Features ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .copy { order: 2; }
.feature h2 {
  font: 700 clamp(1.9rem, 3.4vw, 2.75rem)/1.05 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}
.feature p { margin: 0 0 1rem; max-width: var(--measure); color: #2c2e52; }
.feature .shot {
  border-radius: 1rem;
  box-shadow: 0 30px 60px rgba(22, 23, 58, 0.18), 0 0 0 1px rgba(22, 23, 58, 0.06);
}
.feature.solo { grid-template-columns: minmax(0, 1fr); }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.widgets img { filter: drop-shadow(0 18px 30px rgba(22, 23, 58, 0.2)); }
.widgets .stack { display: grid; gap: 1rem; }
.widgets .stack img:last-child { width: 50%; }

.signin {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.signin li { padding-left: 1.6rem; position: relative; }
.signin li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 194, 68, 0.25);
}

/* Sync: the only diagram, because it's the one thing screenshots can't show. */
.timeline { display: grid; gap: 0.85rem; margin: 0; }
.timeline div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.timeline dt { font: 600 0.95rem/1.3 var(--display); color: var(--indigo); }
.timeline dd { margin: 0; color: #2c2e52; }

/* ---------- Requirements & footer ---------- */
.needs {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem);
}
.needs h2 { font: 700 1.6rem/1.1 var(--display); margin: 0 0 1rem; letter-spacing: -0.02em; }
.needs dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 2rem; margin: 0; max-width: 44rem; }
.needs dt { font-weight: 600; }
.needs dd { margin: 0; color: #2c2e52; }

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  font-size: 0.95rem;
}
footer .wrap { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
footer a { color: #fff; }
footer .small { margin-left: auto; color: rgba(255, 255, 255, 0.55); }

/* ---------- Document pages (privacy, support) ---------- */
.doc-head {
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--ocean) 60%, var(--teal));
}
.doc-head .title { max-width: 44rem; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 2.5rem) 2.5rem; }
.doc-head h1 { font: 700 clamp(2.2rem, 5vw, 3.25rem)/1.02 var(--display); letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.doc-head p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.doc { max-width: 44rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.doc h2 { font: 700 1.45rem/1.2 var(--display); letter-spacing: -0.015em; margin: 2.25rem 0 0.6rem; }
.doc h3 { font: 600 1.1rem/1.35 var(--display); margin: 1.6rem 0 0.35rem; }
.doc p, .doc li { color: #2c2e52; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc code { background: #e8eaf6; padding: 0.1em 0.35em; border-radius: 0.3em; font-size: 0.92em; }
.doc .summary {
  font-size: 1.15rem;
  color: var(--ink);
  padding: 1rem 1.2rem;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 0 0.6rem 0.6rem 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 52rem) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .stage { margin: 0 auto; }
  .menubar nav a.optional { display: none; }
  .needs dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .needs dd { margin-bottom: 0.6rem; }
  footer .small { margin-left: 0; }
}
