/* AudioBottle — shared stylesheet for the static site (Story 11.5 AC1).
   HTML/CSS only: no JS, no build step. All three pages link this file. */

:root {
  color-scheme: dark;
  --bg: #101315;
  --bg-raised: #181c1f;
  --text: #e8e6e1;
  --text-dim: #9aa0a6;
  --accent: #4fb286;
  --accent-dim: #35745a;
  --border: #2a2f33;
  --max-width: 56rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- layout ---- */

header,
main,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.375rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
}

header nav a {
  margin-left: 0;
}

main {
  padding-bottom: 4rem;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ---- header / nav ---- */

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9375rem;
}

nav a:hover,
footer a:hover {
  color: var(--text);
}

/* ---- type ---- */

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  color: var(--text);
}

.lede {
  font-size: 1.1875rem;
  color: var(--text-dim);
  max-width: 42rem;
}

a {
  color: var(--accent);
}

code {
  font: 0.875em/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ---- hero ---- */

.hero {
  padding-top: 2rem;
  text-align: center;
}

.hero-icon {
  display: block;
  margin: 1.5rem auto 0;
  width: 120px;
  height: 120px;
}

.hero h1 {
  margin-top: 1.25rem;
}

.hero .lede {
  margin: 0 auto 2rem;
}

.hero-shot {
  margin: 2.5rem auto 0;
  max-width: 44rem;
}

.hero-shot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

/* ---- CTA ---- */

.cta {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid var(--accent);
  cursor: default;
}

.cta--soon {
  opacity: 0.7;
}

.cta-note {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ---- why / pitch section ---- */

.why {
  margin-top: 4.5rem;
}

.why > h2 {
  text-align: center;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.why-grid section {
  border-top: 2px solid var(--accent-dim);
  padding-top: 1rem;
}

.why-grid h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.why-grid p {
  margin: 0;
  color: var(--text-dim);
}

/* ---- benchmark figure (bar comparison, palette validated for dark surface) ---- */

.bench {
  margin: 3.5rem 0 0;
}

.bench-headline {
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 1.75rem;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2rem 3rem;
}

.bench-panel h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.bench-hint {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8125rem;
  margin-left: 0.5rem;
}

.bench-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr 4.25rem;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.bench-name {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.bench-scale {
  display: block;
  border-left: 1px solid var(--border);
}

.bench-bar {
  display: block;
  height: 14px;
  background: #45ab7e;
  border-radius: 0 4px 4px 0;
}

.bench-bar--dim {
  background: #7d858c;
}

.bench-val {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* keeps the two panels' rows horizontally aligned (same row height as a real row) */
.bench-row--ghost {
  visibility: hidden;
}

.bench figcaption {
  margin: 1.5rem auto 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  text-align: center;
  max-width: 44rem;
}

/* ---- feature grid ---- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
  text-align: left;
}

.features section {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.features .feature-highlight {
  border-color: var(--accent-dim);
  box-shadow: 0 0 22px rgba(79, 178, 134, 0.18);
}

.features h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.features p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

/* ---- prose pages (activate / privacy) ---- */

.prose {
  max-width: 42rem;
}

.prose ol li,
.prose ul li {
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--text-dim);
  font-size: 0.875rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
}

footer nav a {
  margin-left: 0;
}

footer nav a[href^="mailto:"] {
  margin-left: auto;
}

/* ---- format specification page (Story 11.6) ---- */

.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  border-radius: 8px;
  padding: 0.875rem 1.25rem;
  margin: 1.5rem 0;
}

.notice p {
  margin: 0;
  font-size: 0.9375rem;
}

.spec .tablewrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.spec table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

.spec th,
.spec td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.spec th {
  background: var(--bg-raised);
  font-weight: 600;
}

.spec hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0 1.5rem;
}
