/* ==========================================================================
   Beelooo — Components
   Shared across every page. Page-specific CSS files should only ever
   hold layout that's truly unique to that one page.
   ========================================================================== */

/* ---- Nav (Liquid Glass) ---- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 100;
  width: calc(100% - 28px);
  max-width: 900px;
  height: 54px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(220%) contrast(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(220%) contrast(1.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(0, 0, 0, 0.06) inset,
    1px 0 0 rgba(255, 255, 255, 0.5) inset,
    -1px 0 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--dur-med) var(--ease-apple), background var(--dur-med) var(--ease-apple);
  overflow: hidden;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.9) 49%, rgba(91, 141, 239, 0.25) 52%, transparent 65%);
  background-size: 260% 100%;
  background-position: 200% 0;
  animation: navSheen 7s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes navSheen {
  0%, 15% { background-position: 200% 0; }
  55%, 100% { background-position: -60% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav::before { animation: none; }
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.07) inset,
    1px 0 0 rgba(255, 255, 255, 0.6) inset,
    -1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.07);
}

.nav__row {
  width: 100%;
  height: 100%;
  padding-inline: 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { height: 22px; width: auto; padding-left: 14px; }
.nav__logo img { height: 100%; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-apple);
}

.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__signin {
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--ink-soft);
}
.nav__signin:hover { color: var(--ink); }

.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; transition: transform var(--dur-fast) var(--ease-apple); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

/* Mobile menu panel — a sibling of .nav, NOT nested inside it. .nav has
   backdrop-filter (and previously transform), and either one makes an
   element a containing block for position:fixed descendants, which
   silently traps a fixed child instead of letting it cover the
   viewport. Keeping this panel outside .nav sidesteps that entirely.
   Do not move this back inside .nav. */
.mobile-nav {
  position: fixed;
  inset: 78px 14px auto 14px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 8px 20px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(220%) contrast(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(220%) contrast(1.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  visibility: hidden;
  pointer-events: none;
  transform-origin: top center;
  transition: opacity var(--dur-med) var(--ease-apple),
              transform var(--dur-med) var(--ease-apple),
              visibility 0s linear var(--dur-med);
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-med) var(--ease-apple),
              transform var(--dur-med) var(--ease-apple),
              visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: opacity var(--dur-fast) linear, visibility 0s linear var(--dur-fast); transform: none; }
  .mobile-nav.is-open { transition: opacity var(--dur-fast) linear; transform: none; }
}
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav a {
  width: 100%;
  padding-block: 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.0625rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.mobile-nav.is-open a { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open a:nth-child(1) { transition-delay: 40ms; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 75ms; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 110ms; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 145ms; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 180ms; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: 215ms; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: 250ms; }
.mobile-nav.is-open a:nth-child(8) { transition-delay: 285ms; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a[aria-current="page"] { color: var(--mist); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav a { transition: opacity var(--dur-fast) linear; transform: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-apple),
              color var(--dur-fast) var(--ease-apple),
              transform var(--dur-fast) var(--ease-apple),
              border-color var(--dur-fast) var(--ease-apple);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover { background: #2a2a2c; }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--secondary:hover { border-color: var(--ink); }

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid var(--hairline-on-dark);
}
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.2); }

.btn--sm { height: 36px; padding-inline: 18px; font-size: 0.875rem; }
.btn--lg { height: 48px; padding-inline: 28px; font-size: 1.0625rem; }

.link-with-chevron {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-apple);
}
.link-with-chevron:hover { border-color: var(--ink); }
.link-with-chevron svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-apple); }
.link-with-chevron:hover svg { transform: translateX(2px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 14px; height: 14px; }

/* ---- Icon tile (iOS-style squircle badge, replaces flat line icons) ---- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 26%;
}
.icon-tile--sm { width: 44px; height: 44px; }
.icon-tile--sm svg { width: 22px; height: 22px; }
.icon-tile--md { width: 56px; height: 56px; }
.icon-tile--md svg { width: 27px; height: 27px; }
.icon-tile--on-fog { background: var(--ink); }

/* ---- Page hero (used by every inner page) ---- */
.page-hero {
  padding-top: 150px;
  padding-bottom: 64px;
}

.page-hero--center { text-align: center; }

.page-hero__eyebrow {
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  color: var(--mist);
  margin-bottom: 18px;
  opacity: 0;
  animation: rise var(--dur-slow) var(--ease-apple) 80ms forwards;
}

.page-hero h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-hero);
  line-height: var(--leading-tight);
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.page-hero--center h1 { margin-inline: auto; }

/* Word-by-word blur reveal, shared by every h1 that gets its words
   wrapped in <span class="word">, either by hand (.hero h1 on the
   homepage) or automatically at runtime (.page-hero h1 everywhere
   else, see splitHeroWords() in main.js). */
h1 .word {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(10px);
  animation: blurReveal 820ms var(--ease-apple) forwards;
}
@keyframes blurReveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  h1 .word { animation: none; opacity: 1; filter: none; transform: none; }
}

.page-hero p {
  margin-top: 20px;
  max-width: 44ch;
  font-size: var(--text-body-large);
  font-weight: var(--weight-medium);
  color: var(--ink-soft);
  line-height: var(--leading-snug);
  opacity: 0;
  animation: rise var(--dur-slow) var(--ease-apple) 260ms forwards;
}
.page-hero--center p { margin-inline: auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__eyebrow, .page-hero p { animation: none; opacity: 1; }
}

/* ---- Split (generic two-column media/text row) ---- */
.split {
  padding-block: 100px;
  border-top: 1px solid var(--hairline);
}

.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split__grid { direction: rtl; }
.split--reverse .split__text,
.split--reverse .split__visual { direction: ltr; }

.split__icon {
  margin-bottom: 20px;
}

.split__text h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-heading);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.split__text p {
  margin-top: 18px;
  font-size: var(--text-body-large);
  font-weight: var(--weight-medium);
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: var(--leading-snug);
}

.split__text .link-with-chevron { margin-top: 22px; }

.split__visual {
  background: var(--fog);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: transform var(--dur-med) var(--ease-apple);
}
.split__visual:hover { transform: translateY(-4px); }
.split__visual img { width: 100%; height: 100%; object-fit: contain; }

/* ---- AI chat demo (Beelooo AI page) ---- */
.ai-chat__log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  max-height: 360px;
  overflow-y: auto;
  transition: opacity 400ms ease;
}
.ai-chat__log.is-resetting { opacity: 0; }
.ai-chat__bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: var(--leading-snug);
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-chat__bubble--user {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.ai-chat__bubble--ai {
  align-self: flex-start;
  background: var(--fog);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.ai-chat__bubble--ai.is-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 16px;
}
.ai-chat__bubble--ai.is-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mist);
  animation: typingDot 1.1s ease-in-out infinite;
}
.ai-chat__bubble--ai.is-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat__bubble--ai.is-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.ai-chat__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.9s step-end infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ai-chat__bubble--ai.is-typing span { animation: none; opacity: 1; }
  .ai-chat__cursor { animation: none; }
}

/* ---- Device frame (browser chrome around a product screenshot) ---- */
.device-frame {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.device-frame__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  background: var(--fog);
  border-bottom: 1px solid var(--hairline);
}
.device-frame__dots { display: flex; gap: 6px; flex-shrink: 0; }
.device-frame__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); }
.device-frame__url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: var(--mist);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 12px;
  max-width: 220px;
  margin-inline: auto;
}
.device-frame__body { padding: 20px 24px 24px; }
.device-frame__body img { width: 100%; height: auto; }

/* ---- Panel: small live-UI card used inside split visuals ---- */
.panel {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 11px;
  border-bottom: 1px solid var(--fog-deep);
  font-size: 0.875rem;
}
.panel__row:last-child { border-bottom: none; }
.panel__row span:first-child { color: var(--ink); font-weight: var(--weight-medium); }
.panel__row span:last-child { color: var(--mist); }
.panel__row span.is-ink { color: var(--ink); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel__label { font-size: 0.75rem; font-weight: 600; color: var(--mist); letter-spacing: 0.02em; }
.panel__value { text-align: right; font-size: 0.75rem; color: var(--mist); }
.panel__value strong { display: block; font-size: 1.375rem; color: var(--ink); font-weight: 700; }

.panel__bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.panel__bars div { flex: 1; border-radius: 4px; background: var(--fog-deep); }
.panel__bars div.is-peak { background: var(--black); }

/* ---- Steps (numbered process, e.g. How it works) ---- */
.steps { padding-block: 90px; border-top: 1px solid var(--hairline); }
.steps__head { max-width: 46ch; margin-bottom: 44px; }
.steps__head h2 { font-size: var(--text-h2); font-weight: var(--weight-heading); letter-spacing: -0.025em; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9375rem; font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.step p { margin-top: 8px; font-size: 0.875rem; color: var(--mist); line-height: var(--leading-normal); max-width: 30ch; }

/* ---- Icon grid (industries hub, features overview) ---- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(var(--icon-grid-cols, 5), 1fr);
  gap: 14px;
}

.icon-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 176px;
  transition: transform var(--dur-fast) var(--ease-apple), box-shadow var(--dur-fast) var(--ease-apple);
}
.icon-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08); }
.icon-card img { width: 26px; height: 26px; }
.icon-card span { font-size: 0.9375rem; font-weight: 600; }
.icon-card__body p { margin-top: 6px; font-size: 0.8125rem; font-weight: 400; color: var(--mist); line-height: var(--leading-normal); }

/* ---- Prose (legal + article content: About, Privacy, Terms) ---- */
.prose {
  padding-block: 20px 100px;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose h2 {
  font-size: 1.375rem;
  font-weight: var(--weight-heading);
  letter-spacing: -0.015em;
  margin-top: 44px;
  margin-bottom: 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: var(--leading-normal);
  margin-bottom: 14px;
}
.prose ul { margin-bottom: 14px; }
.prose li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: var(--leading-normal);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mist);
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose__updated { font-size: 0.8125rem; color: var(--mist); margin-bottom: 40px; }

/* ---- FAQ accordion ---- */
.faq { padding-block: 90px; border-top: 1px solid var(--hairline); }
.faq .container--narrow { margin-inline: auto; }
.faq h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-heading);
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 40px;
}
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
}
.faq-item__trigger svg { flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-apple); }
.faq-item.is-open .faq-item__trigger svg { transform: rotate(45deg); }
.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-med) var(--ease-apple); }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel > div { overflow: hidden; }
.faq-item__panel p {
  padding-bottom: 22px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: var(--leading-normal);
  max-width: 56ch;
}

/* ---- Forms (Contact) ---- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-apple);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- CTA (dark, closes almost every page) ---- */
.cta {
  background: var(--black);
  color: var(--white);
  padding-block: 110px;
  text-align: center;
}
.cta h2 {
  color: var(--white);
  font-size: var(--text-h2);
  font-weight: var(--weight-hero);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-inline: auto;
}
.cta p {
  margin: 16px auto 0;
  max-width: 40ch;
  font-weight: var(--weight-medium);
  color: var(--mist-on-dark);
  font-size: var(--text-body-large);
}
.cta__actions { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.cta__actions .btn { height: 48px; padding-inline: 28px; font-size: 1.0625rem; }

/* ---- Footer ---- */
.footer {
  background: var(--black);
  color: var(--mist-on-dark);
  padding-block: 72px 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline-on-dark);
}

.footer__brand img { height: 20px; margin-bottom: 16px; }
.footer__brand p {
  font-size: 0.8125rem;
  color: var(--mist-on-dark);
  max-width: 230px;
  line-height: var(--leading-normal);
  margin-bottom: 20px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-apple), background var(--dur-fast) var(--ease-apple);
}
.footer__social a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.footer__social svg { width: 15px; height: 15px; color: var(--ink-on-dark); }

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-on-dark);
  margin-bottom: 16px;
}

.footer__col ul li { margin-bottom: 11px; }
.footer__col ul a {
  font-size: 0.8125rem;
  color: var(--mist-on-dark);
  transition: color var(--dur-fast) var(--ease-apple);
}
.footer__col ul a:hover { color: var(--ink-on-dark); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p, .footer__legal a {
  font-size: 0.75rem;
  color: var(--mist-on-dark);
}

.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: var(--ink-on-dark); }
.footer__legal button { font-size: 0.75rem; color: var(--mist-on-dark); }
.footer__legal button:hover { color: var(--ink-on-dark); }

/* ---- Cookie consent ---- */
.cookie-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 640px;
  margin-inline: auto;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink-on-dark);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(140%);
  opacity: 0;
  transition: transform var(--dur-med) var(--ease-apple), opacity var(--dur-med) var(--ease-apple);
}
.cookie-bar.is-visible { transform: translateY(0); opacity: 1; }
.cookie-bar p { font-size: 0.8125rem; line-height: var(--leading-normal); color: var(--mist-on-dark); margin-bottom: 14px; }
.cookie-bar p a { color: var(--ink-on-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar__actions .btn--primary { background: var(--white); color: var(--black); }
.cookie-bar__actions .btn--primary:hover { background: var(--fog); }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cookie-modal.is-open { display: flex; }
.cookie-modal__panel {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.cookie-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cookie-modal__panel h3 { font-size: 1.125rem; }
.cookie-modal__close {
  width: 28px; height: 28px; border-radius: 50%; background: var(--fog);
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal__panel > p { font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 20px; }
.cookie-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-block: 14px; border-top: 1px solid var(--hairline);
}
.cookie-row:last-of-type { border-bottom: 1px solid var(--hairline); margin-bottom: 20px; }
.cookie-row__label { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.cookie-row__desc { font-size: 0.75rem; color: var(--mist); line-height: var(--leading-normal); }
.switch {
  position: relative; width: 42px; height: 26px; flex-shrink: 0;
  border-radius: var(--radius-pill); background: var(--hairline);
  transition: background var(--dur-fast) var(--ease-apple);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform var(--dur-fast) var(--ease-apple);
}
.switch.is-on { background: var(--black); }
.switch.is-on::after { transform: translateX(16px); }
.switch.is-disabled { background: var(--ink); opacity: 0.4; }
.cookie-modal__footer { display: flex; gap: 10px; }
.cookie-modal__footer .btn { flex: 1; }

/* ---- Contact page grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  padding-block: 0 100px;
}
.contact-grid h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-heading);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* ---- Shared responsive rules ---- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__signin { display: none; }
  .nav__toggle { display: flex; }
  .split__grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__grid { direction: ltr; }
  .split__visual { order: -1; aspect-ratio: 16 / 11; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .footer__grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 116px; padding-bottom: 48px; }
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; }
}
