/* ═══════════════════════════════════════════════════════════
   ReMyind — Design System
   Terracotta warmth meets editorial precision
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --terra: #C4522A;
  --terra-light: #E07050;
  --terra-pale: #FBEDE7;
  --terra-deep: #8B3318;
  --cream: #FAF4EC;
  --cream-card: #F5EDE0;
  --white: #FFFFFF;
  --ink: #2D1F14;
  --ink-mid: #6B4F3A;
  --ink-muted: #A8896E;
  --border: #E8D9C8;
  --border-subtle: #F0E6D8;
  --purple: #7C3AED;
  --green: #22C55E;
  --gold: #F59E0B;
  --blue: #1B5FE8;
  --red: #EF4444;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 2px 20px rgba(45, 31, 20, 0.06);
  --shadow-card: 0 4px 32px rgba(45, 31, 20, 0.08);
  --shadow-elevated: 0 12px 48px rgba(45, 31, 20, 0.12);
}

/* ── Reset & Base ──────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terra-deep); }

/* ── Typography ────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { color: var(--ink-mid); }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.text-muted { color: var(--ink-muted); }

/* ── Layout ────────────────────────────────────────────── */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ── Grain Overlay ─────────────────────────────────────── */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled {
  background: rgba(250, 244, 236, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--terra);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--terra); }

.nav__cta {
  background: var(--terra);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.nav__cta:hover {
  background: var(--terra-deep);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 82, 42, 0.3);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 244, 236, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav__links.active { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero__bg-circle--1 {
  width: 600px;
  height: 600px;
  background: var(--terra);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.hero__bg-circle--2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  bottom: -100px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero__bg-circle--3 {
  width: 200px;
  height: 200px;
  background: var(--gold);
  top: 40%;
  left: 60%;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--terra-pale);
  border: 1px solid rgba(196, 82, 42, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--terra-light);
  opacity: 0.4;
  border-radius: 2px;
}

.hero__desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone {
  width: 280px;
  height: 560px;
  background: var(--ink);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(45, 31, 20, 0.1);
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__phone:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--cream) 0%, var(--terra-pale) 50%, var(--cream-card) 100%);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px;
}

.hero__phone-header {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero__phone-quiz {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  width: 100%;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

.hero__phone-question {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero__phone-option {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  color: var(--ink-mid);
  margin-bottom: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.hero__phone-option--correct {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  color: #15803D;
}

.hero__phone-stats {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.hero__phone-stat {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero__phone-stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--terra);
}

.hero__phone-stat-label {
  font-size: 0.55rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Floating elements */
.hero__float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: bob 4s ease-in-out infinite;
}

.hero__float--streak {
  top: 60px;
  right: -30px;
  color: var(--gold);
}

.hero__float--coins {
  bottom: 80px;
  left: -30px;
  color: var(--terra);
  animation-delay: -2s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 968px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero__desc { margin: 0 auto 40px; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__phone { transform: none; }
  .hero__float { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn--primary {
  background: var(--terra);
  color: white;
}

.btn--primary:hover {
  background: var(--terra-deep);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 82, 42, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--terra);
  padding: 14px 16px;
}

.btn--ghost:hover {
  background: var(--terra-pale);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   Marquee / Social Proof
   ═══════════════════════════════════════════════════════════ */

.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 48px;
  animation: scroll 30s linear infinite;
}

.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.marquee__item span {
  font-size: 1.4rem;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   Features Section
   ═══════════════════════════════════════════════════════════ */

.features {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .text-xs {
  color: var(--terra);
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--terra);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card__icon--terra { background: var(--terra-pale); }
.feature-card__icon--purple { background: rgba(124, 58, 237, 0.1); }
.feature-card__icon--gold { background: rgba(245, 158, 11, 0.1); }
.feature-card__icon--green { background: rgba(34, 197, 94, 0.1); }
.feature-card__icon--blue { background: rgba(27, 95, 232, 0.1); }
.feature-card__icon--red { background: rgba(239, 68, 68, 0.1); }

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 968px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   How It Works
   ═══════════════════════════════════════════════════════════ */

.how-it-works {
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--terra-pale), var(--terra), var(--terra-pale));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terra);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-soft);
}

.step h4 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Pricing Section
   ═══════════════════════════════════════════════════════════ */

.pricing {
  background: var(--white);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pricing-card--popular {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  transform: scale(1.04);
  box-shadow: var(--shadow-elevated);
}

.pricing-card--popular:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-card--popular h3,
.pricing-card--popular h4,
.pricing-card--popular p,
.pricing-card--popular .pricing-card__price,
.pricing-card--popular .pricing-card__features li {
  color: var(--cream);
}

.pricing-card--popular .pricing-card__features li::before {
  color: var(--terra-light);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--terra);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card__name {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 8px;
}

.pricing-card--popular .pricing-card__name {
  color: var(--terra-light);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.pricing-card__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.pricing-card--popular .pricing-card__price span {
  color: var(--ink-muted);
}

.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card--popular .pricing-card__desc {
  border-color: rgba(250, 244, 236, 0.15);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card__features li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-card--popular .btn--primary {
  background: var(--terra);
}

.pricing-card--popular .btn--primary:hover {
  background: var(--terra-light);
}

@media (max-width: 1024px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--popular { transform: none; }
  .pricing-card--popular:hover { transform: translateY(-4px); }
}

@media (max-width: 600px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════
   CTA Section
   ═══════════════════════════════════════════════════════════ */

.cta {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--terra);
  opacity: 0.08;
  top: -200px;
  right: -100px;
}

.cta::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.06;
  bottom: -100px;
  left: -50px;
}

.cta h2 {
  color: var(--cream);
  margin-bottom: 16px;
  position: relative;
}

.cta p {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta .btn {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
  background: var(--ink);
  color: rgba(250, 244, 236, 0.6);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(250, 244, 236, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h5 {
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li { margin-bottom: 10px; }

.footer__links a {
  color: rgba(250, 244, 236, 0.5);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--terra-light); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 244, 236, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Legal Pages (Privacy, Terms, Delete Account)
   ═══════════════════════════════════════════════════════════ */

.legal-hero {
  padding: 140px 0 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.legal-hero p {
  font-size: 1rem;
}

.legal-content {
  padding: 64px 0 100px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--terra-pale);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-mid);
}

.legal-content a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content .callout {
  background: var(--terra-pale);
  border-left: 4px solid var(--terra);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-content .callout p {
  color: var(--terra-deep);
  margin-bottom: 0;
}

.legal-content .info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.legal-content .info-box h4 {
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content th {
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-card);
}

.legal-content td {
  color: var(--ink-mid);
}

/* Delete account specific */
.delete-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.delete-steps li {
  counter-increment: step;
  padding: 20px 20px 20px 72px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  position: relative;
}

.delete-steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  background: var(--terra-pale);
  color: var(--terra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   Animations on scroll
   ═══════════════════════════════════════════════════════════ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }
