/* ==========================================================================
   Decoded — design system
   Dark-only. Hierarchy comes from border brightness, not shadow.
   Purple is rationed: primary CTA, tone chips, one headline phrase,
   the decode card's glow, active states. Nothing else.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0c;
  --surface-1: #0f0f13;
  --surface-2: #16161b;
  --bubble: #1c1c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.14);

  --purple: #8b5cf6;
  --purple-lo: #a78bfa;
  --purple-hi: #9f7aff;

  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  --ink: #f5f5f7;
  --ink-2: rgba(255, 255, 255, 0.66);
  --ink-3: rgba(255, 255, 255, 0.45);
  --ink-4: rgba(255, 255, 255, 0.3);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 999px;

  --shell: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Weight ceiling is 600. Nothing here is 700+. */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

a {
  color: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--surface-2);
  border: 1px solid var(--line-hi);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--r-md);
}
.skip-link:focus {
  left: 24px;
}

/* ---------- layout ---------- */

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

.section {
  padding: 128px 0;
  position: relative;
}
.section--tight {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  margin-top: 16px;
}
.section-head p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 44ch;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-lo);
  display: block;
}

/* One phrase, once per page. */
.grad {
  background: linear-gradient(135deg, var(--purple-lo) 0%, var(--purple) 55%, #d76ea8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bloom {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13) 0%, rgba(139, 92, 246, 0) 68%);
}

/* ---------- buttons: exactly one primary style sitewide ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease), background 160ms var(--ease),
    border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, var(--purple-hi) 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px rgba(139, 92, 246, 0.7);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px -10px rgba(139, 92, 246, 0.85);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-hi);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-block {
  width: 100%;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.nav.is-stuck {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero .bloom {
  width: 760px;
  height: 760px;
  top: -180px;
  right: -140px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.55;
  max-width: 44ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- the decode object (the money shot) ---------- */

.decode-panel {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}

.msg-in {
  display: inline-block;
  max-width: 78%;
  background: var(--bubble);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
}
.msg-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-4);
}

.hinge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.hinge::before,
.hinge::after {
  content: '';
  flex: 1;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.hinge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--purple-lo);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The only element allowed a purple glow. */
.decode-card {
  background: #121016;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.28), 0 24px 60px -20px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.tone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tone-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.tone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.tone-green {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
}
.tone-green .tone-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.tone-yellow {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.tone-yellow .tone-dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}
.tone-red {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.22);
}
.tone-red .tone-dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.decode-block {
  padding-top: 16px;
}
.decode-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.decode-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.reply-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reply-chip {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--r-full);
  background: transparent;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
  transition: background 140ms var(--ease);
}
.reply-chip:hover {
  background: rgba(139, 92, 246, 0.08);
}

/* This one row does more brand work than any feature grid. */
.dont-say {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}
.dont-say .tone-dot {
  background: var(--red);
  margin-top: 7px;
}

/* ---------- demo tabs ---------- */

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.demo-tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms var(--ease);
}
.demo-tab:hover {
  border-color: var(--line-hi);
  color: var(--ink-2);
}
.demo-tab[aria-selected='true'] {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.45);
  color: var(--purple-lo);
}
.demo-caption {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-4);
  max-width: 68ch;
}
.demo-caption a {
  color: var(--ink-3);
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--purple-lo);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 92, 246, 0.35);
  padding-bottom: 2px;
}
.guide-link:hover {
  border-bottom-color: var(--purple-lo);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease),
    transform 160ms var(--ease);
}
a.card {
  text-decoration: none;
  display: block;
}
a.card:hover,
.card--hover:hover {
  border-color: var(--line-hi);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.card-icon {
  width: 22px;
  height: 22px;
  color: var(--purple-lo);
  margin-bottom: 16px;
  stroke-width: 1.5;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.meta-line {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-4);
}

/* ---------- pricing: hairlines, not gaps ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.plan {
  padding: 32px;
}
.plan + .plan {
  border-left: 1px solid var(--line);
}
.plan--rec {
  background: #121016;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.28),
    0 24px 60px -30px rgba(139, 92, 246, 0.35);
}
.plan-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.plan-price {
  margin: 18px 0 4px;
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.plan-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.plan-note {
  font-size: 13px;
  color: var(--ink-3);
  min-height: 20px;
}
.plan ul {
  list-style: none;
  margin: 24px 0;
  display: grid;
  gap: 11px;
}
.plan li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.plan li svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 4px;
  color: var(--purple-lo);
  stroke-width: 2;
}
.plan li.off {
  color: var(--ink-4);
}
.plan li.off svg {
  color: var(--ink-4);
}
.badge-rec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-lo);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--r-full);
  padding: 3px 9px;
}

/* ---------- transparency block ---------- */

.flow {
  display: grid;
  gap: 12px;
}
.flow-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.flow-row:last-child {
  border-bottom: 1px solid var(--line);
}
.flow-who {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.flow-what {
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- FAQ: hairlines only, no card chrome ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: 96px;
}
.faq-aside h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.025em;
}
.faq-aside p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
}
.faq-aside a {
  color: var(--purple-lo);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 92, 246, 0.35);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.faq-q svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-4);
  stroke-width: 2;
  transition: transform 200ms var(--ease);
}
.faq-q[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--ease);
}
.faq-q[aria-expanded='true'] + .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-bottom: 22px;
  max-width: 68ch;
}
.faq-a p + p {
  margin-top: 12px;
}
.faq-a a {
  color: var(--purple-lo);
  text-decoration: underline;
  text-decoration-color: rgba(139, 92, 246, 0.5);
  text-underline-offset: 3px;
}

/* ---------- article (guides, legal) ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-4);
  list-style: none;
  padding: 32px 0 0;
}
.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink-2);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--ink-4);
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px) 280px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 128px;
}

.toc {
  position: sticky;
  top: 96px;
  font-size: 13px;
}
.toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.toc ul {
  list-style: none;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--line);
  color: var(--ink-3);
  text-decoration: none;
  line-height: 1.45;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.toc a:hover {
  color: var(--ink-2);
}
.toc a.is-active {
  color: #fff;
  border-left-color: var(--purple);
}

.article-head h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.article-dek {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-4);
}
.byline a {
  color: var(--ink-3);
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose > * + * {
  margin-top: 24px;
}
.prose h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
  margin-top: 56px;
  scroll-margin-top: 96px;
}
.prose h3 {
  font-size: 19px;
  margin-top: 36px;
  scroll-margin-top: 96px;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--purple-lo);
  text-decoration: underline;
  text-decoration-color: rgba(139, 92, 246, 0.5);
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.prose li {
  padding-left: 4px;
}
.prose li::marker {
  color: var(--ink-4);
}
.prose blockquote {
  border-left: 2px solid var(--purple);
  padding-left: 20px;
  color: var(--ink);
  font-size: 18px;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.table-scroll {
  overflow-x: auto;
}

.callout {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--purple);
  border-radius: var(--r-md);
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.65;
}
.callout strong {
  color: var(--ink);
}

.aside-cta {
  position: sticky;
  top: 96px;
  background: var(--surface-1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--r-lg);
  padding: 22px;
}
.aside-cta h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.aside-cta p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.aside-cta .btn {
  height: 42px;
  font-size: 14px;
}
.aside-cta .fine {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
}

.next-prev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
}

/* ---------- waitlist ---------- */

.waitlist-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 112px 0;
  text-align: center;
}
.waitlist-band .bloom {
  width: 700px;
  height: 700px;
  left: 50%;
  transform: translateX(-50%);
  bottom: -380px;
}
.waitlist-band h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
}
.waitlist-band p {
  position: relative;
  z-index: 1;
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 17px;
}

.wl-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 32px auto 0;
}
.wl-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: var(--surface-1);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-md);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.wl-input::placeholder {
  color: var(--ink-4);
}
.wl-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.wl-fine {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-4);
}
.wl-msg {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: 14px;
  color: var(--green);
  min-height: 20px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.footer-tag {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-4);
  max-width: 30ch;
}
.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: 11px;
}
.footer a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 140ms var(--ease);
}
.footer a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
}
.socials {
  display: flex;
  gap: 8px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-3);
}
.socials a:hover {
  border-color: var(--line-hi);
  color: var(--ink);
}
.socials svg {
  width: 15px;
  height: 15px;
}

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

@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    max-width: 720px;
    margin: 0 auto;
  }
  .toc,
  .aside-cta {
    position: static;
  }
  .toc {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-aside {
    position: static;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }
  .section--tight {
    padding: 64px 0;
  }
  .nav-links {
    display: none;
  }
  .grid-3,
  .grid-2,
  .next-prev {
    grid-template-columns: 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .wl-form {
    flex-direction: column;
  }
  .flow-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .msg-in {
    max-width: 92%;
  }
  .prose {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
