@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=IBM+Plex+Mono:wght@500&family=Inter:wght@400;600&display=swap');

/* ─── RealEstateAICo · THE PIPELINE design tokens ─── */
:root {
  --plum: #17111C;
  --aubergine: #241830;
  --linen: #F1ECF2;
  --apricot: #F2A65A;
  --lilac: #9A8CA6;
  --white: #FFFFFF;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-width: 72rem;
  --header-h: 4.5rem;
  --radius: 2px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--plum);
  background: var(--linen);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--apricot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--plum); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; }

/* ─── Surface system (paired bg + text only) ─── */
.surface-plum { background: var(--plum); color: var(--linen); }
.surface-plum a { color: var(--apricot); }
.surface-plum a:hover { color: var(--linen); }

.surface-linen { background: var(--linen); color: var(--plum); }

.surface-aubergine { background: var(--aubergine); color: var(--linen); }
.surface-aubergine a { color: var(--apricot); }
.surface-aubergine a:hover { color: var(--linen); }

.surface-apricot { background: var(--apricot); color: var(--plum); }
.surface-apricot a { color: var(--plum); text-decoration-color: rgba(23, 17, 28, 0.4); }

/* ─── Layout ─── */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

/* ─── Tags / eyebrows ─── */
.tag, .eyebrow, .data-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { color: var(--apricot); margin-bottom: 0.75rem; }
.surface-plum .eyebrow,
.surface-aubergine .eyebrow { color: var(--apricot); }
.surface-apricot .eyebrow { color: var(--plum); }

.text-lilac { color: var(--lilac); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--apricot);
  color: var(--plum);
  border-color: var(--apricot);
}

a.btn-primary,
button.btn-primary {
  color: var(--plum);
  text-decoration: none;
}

.surface-plum a.btn-primary,
.surface-aubergine a.btn-primary,
.hero-handoff a.btn-primary,
.site-header a.btn-primary {
  color: var(--plum);
}

.btn-primary:hover,
a.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(242, 166, 90, 0.35);
  color: var(--plum);
}

.surface-plum a.btn-primary:hover,
.surface-aubergine a.btn-primary:hover,
.hero-handoff a.btn-primary:hover {
  color: var(--plum);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-secondary:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 12px rgba(23, 17, 28, 0.12);
}

.surface-plum .btn-secondary:hover,
.surface-aubergine .btn-secondary:hover {
  box-shadow: 0 2px 16px rgba(241, 236, 242, 0.15);
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--linen);
  border-bottom: 1px solid rgba(23, 17, 28, 0.08);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-transparent {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.is-transparent .logo,
.site-header.is-transparent .nav-link {
  color: var(--linen);
}

.site-header.is-transparent .nav-link:hover,
.site-header.is-transparent .nav-link.is-active {
  color: var(--apricot);
  border-bottom-color: var(--apricot);
}

.site-header.is-transparent .nav-toggle {
  border-color: rgba(241, 236, 242, 0.45);
}

.site-header.is-transparent .nav-toggle span {
  background: var(--linen);
}

.site-header.is-transparent .logo-mark {
  background: var(--apricot);
}

.site-header.is-transparent .logo-mark::after {
  border-color: var(--plum);
}

.site-header.is-scrolled,
.site-header.is-transparent.is-scrolled {
  position: sticky;
  background: var(--linen);
  border-bottom-color: rgba(23, 17, 28, 0.08);
  box-shadow: 0 2px 12px rgba(23, 17, 28, 0.08);
}

.site-header.is-transparent.is-scrolled .logo,
.site-header.is-transparent.is-scrolled .nav-link {
  color: var(--plum);
}

.site-header.is-transparent.is-scrolled .nav-toggle {
  border-color: var(--plum);
}

.site-header.is-transparent.is-scrolled .nav-toggle span {
  background: var(--plum);
}

.site-header.is-transparent.is-scrolled .logo-mark {
  background: var(--plum);
}

.site-header.is-transparent.is-scrolled .logo-mark::after {
  border-color: var(--apricot);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--plum);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--plum);
  border-radius: var(--radius);
  position: relative;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0.35rem;
  border: 1px solid var(--apricot);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--apricot);
  border-bottom-color: var(--apricot);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin-left: auto;
  background: none;
  border: 1px solid var(--plum);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--plum);
  transition: transform var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--linen);
    border-bottom: 1px solid rgba(23, 17, 28, 0.12);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform var(--transition), visibility var(--transition);
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(23, 17, 28, 0.08);
  }
}

/* ─── THE HANDOFF hero ─── */
.hero-handoff {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--plum);
  background-image: url('/images/realestateaico-01-hero-studio.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-handoff { min-height: 82vh; }
}

.hero-handoff::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(23, 17, 28, 0.94) 0%, rgba(23, 17, 28, 0.55) 45%, rgba(23, 17, 28, 0.2) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: min(28rem, 50vw);
  height: min(28rem, 50vw);
  background: radial-gradient(circle, rgba(242, 166, 90, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.pipeline-line {
  position: absolute;
  top: 18%;
  right: 8%;
  width: min(22rem, 40vw);
  height: auto;
  pointer-events: none;
}

.pipeline-line path {
  stroke: var(--apricot);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.2s ease;
}

.js .pipeline-line.is-drawn path {
  stroke-dashoffset: 0;
}

.pipeline-node {
  fill: var(--apricot);
}

.hero-badge-float {
  position: absolute;
  top: calc(var(--header-h) + 1.5rem);
  right: clamp(1rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  background: rgba(36, 24, 48, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(241, 236, 242, 0.18);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--linen);
}

.hero-badge-rail {
  width: 1.5rem;
  height: 1px;
  background: var(--apricot);
  position: relative;
}

.hero-badge-rail::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apricot);
}

.hero-handoff-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
}

.hero-handoff h1 {
  color: var(--linen);
  font-size: clamp(2.75rem, 6.5vw, 5.125rem);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero-handoff h1 .accent {
  color: var(--apricot);
}

.hero-handoff-lead {
  color: rgba(241, 236, 242, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn-secondary {
  color: var(--linen);
  border-color: rgba(241, 236, 242, 0.45);
}

.hero-actions .btn-secondary:hover {
  box-shadow: 0 2px 16px rgba(241, 236, 242, 0.2);
}

.trust-strip {
  position: relative;
  z-index: 1;
  padding: 0.85rem 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lilac);
  border-top: 1px solid rgba(154, 140, 166, 0.35);
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid rgba(23, 17, 28, 0.08);
}

.page-hero h1 { max-width: 22ch; }
.page-hero-lead {
  font-size: 1.125rem;
  color: var(--lilac);
  max-width: 52ch;
}

/* ─── Grid layouts ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ─── Cards ─── */
.card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(23, 17, 28, 0.08);
  border-radius: var(--radius);
  position: relative;
}

.surface-plum .card,
.surface-aubergine .card {
  background: rgba(241, 236, 242, 0.07);
  border-color: rgba(241, 236, 242, 0.12);
}

.card h3 { margin-bottom: 0.5rem; }

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--apricot);
  margin-bottom: 0.75rem;
}

.card-bg-num {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(154, 140, 166, 0.12);
  line-height: 1;
  pointer-events: none;
}

/* ─── Pipeline rail (services) ─── */
.pipeline-rail {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--apricot);
}

.pipeline-rail::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apricot);
}

/* ─── Stats row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--apricot);
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lilac);
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ─── Image frames ─── */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(23, 17, 28, 0.08);
}

.img-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.img-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--lilac);
  margin-top: 0.5rem;
}

.frosted-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(241, 236, 242, 0.15);
}

.frosted-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.frosted-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 17, 28, 0.35);
  pointer-events: none;
}

/* ─── Process steps ─── */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding: 1.25rem 0 1.25rem 3rem;
  border-bottom: 1px solid rgba(23, 17, 28, 0.08);
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--apricot);
}

.surface-aubergine .steps li {
  border-bottom-color: rgba(241, 236, 242, 0.1);
}

/* ─── FAQ ─── */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  border-bottom: 1px solid rgba(23, 17, 28, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--apricot);
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--lilac);
}

.faq-answer[hidden] { display: none; }

/* ─── Forms ─── */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(23, 17, 28, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--plum);
}

textarea { min-height: 8rem; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--apricot);
  outline-offset: 1px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.875rem;
}

.checkbox-label input { width: auto; margin-top: 0.2rem; }

.form-note {
  font-size: 0.8125rem;
  color: var(--lilac);
}

/* ─── Contact info ─── */
.contact-block {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(23, 17, 28, 0.08);
  border-radius: var(--radius);
  color: var(--plum);
}

.surface-plum .contact-block,
.surface-aubergine .contact-block {
  color: var(--plum);
}

.contact-block dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(23, 17, 28, 0.55);
  margin-bottom: 0.25rem;
}

.contact-block dd {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: var(--plum);
}

.surface-plum .contact-block a,
.surface-aubergine .contact-block a {
  color: var(--plum);
  text-decoration-color: var(--apricot);
}

.surface-plum .contact-block a:hover,
.surface-aubergine .contact-block a:hover {
  color: var(--apricot);
}

.contact-block dd:last-child { margin-bottom: 0; }

/* ─── Legal prose ─── */
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--lilac);
  margin-bottom: 2rem;
}

/* ─── Case study ─── */
.case-study {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(23, 17, 28, 0.08);
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--apricot);
  margin-bottom: 0.5rem;
}

/* ─── Service item ─── */
.service-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(23, 17, 28, 0.08);
}

.service-item:last-child { border-bottom: none; }

.service-price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--lilac);
  margin-top: 0.75rem;
}

/* ─── CTA band ─── */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
}

.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { max-width: 42ch; margin-inline: auto 1.5rem; }

/* ─── Footer ─── */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-meta {
  font-size: 0.875rem;
  color: var(--lilac);
  margin-bottom: 0.35rem;
}

.surface-plum .footer-meta { color: rgba(241, 236, 242, 0.65); }
.surface-plum .footer-meta a { color: var(--linen); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover { color: var(--apricot); }

.footer-bottom {
  border-top: 1px solid rgba(241, 236, 242, 0.1);
  padding: 1.5rem 1rem 2rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.footer-disclaimer,
.footer-hosting {
  font-size: 0.8125rem;
  color: var(--lilac);
  margin-bottom: 0.5rem;
}

.surface-plum .footer-disclaimer,
.surface-plum .footer-hosting { color: rgba(241, 236, 242, 0.55); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--lilac);
  margin: 0;
}

.surface-plum .footer-copy { color: rgba(241, 236, 242, 0.45); }

/* ─── Cookie banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem;
  border-top: 1px solid rgba(23, 17, 28, 0.12);
  box-shadow: 0 -4px 24px rgba(23, 17, 28, 0.12);
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.cookie-inner p {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.875rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-custom {
  width: min(100%, var(--max-width));
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 17, 28, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cookie-custom[hidden] { display: none; }

.cookie-custom label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  font-size: 0.875rem;
  margin: 0;
}

/* ─── Reveal animations (visible without JS) ─── */
.reveal {
  transform: translateY(0.75rem);
  transition: transform 0.6s ease;
}

.js .reveal {
  transform: translateY(0.75rem);
}

.js .reveal.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js .reveal,
  .js .reveal.is-visible {
    transform: none;
  }
  .pipeline-line path {
    stroke-dashoffset: 0;
  }
}

/* ─── 404 ─── */
.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 { margin-bottom: 0.75rem; }
.error-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--apricot);
  margin-bottom: 1rem;
}

/* ─── Thanks page ─── */
.thanks-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 2.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
