/* ===== Aurora Diagrams — marketing site design system ==================== */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ink: #0b1020;
  --ink-soft: #131a2f;
  --ink-raised: #1a2238;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);

  --fg: #eef1f8;
  --fg-dim: #a3adc2;
  --fg-faint: #6b7690;

  --indigo: #6366f1;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --grad: linear-gradient(115deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  /* Deeper variant for solid buttons: the bright cyan end of --grad drops
     white label text to ~2.5:1 contrast, which fails WCAG AA. */
  --grad-btn: linear-gradient(115deg, #4f46e5 0%, #7c3aed 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 12px 48px rgba(0, 0, 0, 0.4);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: inherit; }

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

/* ===== ambient aurora background ======================================== */

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.aurora-bg span:nth-child(1) {
  width: 620px; height: 620px;
  background: rgba(99, 102, 241, 0.34);
  top: -240px; left: -140px;
}
.aurora-bg span:nth-child(2) {
  width: 520px; height: 520px;
  background: rgba(168, 85, 247, 0.26);
  top: -120px; right: -120px;
}
.aurora-bg span:nth-child(3) {
  width: 560px; height: 560px;
  background: rgba(6, 182, 212, 0.18);
  top: 620px; left: 45%;
}

/* ===== nav ============================================================== */

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--fg); background: rgba(148, 163, 184, 0.08); }
/* `.nav-links a` (0,1,1) outranks `.btn-primary` (0,1,0), so a button placed in
   the nav would otherwise inherit dim link colour and lose its gradient on
   hover. Restate both at matching specificity. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; background: var(--grad-btn); }
.nav-links a.btn-ghost,
.nav-links a.btn-ghost:hover { color: var(--fg); background: rgba(148, 163, 184, 0.12); }
@media (max-width: 720px) {
  .nav-links a.hide-sm { display: none; }
}

/* ===== buttons ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5); }
.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.14); }
.btn-sm { font-size: 14px; padding: 8px 14px; }

/* ===== hero ============================================================= */

.hero {
  padding: 96px 0 40px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c7d0e6;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}
h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-weight: 800;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--fg-dim);
  max-width: 660px;
  margin: 0 auto 34px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note { font-size: 13.5px; color: var(--fg-faint); }

/* ===== app window frame ================================================= */

.frame {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--ink-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(148, 163, 184, 0.06);
  border-bottom: 1px solid var(--line);
}
.frame-bar i {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
  display: block;
}
.frame-bar .label {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--fg-faint);
  font-family: var(--mono);
}
/* Diagram SVGs carry their own canvas colour; match the frame behind them so
   there is no letterbox band on either side. */
.frame-body { display: block; line-height: 0; background: #0f172a; }
.frame-body.light-aurora { background: #f8fafc; }
.frame-body.light-ocean { background: #f0f9ff; }
/* Cap the height so portrait-shaped diagrams don't balloon when scaled to the
   full frame width; the matching background makes the letterbox invisible. */
.frame-body svg,
.frame-body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
}
.hero-frame .frame-body img { max-height: 560px; }

.hero-frame { margin: 52px 0 0; }

/* ===== sections ========================================================= */

section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 750;
}
h3 { font-size: 19px; letter-spacing: -0.015em; margin: 0 0 8px; font-weight: 650; }
.section-head p { color: var(--fg-dim); font-size: 17px; margin: 0; }

/* ===== feature grid ===================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.16s, transform 0.16s, background 0.16s;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: rgba(148, 163, 184, 0.08);
}
.card p { color: var(--fg-dim); margin: 0; font-size: 15px; }
.card .ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card.wide { grid-column: 1 / -1; }

/* ===== comparison table ================================================= */

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: rgba(148, 163, 184, 0.07);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: none; }
td.feat { color: var(--fg); font-weight: 500; }
td.other { color: var(--fg-faint); }
.yes { color: #34d399; font-weight: 600; }
.no { color: #f87171; }
.meh { color: #fbbf24; }
th.ours { color: var(--fg); }

/* ===== split feature rows =============================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 54px;
  align-items: center;
  margin-bottom: 88px;
}
.split:last-child { margin-bottom: 0; }
.split.flip .split-text { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.flip .split-text { order: 0; }
}
.split-text h2 { font-size: clamp(25px, 3.4vw, 34px); }
.split-text p { color: var(--fg-dim); font-size: 16.5px; }
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
ul.checks { list-style: none; padding: 0; margin: 18px 0 0; }
ul.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--fg-dim);
  font-size: 15.5px;
  margin-bottom: 10px;
}
ul.checks li::before {
  content: '';
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ===== code block ======================================================= */

pre.code {
  background: #0d1326;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
}
pre.code .k { color: #a5b4fc; }
pre.code .s { color: #67e8f9; }
pre.code .c { color: #64748b; }

/* ===== pricing ========================================================== */

.price-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 38px 30px;
  background: rgba(148, 163, 184, 0.05);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
}
.price-amount { font-size: 54px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 6px; }
.price-sub { color: var(--fg-dim); font-size: 15px; margin-bottom: 24px; }
.price-card ul.checks { text-align: left; display: inline-block; margin-bottom: 26px; }

/* ===== FAQ ============================================================== */

.faq { max-width: 760px; margin: 0 auto; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 10px;
  background: rgba(148, 163, 184, 0.04);
  overflow: hidden;
}
details[open] { border-color: var(--line-strong); }
summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--fg-faint);
  border-bottom: 2px solid var(--fg-faint);
  transform: rotate(45deg);
  transition: transform 0.18s;
  flex: none;
}
details[open] summary::after { transform: rotate(-135deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--fg-dim); font-size: 15.5px; }

/* ===== CTA band ========================================================= */

.cta-band {
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%),
    rgba(148, 163, 184, 0.05);
  padding: 62px 30px;
  text-align: center;
}

/* ===== footer =========================================================== */

footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 60px;
  margin-top: 40px;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 14.5px;
}
.foot-links a:hover { color: var(--fg); }
.foot-note { color: var(--fg-faint); font-size: 13.5px; margin-top: 26px; }

/* ===== legal / doc pages ================================================ */

.doc { max-width: 780px; margin: 0 auto; padding: 60px 0 40px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 10px; }
.doc .updated { color: var(--fg-faint); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 38px 0 12px; letter-spacing: -0.02em; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--fg-dim); font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #a5b4fc; }
.doc strong { color: var(--fg); }
.doc table { min-width: 0; margin: 18px 0; }
.callout {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--indigo);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.07);
  margin: 22px 0;
}
.callout p { margin: 0; color: var(--fg); }

/* ===== misc ============================================================= */

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(148, 163, 184, 0.05);
}
.badge svg { width: 14px; height: 14px; stroke: #34d399; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

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