/* Design tokens — cognitive minimal */
:root {
  --color-text: #1A1C20;
  --color-muted: #8E9AAF;
  --color-accent: #7DF9FF;
  --color-bg: #F4F7FA;
  --color-surface: #eef2f6;
  --font-sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 0.75rem;
  --header-h: 4rem;
  --shadow-inset: inset 0 2px 8px rgba(26, 28, 32, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 12px 40px rgba(26, 28, 32, 0.08);
  --max-w: 72rem;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  overflow-x: hidden;
  background: var(--color-bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-muted);
}

.wrap {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.wrap-inner {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(142, 154, 175, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-h);
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text:hover {
  color: var(--color-text);
}

/* Nav: desktop inline until 1023px */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
}

.nav-list a {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: font-weight var(--transition), color var(--transition);
}

.nav-list a:hover {
  font-weight: 650;
  color: var(--color-text);
}

/* Burger — visible up to 1023px */
.burger {
  order: 3;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.burger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

@media (max-width: 1023px) {
  .burger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(244, 247, 250, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(142, 154, 175, 0.2);
    padding: var(--space-md);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition), visibility var(--transition);
    z-index: 30;
    justify-content: flex-start;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: max-content;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding-top: var(--space-md);
  }

  .nav-list a {
    font-size: 1.05rem;
  }
}

/* Hero — image under text */
.section {
  padding-block: var(--space-xl);
}

.hero {
  padding: 0;
}

.hero-banner {
  position: relative;
  min-height: min(78vh, 40rem);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.legal-hero {
  min-height: min(42vh, 22rem);
  border-radius: 0 0 var(--radius) var(--radius);
}

.legal-hero-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
      125deg,
      rgba(125, 249, 255, 0.14) 0%,
      rgba(142, 154, 175, 0.22) 45%,
      rgba(244, 247, 250, 0.95) 100%
    ),
    radial-gradient(ellipse 70% 55% at 15% 35%, rgba(26, 28, 32, 0.07), transparent 70%);
}

.legal-hero[data-legal-tone="terms"] .legal-hero-layer {
  background: linear-gradient(
      145deg,
      rgba(142, 154, 175, 0.28) 0%,
      rgba(244, 247, 250, 0.5) 50%,
      rgba(125, 249, 255, 0.1) 100%
    ),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(26, 28, 32, 0.05), transparent 65%);
}

.legal-hero[data-legal-tone="cookies"] .legal-hero-layer {
  background: linear-gradient(
      160deg,
      rgba(244, 247, 250, 0.95) 0%,
      rgba(142, 154, 175, 0.18) 55%,
      rgba(125, 249, 255, 0.12) 100%
    ),
    radial-gradient(circle at 50% 80%, rgba(26, 28, 32, 0.06), transparent 55%);
}

.legal-hero[data-legal-tone="returns"] .legal-hero-layer {
  background: linear-gradient(
      110deg,
      rgba(26, 28, 32, 0.04) 0%,
      rgba(142, 154, 175, 0.2) 40%,
      rgba(244, 247, 250, 0.92) 100%
    ),
    radial-gradient(ellipse 55% 45% at 70% 60%, rgba(125, 249, 255, 0.08), transparent 60%);
}

.legal-main .hero-content {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  padding-inline: 0;
}

.legal-main .hero-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  max-width: 24ch;
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
}

.legal-main .hero-content .lede {
  margin: 0;
}

.legal-main .hero-banner .hero-content {
  padding-block: var(--space-lg) var(--space-md);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(244, 247, 250, 0.88) 0%,
    rgba(244, 247, 250, 0.55) 45%,
    rgba(244, 247, 250, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-xl) var(--space-lg);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin: 0 0 var(--space-sm);
  animation: breath-pulse 10s ease-in-out infinite;
}

@keyframes breath-pulse {
  0%,
  100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  max-width: 20ch;
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
}

.lede {
  max-width: 38rem;
  margin: 0;
  color: var(--color-text);
  opacity: 0.92;
}

/* Grids */
.grid-two {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .grid-two {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .grid-split {
    grid-template-columns: 1fr 1fr;
  }

  .order-1 {
    order: 1;
  }

  .order-2 {
    order: 2;
  }
}

.card-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.narrative-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .narrative-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Recessed panels */
.recess-card,
.panel-figure {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inset);
  border: 1px solid rgba(142, 154, 175, 0.2);
}

.recess-card {
  padding: var(--space-md);
}

.panel-figure {
  overflow: hidden;
  margin: 0;
}

.panel-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.text-block h2,
.section-head h2,
.metrics-band h2,
.contact-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-top: 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.subhead {
  color: var(--color-muted);
  margin: 0;
}

.intro-narrow {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.alt-band {
  background: linear-gradient(180deg, rgba(142, 154, 175, 0.08), transparent);
}

.metrics-band {
  text-align: center;
}

.metric-tile {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-inset);
  text-align: left;
}

.metric-label {
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-xs);
}

.metric-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.plain-list {
  padding-left: 1.2rem;
  margin: var(--space-sm) 0 0;
}

.plain-list li {
  margin-bottom: 0.35rem;
}

/* Banner image under caption */
.banner-under {
  position: relative;
  margin-top: var(--space-lg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.banner-under img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: saturate(0.95);
}

.banner-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  background: linear-gradient(0deg, rgba(26, 28, 32, 0.55), transparent 55%);
}

.banner-caption p {
  margin: 0;
  color: #fff;
  max-width: 28rem;
  font-size: 0.95rem;
}

.narrative-card {
  margin: 0;
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inset);
  border-left: 3px solid var(--color-accent);
  font-size: 0.95rem;
}

.price {
  font-weight: 600;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* Contact */
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-lines a {
  word-break: break-word;
}

.map-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: var(--space-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(142, 154, 175, 0.45);
  background: #fff;
  font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.consent {
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-text);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.btn-primary:hover {
  background: #2a2d33;
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(142, 154, 175, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  border-color: var(--color-text);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(142, 154, 175, 0.25);
  padding-block: var(--space-lg);
  margin-top: var(--space-xl);
  background: rgba(238, 242, 246, 0.6);
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand {
  text-decoration: none;
}

.footer-nav .nav-list {
  justify-content: flex-start;
}

.policy-strip {
  margin: var(--space-sm) 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.policy-strip a {
  text-decoration: none;
}

.policy-sep {
  color: var(--color-muted);
}

.footer-domain,
.footer-year,
.footer-meta .date {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: var(--space-md);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.cookie-banner.is-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.cookie-inner {
  width: min(100%, 32rem);
  margin-left: auto;
  padding: var(--space-md);
}

.cookie-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.1rem;
}

.cookie-text {
  margin: 0 0 var(--space-sm);
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Foggy reveal */
.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.75rem);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Thank you page */
.thank-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thank-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-sm);
}

.thank-card {
  width: min(100% - 2rem, 28rem);
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.thank-card h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.thank-card p {
  color: var(--color-muted);
}

/* Legal pages */
.legal-main {
  padding-block: var(--space-xl);
}

.legal-main .wrap {
  max-width: 48rem;
}

.legal-main h1 {
  font-size: 1.75rem;
}

.legal-main h2 {
  font-size: 1.2rem;
  margin-top: var(--space-lg);
}

.legal-main p,
.legal-main li {
  font-size: 0.95rem;
}

.date {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: var(--space-lg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .eyebrow {
    animation: none;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .burger-bar,
  .site-nav {
    transition: none;
  }
}
