/* ──────────────────────────────────────────────────────────────────────────
   MiLocal placeholder — single-file CSS
   Drenched-terracotta hero · layered preview · manifesto.
   Tokens mirror DESIGN.md. Self-hosted Reforma; Cabinet Grotesk via Fontshare.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Reforma 1969";
  src: url("/fonts/Reforma1969-Gris.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Reforma 1969";
  src: url("/fonts/Reforma1969-Negra.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand — terracotta */
  --brand-400: oklch(62% 0.16 32);
  --brand-500: oklch(52.5% 0.168 29);
  --brand-600: oklch(43% 0.15 26);
  --brand-700: oklch(35% 0.12 24);
  --brand-800: oklch(26% 0.09 24);
  --brand-900: oklch(18% 0.06 24);

  /* Sand neutrals — tinted toward brand hue */
  --sand-50: oklch(97.5% 0.007 80);
  --sand-100: oklch(95% 0.014 80);
  --sand-150: oklch(92% 0.02 75);
  --sand-200: oklch(89% 0.024 80);
  --sand-300: oklch(80% 0.02 70);
  --sand-500: oklch(56% 0.018 55);
  --sand-600: oklch(47% 0.016 52);
  --sand-700: oklch(40% 0.015 50);
  --sand-900: oklch(19.5% 0.008 55);

  /* Cream — for type on dark terracotta */
  --cream: oklch(95% 0.022 75);

  /* Forest accent (for the WhatsApp pulse motif) */
  --forest-500: oklch(57% 0.13 152);

  --font-display: "Reforma 1969", Georgia, serif;
  --font-sans: "Cabinet Grotesk", system-ui, sans-serif;

  --shadow-card:
    0 4px 6px oklch(19.5% 0.008 55 / 0.07),
    0 2px 4px oklch(19.5% 0.008 55 / 0.05);
  --shadow-lifted:
    0 30px 60px -20px oklch(20% 0.06 25 / 0.45),
    0 14px 28px -14px oklch(20% 0.06 25 / 0.3);
  --shadow-floating:
    0 40px 80px -20px oklch(15% 0.04 25 / 0.55),
    0 20px 40px -16px oklch(15% 0.04 25 / 0.35);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--sand-50);
  color: var(--sand-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

:lang(es) p {
  hyphens: auto;
}

a {
  color: var(--brand-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--brand-700);
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--sand-900);
  color: var(--cream);
  border-radius: 0 0 6px 6px;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

.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;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ──────────────────────────────────────────────────────────
   HERO — drenched terracotta with sun + grain
   ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse 90% 70% at 78% 20%,
      oklch(62% 0.16 32 / 0.95),
      transparent 60%
    ),
    linear-gradient(180deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: var(--cream);
  padding: 4.5rem 1.5rem 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 2.5rem 0;
  }
}
@media (min-width: 1100px) {
  .hero {
    padding: 7.5rem 4rem 0;
  }
}

/* Soft grain layer — adds depth without going glossy */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Sun — large soft circle behind wordmark */
.hero-sun {
  position: absolute;
  top: -8%;
  right: -10%;
  width: 60vmin;
  height: 60vmin;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    oklch(78% 0.16 70 / 0.7) 0%,
    oklch(70% 0.18 50 / 0.5) 30%,
    transparent 70%
  );
  filter: blur(2px);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-sun {
    top: -12%;
    right: -8%;
    width: 50vmin;
    height: 50vmin;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero-inner {
    padding-bottom: 6.5rem;
  }
}

/* Kicker tag */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0.4rem 0.875rem 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  background: oklch(20% 0.04 25 / 0.35);
  border: 1px solid oklch(95% 0.02 75 / 0.25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-up 700ms 100ms var(--ease-out-expo) both;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(78% 0.16 70);
  box-shadow: 0 0 0 0 oklch(78% 0.16 70 / 0.6);
  animation: pulse 2.4s var(--ease-out-quart) infinite;
}

.kicker-dark {
  color: var(--brand-700);
  background: var(--sand-100);
  border-color: var(--sand-200);
  backdrop-filter: none;
}
.kicker-dark .kicker-dot {
  background: var(--brand-500);
  box-shadow: 0 0 0 0 oklch(52.5% 0.168 29 / 0.5);
}

/* Wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
  color: var(--cream);
  animation: fade-up 800ms 180ms var(--ease-out-expo) both;
}

.wordmark-mi {
  font-style: italic;
  font-weight: 400;
  color: oklch(85% 0.08 65);
  margin-right: 0.04em;
}
.wordmark-local {
  display: inline-block;
}

@media (min-width: 768px) {
  .wordmark {
    font-size: clamp(5.5rem, 16vw, 13rem);
  }
}

/* Tagline */
.tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
  color: oklch(95% 0.022 75 / 0.9);
  max-width: 36rem;
  margin: 0 0 2.5rem;
  animation: fade-up 800ms 280ms var(--ease-out-expo) both;
}

.tagline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: oklch(85% 0.08 65);
  font-size: 1.05em;
}

/* Subscribe form */
.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 30rem;
  margin: 0 0 1rem;
  animation: fade-up 800ms 380ms var(--ease-out-expo) both;
}

.subscribe input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--sand-900);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    border-color 200ms var(--ease-out-expo),
    box-shadow 200ms var(--ease-out-expo);
}
.subscribe input[type="email"]::placeholder {
  color: var(--sand-500);
}
.subscribe input[type="email"]:focus {
  outline: none;
  border-color: oklch(85% 0.08 65);
  box-shadow: 0 0 0 4px oklch(85% 0.08 65 / 0.4);
}

.subscribe button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.95rem 1.35rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-out-quart),
    background-color 200ms var(--ease-out-quart),
    color 200ms var(--ease-out-quart);
}
.subscribe button:hover {
  background: oklch(98% 0.012 75);
  transform: translateX(2px);
}
.subscribe button:hover .btn-arrow {
  transform: translateX(2px);
}
.subscribe button:active {
  transform: translateX(1px);
}
.subscribe button:disabled {
  background: oklch(80% 0.02 70);
  color: var(--sand-700);
  cursor: not-allowed;
}

.btn-arrow {
  transition: transform 200ms var(--ease-out-quart);
}

.form-message {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25rem;
  color: oklch(95% 0.022 75 / 0.85);
}
.form-message.success {
  color: oklch(88% 0.12 152);
  font-weight: 500;
}
.form-message.error {
  color: oklch(85% 0.13 35);
  font-weight: 500;
}

.legal {
  font-size: 0.8125rem;
  color: oklch(95% 0.022 75 / 0.65);
  margin: 0;
  max-width: 30rem;
  animation: fade-up 800ms 480ms var(--ease-out-expo) both;
}
.legal a {
  color: oklch(95% 0.022 75 / 0.9);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal a:hover {
  color: var(--cream);
}

/* Hero marquee — scrolling city names at base of hero */
.hero-marquee {
  position: relative;
  z-index: 1;
  margin: 0 -1.5rem;
  border-top: 1px solid oklch(95% 0.022 75 / 0.18);
  border-bottom: 1px solid oklch(95% 0.022 75 / 0.18);
  background: oklch(20% 0.05 25 / 0.18);
  overflow: hidden;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: oklch(95% 0.022 75 / 0.55);
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 8%,
    black 92%,
    transparent 100%
  );
}
@media (min-width: 768px) {
  .hero-marquee {
    margin: 0 -2.5rem;
    font-size: 1.5rem;
  }
}
@media (min-width: 1100px) {
  .hero-marquee {
    margin: 0 -4rem;
  }
}

.hero-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.875rem 0;
  white-space: nowrap;
  animation: scroll-x 60s linear infinite;
}
.hero-marquee-track .dot {
  color: oklch(78% 0.16 70 / 0.7);
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track {
    animation: none;
  }
  .kicker-dot {
    animation: none;
  }
  .wordmark,
  .tagline,
  .kicker,
  .subscribe,
  .legal {
    animation: none;
  }
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 oklch(78% 0.16 70 / 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px oklch(78% 0.16 70 / 0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────────────────────────────────────────────────────
   PARALLAX — applied via translateY(var(--py))
   ────────────────────────────────────────────────────────── */

[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* Hero sun also has a base position transform — combine */
.hero-sun[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
}

/* Reveal-on-scroll */
.scene,
.pillar,
.cat,
.preview-intro,
.categories-head,
.cta-foot-inner {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-out-expo),
    transform 700ms var(--ease-out-expo);
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scene,
  .pillar,
  .cat,
  .preview-intro,
  .categories-head,
  .cta-foot-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ──────────────────────────────────────────────────────────
   SCENES — staggered LATAM imagery
   ────────────────────────────────────────────────────────── */

.scenes {
  position: relative;
  background: var(--sand-50);
  padding: 5rem 0 4rem;
  overflow: clip; /* clip layout overflow without creating scroll container */
}
@media (min-width: 768px) {
  .scenes {
    padding: 7rem 0 5rem;
  }
}
@media (min-width: 1100px) {
  .scenes {
    padding: 9rem 0 6rem;
  }
}

.scenes-rail {
  position: relative;
  /* Mobile: edge-to-edge swipe strip with leading indent */
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem 0.75rem 1.25rem;
  scroll-padding-left: 1.25rem;
  scrollbar-width: none;
}
.scenes-rail::-webkit-scrollbar {
  display: none;
}
@media (min-width: 800px) {
  .scenes-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    overflow-x: visible;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2.5rem;
  }
}
@media (min-width: 1100px) {
  .scenes-rail {
    padding: 0 4rem;
  }
}

.scene {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sand-200);
  box-shadow: var(--shadow-card);
  /* Mobile: fixed-width swipeable cards */
  flex: 0 0 72vw;
  scroll-snap-align: start;
}
@media (min-width: 800px) {
  .scene {
    flex: none;
    scroll-snap-align: none;
  }
}
.scene img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 800ms var(--ease-out-quart);
}
@media (min-width: 800px) {
  .scene img {
    aspect-ratio: 3 / 4;
  }
}
.scene:hover img {
  transform: scale(1.04);
}

.scene figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 0.875rem;
  color: var(--cream);
  font-size: 0.875rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    oklch(15% 0.04 25 / 0.65) 100%
  );
}
.scene-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.scene-place {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Vertical stagger for desktop — gives the rail rhythm */
@media (min-width: 800px) {
  .scene-1 { margin-top: 0; }
  .scene-2 { margin-top: 3rem; }
  .scene-3 { margin-top: 1rem; }
  .scene-4 { margin-top: 4rem; }
}

.scenes-caption {
  max-width: 80rem;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: var(--sand-700);
  letter-spacing: -0.01em;
  text-align: center;
}
.scenes-caption em {
  font-style: italic;
  color: var(--brand-500);
}

/* ──────────────────────────────────────────────────────────
   PREVIEW — layered composition on cream/sand
   ────────────────────────────────────────────────────────── */

.preview {
  position: relative;
  background: var(--sand-50);
  padding: 6rem 1.5rem 4rem;
}
@media (min-width: 768px) {
  .preview {
    padding: 8rem 2.5rem 5rem;
  }
}
@media (min-width: 1100px) {
  .preview {
    padding: 9rem 4rem 6rem;
  }
}

.preview-intro {
  max-width: 80rem;
  margin: 0 auto 4rem;
}

.preview-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--sand-900);
  margin: 0 0 1rem;
  max-width: 22ch;
}
.preview-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-500);
}

.preview-sub {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  color: var(--sand-700);
  max-width: 38rem;
  margin: 0;
  line-height: 1.55;
}

/* The stage */
.preview-stage {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 30rem;
}

@media (min-width: 1100px) {
  .preview-stage {
    min-height: 44rem;
  }
}

.frame {
  margin: 0;
  background: var(--cream);
  border-radius: 14px;
  box-shadow: var(--shadow-lifted);
  overflow: hidden;
  border: 1px solid var(--sand-200);
}

.frame-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: var(--sand-100);
  border-bottom: 1px solid var(--sand-200);
  font-size: 0.75rem;
  color: var(--sand-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.frame-chrome .dot-r,
.frame-chrome .dot-y,
.frame-chrome .dot-g {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.frame-chrome .dot-r {
  background: oklch(72% 0.13 25);
}
.frame-chrome .dot-y {
  background: oklch(82% 0.12 85);
}
.frame-chrome .dot-g {
  background: oklch(72% 0.12 152);
}
.frame-chrome .frame-url {
  margin-left: 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-tag {
  position: absolute;
  top: 3rem;
  left: 1.25rem;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  background: var(--brand-500);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

/* Mobile-first: stacked, untilted */
.frame-results,
.frame-dashboard,
.frame-mobile {
  position: relative;
  margin-bottom: 2rem;
}

.frame-results img,
.frame-dashboard img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.frame-mobile {
  max-width: 18rem;
  margin: 0 auto 2rem;
}

.phone-frame {
  position: relative;
  padding: 0.6rem 0.5rem 0.5rem;
  background: var(--sand-900);
  border-radius: 28px;
  box-shadow: var(--shadow-floating);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.35rem;
  background: oklch(15% 0.005 55);
  border-radius: 999px;
  z-index: 2;
}
.phone-frame img {
  border-radius: 22px;
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop: layered composition.
   Parallax adds translateY via --py; we compose with rotate here. */
@media (min-width: 1100px) {
  .preview-stage {
    display: block;
  }

  .frame-results,
  .frame-dashboard,
  .frame-mobile {
    position: absolute;
    margin-bottom: 0;
  }

  .frame-results {
    top: 0;
    left: 0;
    width: 70%;
    transform: translate3d(0, var(--py, 0px), 0) rotate(-2.5deg);
    transform-origin: top left;
    z-index: 1;
  }

  .frame-dashboard {
    top: 6rem;
    right: 4%;
    width: 56%;
    transform: translate3d(0, var(--py, 0px), 0) rotate(2deg);
    transform-origin: top right;
    z-index: 2;
    box-shadow: var(--shadow-floating);
  }

  .frame-mobile {
    top: auto;
    bottom: 0;
    left: 32%;
    width: 14rem;
    max-width: none;
    transform: translate3d(0, var(--py, 0px), 0) rotate(-4deg);
    z-index: 3;
  }
}

/* ──────────────────────────────────────────────────────────
   MANIFESTO — three pillars, big numerals
   ────────────────────────────────────────────────────────── */

.manifesto {
  position: relative;
  background: var(--sand-100);
  border-top: 1px solid var(--sand-200);
  padding: 5rem 1.5rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .manifesto {
    padding: 7rem 2.5rem;
    margin-top: 6rem;
  }
}
@media (min-width: 1100px) {
  .manifesto {
    padding: 8rem 4rem;
  }
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .manifesto-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.pillar {
  border-top: 1px solid var(--sand-300);
  padding-top: 1.5rem;
}

.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--brand-500);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--sand-900);
  margin: 0 0 0.625rem;
  line-height: 1.15;
}

.pillar p {
  font-size: 1rem;
  color: var(--sand-700);
  line-height: 1.6;
  margin: 0;
  max-width: 28ch;
}

/* ──────────────────────────────────────────────────────────
   CATEGORIES — angled card grid
   ────────────────────────────────────────────────────────── */

.categories {
  position: relative;
  background: var(--sand-50);
  padding: 5rem 1.5rem;
}
@media (min-width: 768px) {
  .categories {
    padding: 7rem 2.5rem;
  }
}
@media (min-width: 1100px) {
  .categories {
    padding: 8rem 4rem;
  }
}

.categories-head {
  max-width: 80rem;
  margin: 0 auto 3rem;
}

.categories-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sand-900);
  margin: 1rem 0 0;
  max-width: 24ch;
}
.categories-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-500);
}

.cat-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 80rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
@media (min-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }
  .cat {
    aspect-ratio: 1 / 1;
  }
}

.cat {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--sand-200);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--cat-rotate, 0));
  transition:
    transform 400ms var(--ease-out-quart),
    box-shadow 400ms var(--ease-out-quart);
}
.cat:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: var(--shadow-lifted);
}
.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.92);
}
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    oklch(15% 0.04 25 / 0.7) 100%
  );
  z-index: 1;
}
.cat-name {
  position: absolute;
  left: 1rem;
  bottom: 2rem;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--cream);
  letter-spacing: -0.01em;
}
.cat-count {
  position: absolute;
  left: 1rem;
  bottom: 0.875rem;
  z-index: 2;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(95% 0.022 75 / 0.7);
}

/* ──────────────────────────────────────────────────────────
   CTA FOOT — secondary signup band
   ────────────────────────────────────────────────────────── */

.cta-foot {
  background:
    radial-gradient(
      ellipse 80% 80% at 30% 30%,
      oklch(62% 0.16 32 / 0.85),
      transparent 60%
    ),
    linear-gradient(180deg, var(--brand-700) 0%, var(--brand-800) 100%);
  color: var(--cream);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cta-foot {
    padding: 7rem 2.5rem;
  }
}
.cta-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.cta-foot-inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-foot-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 1rem 0 2rem;
  color: var(--cream);
}
.cta-foot-heading em {
  font-style: italic;
  font-weight: 400;
  color: oklch(85% 0.08 65);
}

.subscribe-foot {
  max-width: 32rem;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────── */

.footer {
  background: var(--sand-900);
  color: oklch(85% 0.02 75 / 0.7);
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) {
  .footer {
    padding: 3rem 2.5rem;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-meta {
  font-style: italic;
}

.footer-links a {
  color: oklch(85% 0.02 75 / 0.85);
  margin: 0 0.25rem;
}
.footer-links a:hover {
  color: var(--cream);
}
.footer-links span {
  color: oklch(85% 0.02 75 / 0.35);
  margin: 0 0.25rem;
}


/* ──────────────────────────────────────────────────────────
   PRIVACY PAGE — uses .page wrapper
   ────────────────────────────────────────────────────────── */

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

@media (min-width: 768px) {
  .page {
    padding: 6rem 2rem 4rem;
  }
}

.prose {
  max-width: 38rem;
  margin: 0 auto;
}
.prose h1 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sand-900);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.prose .updated {
  color: var(--sand-500);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sand-900);
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.prose p,
.prose li {
  font-size: 1rem;
  color: var(--sand-900);
}
.prose ul {
  padding-left: 1.25rem;
}
.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.875rem;
}
