/*
 * Orqestra marketing site.
 *
 * The palette, spacing scale and radii are lifted from apps/web/src/styles.scss
 * so the site and the app read as one product. Light is the default; the dark
 * block mirrors the app's [data-theme='dark'] values. There is no theme toggle
 * here — a marketing page follows the reader's system setting.
 */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --text: #0f172a;
  --text-muted: #55606f;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0d9488;
  --secondary-light: #ccfbf1;
  --warning: #b45309;
  --warning-light: #fef3c7;
  --border: #e2e8f0;

  --wrap: 70rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --radius: 10px;
  --radius-lg: 16px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0f1115;
    --surface: #161a22;
    --surface-2: #1e2330;
    --surface-3: #262b39;
    --text: #e7eaf3;
    --text-muted: #a5aebd;
    --primary: #5b8cff;
    --primary-2: #7ba3ff;
    --primary-light: rgba(91, 140, 255, 0.14);
    --secondary: #2dd4bf;
    --secondary-light: rgba(45, 212, 191, 0.14);
    --warning: #fbbf24;
    --warning-light: rgba(245, 158, 11, 0.14);
    --border: #262b39;
  }
}

*, *::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-family);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--spacing-md); font-weight: 650; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--spacing-md); }
ul, ol { margin: 0 0 var(--spacing-md); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 640; }

a { color: var(--primary-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--spacing-lg); }
.muted { color: var(--text-muted); }
.small { font-size: 0.9375rem; }
.lede { font-size: 1.1875rem; color: var(--text-muted); max-width: 46rem; }
.narrow { max-width: 44rem; }
/* A section-level .wrap.narrow keeps the page's left edge and limits the measure
   on its children instead, so its heading lines up with every other section
   heading rather than jogging inwards. */
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 46rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-2);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
  min-height: 4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.brand-name { font-weight: 680; letter-spacing: -0.01em; font-size: 1.0625rem; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.1rem; margin-left: auto; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9688rem;
  padding: 0.35rem 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-current { color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); }
.site-nav a.nav-cta {
  background: var(--primary-2);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 560;
}
.site-nav a.nav-cta:hover { background: var(--primary); color: #fff; }
.site-nav a.nav-cta.is-current { box-shadow: none; }

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

.band { padding: var(--spacing-2xl) 0; border-bottom: 1px solid var(--border); }
.band-alt { background: var(--surface); }
.band-tight { padding: var(--spacing-xl) 0; }
.band:last-of-type { border-bottom: 0; }

.hero { padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0 var(--spacing-2xl); }
/* The hero shares .wrap's width and gutters so its text starts on the same
   vertical line as every section heading below it; the measure is limited on
   the children instead of on the container. */
.hero-inner > h1 { max-width: 46rem; }
.hero-inner > p { max-width: 44rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--spacing-lg); align-items: center; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 570;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary-2); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; }
.btn-secondary { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn-secondary:hover { border-color: var(--primary); color: var(--text); }

.section-head { max-width: 46rem; margin-bottom: var(--spacing-xl); }

/* ---------- cards ---------- */

.grid { display: grid; gap: var(--spacing-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}
.band-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-kicker {
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* ---------- honesty callouts ---------- */

.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}
.note h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-warn { border-left-color: var(--warning); background: var(--warning-light); }
.note-info { border-left-color: var(--primary); background: var(--primary-light); }

.placeholder {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125em;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--warning);
  background: var(--warning-light);
  border: 1px dashed var(--warning);
  border-radius: 6px;
  padding: 0.1em 0.5em;
  vertical-align: middle;
}

/* ---------- lists with markers ---------- */

.marked { list-style: none; padding-left: 0; }
.marked li { position: relative; padding-left: 1.75rem; margin-bottom: 0.65rem; }
.marked li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.list-yes li::before { content: "\2713"; color: var(--secondary); }
.list-no li::before { content: "\2715"; color: var(--warning); }
.list-dot li::before { content: "\2014"; color: var(--text-muted); }

/* ---------- steps ---------- */

.steps { list-style: none; counter-reset: step; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--spacing-lg);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-2);
  font-weight: 680;
  font-size: 0.9375rem;
}
.steps h3 { margin-bottom: 0.25rem; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data thead th { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
table.data tbody th { font-weight: 590; }

/* ---------- pull quote / scene setting ---------- */

.scene {
  border-left: 3px solid var(--secondary);
  padding-left: var(--spacing-lg);
  max-width: 44rem;
  font-size: 1.125rem;
}
.scene p:last-child { margin-bottom: 0; }

/* ---------- pricing currency switch (CSS only, no JavaScript) ---------- */

.currency-switch { margin-top: var(--spacing-lg); }
.cur-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cur-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
}
.cur-tabs label {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--text-muted);
  background: var(--bg);
}
.cur-tabs label:hover { color: var(--text); border-color: var(--primary); }
.cur-country { color: var(--text-muted); font-weight: 450; }

.price-panel { display: none; }

.cur-au:checked ~ .price-panels .price-panel-au,
.cur-nz:checked ~ .price-panels .price-panel-nz,
.cur-sg:checked ~ .price-panels .price-panel-sg,
.cur-za:checked ~ .price-panels .price-panel-za { display: block; }

.cur-au:checked ~ .cur-tabs label[for="cur-au"],
.cur-nz:checked ~ .cur-tabs label[for="cur-nz"],
.cur-sg:checked ~ .cur-tabs label[for="cur-sg"],
.cur-za:checked ~ .cur-tabs label[for="cur-za"] {
  background: var(--primary-2);
  border-color: var(--primary-2);
  color: #fff;
}
.cur-au:checked ~ .cur-tabs label[for="cur-au"] .cur-country,
.cur-nz:checked ~ .cur-tabs label[for="cur-nz"] .cur-country,
.cur-sg:checked ~ .cur-tabs label[for="cur-sg"] .cur-country,
.cur-za:checked ~ .cur-tabs label[for="cur-za"] .cur-country { color: #e8eefc; }

.cur-au:focus-visible ~ .cur-tabs label[for="cur-au"],
.cur-nz:focus-visible ~ .cur-tabs label[for="cur-nz"],
.cur-sg:focus-visible ~ .cur-tabs label[for="cur-sg"],
.cur-za:focus-visible ~ .cur-tabs label[for="cur-za"] {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  background: var(--bg);
  max-width: 34rem;
}
.price-market { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
.price-amount { font-size: 2rem; font-weight: 680; margin-bottom: 0.15rem; letter-spacing: -0.02em; }
.price-amount .placeholder { font-size: 0.6em; }
.price-unit { color: var(--text-muted); margin-bottom: var(--spacing-lg); }
.price-note { font-size: 0.9375rem; color: var(--text-muted); }
.price-note:last-child { margin-bottom: 0; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  gap: var(--spacing-xl);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer-brand { font-weight: 660; margin-bottom: 0.35rem; }
.footer-col h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.6rem; }
.footer-col ul { list-style: none; padding-left: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--primary-2); text-decoration: underline; }
.footer-legal { margin-top: var(--spacing-xl); padding-top: var(--spacing-md); border-top: 1px solid var(--border); }
.footer-legal p { margin-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .header-inner { min-height: auto; }
  .site-nav { margin-left: 0; width: 100%; gap: 0.25rem 0.9rem; }
  .band { padding: var(--spacing-xl) 0; }
  .price-card { padding: var(--spacing-lg); }
}

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