* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.faq-item:hover h3 {
  color: var(--accent);
}

/* Layout */
.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
}

.logo svg {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: var(--label-size);
  color: var(--text-muted);
  list-style: none;
}

/* Sections */
section {
  padding: var(--gap-section) 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: 160px;
}

.dim {
  opacity: 0.4;
}

.hero h1 {
  font-family: "Geist Pixel Grid", var(--font);
  font-size: 50px;
  font-weight: 100;
  line-height: var(--heading-leading);
  letter-spacing: var(--heading-tracking);
  max-width: 480px;
  line-height: 0.94;
}

.hero .subtitle {
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--heading-leading);
  color: var(--text-muted);
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Baseline rule — a full-bleed line at the exact bottom of the text's line box */
.ruled {
  display: block;
  border-bottom: 1px dashed var(--border);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* CTA */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-element);
  align-items: center;
  margin-top: var(--sp-4);
  margin-bottom: var(--gap-element);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: var(--btn-h);
  padding: 0 var(--sp-3);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s,
    filter 0.15s;
}

.btn-primary {
  background: var(--text);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--text);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-muted);
}
.btn-secondary:hover {
  background: #2e2e2e;
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover {
  filter: brightness(1.15);
}

.cta-note {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  color: var(--text-muted);
}

.demo-video {
  margin-top: var(--gap-section);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.demo-video img,
.demo-video video {
  display: block;
  width: 100%;
  height: auto;
}

#audio-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(#audio-bars) {
  position: relative;
  z-index: 1;
}

/* Feature */
.feature {
  max-width: var(--col-w);
}

.feature-icon {
  margin-bottom: var(--gap-element);
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature h2 {
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  line-height: var(--heading-leading);
  letter-spacing: var(--heading-tracking);
}

.feature p {
  margin-top: var(--gap-element);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-leading);
  color: var(--text-muted);
}

.feature-note {
  display: block;
  margin-top: var(--gap-element);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  color: var(--text-muted);
  opacity: 0.6;
}

/* FAQ */
.faq-label {
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  color: var(--text-muted);
  letter-spacing: var(--heading-tracking);
  margin-bottom: var(--gap-block);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-element) 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  line-height: var(--heading-leading);
  letter-spacing: var(--heading-tracking);
}

.faq-item .icon {
  flex-shrink: 0;
  width: var(--icon-lg);
  height: var(--icon-lg);
  position: relative;
  color: var(--text-muted);
}

.faq-item .icon::before,
.faq-item .icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.faq-item .icon::before {
  width: 14px;
  height: 1px;
}

.faq-item .icon::after {
  width: 1px;
  height: 14px;
}

.faq-item[open] .icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item p {
  padding: 0 0 var(--gap-element);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-leading);
  color: var(--text-muted);
  max-width: var(--col-w);
}

/* Pricing */
.pricing-label {
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  color: var(--text-muted);
  letter-spacing: var(--heading-tracking);
}

.pricing-amount {
  margin-top: var(--gap-block);
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
}

.pricing-amount span {
  color: var(--text-muted);
}

.pricing-contrast {
  margin-top: var(--gap-block);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  color: var(--text-muted);
}

/* Footer */
footer {
  position: relative;
  padding-bottom: 120px;
  padding-top: 40px;
}

#audio-bars-footer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

footer > *:not(#audio-bars-footer) {
  position: relative;
  z-index: 1;
}

footer nav {
  padding: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}
