:root {
  font-size: 18px;
  --solid: #071019;
  --input: #050b12;
  --control: #0b1625;
  --edge: #31526c;
  --button-ink: #030c13;
  --button-hover: #79eaff;
  --danger: #ff8ea5;
}

:root[data-theme="dark"] {
  --bg: #101419;
  --solid: #151a21;
  --panel: #1c232c;
  --input: #121820;
  --control: #202833;
  --border: #38434f;
  --edge: #586776;
  --white: #f3f7fb;
  --text: #e1e9f1;
  --muted: #b0becb;
  --cyan: #83dbe9;
  --rose: #ff9eac;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f9;
  --solid: #fff;
  --panel: #fff;
  --input: #fff;
  --control: #edf3f7;
  --border: #cbd7df;
  --edge: #728b9c;
  --white: #122333;
  --text: #213b4d;
  --muted: #435c6d;
  --cyan: #006681;
  --rose: #9e2643;
  --button-ink: #fff;
  --button-hover: #00546d;
  --danger: #a32443;
}

.theme-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.top-inner .theme-row { margin-left: auto; }
.theme-row label { color: var(--muted); font-size: .9rem; }

.theme-picker {
  min-height: 42px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: var(--control);
  color: var(--white);
  font: inherit;
  font-size: .9rem;
}

html:not([data-theme="custom"]) .hero {
  grid-template-columns: 1fr;
  min-height: 380px;
  background: var(--solid);
}

html:not([data-theme="custom"]) .hero-copy { padding: clamp(26px, 6vw, 70px); }
html:not([data-theme="custom"]) .hero-media { display: none; }
html:not([data-theme="custom"]) :is(.top, .footer) { background: var(--solid); }
html:not([data-theme="custom"]) :is(.features li, .contact-section, .rhythms) { background: var(--panel); }
html:not([data-theme="custom"]) .feature-symbol { background: var(--control); border-color: var(--border); }
:root[data-theme="light"] .brand-mark { color: var(--rose); background: #fff1f4; border-color: #da9cac; }

.primary { color: var(--button-ink); background: var(--cyan); }
.primary:hover { background: var(--button-hover); }
.secondary { background: var(--control); border-color: var(--edge); }
.login-form input { background: var(--input); border-color: var(--edge); }
.form-error { color: var(--danger); }
.features p, .steps p, .rhythm dt span, .footer-inner { font-size: 1rem; }
.hero-actions .button { white-space: normal; }
.hero h1 { white-space: normal; }

@media (max-width: 960px) {
  .top-inner .theme-row { order: 4; width: 100%; margin: 0; }
}
