/* ListenerLoop marketing site. Navy and teal from the logo. Fonts are bundled (SIL Open Font License). */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #0b2236;
  --navy: #123a5c;
  --blue: #21649e;
  --teal: #31aaa5;
  --teal-deep: #1b7f7b;
  --mist: #eaf4f5;
  --paper: #f7fafb;
  --text: #12293b;
  --muted: #4a6275;
  --muted-dark: #a9c1d2;
  --line: #d6e3e8;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; font-weight: 750; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-block; font: 650 1rem/1 var(--body); padding: 14px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { background: #4cc0bb; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--navy); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-bottom: 150px; background-image: radial-gradient(900px 520px at 88% 8%, rgba(49, 170, 165, 0.22), transparent 62%), radial-gradient(700px 480px at -5% 100%, rgba(33, 100, 158, 0.35), transparent 60%); }
.nav { display: flex; align-items: center; gap: 28px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -0.015em; }
.nav-links { list-style: none; display: flex; gap: 26px; margin: 0 auto 0 12px; padding: 0; }
.nav-links a { color: var(--muted-dark); text-decoration: none; font-weight: 550; }
.nav-links a:hover { color: #fff; }
.nav .btn { padding: 11px 18px; }
.hero-grid { display: grid; gap: 48px; align-items: center; padding: 40px 0 0; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); line-height: 1.01; font-weight: 800; letter-spacing: -0.04em; max-width: 12ch; }
.lede { font-size: 1.25rem; line-height: 1.55; color: #d3e3ee; max-width: 33rem; margin: 24px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--muted-dark); font-size: 0.98rem; margin: 22px 0 0; }
.stage { margin: 0; }
.stage figcaption { color: var(--muted-dark); font-size: 0.95rem; margin-top: 16px; max-width: 30rem; }
.browser { background: #fff; color: var(--text); border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden; }
.browser-bar { background: #e9eff3; padding: 11px 16px; border-bottom: 1px solid #d5dfe5; }
.url { display: block; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 0.86rem; color: #5a7183; max-width: 22rem; }
.page { padding: 26px 28px 30px; }
.page-show { color: var(--teal-deep); font-weight: 700; margin: 0 0 6px; font-size: 0.95rem; }
.page-title { font-size: 1.55rem; line-height: 1.15; font-weight: 750; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 8px; }
.page-text { color: var(--muted); font-size: 0.98rem; line-height: 1.5; margin-bottom: 14px; }
.page-player { display: flex; align-items: center; gap: 12px; background: #eef3f6; border-radius: 999px; padding: 10px 14px; margin-bottom: 22px; }
.page-player .play { width: 0; height: 0; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.page-player .bar { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) 0 34%, #c6d4dc 34% 100%); }
.page-ask { font-weight: 650; color: var(--ink); margin: 0 0 4px; }
.demo-slot { min-height: 150px; }
.demo-note { color: var(--muted); font-size: 0.95rem; background: var(--mist); border-radius: 10px; padding: 12px 14px; }

/* The one repeated motif: a level meter in the logo's blue-to-teal, rising once on load */
.eq { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; display: flex; align-items: flex-end; gap: 4px; padding: 0 4px; }
.eq i { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Light sections */
.how, .features, .faq { padding: 104px 0; }
.how { background: var(--paper); }
.how-grid { display: grid; gap: 48px; }
.how-head p { color: var(--muted); font-size: 1.15rem; margin-top: 18px; max-width: 26rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 0 0 44px 76px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 750 1.3rem/1 var(--display); z-index: 1; }
.steps li::after { content: ''; position: absolute; left: 23px; top: 50px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue), var(--teal)); border-radius: 1px; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 38rem; }
.code { margin: 14px 0 0; padding: 16px 18px; background: var(--ink); color: #d7ecf5; border-radius: 12px; font: 0.9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.code code { font: inherit; }

.features { background: #fff; border-top: 1px solid var(--line); }
.features-head { max-width: 40rem; }
.features-head p { color: var(--muted); font-size: 1.15rem; margin-top: 18px; }
.shots { position: relative; margin: 56px 0 64px; padding-bottom: 60px; }
.shot { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(11, 34, 54, 0.45); background: #fff; }
.shot-main { width: 82%; }
.shot-side { position: absolute; right: 0; bottom: 0; width: 48%; }
.feature-list { display: grid; gap: 30px 56px; margin: 0; }
.feature-list dt { font: 700 1.15rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; padding-top: 18px; border-top: 2px solid var(--teal); }
.feature-list dd { margin: 0; color: var(--muted); }

/* Run it your way */
.run { background: var(--navy); color: #fff; padding: 104px 0; background-image: radial-gradient(800px 420px at 100% 0, rgba(49, 170, 165, 0.2), transparent 60%); }
.run-intro { color: #cfe0ec; font-size: 1.2rem; margin: 18px 0 48px; max-width: 36rem; }
.run-grid { display: grid; gap: 24px; }
.run article { border-radius: 20px; padding: 34px; }
.run-self { background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.1); }
.run-hosted { background: var(--mist); color: var(--text); }
.run article > p { color: #c3d6e3; }
.run .run-hosted > p { color: var(--muted); }
.run h3 { font-size: 1.7rem; margin-bottom: 10px; }
.ticks { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; color: #c3d6e3; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.ticks strong { color: #fff; font-weight: 650; }
.code-dark { background: #06141f; border: 1px solid rgba(255, 255, 255, 0.08); margin: 0 0 22px; }
.plain { margin: 22px 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); }
.run .run-hosted .price { color: var(--ink); }
.price { font: 750 1.5rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); margin: 26px 0 22px; }

/* Forms */
.join { background: var(--mist); padding: 104px 0; }
.join-head { max-width: 40rem; margin-bottom: 44px; }
.join-head p { color: var(--muted); font-size: 1.15rem; margin-top: 18px; }
.join-grid { display: grid; gap: 24px; align-items: start; }
.form { background: #fff; border-radius: 20px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 20px 50px -30px rgba(11, 34, 54, 0.4); }
.form h3 { margin-bottom: 2px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input[type='text'], .form input[type='email'], .form input[type='url'], .form select, .form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--paper); border: 1px solid #c3d3db; border-radius: 10px; padding: 11px 13px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 100, 158, 0.25); }
.form .two { display: grid; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form [aria-invalid='true'] { border-color: #b42318; }
.status { margin: 0; min-height: 1.5em; font-weight: 600; }
.status.ok { color: var(--teal-deep); }
.status.err { color: #b42318; }
.form .btn { justify-self: start; }
.form.done > :not(.status):not(h3) { display: none; }

/* FAQ */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 36px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font: 700 1.15rem/1.35 var(--display); letter-spacing: -0.01em; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 500 1.5rem/1 var(--body); color: var(--teal-deep); flex: none; }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { color: var(--muted); margin: 12px 0 0; max-width: 42rem; }

.footer { background: var(--ink); color: #fff; padding: 56px 0; }
.foot { display: grid; gap: 28px; }
.foot-brand p { color: var(--muted-dark); margin: 14px 0 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px 28px; flex-wrap: wrap; align-content: flex-start; }
.foot-links a { color: var(--muted-dark); text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }

/* Privacy and thank-you pages */
.doc { background: var(--paper); }
.doc-top { background: var(--ink); padding: 0 0 8px; }
.doc-body { max-width: 44rem; margin: 0 auto; padding: 64px 24px 96px; }
.doc-body h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.doc-body h2 { font-size: 1.5rem; margin: 36px 0 10px; letter-spacing: -0.02em; color: var(--ink); }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body ul { padding-left: 22px; }

@media (min-width: 760px) {
  .join-grid { grid-template-columns: 5fr 7fr; }
  .form .two { grid-template-columns: 1fr 1fr; }
  .run-grid { grid-template-columns: 7fr 5fr; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 4fr 8fr; }
  .foot { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1.02fr; gap: 64px; }
  .how-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .how-head { position: sticky; top: 40px; align-self: start; }
  .feature-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 759px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero { padding-bottom: 110px; }
  .eq { height: 80px; }
  .how, .features, .faq, .join, .run { padding: 72px 0; }
  .shot-main { width: 100%; }
  .shot-side { position: static; width: 88%; margin: -28px 0 0 auto; }
  .shots { padding-bottom: 0; }
  .steps li { padding-left: 64px; }
  .run article { padding: 26px; }
  .form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq i { animation: none; }
  .btn { transition: none; }
}

/* Keep long code lines from widening grid columns on narrow screens */
.hero-grid > *, .how-grid > *, .run-grid > *, .join-grid > *, .faq-grid > *, .foot > * { min-width: 0; }
.nav .btn { white-space: nowrap; }
