/* Brain Shift — landing + info pages (index.html, about.html)
   Register: brand. A small personal sound instrument — warm paper, a focused
   dark listening stage, tactile controls, a little daylight color.
   Palette + component rules per DESIGN.md. No emoji, no external fonts. */

:root {
  --canvas: #f7f1e7;        /* warm dawn paper */
  --surface: #fffdfc;       /* soft white paper */
  --surface-dim: #fdf7ec;   /* slightly deeper paper for inset panels */
  --ink: #182532;           /* deep blue-black */
  --ink-muted: #61717c;     /* slate */
  --sky: #8ecde6;           /* optimistic blue */
  --sky-strong: #3d8fb8;    /* deeper sky — commerce + primary actions */
  --sky-deep: #2b7292;      /* deepest blue — filled commerce buttons */
  --coral: #f06c5b;         /* playback emphasis only — never commerce */
  --leaf: #68a67a;          /* active / completed / ready */
  --leaf-dim: #e7f0e4;
  --sun: #f4c95d;           /* momentary emphasis */
  --stage: #0d1722;         /* deep navy sound stage */
  --stage-edge: #1a2a3a;
  --line: rgba(24, 37, 50, 0.14);
  --line-soft: rgba(24, 37, 50, 0.09);
  --shadow: 0 14px 34px rgba(13, 23, 34, 0.1);
  --shadow-quiet: 0 6px 18px rgba(13, 23, 34, 0.08);
  --radius: 18px;
  --radius-small: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Atmospheric wallpaper: the shared sonic artwork + paper texture, kept as
   quiet scenery behind readable surfaces (per DESIGN.md). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("assets/marketing/soundatude-adult-paper-texture-v001.jpg") center / 560px repeat,
    url("assets/marketing/soundatude-adult-sonic-backdrop-v001.jpg") center / cover no-repeat,
    var(--canvas);
  background-blend-mode: soft-light, soft-light, normal;
  opacity: 0.18;
  pointer-events: none;
}

/* ---------- shared chrome ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-small) 0;
  z-index: 100;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.brand svg { display: block; }

.topnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topnav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 8px 2px;
}
.topnav a:not(.btn):hover { color: var(--sky-deep); }
.topnav a[aria-current="page"] { color: var(--sky-deep); box-shadow: inset 0 -2px 0 var(--sky-strong); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { border-color: var(--sky-strong); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--sky-strong); border-color: var(--sky-strong); }

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-muted);
  padding: 11px 12px;
}
.btn-quiet:hover { color: var(--ink); }

.btn-small { min-height: 44px; padding: 9px 18px; font-size: 0.92rem; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 68px 0; }
.section-head { margin-bottom: 30px; }
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 10px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 720; }
h3 { font-size: 1.08rem; font-weight: 680; }
.lede { font-size: clamp(1.02rem, 2vw, 1.16rem); color: var(--ink-muted); margin: 16px 0 0; max-width: 54ch; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-quiet);
}
.card-pad { padding: 26px; }

/* dark sound stage — the highest-contrast region (DESIGN.md) */
.stage-panel {
  background: linear-gradient(180deg, var(--stage-edge), var(--stage));
  border: 1px solid var(--stage);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
  color: #eef4f7;
}
.stage-panel img {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  height: auto;
}

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

.hero { padding: 84px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 54px;
  align-items: center;
}
.hero-copy .actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-facts {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.hero-facts strong { color: var(--ink); font-weight: 650; }
.hero-facts span { display: inline-flex; gap: 6px; align-items: baseline; }
.hero-facts svg { align-self: center; }

/* stage-panel img sizing lives with the .stage-panel component */

/* one calm reveal — the only page-load motion */
.reveal { animation: rise 0.55s ease-out both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 1.15rem;
  background: var(--surface-dim);
  border: 1px solid var(--line);
  color: var(--sky-deep);
  margin-bottom: 14px;
}
.step-card p { margin: 8px 0 0; color: var(--ink-muted); font-size: 0.95rem; }

.howto-figure { margin-top: 38px; }
.figure-caption {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.86rem;
  margin: 14px auto 0;
  max-width: 40ch;
}

/* ---------- pack showcase ---------- */

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.pack-card { display: flex; flex-direction: column; overflow: hidden; }
.pack-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  background: var(--surface-dim);
}
.pack-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pack-format { color: var(--ink-muted); font-size: 0.87rem; margin: 0; }
.pack-format strong { color: var(--ink); font-weight: 640; }
.pack-desc { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }
.pack-bonus { color: var(--ink-muted); font-size: 0.85rem; margin: 0; }
.pack-modules { color: var(--ink-muted); font-size: 0.85rem; margin: 0; }
.pack-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price {
  font-weight: 720;
  font-size: 1.05rem;
  white-space: nowrap;
}
.price-note { color: var(--ink-muted); font-weight: 500; font-size: 0.82rem; }
.chip-free {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--leaf-dim);
  color: #2c5738;
  border: 1px solid rgba(104, 166, 122, 0.45);
}
.pack-link {
  color: var(--sky-deep);
  font-weight: 640;
  font-size: 0.9rem;
  text-decoration: none;
}
.pack-link:hover { text-decoration: underline; }

/* typographic pack cards (no artwork) */
.pack-mono {
  padding: 20px 22px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-dim);
}
.pack-mono svg { display: block; margin-bottom: 10px; }

/* ---------- voices ---------- */

.voice-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: center; }
.voice-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.voice-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}
.voice-chip svg { flex: none; }
.voice-note { color: var(--ink-muted); font-size: 0.92rem; margin: 18px 0 0; }

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan-card { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.plan-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-deep); }
.plan-price { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -0.02em; }
.plan-price span { font-size: 1rem; font-weight: 550; color: var(--ink-muted); letter-spacing: 0; }
.plan-desc { color: var(--ink-muted); font-size: 0.94rem; margin: 0 0 18px; }
.plan-card .btn { margin-top: auto; align-self: flex-start; }

.price-note-bar {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line-soft);
  background: var(--surface-dim);
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.price-note-bar strong { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 10px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-quiet);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 640;
  font-size: 0.99rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-muted); font-size: 0.93rem; max-width: 68ch; }

/* ---------- about-page specifics ---------- */

.prose-card { padding: 30px 32px; display: grid; gap: 14px; }
.prose-card p { margin: 0; color: var(--ink-muted); max-width: 66ch; }
.prose-card p strong { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.about-list { margin: 0; padding-left: 20px; color: var(--ink-muted); font-size: 0.95rem; display: grid; gap: 8px; }
.about-list strong { color: var(--ink); }
.term-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.term-row dt { font-weight: 700; font-size: 0.93rem; }
.term-row dd { margin: 0; color: var(--ink-muted); font-size: 0.93rem; }

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

.cta-band { padding: 46px 38px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.cta-band h2 { color: #f6fafc; }
.cta-band p { margin: 0; color: #a9bcc7; max-width: 46ch; font-size: 0.97rem; }
.cta-band .btn-primary { background: var(--sky-strong); border-color: var(--sky-strong); color: #0b1520; }
.cta-band .btn-primary:hover { background: var(--sky); border-color: var(--sky); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 46px;
  margin-top: 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
  padding: 8px 0;
}
.footer-links a:hover { color: var(--ink); }
.copyright { color: var(--ink-muted); font-size: 0.88rem; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 48px; }
  .hero-stage { order: 2; }
  .steps-grid { grid-template-columns: 1fr; }
  .voice-card { grid-template-columns: 1fr; gap: 24px; }
  .price-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
}

@media (max-width: 560px) {
  .topbar-inner { padding: 12px 18px; }
  .topnav { gap: 10px; }
  .btn { width: auto; }
  .hero-copy .actions .btn { flex: 1 1 auto; justify-content: center; }
  .page { padding: 0 18px; }
}

/* ---------- motion + print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
