/* obscontroller.com — shared styles
   Palette matches the app's own Catppuccin Mocha theme, so the marketing
   site and the product look like the same thing. */

:root {
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
  --surface0: #313244;
  --surface1: #45475a;
  --surface2: #585b70;
  --text: #cdd6f4;
  --subtext1: #bac2de;
  --subtext0: #a6adc8;
  --overlay0: #6c7086;
  --mauve: #cba6f7;
  --blue: #89b4fa;
  --green: #a6e3a1;
  --peach: #fab387;
  --red: #f38ba8;
  --yellow: #f9e2af;

  --font-display: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

/* This product/brand is a dark, technical control-room tool by design —
   the site commits to that look in both light/dark OS settings rather
   than inverting, the same way the app itself only ships one theme. */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--base);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover, a:focus-visible {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */

header.site {
  border-bottom: 1px solid var(--surface0);
  background: var(--mantle);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

nav.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
}

nav.site-nav a {
  color: var(--subtext1);
}

nav.site-nav a:hover {
  color: var(--text);
}

/* --- Hero --- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--surface0);
}

.hero .eyebrow {
  font-family: var(--font-display);
  color: var(--green);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 18px;
  text-wrap: balance;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--mauve);
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--subtext1);
  max-width: 640px;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--mauve);
  color: var(--crust);
}

.btn.primary:hover {
  background: #d8bfff;
  text-decoration: none;
}

.btn.ghost {
  border-color: var(--surface2);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--subtext0);
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--yellow);
  border: 1px solid var(--surface2);
  border-radius: 999px;
  padding: 5px 12px;
}

/* --- Switcher illustration (CSS only, no images) --- */

.switcher-mock {
  margin-top: 48px;
  border: 1px solid var(--surface0);
  border-radius: 10px;
  background: var(--mantle);
  padding: 16px;
}

.switcher-mock .toprow {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.switcher-mock .take {
  background: var(--red);
  color: var(--crust);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 4px;
}

.switcher-mock .status {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--green);
  align-self: center;
}

.switcher-mock .layer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--surface0);
}

.switcher-mock .layer-row:first-of-type {
  border-top: none;
}

.switcher-mock .layer-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--subtext0);
  width: 58px;
  flex-shrink: 0;
}

.switcher-mock .tile {
  width: 64px;
  height: 40px;
  border-radius: 4px;
  background: var(--surface0);
  border: 1px solid var(--surface1);
  flex-shrink: 0;
}

.switcher-mock .tile.live {
  background: var(--red);
  border-color: var(--red);
}

.switcher-mock .tile.staged {
  background: var(--green);
  border-color: var(--green);
}

/* --- Sections --- */

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--surface0);
}

section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--text);
}

section p.section-lede {
  color: var(--subtext1);
  max-width: 640px;
  margin: 0 0 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-grid .feature h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-grid .feature h3 .swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.feature-grid .feature p {
  margin: 0;
  color: var(--subtext0);
  font-size: 0.95rem;
}

/* --- Pricing --- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.price-card {
  border: 1px solid var(--surface0);
  background: var(--mantle);
  border-radius: 10px;
  padding: 24px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--peach);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text);
  margin: 0 0 12px;
}

.price-card .amount .unit {
  font-size: 0.95rem;
  color: var(--subtext0);
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--subtext1);
  font-size: 0.92rem;
}

.price-card li {
  margin-bottom: 6px;
}

.pricing-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--subtext0);
}

/* --- Footer --- */

footer.site {
  padding: 32px 0 48px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--overlay0);
}

footer.site nav {
  display: flex;
  gap: 18px;
}

footer.site nav a {
  color: var(--subtext0);
}

/* --- Legal pages --- */

.legal main {
  padding: 48px 0 72px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--overlay0);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 40px;
  color: var(--mauve);
}

.legal p, .legal li {
  color: var(--subtext1);
  font-size: 0.98rem;
}

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

.legal a {
  color: var(--blue);
}

.legal strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .switcher-mock .tile {
    width: 44px;
  }
  nav.site-nav {
    gap: 14px;
    font-size: 0.85rem;
  }
}
