/* MaestroIQ site styles. Colors live in the tokens below: light theme in
   :root, dark theme in the two dark blocks (system setting and toggle).
   No gold, amber or orange. Warnings and placeholders use rose. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #0f1b2d;
  --muted: #4a5a70;
  --border: #d6deea;
  --navy: #0f2340;
  --navy-2: #16305a;
  --on-navy: #f1f5fb;
  --on-navy-muted: #c3cfe0;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --on-accent: #ffffff;
  --accent-soft: #e6f4f2;
  --accent-on-navy: #5eead4;
  --rose: #be123c;
  --rose-soft: #fff1f2;
  --badge-bg: #e8ebfa;
  --badge-text: #3730a3;
  --logo-ink: #5eead4;
  --focus: #4f46e5;
  --shadow: 0 1px 2px rgb(15 27 45 / 0.06), 0 4px 16px rgb(15 27 45 / 0.06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #111a2b; --surface-2: #0e1727; --text: #e6edf6; --muted: #a5b3c7;
    --border: #26324a; --navy: #0a1730; --navy-2: #12264a; --on-navy: #f1f5fb; --on-navy-muted: #b8c5d8;
    --accent: #2dd4bf; --accent-hover: #5eead4; --on-accent: #042f2e; --accent-soft: #0f2e30;
    --accent-on-navy: #5eead4; --rose: #fb7185; --rose-soft: #3a0d1a; --badge-bg: #23264d;
    --badge-text: #c7d2fe; --focus: #a5b4fc; --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #111a2b; --surface-2: #0e1727; --text: #e6edf6; --muted: #a5b3c7;
  --border: #26324a; --navy: #0a1730; --navy-2: #12264a; --on-navy: #f1f5fb; --on-navy-muted: #b8c5d8;
  --accent: #2dd4bf; --accent-hover: #5eead4; --on-accent: #042f2e; --accent-soft: #0f2e30;
  --accent-on-navy: #5eead4; --rose: #fb7185; --rose-soft: #3a0d1a; --badge-bg: #23264d;
  --badge-text: #c7d2fe; --focus: #a5b4fc; --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* placeholders and tags */
.ph { color: var(--rose); background: var(--rose-soft); border: 1px dashed var(--rose); border-radius: 6px; padding: 0 0.3em; font-weight: 600; white-space: normal; }
.badge { display: inline-block; vertical-align: middle; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; background: var(--badge-bg); color: var(--badge-text); border-radius: 999px; padding: 0.15em 0.6em; margin-left: 0.3em; white-space: nowrap; }
.draft-banner { background: var(--rose-soft); color: var(--rose); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 6px 16px; border-bottom: 1px solid var(--rose); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0.65em 1.25em; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-sm { min-height: 40px; padding: 0.4em 0.9em; font-size: 0.95rem; }
.btn-light { background: var(--accent-on-navy); color: #042f2e; }
.btn-light:hover { background: #99f6e4; color: #042f2e; }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: rgb(255 255 255 / 0.45); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); color: var(--on-navy); }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; color: var(--navy); flex: none; }
:root[data-theme="dark"] .logo-mark { color: #1d3a66; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-mark { color: #1d3a66; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 8px; border-radius: 8px; font-weight: 550; font-size: 0.95rem; }
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; margin-left: 4px; }
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .logo span { font-size: 1rem; }
  .nav .btn-sm { padding: 0.4em 0.7em; font-size: 0.875rem; }
  .nav a:not(.btn) { padding: 8px 5px; font-size: 0.875rem; }
  .theme-toggle { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: space-between; }
  .site-header { position: static; }
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.more { margin: 20px 0 0; font-weight: 650; }
.page-head { background: var(--navy); color: var(--on-navy); padding: 48px 0 40px; }
.page-head .lead { color: var(--on-navy-muted); max-width: 720px; }
.lead { font-size: 1.15rem; }
.grid-2, .grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) {
  .grid-2, .split { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  section { padding: 80px 0; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); padding: 56px 0 64px; }
.hero-inner { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
.eyebrow { color: var(--accent-on-navy); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 0.8em; }
.hero .lead { color: var(--on-navy-muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { margin: 0; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--radius); padding: 22px; max-width: 440px; }
.hero-card-head { display: flex; align-items: center; gap: 10px; font-weight: 650; margin-bottom: 12px; }
.hero-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-on-navy); }
.hero-card ul { list-style: none; margin: 0 0 14px; padding: 0; }
.hero-card li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); color: var(--on-navy); }
.hero-card .tick { color: var(--accent-on-navy); }
.hero-card figcaption { color: var(--accent-on-navy); font-weight: 600; font-size: 0.95rem; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero-inner { grid-template-columns: 1.25fr 1fr; }
  .hero-card { justify-self: end; width: 100%; }
}

/* ---------- lists ---------- */
.tick { width: 20px; height: 20px; flex: none; color: var(--accent); }
.checks, .features { list-style: none; margin: 0; padding: 0; }
.checks li, .features li { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.checks .tick, .features .tick { margin-top: 3px; }
.features li + li { border-top: 1px solid var(--border); }
.features.compact li { padding: 5px 0; border: 0; font-size: 0.95rem; }
.detail { display: block; color: var(--muted); font-size: 0.93rem; }

/* values */
.value .num { display: inline-block; font-weight: 800; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 8px; }
.value p { color: var(--muted); }

/* plan summaries (home) */
.plan-sum { display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.plan-sum:hover { color: var(--text); border-color: var(--accent); }
.plan-sum p { color: var(--muted); }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.price { margin-top: auto; padding-top: 12px; font-weight: 700; }
.featured { border: 2px solid var(--accent); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; font-weight: 550; }

/* plans page */
.plan { display: flex; flex-direction: column; }
.plan h2 { margin-bottom: 0.3em; }
.plan .lead-sm { color: var(--muted); }
.plan p.price { padding: 0 0 12px; margin: 0 0 8px; border-bottom: 1px solid var(--border); font-size: 1.2rem; }
.plan p.price .price-note { display: block; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan .features { margin-bottom: 24px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.addon h3, .bundle h3 { margin-bottom: 0.35em; }
.addon > p { color: var(--muted); }
.bundle { display: flex; flex-direction: column; }

/* comparison table: three short columns, fits a 320px screen without scrolling sideways */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare caption { text-align: left; padding: 14px 16px; color: var(--muted); font-size: 0.9rem; }
.compare th, .compare td { padding: 12px 16px; border-top: 1px solid var(--border); text-align: left; vertical-align: middle; }
.compare thead th { background: var(--surface-2); font-size: 0.9rem; }
.compare td { width: 26%; white-space: nowrap; }
.compare td .tick, .compare .plus, .compare .dash { display: inline-block; width: 20px; vertical-align: middle; margin-right: 6px; text-align: center; font-weight: 800; }
.compare .plus { color: var(--badge-text); }
.compare .dash { color: var(--muted); }
.compare .c-no .cell-label { color: var(--muted); }
.compare tr.group th { background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 8px 16px; }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 10px 8px; font-size: 0.85rem; }
  .compare td { white-space: normal; }
  .compare td .tick, .compare .plus, .compare .dash { display: block; margin: 0 0 2px; }
}

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* faq */
.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--accent); }
.faq[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); padding-bottom: 8px; }

/* compliance page */
.enforce { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.enforce li { display: flex; gap: 14px; align-items: flex-start; }
.enforce .tick { width: 24px; height: 24px; margin-top: 2px; }
.enforce h3 { margin-bottom: 0.25em; }
.enforce p { color: var(--muted); }
@media (min-width: 760px) { .enforce { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .enforce { grid-template-columns: repeat(3, 1fr); } }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.callout p { margin: 0; }
.disclaimer { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--border); padding-top: 20px; }

/* cta */
.cta { background: var(--navy); color: var(--on-navy); padding: 56px 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta h2 { margin-bottom: 0.25em; }
.cta p { color: var(--on-navy-muted); margin: 0; }

/* demo form */
.demo-form .note { background: var(--rose-soft); color: var(--rose); border: 1px solid var(--rose); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 0.93rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid #8a99ae; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.field input[aria-invalid="true"] { border-color: var(--rose); border-width: 2px; }
.form-error { color: var(--rose); font-weight: 600; }
.demo-done:focus { outline: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 28px; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.site-footer nav a { display: block; padding: 4px 0; color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.product-line { color: var(--muted); margin-top: 12px; }
.site-footer .bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
