/* Aramind landing — styles. Self-hosted, no external fonts/CDN. */
:root {
  --bg: #0b1020;
  --bg-soft: #121a30;
  --panel: #161f38;
  --ink: #eef2fb;
  --ink-soft: #aab4cf;
  --ink-dim: #7a86a6;
  --brand: #6ea8fe;
  --brand-2: #9b8cff;
  --accent: #57e6b5;
  --line: #25304f;
  --radius: 14px;
  --maxw: 1060px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* beat .capture form{display:flex} so the native fallback truly hides */
html { scroll-behavior: smooth; }
#beehiiv-embed { max-width: 540px; margin: 0 auto; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #18224080 0%, transparent 60%), var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 60ch; }
strong { color: var(--ink); }

/* ---- header / brand ---- */
.topbar { padding: 20px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 1px #ffffff14, 0 6px 18px #6ea8fe33;
}
.nav-cta { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.nav-cta:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { padding-top: 40px; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }

/* ---- email capture ---- */
.capture { margin: 30px auto 8px; max-width: 540px; }
.capture form { display: flex; gap: 10px; flex-wrap: wrap; }
.capture input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 15px 16px; font-size: 16px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; outline: none;
}
.capture input[type="email"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #6ea8fe33; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; font-size: 16px; font-weight: 700; cursor: pointer;
  color: #0b1020; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0; border-radius: 11px; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn.secondary { color: var(--ink); background: var(--panel); border: 1px solid var(--line); }
.btn.is-demo { opacity: .6; }
.cta-note { font-size: 13px; color: var(--ink-dim); margin: 12px 0 0; }
.email-note { font-size: 14px; color: var(--accent); margin-top: 12px; }

/* ---- stat band (proof A) ---- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.stat .num { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat .lbl { font-size: 12.5px; color: var(--ink-dim); margin-top: 6px; }
.scope { font-size: 14px; color: var(--ink-dim); }

/* ---- canonicalization (proof B, the centerpiece) ---- */
.canon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.canon-headline { font-size: clamp(20px, 2.6vw, 27px); font-weight: 750; color: var(--ink); max-width: 24ch; }
.canon {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; overflow: hidden;
}
.canon .count-tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand);
  background: #6ea8fe1a; border: 1px solid #6ea8fe33; border-radius: 999px;
  padding: 4px 11px; margin-bottom: 16px;
}
.variants { display: flex; flex-wrap: wrap; gap: 7px; transition: opacity .6s ease, transform .6s ease, max-height .6s ease; }
.variant {
  font-size: 13px; color: var(--ink-dim); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px;
  text-decoration: line-through; text-decoration-color: #ef6e6e88;
  transition: opacity .5s ease, transform .5s ease;
}
.canon .arrow { text-align: center; color: var(--ink-dim); font-size: 20px; margin: 14px 0 10px; transition: opacity .4s ease; }
.canonical {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--ink);
  padding: 16px; border-radius: 11px;
  background: linear-gradient(135deg, #6ea8fe22, #9b8cff22);
  border: 1px solid #6ea8fe55;
}
.canonical .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
/* collapse animation: variants recede, canonical pops */
.canon.is-collapsed .variants { opacity: .28; transform: translateY(-6px) scale(.97); }
.canon.is-collapsed .variant { transform: translateY(6px); }
.canon.is-collapsed .canonical { transform: scale(1.04); transition: transform .5s ease; }

/* ---- cited insight (proof C) ---- */
.insight {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-top: 22px; position: relative;
}
.insight .tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.insight .quote-label { font-size: 12.5px; color: var(--ink-dim); margin: 18px 0 0; }
.insight blockquote { margin: 8px 0 16px; padding-left: 16px; border-left: 3px solid var(--brand); font-size: 18px; color: var(--ink); }
.insight .cite { font-size: 13.5px; color: var(--ink-dim); }
.insight .cite em { font-style: italic; color: var(--ink-soft); }
.insight .cite a { color: var(--brand); }
.needs-review {
  display: inline-block; font-size: 12px; font-weight: 700; color: #ffd27a;
  background: #ffd27a1a; border: 1px dashed #ffd27a66; border-radius: 8px;
  padding: 5px 10px; margin-bottom: 10px;
}

/* ---- doors ---- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.door { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.door h3 { font-size: 20px; }
.door p { flex: 1; }
.door .btn { align-self: flex-start; }
.door .micro { font-size: 12.5px; color: var(--ink-dim); margin: 10px 0 0; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; }
footer p { font-size: 13.5px; color: var(--ink-dim); margin-bottom: .6em; }
footer .as-of [data-unset="true"] { color: #ffd27a; }
footer a { color: var(--ink-soft); }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .canon-grid, .doors { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .variants, .variant, .canonical { transition: none; }
}
