/* =====================================================================
   Superconductor Labs — Public Statement
   A sober, literary "open letter". No framework, no dependencies.
   ===================================================================== */

:root {
  /* Color — warm ivory paper, deep warm ink, single grounded teal accent */
  --paper:        #F7F4ED;   /* page background */
  --paper-edge:   #EFEAE0;   /* faint top band / hairlines on paper */
  --card:         #FCFAF4;   /* raised surfaces */
  --ink:          #211F1B;   /* primary text (≈12.5:1 on paper) */
  --ink-soft:     #45413A;   /* secondary text */
  --muted:        #595349;   /* meta / labels (≈6.8:1 on paper) */
  --accent:       #1C4A42;   /* deep teal — wordmark, rules, emphasis (≈9:1) */
  --accent-deep:  #143631;   /* hover / pressed */
  --accent-tint:  #E9EFEB;   /* callout wash */
  --accent-line:  #BFD2CB;   /* callout hairline */
  --rule:         rgba(33, 31, 27, 0.14);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (4px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  --measure: 40rem;          /* ~640px reading column */
  --radius: 10px;
}

/* ----------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
scl-header, scl-footer { display: block; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem); /* 17 → 20px */
  line-height: 1.3;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p { margin: 0; text-wrap: pretty; }

/* ---------------- Shared SoundBed nav + footer ----------------------- */
:root {
  --void: #1c1830;
  --void-2: #2b2347;
  --cyan: #7b93e8;
  --text-light: #f7f2ea;
  --text-dim: #a89bc7;
  --sans-ui: 'Inter', system-ui, sans-serif;
  --serif-display: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
.scl-nav .serif, .scl-foot .serif { font-family: var(--serif-display); font-style: italic; }
.scl-nav .mono, .scl-foot .mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.scl-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  padding: 18px clamp(20px, 5vw, 40px);
  background: rgba(28, 24, 48, .92);
  backdrop-filter: blur(6px);
  color: var(--text-light);
  font-family: var(--sans-ui);
}
.scl-nav .brand a, .scl-foot .brand a { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color:#fff;}
.scl-nav .brand a:hover, .scl-foot .brand a:hover {color: #fff;}
.scl-nav .brand .mono, .scl-foot .brand .mono { font-size: 10px; color: var(--text-dim); }
.scl-nav .brand .name { font-size: 20px; }
.navlinks { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 2.5vw, 28px); font-size: 14px; }
.navlinks a { color: var(--text-light); opacity: .85; text-decoration: none; }
.navlinks a:hover, .navlinks a:focus-visible { opacity: 1; color: var(--cyan); }

.scl-foot {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--void); color: var(--text-dim);
  padding: 56px clamp(20px, 5vw, 40px) 40px;
  font-size: 13px; font-family: var(--sans-ui);
}
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { margin-bottom: 12px; }
.foot-brand .name { font-size: 20px; color: var(--text-light); }
.foot-blurb { max-width: 340px; line-height: 1.6; }
.foot-blurb a { color: var(--text-light); }
.foot-blurb a:hover { color: var(--cyan); }
.foot-links { display: flex; flex-direction: column; gap: 12px; }
.foot-links a { color: var(--text-dim); text-decoration: none; opacity: .85; }
.foot-links a:hover, .foot-links a:focus-visible { opacity: 1; color: var(--cyan); }
.foot-legal { max-width: 1080px; margin: 36px auto 0; border-top: 1px solid #3a2c4a; padding-top: 20px; font-size: 12px; color: color:var(--text-dim); }

/* ------------------------- Accessibility ----------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ----------------------------- Layout -------------------------------- */
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 6vw, 2.5rem) 0;
}

/* Masthead ------------------------------------------------------------ */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-bottom: var(--sp-6);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}
.masthead__date {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Statement ----------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.headline {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2rem, 1.3rem + 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 15ch;
  text-wrap: balance;
}

.prose > * + * { margin-top: 1.4em; }
.prose p { color: var(--ink-soft); max-width: 62ch; }
.prose strong { font-weight: 600; color: var(--ink); }

.lead-in {
  font-weight: 500;
  color: var(--ink) !important;
}

/* Lead paragraph under a headline (newest update intro) --------------- */
.lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  max-width: 52ch;
  text-wrap: pretty;
}

/* Section subheadings inside prose ------------------------------------ */
.section-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: clamp(1.9rem, 4vw, 2.6rem) 0 0;
  padding-top: clamp(1.4rem, 3vw, 1.9rem);
  border-top: 1px solid var(--rule);
  line-height: 1.4;
  text-wrap: balance;
}
/* First label after the intro keeps the rhythm but the .prose margin
   stacks with our own margin-top; collapse the duplicate gap. */
.prose .section-label + p { margin-top: 0.7em; }

/* Shaded detail box (invitation contents) ----------------------------- */
.shaded {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3.5vw, 1.75rem) clamp(1.5rem, 4vw, 2rem);
}
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 60ch;
}
.detail-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.detail-list strong { font-weight: 600; color: var(--ink); }

/* "New to SoundBed?" intro banner ------------------------------------- */
.intro-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  padding: clamp(1rem, 3vw, 1.4rem) clamp(1.25rem, 3.5vw, 1.75rem);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}
.intro-banner__text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: var(--accent-deep);
}

/* Contact CTA button at end of a statement ---------------------------- */
.cta-button-wrap {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.btn-cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn-cta:hover {
  color: #fff;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn-cta:active { transform: translateY(1px); }

/* Labeled divider between the two messages ---------------------------- */
.message-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: clamp(3rem, 7vw, 5rem) 0 clamp(2.25rem, 5vw, 3.25rem);
}
.message-divider::before,
.message-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
}
.message-divider span {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Credit commitment callout ------------------------------------------ */
.commitment {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.25rem);
}
.commitment__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.commitment__lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
  margin: 0 0 var(--sp-4);
}
.commitment__lead .pct { font-weight: 600; }
.commitment__detail {
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}

/* Signature ----------------------------------------------------------- */
.signature {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 500;
  font-size: 1.0625em;
  color: var(--ink);
}

/* Footer -------------------------------------------------------------- */
.site-footer {
  max-width: var(--measure);
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding: var(--sp-8) clamp(1.25rem, 6vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.site-footer .footer__brand {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ----------------------- Entrance (optional) ------------------------- */
/* Content is ALWAYS visible by default. The entrance is pure enhancement:
   keyframes animate from hidden→visible, but the element's resting state
   stays opacity:1, so a frozen/offscreen/no-anim render shows everything. */
@media (prefers-reduced-motion: no-preference) {
  /* No fill-mode: resting state is the element's own opacity:1, so a frozen
     or non-advancing timeline can never leave content hidden. */
  .reveal { animation: rise 0.7s cubic-bezier(0.16,1,0.3,1); }
  .reveal-1 { animation-delay: 0.04s; }
  .reveal-2 { animation-delay: 0.14s; }
  .reveal-3 { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ------------------------------ FAQ ---------------------------------- */
.faq {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--rule);
}
.faq__heading {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 clamp(1.5rem, 4vw, 2rem);
  text-wrap: balance;
}

.faq__list {
  border-top: 1px solid var(--rule);
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}

/* Question row (the clickable summary) -------------------------------- */
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  list-style: none;            /* remove default disclosure triangle */
  cursor: pointer;
  padding: clamp(1.1rem, 2.5vw, 1.4rem) 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.32;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq__q::-webkit-details-marker { display: none; } /* Safari */
.faq__q:hover { color: var(--accent); }
.faq__q-text { text-wrap: pretty; }

/* Larger, comfortable focus target for keyboard users */
.faq__item summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Plus / minus icon — drawn with CSS so it inherits color & needs no asset */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15em;
  color: var(--accent);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); } /* vertical bar */
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

/* Answer -------------------------------------------------------------- */
.faq__a {
  padding: 0 0 clamp(1.25rem, 3vw, 1.6rem);
  max-width: 64ch;
}
.faq__a > * + * { margin-top: 1em; }
.faq__a p { color: var(--ink-soft); }
.faq__a a { font-weight: 500; }

/* Smooth reveal of the answer when supported; gated on no-preference so
   reduced-motion users get an instant, fully-visible open. */
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a {
    animation: faq-open 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ----------------------------- Print --------------------------------- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .scl-nav, .scl-foot { display: none; }
  body::before, .masthead__date { display: none; }
  .commitment { background: #fff; border-color: #000; }
  .shaded { background: #fff; border-color: #000; }
  /* Print every answer open so nothing is hidden on paper */
  .faq__a { display: block !important; }
  .faq__icon { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
