/* ==========================================================================
   Quantery marketing site — "Brass Orrery" identity.
   Palette + fonts mirror the app (dashboard/tailwind.config.js + index.css)
   so the site and product read as one thing. Zero-build, no webfont CDN.
   ========================================================================== */

:root {
  /* Ink: warm near-black -> charcoal (R > G > B, low saturation). */
  --ink-950: #0c0a07;
  --ink-900: #14110b;
  --ink-800: #1d1913;
  --ink-700: #2a2419;
  --ink-600: #3a3325;
  --ink-500: #4c4433;

  /* Brass / amber accent ramp. */
  --brass-200: #eddaa9;
  --brass-300: #e3c88a;
  --brass-400: #d9b877;
  --brass-500: #c8a45c;
  --brass-600: #a9863f;
  --brass-700: #856830;

  /* Text. */
  --text: #ece7dd;
  --text-dim: #b8ad99;
  --text-faint: #8a8069;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: "Inter", "SF Pro Text", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle top-lit warm field, echoing the app icon gradient. */
  background-image: radial-gradient(
    120% 70% at 50% -10%,
    rgba(200, 164, 92, 0.09),
    rgba(20, 17, 11, 0) 60%
  );
  background-repeat: no-repeat;
}

.num, .survivors, .price-amount { font-variant-numeric: tabular-nums; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

a { color: var(--brass-300); text-decoration: none; }
a:hover { color: var(--brass-200); }

strong { color: var(--text); font-weight: 600; }

::selection { background: rgba(200, 164, 92, 0.28); }

:focus-visible {
  outline: 2px solid rgba(216, 184, 119, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brass-500); color: var(--ink-950);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 16px; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 15px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--brass-300), var(--brass-500));
  color: var(--ink-950);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--brass-200), var(--brass-400)); color: var(--ink-950); }

.btn-ghost {
  background: transparent; color: var(--brass-200);
  border-color: var(--brass-600);
}
.btn-ghost:hover { background: rgba(200, 164, 92, 0.10); color: var(--brass-200); }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 17, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-700);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-word {
  font-weight: 700; letter-spacing: 0.14em; font-size: 15px;
  color: var(--text);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(200, 164, 92, 0.12);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 92, 0.30);
}
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.header-nav a:hover { color: var(--text); }
.header-nav a.btn-primary { color: var(--ink-950); }

/* ------------------------------ Hero ------------------------------ */
.hero { padding: 84px 0 64px; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-400); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 58px); font-weight: 700;
  margin-bottom: 20px;
}
.lede { font-size: 19px; color: var(--text-dim); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--text-faint); margin: 0; }

/* App mockup card ---------------------------------------------------- */
.hero-visual { display: flex; justify-content: center; }
.app-card {
  width: 100%; max-width: 460px; margin: 0;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(237, 218, 169, 0.05);
  overflow: hidden;
}
.app-card-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--ink-700);
  background: rgba(200, 164, 92, 0.04);
}
.app-card-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(200, 164, 92, 0.12);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 92, 0.3);
}
.app-card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.pill {
  margin-left: auto; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
}
.pill-demo {
  color: var(--brass-300); background: rgba(200, 164, 92, 0.14);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 92, 0.32);
}

.survivors { width: 100%; border-collapse: collapse; font-size: 14px; }
.survivors caption { text-align: left; }
.survivors th, .survivors td {
  text-align: left; padding: 11px 16px;
  border-bottom: 1px solid var(--ink-700);
}
.survivors th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-faint);
}
.survivors td { color: var(--text-dim); }
.survivors tbody tr:last-child td { border-bottom: none; }
.survivors .num { text-align: right; }
.survivors .sym { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }

.verdict {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px;
}
.verdict-strong { color: #d7f0c8; background: rgba(120, 170, 90, 0.18); }
.verdict-watch  { color: var(--brass-200); background: rgba(200, 164, 92, 0.16); }
.verdict-pass   { color: var(--text-faint); background: rgba(76, 68, 51, 0.35); }

.app-card-foot {
  padding: 10px 16px; font-size: 12px; color: var(--text-faint);
  border-top: 1px solid var(--ink-700); background: rgba(12, 10, 7, 0.4);
}

/* ------------------------------ Sections ------------------------------ */
.section { padding: 72px 0; }
.section-alt { background: var(--ink-950); border-top: 1px solid var(--ink-800); border-bottom: 1px solid var(--ink-800); }
.section-title { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
.section-sub { font-size: 18px; color: var(--text-dim); margin: 14px 0 40px; max-width: 44em; }

/* Steps -------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.step {
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: var(--radius); padding: 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px;
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--brass-200); background: rgba(200, 164, 92, 0.12);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 92, 0.30);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* Features grid ------------------------------------------------------ */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: var(--radius); padding: 24px;
  position: relative;
}
.feature::before {
  content: ""; position: absolute; left: 24px; top: 0;
  width: 34px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--brass-400), var(--brass-600));
}
.feature h3 { font-size: 18px; margin-bottom: 8px; padding-top: 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* Integrations ------------------------------------------------------- */
.integrations {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.integration-col {
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: var(--radius); padding: 26px 28px;
}
.integration-head {
  font-size: 18px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.int-opt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  color: var(--brass-200); background: rgba(200, 164, 92, 0.14);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 92, 0.32);
}
.integration-list { list-style: none; margin: 0; padding: 0; }
.integration-list li {
  padding: 12px 0 12px 26px; position: relative;
  border-top: 1px solid var(--ink-700);
}
.integration-list li:first-child { border-top: none; padding-top: 2px; }
.integration-list li::before {
  content: ""; position: absolute; left: 3px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}
.integration-list li:first-child::before { top: 8px; }
.int-name { display: block; font-weight: 600; color: var(--text); }
.int-note { display: block; font-size: 14px; color: var(--text-dim); margin-top: 2px; }
.integration-more {
  margin: 18px 0 0; font-size: 14px; font-style: italic; color: var(--text-faint);
}

/* Pricing ------------------------------------------------------------ */
.pricing {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 860px;
}
.price-card {
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column;
}
.price-card-primary {
  border-color: var(--brass-600);
  box-shadow: 0 0 0 1px rgba(200, 164, 92, 0.25),
              0 24px 60px -34px rgba(200, 164, 92, 0.35);
}
.price-card h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.price-amount { font-size: 42px; font-weight: 700; color: var(--brass-300); }
.price-was {
  font-size: 22px; font-weight: 600; color: var(--text-faint);
  text-decoration: line-through; text-decoration-thickness: 2px;
}
.price-unit { font-size: 15px; color: var(--text-faint); }
.price-badge {
  margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--brass-300);
}
.price-tag {
  margin: 0 0 20px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint);
}

/* Corner flags on the pricing cards. */
.price-flag, .addon-flag {
  align-self: flex-start; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
}
.price-flag {
  color: var(--ink-950);
  background: linear-gradient(180deg, var(--brass-300), var(--brass-500));
}
.addon-flag {
  color: var(--brass-200); background: rgba(200, 164, 92, 0.14);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 92, 0.32);
}
.price-card-addon { border-color: var(--ink-600); }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.checklist li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  font-size: 15px; color: var(--text-dim);
}
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}
.price-fine { margin: 14px 0 0; font-size: 13px; color: var(--text-faint); text-align: center; }

/* Trust strip -------------------------------------------------------- */
.trust { padding: 64px 0; background: var(--ink-950); border-top: 1px solid var(--ink-800); }
.trust-points {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.trust-points li { font-size: 15px; color: var(--text-dim); }
.trust-points strong { display: block; margin-bottom: 6px; color: var(--brass-200); }

/* Download ----------------------------------------------------------- */
.download-inner { text-align: center; }
.download .section-sub { margin-left: auto; margin-right: auto; }

/* Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--ink-700); padding: 40px 0 48px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text-dim); font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ink-800);
}
.footer-legal p { margin: 4px 0; font-size: 13px; color: var(--text-faint); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .integrations { grid-template-columns: 1fr; }
  .trust-points { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-nav { gap: 14px; }
  .header-nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .steps, .features, .pricing, .integrations { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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