/* ==========================================================================
   StemFlow: Clean Utilitarian Layout with Cubase-Inspired Studio Palette
   Deep mixer charcoal-slate framing, crisp cool studio paper, steel-ice
   section bars, and studio crimson accents.
   ========================================================================== */

:root {
  --bg: #f4f6f9;
  --surface: #e8edf4;
  --surface-alt: #dde5ef;
  --banner: #1e2733;
  --banner-accent: #c4363b;
  --banner-text: #f1f4f8;
  --border: #c8d3e0;
  --border-hover: #9fb1c6;
  --text: #222933;
  --text-muted: #556274;
  --link: #b52b31;
  --link-hover: #831a1f;
  --font-main: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Menlo, Consolas, ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

strong, b {
  font-weight: 700;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.1s linear;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.08em 0.32em;
  color: #1c2430;
}

.container {
  width: 100%;
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header Banner ---------- */
.header {
  background: linear-gradient(180deg, #243040 0%, var(--banner) 100%);
  color: var(--banner-text);
  border-bottom: 3px solid var(--banner-accent);
}

.header-inner {
  max-width: 1088px;
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 152px 1fr;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: flex;
  justify-content: center;
}

.header-logo svg {
  width: 84px;
  height: 84px;
  display: block;
}

.header-text h1 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--banner-text);
}

.header-text h1 strong {
  font-weight: 700;
  margin-right: 0.25em;
}

/* ---------- Sub-bar ---------- */
.sub-bar-inner {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.sub-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Navigation ---------- */
.main-nav {
  margin-top: 2px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 176px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.nav-list li {
  font-size: 1.2rem;
  line-height: 2.3;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-list li.nav-active {
  color: var(--text);
  font-weight: 400;
}

.nav-list a:hover {
  text-decoration: none;
  color: var(--link-hover);
}

/* ---------- Main Page Layout ---------- */
.page-main {
  padding-top: 12px;
  padding-bottom: 54px;
}

.page-title {
  margin: 8px 0 18px 176px;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.layout-grid {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 264px;
  gap: 24px;
  align-items: start;
}

/* ---------- Center Content Column ---------- */
.col-content section {
  margin-bottom: 30px;
}

.col-content section:last-child {
  margin-bottom: 0;
}

.col-content h2 {
  margin: 0 0 14px;
  padding: 4px 10px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 1.55rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
}

.col-content p {
  margin: 0 0 13px;
}

/* Real App Screenshot */
.app-figure {
  margin: 20px 0 8px;
}

.app-figure > a {
  display: block;
}

.app-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #303946;
  border-radius: 6px;
  background: #1e1e1e;
  cursor: zoom-in;
}

.app-figure figcaption {
  margin-top: 7px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Feature list & plain lists */
.feature-item {
  margin-bottom: 11px;
}

.feature-item strong {
  margin-right: 0.3em;
}

.setup-list {
  margin: 0 0 12px;
  padding-left: 22px;
}

.setup-list li {
  margin-bottom: 10px;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 3px 0;
  border-bottom: 1px dotted rgba(164, 179, 198, 0.75);
}

.plain-list li:last-child {
  border-bottom: none;
}

.faq-item {
  margin-bottom: 14px;
}

/* ---------- Right Sidebar Boxes ---------- */
.col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px 16px;
}

.side-box h2 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.side-box p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.side-box p:last-child {
  margin-bottom: 0;
}

.buy-price-line {
  font-size: 1.08rem !important;
}

.buy-price-line strong {
  font-size: 1.45rem;
  color: var(--text);
}

.buy-cta-wrap {
  margin: 14px 0 10px !important;
}

.btn-crimson {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--link);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 9px 14px;
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.1s linear;
}

.btn-crimson:hover,
.btn-crimson:focus {
  background: var(--link-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-crimson.btn-disabled,
.btn-crimson:disabled {
  background: #6c7a8c;
  color: #eef2f7;
  cursor: default;
  opacity: 0.9;
}

.btn-crimson.btn-disabled:hover,
.btn-crimson.btn-disabled:focus,
.btn-crimson:disabled:hover {
  background: #6c7a8c;
  color: #eef2f7;
  text-decoration: none;
}

.btn-small {
  width: auto;
  padding: 6px 14px;
  font-size: 0.92rem;
}

.small-note {
  font-size: 0.82rem !important;
  color: var(--text-muted);
}

/* Requirements sidebar list */
.side-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 0.92rem;
}

.side-list li {
  padding: 5px 0;
  border-bottom: 1px dotted rgba(164, 179, 198, 0.75);
}

.side-list li:last-child {
  border-bottom: none;
}

.more-link {
  margin-top: 6px;
}

/* Waitlist sidebar form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.check-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.check-group input[type='checkbox'] {
  accent-color: var(--link);
}

.waitlist-form input[type='email'],
.waitlist-form input.other-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 9px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text);
}

.waitlist-form input[type='email']:hover,
.waitlist-form input.other-input:hover {
  border-color: var(--border-hover);
}

.waitlist-form input[type='email']:focus,
.waitlist-form input.other-input:focus {
  outline: none;
  border-color: var(--link);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-status {
  min-height: 18px;
  font-size: 0.85rem !important;
  color: #256d2c;
}

.waitlist-status.is-error {
  color: var(--link);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 22, 18, 0.78);
}

.lightbox-inner {
  position: relative;
  max-width: min(980px, 94vw);
  max-height: 92vh;
  z-index: 1;
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-x {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--link);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-x:hover {
  background: var(--link-hover);
}

/* ---------- Footer Banner ---------- */
.footer {
  background: var(--banner);
  border-top: 3px solid var(--banner-accent);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-left {
  display: flex;
  gap: 20px;
}

.footer-left a {
  color: rgba(241, 244, 248, 0.78);
  font-weight: 700;
  font-size: 0.98rem;
}

.footer-left a:hover,
.footer-left a:focus {
  color: #ffffff;
  text-decoration: none;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.84rem;
  color: #a6b4c6;
}

/* ---------- Legal / Policy Pages ---------- */
.legal-article {
  margin-left: 176px;
  max-width: 720px;
}

.legal-article .legal-updated {
  margin: -10px 0 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-article section {
  margin-bottom: 24px;
}

.legal-article h2 {
  margin: 0 0 10px;
  padding: 4px 10px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
}

.legal-article p,
.legal-article ul {
  margin: 0 0 11px;
}

.legal-article ul {
  padding-left: 22px;
}

.legal-article li {
  margin-bottom: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .legal-article {
    margin-left: 0;
  }
  .header-inner {
    grid-template-columns: 76px 1fr;
    gap: 16px;
  }

  .header-logo svg {
    width: 68px;
    height: 68px;
  }

  .nav-list,
  .page-title {
    padding-left: 0;
    margin-left: 0;
  }

  .layout-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .col-gutter {
    display: none;
  }
}

@media (max-width: 740px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: 58px 1fr;
  }

  .header-logo svg {
    width: 56px;
    height: 56px;
  }

  .nav-list li {
    font-size: 1.05rem;
    line-height: 1.9;
  }
}
