/* Antipode Labs subpages (brand v3). The home page carries its own inline copy of these tokens. */
:root {
  --hero: #0A0A23; --hero-line: rgba(160, 150, 255, .09);
  --violet: #6E5BFF; --violet-2: #8E80FF; --violet-ink: #4535D1;
  --here: #F2C14E; --there: #7FA8FF;
  --lav: #F5F3FF; --lav-2: #ECE8FF; --text: #17153A; --muted: #5C5880; --line: #E2DDF7;
  --on-dark: #F2F0FF; --on-dark-muted: #B4AED8;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left)); --gutter-r: max(16px, env(safe-area-inset-right));
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--violet-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
h1, h2, h3 { text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font); text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease; }
.btn.primary { color: #fff; background: linear-gradient(90deg, #5A47EA, #7C6BFF); box-shadow: 0 10px 30px -10px rgba(110, 91, 255, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.line { color: var(--violet-ink); background: #fff; border: 1px solid #BDB3FF; }
.btn.line:hover { background: var(--lav); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Dark top band */
.top { position: relative; background: var(--hero); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(#000 30%, transparent 95%); mask-image: linear-gradient(#000 30%, transparent 95%); }
.top::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 80% at 85% 10%, rgba(110, 91, 255, .30), transparent 70%), radial-gradient(60% 60% at 50% 130%, rgba(110, 91, 255, .40), transparent 70%); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--hero-line); }
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; color: var(--on-dark); text-decoration: none; font: 700 21px/1 var(--font); letter-spacing: -0.015em; }
.brand svg { width: 32px; height: 32px; flex: none; }
nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
nav a { color: var(--on-dark-muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: #fff; }
nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; color: #fff; white-space: nowrap; }
nav .short { display: none; }
.pagehead { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 5vw, 64px); }
.pagehead h1 { font: 700 clamp(36px, 4.6vw, 58px)/1.06 var(--font); letter-spacing: -0.03em; margin: 0 0 14px; color: #fff; max-width: 18em; }
.pagehead p { margin: 0; max-width: 40em; color: #D9D5F5; font-size: clamp(17px, 1.4vw, 19px); }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(110, 91, 255, .18); border: 1px solid rgba(142, 128, 255, .35); color: #DCD6FF; font-size: 14px; font-weight: 500; }
.pill b { background: var(--violet); color: #fff; border-radius: 999px; padding: 2px 9px; font-weight: 600; font-size: 13px; }
.pill.wait b { background: #E0A800; color: #2A2000; }

/* Light content */
.sect { padding-block: clamp(48px, 7vw, 96px); }
.sect.tint { background: linear-gradient(180deg, var(--lav), #fff); }
h2 { font: 700 clamp(28px, 3.2vw, 40px)/1.12 var(--font); letter-spacing: -0.025em; margin: 0 0 14px; color: var(--violet-ink); }
.sub { margin: 0; max-width: 44em; color: var(--muted); font-size: 18px; }

/* Long-form text (legal pages, licence) */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(22px, 2.2vw, 26px); margin: 44px 0 10px; }
.prose h3 { font: 600 19px/1.3 var(--font); margin: 28px 0 8px; }
.prose p, .prose li { color: #2B2850; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 8px 0 20px; font-size: 16px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--violet); background: var(--lav); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.prose .updated { color: var(--muted); font-size: 15px; margin-top: 0; }
.legalnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.legalnav a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--lav); border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 500; }
.legalnav a[aria-current="page"] { background: var(--violet-ink); border-color: var(--violet-ink); color: #fff; }

footer { background: var(--lav); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 26px 40px; font-size: 14px; color: var(--muted); }
footer .brand { color: var(--text); font-size: 18px; }
footer .brand svg { width: 26px; height: 26px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer .links a { color: var(--muted); text-decoration: none; }
footer .links a:hover { color: var(--violet-ink); text-decoration: underline; }

@media (max-width: 560px) {
  nav a.secondary { display: none; }
  nav .long { display: none; } nav .short { display: inline; }
  .btn { width: 100%; }
  nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Product page */
.btn.ghost { color: var(--on-dark); background: rgba(255,255,255,.03); border: 1px solid rgba(142, 128, 255, .45); }
.btn.ghost:hover { background: rgba(142, 128, 255, .12); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pagehead.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.tree { background: rgba(10, 9, 35, .6); border: 1px solid rgba(160, 150, 255, .22); border-radius: 16px; padding: 18px 20px; font-size: 15px; color: #E4E0FF;
  box-shadow: 0 40px 80px -40px rgba(110, 91, 255, .6); }
.tree .head { display: flex; justify-content: space-between; color: #A99DFF; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.tree ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tree li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); }
.tree i { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.tree i.w { background: #2B579A; } .tree i.x { background: #1D6F42; } .tree i.p { background: #C43E1C; } .tree i.s { background: #3A3F9E; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -40px rgba(48, 30, 160, .35); display: flex; flex-direction: column; }
.tier h3 { margin: 0 0 4px; font: 600 22px/1.2 var(--font); }
.tier .for { margin: 0 0 18px; color: var(--muted); }
.tier .price { font: 700 48px/1 var(--font); letter-spacing: -0.03em; color: var(--violet-ink); margin: 0 0 4px; }
.tier .price small { font-size: 18px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.tier .once { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.tier ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.tier li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.tier li svg { width: 18px; height: 18px; margin-top: 4px; color: #1F9D60; }
.tier .btn { margin-top: auto; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 8px; font-size: 16px; }
.agree input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--violet); flex: none; }
.salestate { margin: 0; color: var(--muted); font-size: 15px; }
.salestate.err { color: #B42318; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.group { background: var(--lav); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.group h3 { margin: 0 0 12px; font: 600 18px/1.3 var(--font); }
.group ul { margin: 0; padding-left: 18px; color: #2B2850; font-size: 15px; display: grid; gap: 6px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 24px 22px; border-radius: 16px; color: var(--on-dark);
  background: radial-gradient(120% 70% at 50% -10%, #4A3BC9 0%, rgba(74, 59, 201, 0) 60%), linear-gradient(180deg, #221C5E, #14113A 70%); }
.steps b { display: block; color: #B9AFFF; font-size: 14px; margin-bottom: 6px; }
.steps strong { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 8px; color: #fff; }
.steps span { color: var(--on-dark-muted); font-size: 15px; }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.fit div { border-radius: 16px; padding: 24px; border: 1px solid var(--line); }
.fit div:first-child { background: #EEFBF3; border-color: #BFE8CF; }
.fit div:last-child { background: #FFF5F5; border-color: #F5C9CC; }
.fit h3 { margin: 0 0 10px; font: 600 19px/1.3 var(--font); }
.fit ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq { max-width: 50em; margin-top: 28px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: #2B2850; }
.notice { max-width: 40em; margin: 0 auto; text-align: center; }
.notice .btn { margin-top: 24px; }
@media (max-width: 1000px) {
  .pagehead.split, .tiers, .fit { grid-template-columns: minmax(0, 1fr); }
  .groups, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .groups, .steps { grid-template-columns: minmax(0, 1fr); } }
.pagehead .pill { margin: 0 0 20px; }
