/* ramothaudio.com — shared stylesheet
   Tokens adapted from the Neon v4 skin (SKINS[0] "neon") in design/ui-mockup-v4.html.
   Dark-only by design: the house style IS the dark ground. One glow recipe
   everywhere — a wide faint halo under a bright core. */

:root {
  --ground: #0F1218;
  --card: #131720;
  --hairline: rgba(255, 255, 255, .07);
  --text: #CBD2DC;
  --bright: #EAF0F8;
  --dim: #7E8794;
  --faint: #4E5560;
  --azure: #59B0F5;
  --gold: #F0C05C;
  --radius: 10px;
  /* per-section hue family (used sparingly: title glyphs + underglow only) */
  --hue-sample: #4FA3F7;
  --hue-filter: #45D8D0;
  --hue-env: #9B86F0;
  --hue-dist: #F09048;
  --hue-delay: #D678C9;
  --hue-reverb: #55D89A;
  --hue-glue: #F0B45C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- wordmark + header ---------- */

.wordmark {
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--bright);
  text-shadow: 0 0 6px rgba(89, 176, 245, .55), 0 0 26px rgba(89, 176, 245, .22);
  text-transform: uppercase;
}

header.site {
  border-bottom: 1px solid var(--hairline);
  background: rgba(15, 18, 24, .92);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  max-width: 1020px;
  margin: 0 auto;
  flex-wrap: wrap;
}

header.site .brand a { text-decoration: none; }
header.site .brand .wordmark { font-size: 19px; }

nav.site-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
nav.site-nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
}
nav.site-nav a:hover { color: var(--azure); text-decoration: none; }
nav.site-nav a[aria-current="page"] { color: var(--bright); }

/* ---------- buttons: ONE glow recipe (wide faint halo under a bright core) ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--azure);
  color: var(--azure);
  background: rgba(89, 176, 245, .08);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 5px rgba(89, 176, 245, .35), 0 0 28px rgba(89, 176, 245, .14);
  transition: background .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: rgba(89, 176, 245, .16);
  box-shadow: 0 0 6px rgba(89, 176, 245, .55), 0 0 36px rgba(89, 176, 245, .22);
  text-decoration: none;
}

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 192, 92, .10);
  box-shadow: 0 0 5px rgba(240, 192, 92, .40), 0 0 28px rgba(240, 192, 92, .16);
}
.btn-gold:hover {
  background: rgba(240, 192, 92, .18);
  box-shadow: 0 0 6px rgba(240, 192, 92, .60), 0 0 36px rgba(240, 192, 92, .25);
}

.btn[aria-disabled="true"] {
  border-color: var(--faint);
  color: var(--faint);
  background: transparent;
  box-shadow: none;
  cursor: default;
}
.btn[aria-disabled="true"]:hover { background: transparent; box-shadow: none; }
.btn:disabled {
  border-color: var(--faint);
  color: var(--dim);
  background: rgba(78, 85, 96, .08);
  box-shadow: none;
  cursor: default;
}

/* ---------- sections ---------- */

section.block { padding: 56px 20px 8px; }

.sec-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
/* section hue appears ONLY here: the title glyph + its underglow */
.sec-title .glyph {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--hue, var(--azure));
  box-shadow: 0 0 4px var(--hue, var(--azure)), 0 0 18px var(--hue, var(--azure));
  flex: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.muted { color: var(--dim); }
.small { font-size: 13px; }
.bright { color: var(--bright); }

/* ---------- hero: full-bleed backdrop with image + complete offer above the fold ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 24px;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
/* fade the backdrop into the page ground at both edges of the band */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--ground) 0%, rgba(15, 18, 24, 0) 16%,
    rgba(15, 18, 24, 0) 80%, var(--ground) 100%);
}
.hero-content { position: relative; }
.hero .shot {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(89, 176, 245, .12), 0 24px 70px rgba(0, 0, 0, .6);
}
.hero .shot img { display: block; width: 100%; height: auto; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.hero-info { min-width: 0; }
.hero h1.wordmark {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
}
.hero .pitch {
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.2;
  color: var(--bright);
  margin-top: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}
.hero .sub {
  margin: 12px 0 0;
  color: var(--dim);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.hero-actions .btn {
  padding: 13px 22px;
  text-align: center;
}
.hero-actions .sysreq {
  margin-top: 10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}

/* ---------- Cinematic Analog ---------- */

.analog-page {
  --ground: #080914;
  --card: #14101A;
  --hairline: rgba(238, 103, 48, .14);
  --bright: #E5D8D0;
  --text: #C8BCC0;
  --dim: #8E818A;
  --azure: #C83258;
  --gold: #F16B30;
  --hue-sample: #D52F55;
  --hue-filter: #773060;
  --hue-reverb: #E85532;
  --hue-glue: #FF913C;
}
.analog-hero { padding: 0; }
.analog-hero-content {
  max-width: 1020px;
  padding-top: 54px;
  padding-bottom: 8px;
}
.analog-hero h1 {
  color: var(--bright);
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 0 8px rgba(200, 50, 88, .36), 0 0 42px rgba(200, 50, 88, .14);
}
.analog-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.analog-hero .sub {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 17px;
}
.analog-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.analog-art {
  display: block;
  aspect-ratio: 1;
  background-color: #080914;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-color: rgba(241, 107, 48, .24);
  box-shadow: 0 0 52px rgba(200, 50, 88, .13), 0 24px 70px rgba(0, 0, 0, .6);
}
@media (min-width: 861px) {
  .analog-art { background-image: url("/assets/cinematic-analog.png"); }
}
.analog-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 30px;
}
.analog-hero-actions .btn {
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
  text-align: center;
}
.analog-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.analog-facts .card { display: flex; flex-direction: column; gap: 8px; }
.analog-facts strong { color: var(--bright); font-size: 17px; }
.analog-facts span { color: var(--dim); font-size: 14px; }
.analog-copy-card { border-left: 2px solid var(--hue-reverb); }
.analog-copy-card h3, .interest-card h3, .analog-download h2 {
  color: var(--bright);
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.analog-copy-card p + p { margin-top: 12px; }
.interest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid rgba(241, 107, 48, .26);
  border-left: 2px solid var(--hue-glue);
  background: linear-gradient(110deg, rgba(119, 48, 96, .16), rgba(241, 107, 48, .08)), var(--card);
  box-shadow: 0 0 34px rgba(200, 50, 88, .07);
}
.interest-card > div { max-width: 650px; }
.interest-card .btn-interest {
  flex: none;
  min-width: 224px;
  padding: 15px 24px;
  border-color: #FF9B4A;
  color: #190C10;
  background: linear-gradient(135deg, #FFAD58, #F16B30 58%, #D94B36);
  box-shadow: 0 0 7px rgba(255, 145, 60, .68), 0 0 38px rgba(241, 107, 48, .30);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}
.interest-card .btn-interest:hover:not(:disabled),
.interest-card .btn-interest:focus-visible {
  color: #0D0709;
  background: linear-gradient(135deg, #FFC071, #FF7B38 58%, #EC5940);
  box-shadow: 0 0 9px rgba(255, 155, 74, .82), 0 0 48px rgba(241, 107, 48, .42);
}
.interest-card .btn-interest:disabled {
  border-color: rgba(241, 107, 48, .40);
  color: #BFA59B;
  background: rgba(241, 107, 48, .10);
  box-shadow: 0 0 20px rgba(241, 107, 48, .10);
  text-shadow: none;
}
.analog-download { text-align: center; }
.analog-download .card {
  padding: 38px 28px;
  background: linear-gradient(135deg, rgba(119, 48, 96, .13), rgba(241, 107, 48, .08)), var(--card);
}
.analog-download .btn { margin: 22px 0 12px; }
.analog-page #listen { padding-top: 40px; }

@media (max-width: 760px) {
  .analog-facts { grid-template-columns: 1fr; }
  .interest-card { align-items: flex-start; flex-direction: column; gap: 24px; }
  .interest-card .btn-interest { width: 100%; }
}

/* ---------- cross-product notice ---------- */

.product-notice {
  padding: 9px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(241, 107, 48, .18);
  background: linear-gradient(90deg, rgba(43, 15, 54, .72), rgba(102, 24, 43, .44), rgba(43, 15, 54, .72));
}
.product-notice a {
  color: #D8CBC4;
  font-size: 13px;
  letter-spacing: .02em;
}
.product-notice a:hover { color: #FFF4EC; text-decoration: none; }
.product-notice span {
  color: #F16B30;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  margin-right: 12px;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .shot, .hero-info { width: 100%; max-width: 640px; margin: 0 auto; }
  .analog-page .analog-art { display: none; }
  .analog-page .analog-hero-content { padding-top: 20px; padding-bottom: 8px; }
}

/* ---------- update banner ---------- */

.update-banner {
  border: 1px solid var(--azure);
  border-radius: var(--radius);
  background: rgba(89, 176, 245, .09);
  box-shadow: 0 0 5px rgba(89, 176, 245, .30), 0 0 28px rgba(89, 176, 245, .12);
  padding: 13px 20px;
  margin: 20px auto 0;
  max-width: 980px;
  font-size: 14px;
  color: var(--bright);
  text-align: center;
}
.update-banner.uptodate {
  border-color: var(--hue-reverb);
  background: rgba(85, 216, 154, .08);
  box-shadow: 0 0 5px rgba(85, 216, 154, .30), 0 0 28px rgba(85, 216, 154, .12);
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.feature-item {
  min-width: 0;
}
.feature-copy {
  height: 100%;
  margin-top: 0;
  padding: 22px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.feature-copy h3 {
  font-size: 15px;
  color: var(--bright);
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-copy ul {
  padding-left: 18px;
  color: var(--dim);
  font-size: 13px;
}
.feature-copy li { padding-left: 3px; }
.feature-copy li::marker { color: var(--azure); }

/* ---------- why Basalt ---------- */

.why-basalt-card {
  max-width: none;
  padding: 32px;
  border-left: 2px solid var(--hue-glue);
}
.why-basalt-card h3 {
  color: var(--bright);
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 22px;
}
.why-basalt-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.why-basalt-copy p {
  max-width: 70ch;
  color: var(--dim);
  font-size: 15px;
}
.why-basalt-copy p + p { margin-top: 0; }

@media (max-width: 900px) {
  section.block { padding-left: 20px; padding-right: 20px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .feature-copy { padding: 20px 18px; }
  .why-basalt-card {
    padding: 24px 26px;
  }
  .why-basalt-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-basalt-card { padding: 22px 20px; }
  .why-basalt-card h3 { font-size: 19px; }
}

/* ---------- first-party waveform player ---------- */

.demo-list { display: grid; gap: 16px; }
.demo-track {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 22px 24px;
}
.demo-control {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--azure);
  border-radius: 50%;
  background: rgba(89, 176, 245, .08);
  color: var(--azure);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(89, 176, 245, .35), 0 0 28px rgba(89, 176, 245, .14);
  transition: background .15s ease, box-shadow .15s ease;
}
.demo-control:hover:not(:disabled), .demo-control:focus-visible {
  background: rgba(89, 176, 245, .16);
  box-shadow: 0 0 6px rgba(89, 176, 245, .55), 0 0 36px rgba(89, 176, 245, .22);
}
.demo-control:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.demo-control:disabled { border-color: var(--faint); color: var(--faint); box-shadow: none; cursor: wait; }
.demo-track.is-playing .demo-icon { transform: translateX(-.5px); }
.demo-wave-wrap { min-width: 0; flex: 1; }
.demo-waveform {
  display: block;
  min-width: 0;
  width: 100%;
  height: 64px;
  cursor: pointer;
  visibility: hidden;
}
.demo-track.is-ready .demo-waveform { visibility: visible; }
.demo-status { margin-bottom: 8px; }
.demo-name {
  color: var(--bright);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.demo-track.is-ready .demo-status { display: none; }
.demo-fallback { display: block; width: 100%; min-width: 0; }
.demo-track.is-deferred .demo-fallback,
.demo-track.is-loading .demo-fallback { display: none; }
.demo-track.is-ready .demo-fallback { display: none; }
.demo-track.has-error .demo-waveform { display: none; }
.demo-track.has-error .demo-status { color: var(--dim); }

@media (min-width: 900px) {
  .demo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-track { gap: 12px; padding: 16px; }
  .demo-control { width: 52px; height: 52px; flex-basis: 52px; font-size: 17px; }
  .demo-waveform { height: 52px; }
  .demo-track.is-ready .demo-wave-wrap { transform: translateY(-3px); }
}

@media (max-width: 560px) {
  .demo-track { gap: 14px; padding: 18px; }
  .demo-control { width: 52px; height: 52px; flex-basis: 52px; font-size: 17px; }
  .demo-waveform { height: 56px; }
}

/* ---------- system requirements ---------- */

.sysreq { font-size: 13px; color: var(--dim); }
.sysreq strong { color: var(--text); font-weight: 600; }

/* ---------- faq ---------- */

.faq details {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--bright);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--azure);
  margin-right: 12px;
  font-weight: 400;
}
.faq details[open] summary::before { content: "\2013"; }
.faq details p { padding: 0 0 18px 24px; font-size: 14px; color: var(--dim); }

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

footer.site {
  margin-top: 72px;
  padding: 46px 20px 56px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  position: relative;
  overflow: hidden;
}
/* bottom bookend of the hero backdrop. The taller footer gives the artwork
   breathing room while the fixed-size, bottom-centered SVG keeps its density
   and washes stable as the browser width changes. */
.footer-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer-bg svg {
  display: block;
  width: max(1600px, 100%);
  height: auto;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}
.footer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--ground) 0%, rgba(15, 18, 24, .55) 12%,
    rgba(15, 18, 24, 0) 34%);
}
.footer-content { position: relative; z-index: 1; }
/* narrow widths: reproduce the hero's emergent line-fade deliberately —
   magnify the artwork (center crop lands on the line gradient's faint
   middle) and fade the contour group, leaving only the wash clouds. */
@media (max-width: 860px) {
  .footer-bg svg { width: 2000px; }
  .footer-bg .contours { opacity: .5; }
}
@media (max-width: 560px) {
  .footer-bg svg { width: 2600px; }
  .footer-bg .contours { opacity: 0; }
}
footer.site .links { margin-bottom: 10px; }
footer.site .links a { margin: 0 12px; color: var(--dim); }
footer.site .links a:hover { color: var(--azure); }
footer.site .footer-brand { color: inherit; }
footer.site .footer-brand:hover { color: var(--azure); }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.legal h1 { color: var(--bright); font-size: 26px; margin-bottom: 6px; }
.legal .updated { color: var(--faint); font-size: 13px; margin-bottom: 30px; }
.legal h2 { color: var(--bright); font-size: 17px; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 14.5px; color: var(--text); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* ---------- buy page ---------- */

.buy-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.buy-page .card { max-width: 480px; width: 100%; padding: 40px 32px; }
.buy-page .wordmark { font-size: 24px; }
.buy-page .price-line { font-size: 20px; color: var(--bright); margin: 18px 0 6px; }
.buy-page .price-line .price { color: var(--gold); font-weight: 700; }
.buy-page .what { color: var(--dim); font-size: 14px; margin-bottom: 24px; }
.buy-page .back { margin-top: 26px; font-size: 13px; }

@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  .analog-page .analog-hero { padding-top: 0; }
  section.block { padding: 40px 20px 8px; }
  .card { padding: 20px; }
}
