/* ============================================================
   Your Brand — main.css
   BEM methodology · semantic design tokens
   Palette:
     bg #FAF7F2 · alt #F3EDE6 · ink #2F3A34
     terracotta #C65D3B · gold #D4AF37 (micro accent)
   ============================================================ */

:root {
  --background: hsl(36, 38%, 97%);
  --background-alt: hsl(33, 33%, 93%);
  --foreground: hsl(150, 11%, 20%);
  --muted: hsl(33, 25%, 90%);
  --muted-foreground: hsl(150, 8%, 38%);
  --primary-hsl: 16 57% 51%;
  --primary: hsl(var(--primary-hsl));
  --primary-hover: hsl(16, 57%, 45%);
  --primary-foreground: hsl(36, 38%, 97%);
  --gold: hsl(46, 65%, 52%);
  --border: hsl(33, 20%, 86%);
  --hairline: hsla(150, 11%, 20%, 0.08);
  --ring: hsla(16, 57%, 51%, 0.3);

  --radius: 0.375rem;
  --shadow-soft: 0 1px 2px hsla(150, 11%, 20%, 0.04), 0 8px 24px hsla(150, 11%, 20%, 0.06);
  --shadow-drawer: -16px 0 48px hsla(150, 11%, 20%, 0.12);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: normal; color: var(--foreground); }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

.text-primary { color: var(--primary); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, hsla(46, 65%, 52%, 0.4) 20%, hsla(46, 65%, 52%, 0.4) 80%, transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn--dark {
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
}
.btn--dark:hover { background: hsla(150, 11%, 20%, 0.9); }

.btn--ghost {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--background-alt); }

.icon { display: inline-block; flex-shrink: 0; }
.icon--lg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: hsla(36, 38%, 97%, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsla(33, 20%, 86%, 0.6);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.logo__seg { fill: var(--foreground); }
.logo__ring { stroke: var(--foreground); }
.logo__core { fill: var(--gold); }
.logo__word {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo__word--accent { color: var(--primary); }

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}
@media (min-width: 640px) {
  .brand-logo { height: 48px; }
}
@media (min-width: 960px) {
  .brand-logo { height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(hsla(150, 11%, 20%, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsla(150, 11%, 20%, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.hero__inner {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  max-width: 72rem;
}
@media (min-width: 1024px) {
  .hero__inner { padding-top: 7rem; padding-bottom: 8rem; padding-left: 2.5rem; padding-right: 2.5rem; }
}
.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.75rem, 5vw + 1rem, 4.25rem);
  line-height: 1.05;
  max-width: 48rem;
}
.hero__lead {
  margin-top: 1.75rem;
  max-width: 40rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}
@media (min-width: 640px) { .hero__lead { font-size: 1.125rem; } }
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.trust {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust__dot { width: 4px; height: 4px; border-radius: 9999px; background: var(--gold); display: inline-block; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section--alt {
  background: var(--background-alt);
  border-top: 1px solid hsla(33, 20%, 86%, 0.6);
  border-bottom: 1px solid hsla(33, 20%, 86%, 0.6);
}
.section__title {
  margin-top: 1.25rem;
  font-size: clamp(1.875rem, 2vw + 1rem, 2.25rem);
  line-height: 1.2;
}
.section__lead {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- Grid 12 ---------- */
.grid-12 {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
  .col-5 { grid-column: span 5 / span 5; }
  .col-7 { grid-column: span 7 / span 7; }
}

/* ---------- Problem grid ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
@media (min-width: 640px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
.problem-card { background: var(--background); padding: 1.75rem; }
.problem-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
}
.problem-card p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ---------- Shift ---------- */
.shift__head { max-width: 36rem; margin: 0 auto; text-align: center; }
.shift__body { max-width: 56rem; margin: 4rem auto 0; }
.shift__grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 640px) { .shift__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shift__row { display: flex; flex-direction: column; gap: 0.75rem; }
.shift__k {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.shift__from {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.shift__to {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem;
  transition: border-color 160ms ease;
}
.feature-card:hover { border-color: hsla(150, 11%, 20%, 0.2); }
.feature-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--background-alt);
  color: var(--primary);
}
.feature-card__icon svg { width: 18px; height: 18px; }
.feature-card__rule { flex: 1; height: 1px; background: hsla(46, 65%, 52%, 0.3); }
.feature-card h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
}
.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--foreground);
  padding: 4rem 2rem;
}
@media (min-width: 640px) { .cta { padding: 5rem 3.5rem; } }
.cta__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: radial-gradient(circle at 80% 20%, hsla(16, 57%, 51%, 0.5), transparent 55%);
}
.cta__inner { position: relative; max-width: 36rem; }
.cta__eyebrow {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsla(36, 38%, 97%, 0.6);
}
.cta__dot { width: 4px; height: 4px; border-radius: 9999px; background: var(--gold); }
.cta__title {
  font-size: clamp(1.875rem, 2vw + 1rem, 2.25rem);
  line-height: 1.2;
  color: var(--background);
}
.cta__lead {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsla(36, 38%, 97%, 0.7);
}
.cta .btn--primary { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid hsla(33, 20%, 86%, 0.6);
  background: var(--background);
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
}
@media (min-width: 640px) {
  .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__note {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.site-footer__nav a:hover { color: var(--foreground); }
.site-footer__bottom {
  border-top: 1px solid hsla(33, 20%, 86%, 0.6);
  padding: 0.625rem 1.5rem;
}
.site-footer__bottom p { font-size: 0.625rem; font-weight: 300; color: var(--muted-foreground); letter-spacing: 0.01em; }
.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.625rem 1.5rem 0.875rem;
}
@media (min-width: 640px) {
  .site-footer__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer__meta-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}
.site-footer__meta-nav a { color: inherit; transition: color 0.2s; }
.site-footer__meta-nav a:hover { color: var(--foreground); }
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__social li { display: inline-flex; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--muted-foreground);
  border: 1px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.site-footer__social a svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}
.site-footer__social a:hover {
  color: var(--primary);
  background-color: hsla(var(--primary-hsl, 14 65% 50%) / 0.08);
  border-color: hsla(var(--primary-hsl, 14 65% 50%) / 0.25);
}
.site-footer__social a:focus-visible {
  outline: none;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(var(--primary-hsl, 14 65% 50%) / 0.18);
}

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; inset: 0;
  z-index: 50;
  pointer-events: none;
}
.drawer.is-open { pointer-events: auto; }
.drawer__overlay {
  position: absolute; inset: 0;
  background: hsla(150, 11%, 20%, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 300ms ease;
}
.drawer.is-open .drawer__overlay { opacity: 1; }

.drawer__panel {
  position: absolute; right: 0;
  top: var(--drawer-top, 4rem);
  bottom: var(--drawer-bottom, 5rem);
  height: auto;
  width: 100%;
  max-width: 28rem;
  background: var(--background);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.site-footer { position: relative; z-index: 60; background: var(--background); }

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid hsla(33, 20%, 86%, 0.6);
}
.drawer__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.drawer__dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--gold); }
.drawer__close {
  padding: 0.375rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  transition: background-color 160ms ease, color 160ms ease;
}
.drawer__close:hover { background: var(--background-alt); color: var(--foreground); }

.drawer__steps { padding: 1.5rem 1.75rem 0; }
.drawer__steps-bars { display: flex; gap: 0.5rem; }
.drawer__bar {
  flex: 1;
  height: 2px;
  border-radius: 9999px;
  background: var(--border);
  transition: background-color 200ms ease;
}
.drawer__bar.is-active { background: var(--primary); }
.drawer__step-label { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
}
.drawer__title { font-size: 1.5rem; }
.drawer__lead { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.drawer__intents { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; }
.intent {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  background: transparent;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.intent:hover { border-color: hsla(150, 11%, 20%, 0.3); background: var(--background-alt); }
.intent.is-selected { border-color: var(--primary); background: hsla(16, 57%, 51%, 0.04); }
.intent__row { display: flex; align-items: center; justify-content: space-between; }
.intent__title { font-size: 0.875rem; font-weight: 500; }
.intent__radio {
  width: 8px; height: 8px; border-radius: 9999px; background: var(--border);
  transition: background-color 160ms ease;
}
.intent.is-selected .intent__radio { background: var(--primary); }
.intent__desc { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

.field { display: block; margin-top: 1.5rem; }
.field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.field__input {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.field__input::placeholder { color: hsla(150, 8%, 38%, 0.6); }
.field__input--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23556' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

/* Inline validation */
.field__input--invalid {
  border-color: hsl(0, 65%, 52%);
  box-shadow: 0 0 0 3px hsla(0, 65%, 52%, 0.15);
}
.field__input--invalid:focus {
  border-color: hsl(0, 65%, 52%);
  box-shadow: 0 0 0 3px hsla(0, 65%, 52%, 0.25);
}
.field__error {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: hsl(0, 65%, 48%);
}
.field__error--standalone { margin-top: 0.75rem; }

/* Honeypot — invisible but reachable to bots, not assistive tech */
.ea-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submission summary */
.ea-summary {
  margin-top: 1.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-alt);
  width: 100%;
  align-self: stretch;
}
.ea-summary__heading {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.ea-summary__list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.8125rem;
}
.ea-summary__list dt {
  color: var(--muted-foreground);
  font-weight: 500;
}
.ea-summary__list dd {
  margin: 0;
  color: var(--foreground);
  word-break: break-word;
}
.ea-summary__empty { color: var(--muted-foreground); opacity: 0.55; }
.ea-summary__ref {
  margin: 0.875rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.ea-summary__ref code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--background);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--foreground);
}

/* Next steps */
.ea-next { margin-top: 1.75rem; width: 100%; align-self: stretch; }
.ea-next__heading {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.ea-next__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.ea-next__list li {
  display: flex;
  gap: 0.875rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}
.ea-next__list strong { font-size: 0.875rem; color: var(--foreground); display: block; }
.ea-next__list p { margin: 0.2rem 0 0; font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.45; }
.ea-next__num {
  flex: 0 0 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: hsla(16, 57%, 51%, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer__step[hidden] { display: none !important; }
.drawer__step--success { display: flex; flex-direction: column; align-items: flex-start; }
.success__icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsla(16, 57%, 51%, 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.drawer__step--success .btn--ghost { margin-top: 2rem; }

.drawer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid hsla(33, 20%, 86%, 0.6);
}
.drawer__back {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  transition: color 160ms ease;
}
.drawer__back:hover { color: var(--foreground); }
.drawer__footer .btn--primary { padding: 0.625rem 1rem; }

/* ---------- Animations ---------- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-in-up 0.5s ease-out both; }
.fade-in:nth-child(2) { animation-delay: 0.05s; }
.fade-in:nth-child(3) { animation-delay: 0.1s; }
.fade-in:nth-child(4) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Body scroll lock ---------- */
body.is-locked { overflow: hidden; }

/* ---------- Consent note (drawer) ---------- */
.consent-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.consent-note a {
  color: var(--primary);
  border-bottom: 1px solid hsla(16, 57%, 51%, 0.25);
  transition: border-color 160ms ease, color 160ms ease;
}
.consent-note a:hover { color: var(--primary-hover); border-bottom-color: var(--primary); }

/* Consent checkbox */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.consent-check.is-invalid { color: hsl(0, 70%, 45%); }

/* Inline soft notice (e.g. duplicate-email) */
.field__notice {
  margin-top: 0.375rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: hsl(36, 60%, 28%);
  background: hsla(36, 80%, 88%, 0.55);
  border: 1px solid hsla(36, 60%, 65%, 0.5);
  border-radius: 0.375rem;
}
.field__notice a { color: var(--primary); text-decoration: underline; }

/* ---------- Footer muted link ---------- */
.site-footer__nav--muted { color: var(--muted-foreground); opacity: 0.75; }
.site-footer__nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 2px;
}

/* ---------- Privacy / Terms Modal ---------- */
.modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 70;
  padding: 1.25rem;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute; inset: 0;
  background: hsla(150, 11%, 12%, 0.42);
  backdrop-filter: blur(2px);
  animation: modal-fade 180ms ease-out both;
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: 85vh;
  display: flex; flex-direction: column;
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: modal-pop 220ms cubic-bezier(.2,.8,.2,1) both;
}
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.modal__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.modal__close {
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  transition: background 160ms ease, color 160ms ease;
}
.modal__close:hover { background: var(--muted); color: var(--foreground); }
.modal__tabs {
  display: flex; gap: 0.25rem;
  padding: 0.5rem 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
.modal__tab {
  position: relative;
  padding: 0.625rem 0.25rem;
  margin-right: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}
.modal__tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: transparent; transition: background 200ms ease;
}
.modal__tab.is-active { color: var(--foreground); }
.modal__tab.is-active::after { background: var(--primary); }
.modal__tab:hover { color: var(--foreground); }
.modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.modal__pane { display: none; }
.modal__pane.is-active { display: block; }
.modal__pane p { margin-bottom: 0.875rem; line-height: 1.65; color: var(--muted-foreground); }
.modal__pane a { color: var(--primary); border-bottom: 1px solid hsla(16,57%,51%,0.25); }
.modal__pane a:hover { color: var(--primary-hover); border-bottom-color: var(--primary); }
.modal__meta {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.7;
}

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop  {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ---------- Cookie bar (dormant) ---------- */
.cookie-bar {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 60;
  max-width: 22rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: var(--background);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) + 0.125rem);
  box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}
.cookie-bar.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-bar__text {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}
.cookie-bar__actions {
  display: flex; gap: 0.5rem; justify-content: flex-end;
}
.btn--sm { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; }
@media (max-width: 480px) {
  .cookie-bar { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
}

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal { padding: 5rem 0 6rem; }
.legal__container { max-width: 44rem; }
.legal__header { margin-bottom: 1.75rem; }
.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.5rem;
}
.legal__meta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}
.legal__body { margin-top: 2.25rem; }
.legal__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--foreground);
  margin-bottom: 2rem;
}
.legal__body h2 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.625rem;
  color: var(--foreground);
}
.legal__body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.legal__body a {
  color: var(--primary);
  border-bottom: 1px solid hsla(16, 57%, 51%, 0.25);
  transition: color 160ms ease, border-color 160ms ease;
}
.legal__body a:hover { color: var(--primary-hover); border-bottom-color: var(--primary); }
.legal__contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
}

/* ============================================================
   Doc layout — Privacy / Terms with sticky TOC sidebar
   ============================================================ */
.legal-hero {
  padding: 4.5rem 0 2.25rem;
  background:
    radial-gradient(1200px 280px at 12% 0%, hsla(16, 57%, 51%, 0.06), transparent 60%),
    linear-gradient(180deg, var(--background-alt), var(--background));
  border-bottom: 1px solid var(--hairline);
}
.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  letter-spacing: -0.025em;
  margin: 0.75rem 0 0.875rem;
}
.legal-hero__lead {
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.legal-hero__meta {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}
.legal-hero__meta strong { color: var(--foreground); font-weight: 500; }
.legal-hero__sep { opacity: 0.5; }

.doc { padding: 3rem 0 6rem; }
.doc__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .doc__container {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 3.5rem;
  }
}
@media (min-width: 1200px) {
  .doc__container {
    grid-template-columns: 17rem minmax(0, 44rem);
  }
}

/* Sidebar */
.doc__sidebar { position: relative; }
@media (min-width: 900px) {
  .doc__sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
    max-height: calc(100vh - 7rem);
    overflow: auto;
  }
}
.toc {
  border-left: 1px solid var(--hairline);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.toc__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.875rem;
}
.toc__nav { display: flex; flex-direction: column; gap: 0.125rem; }
.toc__link {
  position: relative;
  display: block;
  padding: 0.45rem 0.75rem 0.45rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: color 160ms ease, background-color 160ms ease;
}
.toc__link::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  height: 1.1rem;
  width: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 200ms ease, background-color 200ms ease;
  transform-origin: center;
}
.toc__link:hover { color: var(--foreground); background: hsla(150, 11%, 20%, 0.035); }
.toc__link.is-active {
  color: var(--primary);
  font-weight: 500;
  background: hsla(16, 57%, 51%, 0.06);
}
.toc__link.is-active::before { transform: translateY(-50%) scaleY(1); }

.toc__progress {
  margin: 1.25rem 0 1rem;
  height: 2px;
  width: 100%;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.toc__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 120ms ease-out;
}

.toc__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  transition: color 160ms ease;
}
.toc__cta:hover { color: var(--primary); }
.toc__cta svg { opacity: 0.8; }

/* Article */
.doc__article { min-width: 0; }
.doc__section {
  scroll-margin-top: 6rem;
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid var(--hairline);
}
.doc__section:last-child { border-bottom: none; }
.doc__h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.875rem;
  color: var(--foreground);
}
.doc__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--foreground);
  margin-bottom: 1.25rem;
}
.doc__article p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin: 0 0 0.875rem;
}
.doc__article a {
  color: var(--primary);
  border-bottom: 1px solid hsla(16, 57%, 51%, 0.25);
  transition: color 160ms ease, border-color 160ms ease;
}
.doc__article a:hover { color: var(--primary-hover); border-bottom-color: var(--primary); }

.doc__list {
  margin: 0.5rem 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.doc__list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.doc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
}
.doc__list strong { color: var(--foreground); font-weight: 500; }

.doc__updated {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}

/* Callout */
.callout {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--background-alt);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--primary);
  border-radius: var(--radius);
}
.callout__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 0.5rem;
  box-shadow: 0 0 0 4px hsla(16, 57%, 51%, 0.12);
}
.callout p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--foreground);
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.125rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.contact-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.contact-card__email {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.contact-card__hint {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.contact-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.contact-form__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
.contact-form__footer {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
  padding-top: 0.5rem;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 640px) {
  .contact-form__footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.contact-form__note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.contact-form__note a {
  color: var(--primary);
  border-bottom: 1px solid hsla(16, 57%, 51%, 0.25);
}
.contact-form__status {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  min-height: 1.25rem;
}
.contact-form__status.is-success { color: var(--primary); }

/* ============================================================
   Contact — map card, shout, faq, status states
   ============================================================ */
.map-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.25rem 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--background);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 760px) {
  .map-card { grid-template-columns: 1.4fr 1fr; }
}
.map-card__map {
  position: relative;
  min-height: 280px;
  background: var(--background-alt);
}
.map-card__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85);
}
.map-card__open {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
  transition: color 160ms ease, border-color 160ms ease;
}
.map-card__open:hover { color: var(--primary); border-color: var(--primary); }

.map-card__info {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 760px) {
  .map-card__info { border-top: 0; border-left: 1px solid var(--hairline); }
}
.map-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.map-card__address {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--foreground);
  letter-spacing: -0.01em;
  margin: 0;
}
.map-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.map-card__list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.map-card__list a { color: var(--primary); border-bottom: 1px solid hsla(16, 57%, 51%, 0.25); }
.map-card__list a:hover { border-bottom-color: var(--primary); }
.map-card__key {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foreground);
}
.map-card__cta { align-self: flex-start; margin-top: 0.25rem; }

/* Query card */
.query-card {
  margin-top: 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) {
  .query-card { padding: 2rem 2rem 1.75rem; }
}
.query-card .contact-form {
  margin-top: 0;
}

/* Shout (kept for backwards compat — section removed from contact.html) */
.shout { display: none; }
.shout {
  margin-top: 1rem;
  padding: 1.125rem 1.125rem 1rem;
  background: linear-gradient(180deg, var(--background-alt), var(--background));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
}
.shout__field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.shout__field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
.shout__megaphone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex: 0 0 auto;
}
.shout__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--foreground);
  padding: 0.55rem 0;
}
.shout__field input::placeholder { color: var(--muted-foreground); }
.shout__send {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, transform 160ms ease;
}
.shout__send:hover { background: var(--primary); transform: translateX(1px); }
.shout__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.625rem;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.shout__hint strong { color: var(--foreground); font-weight: 500; }
.shout__counter { font-variant-numeric: tabular-nums; }
.shout__status {
  margin: 0.5rem 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  min-height: 1.1rem;
}
.shout__status.is-success { color: var(--primary); }
.shout__status.is-error { color: hsl(0, 60%, 45%); }

/* Form counter + status states */
.contact-form__counter {
  align-self: flex-end;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.contact-form__opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-foreground);
}
.contact-form__status.is-error { color: hsl(0, 60%, 45%); }

/* FAQ */
.faq {
  border-bottom: 1px solid var(--hairline);
  padding: 0.875rem 0;
}
.faq:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 200ms ease;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  margin: 0.625rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* Invisible CAPTCHA honeypot — hidden from users, visible to bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   Thank-you page (front/thank-you.html)
   ============================================================ */
.ty-hero {
  padding: 5rem 0 2.5rem;
  background:
    radial-gradient(circle at 20% 0%, hsla(16, 57%, 51%, 0.07), transparent 55%),
    var(--background);
}
.ty-hero__inner { max-width: 56rem; }
.ty-hero__badge {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: hsla(16, 57%, 51%, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.ty-hero__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.875rem;
  color: var(--foreground);
}
.ty-hero__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 42rem;
}
.ty-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--background-alt);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--foreground);
}
.ty-hero__meta {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid hsla(0, 65%, 52%, 0.3);
  background: hsla(0, 65%, 52%, 0.05);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--foreground);
}
.ty-hero__meta p { margin: 0; }

.ty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .ty-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.ty-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem 1.5rem 1.75rem;
}
.ty-card__heading {
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.ty-summary__list {
  font-size: 0.875rem;
  grid-template-columns: minmax(8rem, auto) 1fr;
}
.ty-next__list { gap: 0.75rem; }
.ty-next__list li {
  background: var(--background-alt);
  border-color: var(--border);
}
.ty-card__foot {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* ---------- Environments band (post-hero) ---------- */
.env-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--background);
  padding: 1.125rem 0;
}
.env-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.env-band__lead {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.eyebrow--muted { color: var(--muted-foreground); }
.env-band__list {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  margin: 0;
}
.env-band__sep {
  color: var(--gold);
  margin: 0 0.25rem;
}
.env-band__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  border-bottom: 1px solid hsla(16, 57%, 51%, 0.25);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.env-band__link:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
}
@media (max-width: 720px) {
  .env-band__inner { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
}

/* FAQ page additions */
.faq + .faq { margin-top: 0.5rem; }
.faq-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

/* FAQ — question + teaser inside <summary> */
.faq summary {
  flex-wrap: wrap;
  align-items: flex-start;
  padding-right: 1.75rem;
  position: relative;
}
.faq summary::after {
  position: absolute;
  right: 0;
  top: 0;
}
.faq__question {
  flex: 1 1 100%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.faq__teaser {
  flex: 1 1 100%;
  margin-top: 0.25rem;
  font-family: var(--font-body, inherit);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.faq[open] .faq__teaser { display: none; }

/* FAQ controls — search + chip jump nav */
.faq-controls {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.faq-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 480px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: hsla(150, 11%, 20%, 0.025);
  color: var(--muted-foreground);
  transition: border-color 160ms ease, background 160ms ease;
}
.faq-search:focus-within {
  border-color: var(--primary);
  background: var(--background);
}
.faq-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--foreground);
}
.faq-search input::placeholder { color: var(--muted-foreground); }
.faq-search__clear {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
.faq-search__clear:hover { color: var(--foreground); }

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.faq-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--muted-foreground);
  text-decoration: none;
  background: transparent;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.faq-chip:hover {
  color: var(--foreground);
  border-color: var(--foreground);
  background: hsla(150, 11%, 20%, 0.04);
}

/* TOC enrichments */
.toc__nav--rich .toc__link { padding-top: 0.5rem; padding-bottom: 0.5rem; line-height: 1.35; }
.toc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.toc__count {
  font-family: var(--font-body, inherit);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted-foreground);
  opacity: 0.7;
}
.toc__link.is-active .toc__count { color: var(--primary); opacity: 1; }
.toc__desc {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body, inherit);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted-foreground);
  letter-spacing: 0;
  opacity: 0.75;
}

/* Empty search state */
.faq-empty {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--hairline);
  border-radius: 8px;
  text-align: center;
  color: var(--muted-foreground);
}
.faq-empty p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.faq-empty strong { color: var(--foreground); font-weight: 500; }


/* ============================================================
   Early-access drawer: Sending progress (final step)
   ============================================================ */
.ea-send { display: flex; flex-direction: column; gap: 1.25rem; padding: 0.25rem 0 0.5rem; }
.ea-send__head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.ea-send__badge {
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.12); color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.28);
  animation: ea-send-pulse 1.8s ease-out infinite;
}
@keyframes ea-send-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.35); }
  50%      { box-shadow: 0 0 0 10px hsl(var(--primary) / 0); }
}
.ea-send__title { margin: 0; font-size: 1.4rem; }
.ea-send__lead { margin: 0; color: var(--muted-foreground, var(--foreground)); opacity: 0.85; font-size: 0.95rem; line-height: 1.5; }

.ea-send__progress { display: flex; flex-direction: column; gap: 0.85rem; }
.ea-send__bar {
  position: relative; width: 100%; height: 6px; border-radius: 999px;
  background: hsl(var(--foreground) / 0.08); overflow: hidden;
}
.ea-send__bar-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.7) 100%);
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ea-send__stages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ea-send__stages li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.88rem; color: var(--muted-foreground, var(--foreground));
  opacity: 0.55; transition: opacity 0.25s ease, color 0.25s ease;
}
.ea-send__dot {
  width: 14px; height: 14px; border-radius: 999px;
  border: 1.5px solid currentColor; position: relative; flex: 0 0 14px;
  background: transparent; transition: background 0.25s ease, border-color 0.25s ease;
}
.ea-send__stages li[data-status="active"] { opacity: 1; color: hsl(var(--primary)); }
.ea-send__stages li[data-status="active"] .ea-send__dot {
  background: hsl(var(--primary) / 0.15);
  border-color: hsl(var(--primary));
  animation: ea-stage-spin 0.9s linear infinite;
}
@keyframes ea-stage-spin {
  0%   { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.45); }
  100% { box-shadow: 0 0 0 6px hsl(var(--primary) / 0); }
}
.ea-send__stages li[data-status="done"] { opacity: 1; color: hsl(var(--foreground)); }
.ea-send__stages li[data-status="done"] .ea-send__dot {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.ea-send__stages li[data-status="done"] .ea-send__dot::after {
  content: ""; position: absolute; left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ea-send__stages li[data-status="failed"] { opacity: 1; color: hsl(0 70% 45%); }
.ea-send__stages li[data-status="failed"] .ea-send__dot {
  background: hsl(0 70% 45%); border-color: hsl(0 70% 45%);
}

.ea-send__ref { margin: 0; font-size: 0.78rem; color: var(--muted-foreground); letter-spacing: 0.02em; }
.ea-send__ref code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }
.ea-send__hint { margin: 0; font-size: 0.8rem; color: var(--muted-foreground); opacity: 0.8; }

/* ============================================================
   Thank-you page: reveal-on-load big hero
   ============================================================ */
.ty-page { opacity: 0; transition: opacity 0.5s ease, filter 0.5s ease; filter: blur(6px); }
.ty-page[data-revealed="true"] { opacity: 1; filter: none; }

.ty-hero--big { padding: 6rem 0 4rem; position: relative; overflow: hidden; }
.ty-hero--big::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, hsl(var(--primary) / 0.12) 0%, transparent 60%),
    radial-gradient(40% 35% at 80% 60%, hsl(var(--primary) / 0.06) 0%, transparent 70%);
}
.ty-hero--big .container { position: relative; z-index: 1; }
.ty-hero--big .ty-hero__badge {
  width: 56px; height: 56px; border-radius: 999px;
  background: hsl(var(--primary) / 0.12); color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid hsl(var(--primary) / 0.28);
  margin-bottom: 1.25rem;
}
.ty-hero--big .ty-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 600;
  margin: 0.25rem 0 1rem;
}
.ty-hero--big .ty-hero__title span { color: hsl(var(--primary)); }
.ty-hero--big .ty-hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 640px;
  line-height: 1.6; color: var(--muted-foreground, var(--foreground)); opacity: 0.92;
  margin: 0 0 1.5rem;
}
.ty-confirm-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  background: hsl(var(--primary) / 0.08); border: 1px solid hsl(var(--primary) / 0.22);
  color: hsl(var(--primary)); font-size: 0.85rem; font-weight: 500;
}
.ty-confirm-chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem; padding: 0.1rem 0.4rem; border-radius: 6px;
  background: hsl(var(--primary) / 0.12);
}
.ty-confirm-chip svg { flex: 0 0 14px; }

.ty-next-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.ty-next-card {
  padding: 1.25rem; border: 1px solid hsl(var(--foreground) / 0.08);
  border-radius: 14px; background: hsl(var(--background));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ty-next-card:hover { transform: translateY(-2px); border-color: hsl(var(--primary) / 0.35); }
.ty-next-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: hsl(var(--primary) / 0.12); color: hsl(var(--primary));
  font-size: 0.8rem; font-weight: 600; margin-bottom: 0.6rem;
}
.ty-next-card h3 { margin: 0 0 0.3rem; font-size: 0.98rem; font-weight: 600; }
.ty-next-card p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--muted-foreground); opacity: 0.9; }

.ty-disclosure { margin-top: 2.5rem; }
.ty-disclosure summary {
  cursor: pointer; font-size: 0.85rem; color: var(--muted-foreground);
  padding: 0.5rem 0; user-select: none;
}
.ty-disclosure[open] summary { color: hsl(var(--foreground)); }
.ty-disclosure .ea-summary__list {
  display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem;
  padding: 1rem 0 0; margin: 0;
}
.ty-disclosure dt { font-size: 0.78rem; color: var(--muted-foreground); }
.ty-disclosure dd { margin: 0; font-size: 0.85rem; }

.ty-reveal-stagger > * { opacity: 0; transform: translateY(12px); animation: ty-reveal 0.6s cubic-bezier(0.22,0.61,0.36,1) forwards; }
.ty-page[data-revealed="true"] .ty-reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.ty-page[data-revealed="true"] .ty-reveal-stagger > *:nth-child(2) { animation-delay: 0.18s; }
.ty-page[data-revealed="true"] .ty-reveal-stagger > *:nth-child(3) { animation-delay: 0.30s; }
.ty-page[data-revealed="true"] .ty-reveal-stagger > *:nth-child(4) { animation-delay: 0.42s; }
.ty-page[data-revealed="true"] .ty-reveal-stagger > *:nth-child(5) { animation-delay: 0.54s; }
@keyframes ty-reveal { to { opacity: 1; transform: none; } }
.ty-page:not([data-revealed="true"]) .ty-reveal-stagger > * { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .ty-page, .ty-reveal-stagger > *, .ea-send__badge, .ea-send__stages li[data-status="active"] .ea-send__dot {
    animation: none !important; transition: none !important; filter: none !important;
  }
}
