/* IntelliReply - site stylesheet
   Hand-written, framework-free. Tokens first, then base, layout, components, pages. */

/* ---------- Tokens ---------- */
:root {
  --indigo: #26235E;
  --indigo-deep: #1A1845;
  --indigo-soft: #34307A;
  --violet: #7B5CFA;
  --violet-strong: #6A4BF0;
  --violet-ink: #5B3FD9;
  --violet-light: #B9A8FF;
  --violet-100: #ECE8FF;
  --violet-200: #DDD5FF;
  --lavender: #F5F4FF;
  --ink: #1E2233;
  --ink-2: #434862;
  --ink-3: #5E6378;
  --line: #E6E3F5;
  --line-strong: #D5D1EC;
  --white: #FFFFFF;
  --success: #0B6B44;
  --success-bg: #E7F6EE;
  --error: #A8231A;
  --error-bg: #FDECEA;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(30, 34, 51, .06);
  --shadow-sm: 0 1px 3px rgba(38, 35, 94, .06), 0 6px 16px -8px rgba(38, 35, 94, .10);
  --shadow: 0 2px 6px rgba(38, 35, 94, .05), 0 18px 40px -18px rgba(38, 35, 94, .24);
  --shadow-lg: 0 4px 12px rgba(38, 35, 94, .06), 0 36px 72px -28px rgba(38, 35, 94, .38);

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h4: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.36rem + 1.75vw, 2.625rem);
  --fs-h1: clamp(2.125rem, 1.55rem + 2.7vw, 3.5rem);
  --fs-display: clamp(2.375rem, 1.6rem + 3.6vw, 4.125rem);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  color: var(--indigo);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--violet-ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(91, 63, 217, .4);
  text-underline-offset: .22em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover { color: var(--indigo); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--violet-200); color: var(--indigo); }

main:focus { outline: none; }

button, input, textarea, select { font: inherit; }

.visually-hidden {
  position: absolute !important;
  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: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--indigo);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(800px + 2 * var(--gutter)); }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--lavender); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  max-width: none;
}
.section-head--split > div { max-width: 680px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--violet-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -.028em;
  margin-bottom: var(--s-2);
}

.lead {
  color: var(--ink-2);
  font-size: var(--fs-lg);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--violet-strong);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(106, 75, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover {
  background: var(--violet-ink);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(91, 63, 217, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:disabled { opacity: .7; cursor: progress; transform: none; }

.btn--secondary {
  background: var(--white);
  color: var(--indigo);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { border-color: var(--violet); color: var(--indigo); transform: translateY(-1px); }

.btn--glass {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border-color: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .18); color: var(--white); border-color: rgba(255, 255, 255, .6); }

.btn--light { background: var(--white); color: var(--indigo); }
.btn--light:hover { background: var(--violet-100); color: var(--indigo); transform: translateY(-1px); }

.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-ink);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--indigo); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(38, 35, 94, .08);
  transition: box-shadow .3s ease, background-color .3s ease;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, .97); }
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -16px rgba(38, 35, 94, .35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--indigo);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand:hover { color: var(--indigo); }
.brand-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; box-shadow: 0 8px 16px -8px rgba(38, 35, 94, .6); }
.brand-name span { color: var(--violet-ink); }
.brand--light, .brand--light:hover { color: var(--white); }
.brand--light .brand-name span { color: var(--violet-light); }
.brand--light .brand-mark { box-shadow: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav-list a:hover { color: var(--indigo); background: var(--lavender); }
.nav-list a[aria-current="page"], .nav-list a.is-active { color: var(--indigo); background: var(--violet-100); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--white);
    color: var(--indigo);
    cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s var(--ease), background-color .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: var(--s-2) var(--gutter) var(--s-3);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 40px -28px rgba(38, 35, 94, .4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .js.nav-open .site-nav,
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .js .nav-list { flex-direction: column; gap: 2px; }
  .js .nav-list a { padding: 14px 16px; border-radius: 12px; font-size: 1.0625rem; }
  .js .nav-cta { width: 100%; min-height: 50px; }

  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(580px, 84vh, 800px);
  overflow: hidden;
  background: var(--indigo-deep);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(123, 92, 250, .38), rgba(123, 92, 250, 0) 60%),
    linear-gradient(90deg, rgba(26, 24, 69, .95) 0%, rgba(30, 28, 80, .88) 34%, rgba(38, 35, 94, .56) 62%, rgba(38, 35, 94, .2) 100%),
    linear-gradient(0deg, rgba(26, 24, 69, .6) 0%, rgba(26, 24, 69, 0) 45%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(40px, 6vw, 80px);
  padding-block: clamp(72px, 10vw, 120px) clamp(56px, 8vw, 96px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .92);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 0 4px rgba(185, 168, 255, .25);
}

.hero h1 {
  max-width: 15ch;
  margin: 24px 0 20px;
  color: var(--white);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -.038em;
}
.hero h1 em { font-style: normal; color: var(--violet-light); }
.hero-lead { max-width: 44ch; color: rgba(255, 255, 255, .86); font-size: var(--fs-lg); line-height: 1.65; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  background: rgba(22, 20, 60, .42);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.hero-card-title {
  margin: 0 0 8px;
  color: var(--violet-light);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-card a {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 14px;
  margin-inline: -10px;
  padding: 14px 10px;
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  transition: background-color .2s ease;
}
.hero-card a:hover { background: rgba(255, 255, 255, .08); }
.hero-card a:focus-visible { outline-color: var(--violet-light); }
.hero-card .hc-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(185, 168, 255, .16);
  color: var(--violet-light);
}
.hero-card .hc-icon svg { width: 20px; height: 20px; }
.hero-card strong { display: block; font-size: .9875rem; font-weight: 700; line-height: 1.35; }
.hero-card small { display: block; color: rgba(255, 255, 255, .74); font-size: .8125rem; line-height: 1.45; margin-top: 2px; }
.hero-card .hc-arrow { width: 18px; height: 18px; color: var(--violet-light); transition: transform .25s var(--ease); }
.hero-card a:hover .hc-arrow { transform: translateX(3px); }

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero::before {
    background:
      radial-gradient(90% 60% at 0% 100%, rgba(123, 92, 250, .35), rgba(123, 92, 250, 0) 60%),
      linear-gradient(180deg, rgba(26, 24, 69, .8) 0%, rgba(26, 24, 69, .88) 55%, rgba(26, 24, 69, .95) 100%);
  }
}

/* ---------- Value cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}
.value-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--violet-200); }
.value-card h3 { margin-bottom: 8px; font-size: var(--fs-h4); letter-spacing: -.012em; }
.value-card p { color: var(--ink-2); font-size: .96875rem; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid var(--violet-200);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet-100), var(--white));
  color: var(--violet-ink);
}
.icon-badge svg { width: 24px; height: 24px; }

@media (max-width: 1080px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Guide cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--violet-200); }
.guide-card:focus-within { outline: 3px solid var(--violet); outline-offset: 3px; }
.guide-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--violet-100); }
.guide-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.guide-card:hover .guide-card-media img { transform: scale(1.045); }
.guide-card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px 24px 28px; }
.guide-card h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; }
.guide-card h3 a { color: var(--indigo); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card p { color: var(--ink-2); font-size: .96875rem; line-height: 1.6; margin: 0; }

.tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--violet-100);
  color: var(--violet-ink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; }

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(123, 92, 250, .55), rgba(123, 92, 250, 0) 55%),
    var(--indigo);
  color: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}
.cta-card h3 { color: var(--white); font-size: 1.375rem; margin-bottom: 10px; }
.cta-card p { margin: 0; }

/* Horizontal guide rows (Guides index) */
.guide-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.guide-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--violet-200); }
.guide-row:focus-within { outline: 3px solid var(--violet); outline-offset: 3px; }
.guide-row .guide-card-media { aspect-ratio: auto; min-height: 100%; }
.guide-row .guide-card-body { padding: 28px 32px; justify-content: center; }
.guide-row h3 { font-size: var(--fs-h3); line-height: 1.25; }
.guide-row h3 a { color: var(--indigo); text-decoration: none; }
.guide-row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.guide-row h3 a:focus-visible { outline: none; }
.guide-row p { color: var(--ink-2); margin: 0; }
.guide-row .meta { margin-top: 4px; }
.guide-rows { display: grid; gap: 24px; }
@media (max-width: 760px) {
  .guide-row { grid-template-columns: 1fr; }
  .guide-row .guide-card-media { aspect-ratio: 16 / 9; }
  .guide-row .guide-card-body { padding: 24px; }
}

.topic-group + .topic-group { margin-top: clamp(56px, 7vw, 88px); }
.topic-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-3) var(--s-6);
  align-items: end;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.topic-group-head h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); letter-spacing: -.024em; }
.topic-group-head p { margin: 0; color: var(--ink-2); }
.topic-num { display: block; margin-bottom: 8px; color: var(--violet-ink); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 760px) { .topic-group-head { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--indigo);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease);
}
.chip:hover { border-color: var(--violet); color: var(--indigo); transform: translateY(-1px); }
.chip svg { width: 16px; height: 16px; color: var(--violet-ink); }

/* ---------- Split / editorial standards ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}
.split-media { position: relative; isolation: isolate; }
.split-media::before {
  content: "";
  position: absolute;
  inset: 28px -20px -20px 28px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--violet-200), var(--violet-100) 60%, var(--lavender));
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.media-note {
  position: absolute;
  left: -20px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  line-height: 1.45;
}
.media-note strong { display: block; color: var(--indigo); font-size: .9375rem; }
.media-note span { color: var(--ink-3); }
.media-note .icon-badge { flex: none; margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.media-note .icon-badge svg { width: 20px; height: 20px; }

.standards {
  display: grid;
  gap: 28px;
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: std;
}
.standards li { position: relative; padding-left: 64px; counter-increment: std; }
.standards li::before {
  content: counter(std, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--indigo);
  color: var(--white);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.standards h3 { margin: 2px 0 6px; font-size: 1.125rem; letter-spacing: -.01em; }
.standards p { margin: 0; color: var(--ink-2); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 560px; }
  .split-media img { aspect-ratio: 4 / 3; }
  .split-media::before { inset: 16px -8px -12px 16px; }
  .media-note { position: relative; left: auto; bottom: auto; margin: -36px 16px 0; }
}

/* ---------- Sign-up band ---------- */
.signup-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 55%, #372E96 100%);
  color: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-lg);
}
.signup-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(123, 92, 250, .45), rgba(123, 92, 250, 0) 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(185, 168, 255, .22), rgba(185, 168, 255, 0) 70%);
}
.signup-panel .eyebrow { color: var(--violet-light); }
.signup-panel h2 { color: var(--white); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.028em; margin-bottom: var(--s-2); }
.signup-panel a:not(.btn) { color: var(--violet-ink); }

.check-list { display: grid; gap: 12px; margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check-list svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(185, 168, 255, .2); color: var(--violet-light); }
.check-list--dark svg { background: var(--violet-100); color: var(--violet-ink); }

@media (max-width: 900px) { .signup-panel { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.form-card-title { margin: 0 0 6px; color: var(--indigo); font-size: 1.375rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.form-card-intro { margin: 0 0 var(--s-3); color: var(--ink-2); font-size: .9375rem; }

.form { position: relative; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field label { color: var(--indigo); font-size: .9375rem; font-weight: 700; }
.optional { color: var(--ink-3); font-weight: 500; }

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-color: #B9B2E2; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(123, 92, 250, .2);
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 20px;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--violet-strong);
  cursor: pointer;
}
.check label { color: var(--ink-2); font-size: .8125rem; line-height: 1.6; cursor: pointer; }
.check label a { font-weight: 600; }

.form .btn[type="submit"] { margin-top: 24px; }
.form-note { margin: 16px 0 0; color: var(--ink-3); font-size: .8125rem; line-height: 1.55; }

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-success { border-color: #BFE5D1; background: var(--success-bg); color: var(--success); }
.form-status.is-error { border-color: #F3C2BC; background: var(--error-bg); color: var(--error); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(123, 92, 250, .18), rgba(123, 92, 250, 0) 60%),
    radial-gradient(700px 360px at -10% 120%, rgba(123, 92, 250, .1), rgba(123, 92, 250, 0) 60%),
    var(--lavender);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(38, 35, 94, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 55%);
  mask-image: linear-gradient(to left, #000 0%, transparent 55%);
}
.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 18px;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -.034em;
}
.page-hero .lead { max-width: 62ch; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.page-hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media img { aspect-ratio: 16 / 10; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #A29DC7; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--violet-ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-3); }

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.updated-badge svg { width: 16px; height: 16px; color: var(--violet-ink); }

/* ---------- Article ---------- */
.article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 72px) clamp(112px, 13vw, 190px);
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(123, 92, 250, .2), rgba(123, 92, 250, 0) 60%),
    var(--lavender);
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(38, 35, 94, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 50%);
  mask-image: linear-gradient(to left, #000 0%, transparent 50%);
}
.article-hero-inner { max-width: 860px; }
.article-hero h1 {
  margin: 18px 0 18px;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -.034em;
}
.article-dek { max-width: 62ch; margin: 0; color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.65; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: var(--s-3);
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 17px; height: 17px; color: var(--violet-ink); }

.article-figure { position: relative; z-index: 1; margin-top: calc(-1 * clamp(80px, 10vw, 150px)); margin-bottom: 0; }
.article-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.article-figure figcaption { margin-top: 12px; color: var(--ink-3); font-size: var(--fs-xs); text-align: right; }
@media (max-width: 700px) { .article-figure img { aspect-ratio: 3 / 2; } }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  justify-content: space-between;
  gap: clamp(48px, 6vw, 80px);
  padding-block: clamp(40px, 6vw, 64px) clamp(64px, 9vw, 112px);
}
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 760px); justify-content: start; }
  .toc { display: none; }
}

.takeaways {
  position: relative;
  margin: 0 0 var(--s-6);
  padding: 28px 32px 30px;
  border: 1px solid var(--violet-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white) 0%, var(--lavender) 100%);
  box-shadow: var(--shadow-sm);
}
.takeaways::before {
  content: "";
  position: absolute;
  left: 32px;
  top: -1px;
  width: 64px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--violet);
}
.takeaways h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--violet-ink);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.takeaways h2 svg { width: 20px; height: 20px; }
.takeaways ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.takeaways li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-size: 1.03125rem;
  line-height: 1.6;
}
.takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3FD9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 560px) { .takeaways { padding: 24px 20px; } .takeaways::before { left: 20px; } }

/* Long-form text */
.prose { color: var(--ink); font-size: 1.125rem; line-height: 1.78; }
.prose > p, .prose > ul, .prose > ol { margin: 0 0 1.25em; }
.prose h2 {
  margin: 2.1em 0 .65em;
  font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.024em;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.012em; }
.prose h2 + h3 { margin-top: .9em; }
.prose strong { color: var(--indigo); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .6em; padding-left: .2em; }
.prose li::marker { color: var(--violet); font-weight: 700; }

.prose ol.steps { padding: 0; list-style: none; counter-reset: step; }
.prose ol.steps > li { position: relative; margin-bottom: 1em; padding-left: 52px; counter-increment: step; }
.prose ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 800;
}

.prose ul.checklist { padding: 0; list-style: none; }
.prose ul.checklist > li {
  position: relative;
  margin-bottom: .9em;
  padding: 16px 20px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  line-height: 1.65;
}
.prose ul.checklist > li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--violet);
  border-radius: 7px;
  background: var(--violet-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3FD9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.callout {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  margin: 2.2em 0;
  padding: 26px 28px;
  border: 1px solid var(--violet-200);
  border-radius: var(--radius);
  background: var(--violet-100);
}
.callout-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  color: var(--violet-ink);
  box-shadow: var(--shadow-xs);
}
.callout-icon svg { width: 22px; height: 22px; }
.callout-title { margin: 0 0 6px !important; color: var(--indigo); font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.callout p { font-size: 1.0125rem; line-height: 1.68; margin: 0; }
.callout--dark { border-color: var(--indigo); background: var(--indigo); color: rgba(255, 255, 255, .88); }
.callout--dark .callout-title, .callout--dark strong { color: var(--white); }
.callout--dark .callout-icon { background: rgba(255, 255, 255, .12); color: var(--violet-light); box-shadow: none; }
.callout--dark a { color: var(--violet-light); }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; } }

.resource-list { display: grid; gap: 12px; margin: 1em 0 0 !important; padding: 0 !important; list-style: none; }
.resource-list li { margin: 0; padding: 0; }
.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.resource-list a:hover { border-color: var(--violet-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.resource-name { display: block; color: var(--indigo); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.resource-domain { display: block; color: var(--ink-3); font-size: .875rem; font-weight: 500; line-height: 1.4; }
.resource-list svg { width: 20px; height: 20px; flex: none; color: var(--violet-ink); }

.article-note {
  margin-top: var(--s-6) !important;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .9375rem !important;
  line-height: 1.65;
}

.aside-sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--s-4); }
.toc { padding-left: 20px; border-left: 2px solid var(--line); }
.toc-title { margin: 0 0 12px; color: var(--ink-3); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a {
  position: relative;
  display: block;
  padding: 7px 0;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.toc a:hover { color: var(--violet-ink); }
.toc a.is-current { color: var(--violet-ink); font-weight: 700; }
.toc a.is-current::before { content: ""; position: absolute; left: -22px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--violet); }

.aside-card {
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(123, 92, 250, .5), rgba(123, 92, 250, 0) 60%),
    var(--indigo);
  color: rgba(255, 255, 255, .85);
  font-size: .9375rem;
  line-height: 1.6;
}
.aside-card-title { margin: 0 0 8px; color: var(--white); font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.aside-card p { margin: 0 0 18px; }
.aside-card .btn { width: 100%; }

/* ---------- Topic grid (About) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.topic-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-xs); }
.topic-card h3 { margin-bottom: 6px; font-size: 1.0625rem; letter-spacing: -.01em; }
.topic-card p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.topic-card .icon-badge { width: 44px; height: 44px; margin-bottom: 16px; }
.topic-card .icon-badge svg { width: 22px; height: 22px; }
.topic-card--muted { border-style: dashed; background: transparent; box-shadow: none; }
@media (max-width: 960px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topic-grid { grid-template-columns: 1fr; } }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.two-col .prose { font-size: 1.0625rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.not-box {
  margin-top: var(--s-5);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--indigo);
  color: rgba(255, 255, 255, .86);
}
.not-box h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 14px; }
.not-box ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.not-box li { position: relative; padding-left: 26px; font-size: .96875rem; }
.not-box li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; border-radius: 2px; background: var(--violet-light); }
@media (max-width: 700px) { .not-box ul { grid-template-columns: 1fr; } .not-box { padding: 24px 22px; } }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: proc; }
.process li {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  counter-increment: proc;
}
.process li::before {
  content: "Step " counter(proc);
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--violet-100);
  color: var(--violet-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.process h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.process p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Official resources grid */
.official-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.official-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.official-grid a:hover { border-color: var(--violet-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.official-grid .resource-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.official-grid .resource-name svg { width: 18px; height: 18px; color: var(--violet-ink); flex: none; }
.official-grid p { margin: 6px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
@media (max-width: 960px) { .official-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .official-grid { grid-template-columns: 1fr; } }

/* ---------- Contact & sign-up ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.info-stack { display: grid; gap: 20px; }
.info-card { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-xs); }
.info-card h2, .info-card h3 { margin-bottom: 10px; font-size: 1.125rem; letter-spacing: -.012em; }
.info-card p { color: var(--ink-2); font-size: .96875rem; }
.info-card ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: .96875rem; }
.info-card li { margin-bottom: 6px; }
.info-card li::marker { color: var(--violet); }
.info-card--tint { border-color: var(--violet-200); background: var(--lavender); }
.email-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; }
.email-link svg { width: 22px; height: 22px; }

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.signup-figure { margin: 0; }
.signup-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: var(--s-5); }
@media (max-width: 900px) { .signup-layout { grid-template-columns: 1fr; } }

/* ---------- Status pages (thank you, 404) ---------- */
.status-page { padding-block: clamp(72px, 10vw, 136px); text-align: center; }
.status-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--s-4);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--violet-100), var(--white));
  border: 1px solid var(--violet-200);
  color: var(--violet-ink);
  box-shadow: var(--shadow);
}
.status-icon svg { width: 34px; height: 34px; }
.status-code { display: block; margin-bottom: 12px; color: var(--violet-ink); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.status-page h1 { margin: 0 auto 16px; max-width: 18ch; font-size: var(--fs-h1); letter-spacing: -.034em; }
.status-page .lead { max-width: 56ch; margin-inline: auto; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s-4); }

/* ---------- Legal pages ---------- */
.legal { font-size: 1.0625rem; }
.legal h2 { font-size: clamp(1.3rem, 1.18rem + .5vw, 1.625rem); margin-top: 1.9em; }
.legal h3 { font-size: 1.125rem; }
.summary-box {
  margin: 0 0 var(--s-5);
  padding: 26px 30px;
  border: 1px solid var(--violet-200);
  border-radius: var(--radius-lg);
  background: var(--lavender);
}
.summary-box h2 { margin: 0 0 12px !important; color: var(--violet-ink); font-size: var(--fs-xs) !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.summary-box ul { margin: 0 !important; }
.summary-box li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(64px, 8vw, 96px);
  background:
    radial-gradient(800px 360px at 100% 0%, rgba(123, 92, 250, .16), rgba(123, 92, 250, 0) 60%),
    var(--indigo-deep);
  color: rgba(255, 255, 255, .78);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: var(--s-6) var(--s-5);
}
.footer-tagline { max-width: 34ch; margin: 18px 0 18px; line-height: 1.65; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-email svg { width: 18px; height: 18px; }
.footer-heading { margin: 4px 0 16px; color: var(--white); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255, 255, 255, .84); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: rgba(185, 168, 255, .8); }
.site-footer :focus-visible { outline-color: var(--violet-light); }
.footer-disclaimer {
  margin-top: var(--s-8);
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  font-size: .875rem;
  line-height: 1.65;
}
.footer-disclaimer p { margin: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: var(--s-5);
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
/* A keyframe animation on the independent `translate` property, so it never fights the
   hover transitions that cards run on `transform`, `box-shadow` and `border-color`. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  opacity: 1;
  animation: reveal-up .8s var(--ease) var(--d, 0s) both;
}
.js .reveal.reveal-instant { animation: none; }
@keyframes reveal-up {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal.is-visible { opacity: 1; animation: none; }
  .guide-card:hover, .guide-row:hover, .value-card:hover, .btn:hover { transform: none; }
  .guide-card:hover .guide-card-media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .article-aside, .keep-reading, .skip-link { display: none !important; }
  .js .reveal { opacity: 1; animation: none; }
  body { font-size: 12pt; }
}
