/* ================================================================
   MEALZY — Editorial Cookbook Design System
   Landing pages only (index.html, pricing.html, login.html).
   App pages continue to use style.css.

   Photo credits:
     Hero:  Brooke Lark / Unsplash (photo-1504674900247-0877df9cc836)
     Login: Jay Wennington / Unsplash (photo-1414235077428-338989a2e8c0)
   ================================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --parchment:      #FDF6EC;
  --parchment-deep: #F4EAD5;
  --espresso:       #1A1208;
  --espresso-soft:  #3D2E1F;
  --brick:          #C84B31;
  --brick-deep:     #A23A24;
  --sage:           #4A7C59;
  --ink-muted:      #6B5D4F;
  --hairline:       #D9CDB8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --text-xs:   0.8rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.563rem;
  --text-2xl:  1.953rem;
  --text-3xl:  2.441rem;
  --text-4xl:  3.052rem;
  --text-5xl:  3.815rem;

  --radius:      4px;
  --radius-lg:   12px;
  --shadow-card: 0 12px 32px -16px rgba(26,18,8,0.18);
  --ease-edit:   cubic-bezier(0.16, 1, 0.3, 1);

  --pad-section: clamp(4rem, 10vw, 8rem);
  --gutter:      clamp(1rem, 5vw, 2.5rem);
  --max-w:       1200px;

  /* ── Compatibility aliases so existing inline styles using --clr-* still render ── */
  --clr-primary:       var(--sage);
  --clr-primary-dark:  var(--brick-deep);
  --clr-primary-light: #E8F0EA;
  --clr-accent:        var(--brick);
  --clr-accent-light:  #F5E8E3;
  --clr-background:    var(--parchment);
  --clr-foreground:    var(--espresso);
  --clr-card:          var(--parchment);
  --clr-muted-bg:      var(--parchment-deep);
  --clr-border:        var(--hairline);
  --clr-input-bg:      var(--parchment);
  --clr-muted-fg:      var(--ink-muted);
  --clr-destructive:   #C0392B;
  --clr-success:       var(--sage);
  --shadow-sm:         0 2px 8px rgba(26,18,8,0.06);
  --shadow-md:         0 8px 24px rgba(26,18,8,0.10);
  --shadow-lg:         0 16px 48px rgba(26,18,8,0.16);
  --shadow-button:     0 4px 14px rgba(74,124,89,0.3);
  --gradient-hero:     linear-gradient(135deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  --gradient-primary:  linear-gradient(135deg, var(--sage) 0%, #3a6347 100%);
  --gradient-accent:   linear-gradient(135deg, var(--brick) 0%, var(--brick-deep) 100%);
  --font-body-orig:    var(--font-body);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 15px; }
body {
  background: var(--parchment);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.hidden { display: none !important; }
p { max-width: 68ch; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5.5vw, var(--text-5xl)); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-3xl)); }
h3 { font-size: clamp(1.1rem, 2vw, var(--text-xl)); }
.text-muted { color: var(--ink-muted); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Utility ---------- */
.section-label {
  display: block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 0.75rem;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem,3.5vw,var(--text-3xl)); font-weight: 500; margin-bottom: 0.75rem; }
.section-sub  { font-size: var(--text-base); color: var(--ink-muted); max-width: 52ch; }
.section-header { margin-bottom: 3rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-edit), transform 0.6s var(--ease-edit);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   NAV
   ================================================================ */
.nav-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s var(--ease-edit), box-shadow 0.4s var(--ease-edit);
  background: transparent;
  border-bottom: none;
}
.nav-fixed.scrolled {
  background: rgba(253, 246, 236, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner {
  max-width: var(--max-w); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; height: 3.5rem;
}
.nav-logo-text {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-variant: small-caps; letter-spacing: 0.06em;
  color: var(--espresso); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: var(--text-sm); color: var(--ink-muted); font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--espresso); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--espresso); margin: 5px 0; transition: all 0.2s; }
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* Mobile nav */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(26,18,8,0.45); z-index: 200; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav-panel {
  position: fixed; top: 0; right: 0; width: 280px; height: 100%;
  background: var(--parchment); padding: 1.5rem; z-index: 201;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav-panel.open { transform: translateX(0); }
.mobile-nav-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-bottom: 1.5rem; color: var(--espresso); }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-links a {
  display: block; padding: 0.75rem 1rem; border-radius: var(--radius);
  text-decoration: none; color: var(--espresso); font-weight: 500;
  transition: background 0.15s;
}
.mobile-nav-links a:hover { background: var(--parchment-deep); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: var(--text-base); font-weight: 700;
  padding: 0.8rem 1.75rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.btn-primary { background: var(--brick); color: var(--parchment); border-color: var(--brick); box-shadow: 0 4px 14px rgba(200,75,49,0.3); }
.btn-primary:hover { background: var(--brick-deep); border-color: var(--brick-deep); transform: translateY(-1px); }
.btn-accent  { background: var(--brick); color: var(--parchment); border-color: var(--brick); }
.btn-accent:hover { background: var(--brick-deep); transform: translateY(-1px); }
.btn-outline { color: var(--espresso); background: transparent; border-color: var(--espresso); }
.btn-outline:hover { background: var(--parchment-deep); }
.btn-ghost  { color: var(--ink-muted); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--espresso); }
.btn-sm  { padding: 0.45rem 1rem; font-size: var(--text-sm); }
.btn-lg  { padding: 0.9rem 2.25rem; font-size: var(--text-lg); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn .fork-icon { transition: transform 0.3s var(--ease-edit); }
.btn:hover .fork-icon { transform: rotate(12deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(3rem,7vw,5rem);
  background: var(--espresso); /* fallback while image loads */
}
.hero__bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero__bg {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,18,8,0.55) 0%, rgba(26,18,8,0.05) 60%, transparent 100%);
}
.hero__panel {
  position: relative; z-index: 2; max-width: 600px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
}
.hero__eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1rem;
}
.hero__panel h1 { margin-bottom: 1rem; font-weight: 600; }
.hero__lede { font-size: var(--text-lg); color: var(--ink-muted); margin-bottom: 2rem; max-width: 46ch; }
.hero__fine { font-size: var(--text-xs); color: var(--ink-muted); margin-top: 0.75rem; }
/* Legacy classes for hero section */
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max-w); margin: 0 auto; }
.hero-text { max-width: 600px; }
.hero-headline {
  font-family: var(--font-display); font-size: clamp(2.4rem,5.5vw,var(--text-5xl));
  font-weight: 600; line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-sub { font-size: var(--text-lg); color: var(--ink-muted); line-height: 1.65; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ================================================================
   STRIP / STATS
   ================================================================ */
.honest-strip {
  background: var(--espresso); padding: 1.1rem 0;
  border-top: 1px solid rgba(253,246,236,0.1);
}
.honest-strip-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.honest-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(253,246,236,0.75); font-size: var(--text-sm); font-weight: 500;
}
.honest-item-icon {
  width: 20px; height: 20px; background: rgba(253,246,236,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--parchment-deep);
}

/* ================================================================
   DEMO SECTION
   ================================================================ */
.demo-section {
  background: var(--parchment-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.demo-form-wrap {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  align-items: flex-end; justify-content: center; margin-bottom: 1.5rem;
}
.demo-field { display: flex; flex-direction: column; gap: 0.3rem; }
.demo-field label {
  font-size: var(--text-xs); font-weight: 700; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.demo-field input, .demo-field select {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 0.6rem 0.85rem; font-size: var(--text-sm);
  font-family: var(--font-body); background: var(--parchment);
  color: var(--espresso); min-width: 140px;
}
.demo-field input:focus, .demo-field select:focus {
  outline: none; border-color: var(--espresso);
}
.demo-result  { max-width: 680px; margin: 0 auto; }
.demo-plan-card {
  background: var(--parchment); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.demo-plan-header {
  background: var(--espresso); padding: 1rem 1.25rem; color: var(--parchment);
  display: flex; justify-content: space-between; align-items: center;
}
.demo-plan-title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-base); }
.demo-plan-sub   { font-size: var(--text-xs); opacity: 0.7; }
.demo-day-group  { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--hairline); }
.demo-day-group:last-child { border-bottom: none; }
.demo-day-label  { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); margin-bottom: 0.5rem; }
.demo-meal-row   { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; }
.demo-meal-name  { font-family: var(--font-display); font-size: var(--text-sm); color: var(--espresso-soft); }
.demo-meal-type  { font-size: var(--text-xs); color: var(--ink-muted); }
.demo-meal-meta  { font-size: var(--text-xs); color: var(--ink-muted); text-align: right; }
.demo-cta-row {
  background: var(--parchment-deep); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; text-align: center; margin-top: 1.25rem;
}
.demo-spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(253,246,236,0.3); border-top-color: var(--parchment);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how { padding-block: var(--pad-section); }
.how__header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.how__step {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 2rem;
  padding-block: 2.5rem; border-top: 1px solid var(--hairline); align-items: start;
}
.how__step:last-child { border-bottom: 1px solid var(--hairline); }
.how__numeral {
  font-family: var(--font-display); font-size: clamp(2.8rem,5vw,var(--text-5xl));
  color: var(--parchment-deep); line-height: 1; font-weight: 600;
  user-select: none; letter-spacing: -0.02em;
}
.how__title { font-size: var(--text-xl); margin-bottom: 0.6rem; }
.how__body  { font-size: var(--text-base); color: var(--ink-muted); max-width: 54ch; }

/* ================================================================
   PRODUCT SHOWCASE
   ================================================================ */
.showcase {
  padding-block: var(--pad-section);
  background: var(--parchment-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.showcase__header { margin-bottom: 3rem; }
.showcase__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start;
}
@media (min-width: 800px) {
  .showcase__grid { grid-template-columns: 3fr 2fr; gap: 3rem; }
}
.recipe-card {
  background: var(--parchment); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: clamp(1.25rem,3.5vw,2rem); overflow: hidden;
}
.recipe-card__title {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500;
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem;
}
.recipe-card__meta { font-size: var(--text-xs); color: var(--ink-muted); font-family: var(--font-body); }
.meal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.meal-grid { width: 100%; border-collapse: collapse; font-size: var(--text-xs); min-width: 500px; }
.meal-grid th {
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted); text-align: left;
  padding: 0.4rem 0.7rem; border-bottom: 1px solid var(--hairline);
}
.meal-grid td {
  padding: 0.55rem 0.7rem; border-bottom: 1px solid rgba(217,205,184,0.5); vertical-align: top;
}
.meal-grid tr:last-child td { border-bottom: none; }
.day-col { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--ink-muted); }
.meal-name-cell { font-family: var(--font-display); font-size: var(--text-sm); color: var(--espresso-soft); display: block; }
.kcal-cell      { font-size: 0.68rem; color: var(--ink-muted); display: block; margin-top: 2px; }
.grocery-panel {
  background: var(--parchment); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: clamp(1.25rem,3.5vw,2rem);
}
.grocery-panel > h3 {
  font-size: var(--text-lg); padding-bottom: 0.75rem; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}
.grocery-cat {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin: 1.25rem 0 0.4rem;
}
.grocery-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.grocery-list li {
  font-size: var(--text-sm); color: var(--espresso-soft);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.grocery-list li::before { content: '✓'; color: var(--brick); font-weight: 700; font-size: var(--text-xs); flex-shrink: 0; }
.showcase__caption {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-muted); font-size: var(--text-sm);
  text-align: center; margin-top: 2.5rem;
}

/* ================================================================
   FEATURES
   ================================================================ */
.features-section { padding-block: var(--pad-section); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--parchment); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(26,18,8,0.05);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-card); }
.card-sm { padding: 1.1rem; }
.feature-card { text-align: left; }
.feature-icon {
  width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--espresso);
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ================================================================
   COMPARISON / WHY MEALZY
   ================================================================ */
.why-section { padding-block: var(--pad-section); background: var(--parchment-deep); border-top: 1px solid var(--hairline); }

/* ================================================================
   FOUNDER / PULL QUOTE
   ================================================================ */
.pullquote-section { padding-block: var(--pad-section); background: var(--espresso); }
.pullquote { max-width: 720px; margin-inline: auto; text-align: center; padding-inline: var(--gutter); }
.pullquote__mark {
  display: block; font-family: var(--font-display); font-size: 5rem;
  color: var(--brick); line-height: 0.5; margin-bottom: 1.5rem; user-select: none;
}
.pullquote__text {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, var(--text-2xl));
  color: var(--parchment); line-height: 1.35; margin-bottom: 1.5rem;
}
.pullquote__attr { font-size: var(--text-xs); color: rgba(253,246,236,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
/* Founder note (preserved for markup compatibility) */
.founder-note {
  background: rgba(253,246,236,0.08); border: 1px solid rgba(253,246,236,0.15);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  max-width: 680px; margin: 0 auto; color: var(--parchment);
}
.testimonial-initial {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(253,246,236,0.15); color: var(--parchment);
  font-weight: 800; font-size: 1rem; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-section { padding-block: var(--pad-section); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-btn {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: none; text-align: left;
  cursor: pointer; padding: 1.5rem 0;
  font-family: var(--font-display); font-size: var(--text-xl);
  color: var(--espresso); gap: 1.5rem;
}
.faq-btn:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.faq-chevron { flex-shrink: 0; transition: transform 0.3s var(--ease-edit); color: var(--ink-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-edit); }
.faq-item.open .faq-body { max-height: 600px; }
.faq-body__inner {
  font-size: var(--text-base); color: var(--ink-muted);
  line-height: 1.7; max-width: 65ch; padding-bottom: 1.5rem;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-band {
  padding-block: var(--pad-section);
  background: var(--parchment-deep);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .cta-lede { font-size: var(--text-lg); color: var(--ink-muted); margin-bottom: 2rem; }
.cta-band .fine { font-size: var(--text-xs); color: var(--ink-muted); margin-top: 0.75rem; }
/* Legacy cta-banner class */
.cta-banner {
  background: var(--espresso); color: var(--parchment);
  border-radius: var(--radius-lg); padding: 3.5rem; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.75rem,3.5vw,var(--text-3xl)); font-weight: 500; margin-bottom: 0.75rem; font-family: var(--font-display); }
.cta-banner p { opacity: 0.8; font-size: var(--text-base); max-width: 52ch; margin: 0 auto 2rem; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--espresso); color: var(--parchment);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer__inner {
  display: grid; gap: 3rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}
.footer__logo {
  font-family: var(--font-display); font-variant: small-caps;
  letter-spacing: 0.06em; font-size: var(--text-lg);
  text-decoration: none; color: var(--parchment);
}
.footer__brand p { font-size: var(--text-sm); color: rgba(253,246,236,0.5); margin-top: 0.75rem; max-width: 30ch; line-height: 1.55; }
.footer__col h4 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(253,246,236,0.4); margin-bottom: 1rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: var(--text-sm); color: rgba(253,246,236,0.7); text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--parchment); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: var(--text-sm); transition: color 0.15s; }
.footer-links a:hover { color: white; }

/* ================================================================
   PRICING PAGE
   ================================================================ */
.pricing-hero { padding-block: var(--pad-section); border-bottom: 1px solid var(--hairline); }
.pricing-intro {
  font-size: var(--text-lg); color: var(--ink-muted);
  line-height: 1.75; max-width: 64ch; margin-top: 1.5rem;
}
.pricing-intro::first-letter {
  font-family: var(--font-display); font-size: 4.2rem; font-weight: 600;
  float: left; line-height: 0.82; margin-right: 0.12em; margin-top: 0.06em;
  color: var(--espresso);
}
.pricing-hero-headline {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
  background: var(--parchment); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 2rem;
}
.pricing-card.popular { border-color: var(--espresso); box-shadow: var(--shadow-card); }
.pricing-price .amount { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 600; }
.pricing-price .period { color: var(--ink-muted); font-size: var(--text-sm); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin: 1.5rem 0; }
.pricing-features li { display: flex; align-items: baseline; gap: 0.5rem; font-size: var(--text-sm); }
.pricing-features .check { color: var(--sage); font-weight: 700; }
.pricing-features .cross { color: var(--hairline); }
.pricing-toggle { display: flex; gap: 0; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; margin: 0 auto 3rem; width: fit-content; }
.pricing-toggle button { padding: 0.5rem 1.5rem; border: none; background: white; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--ink-muted); }
.pricing-toggle button.active { background: var(--espresso); color: var(--parchment); }
/* Menu-style cards */
.menu-cards { display: grid; gap: 2rem; margin-top: 4rem; }
@media (min-width: 600px) { .menu-cards { grid-template-columns: 1fr 1fr; } }
.menu-card {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(2rem,5vw,3rem); position: relative; background: var(--parchment);
}
.menu-card--featured { background: var(--espresso); color: var(--parchment); border-color: var(--espresso); }
.menu-card__ribbon {
  position: absolute; top: 1.5rem; left: -0.35rem;
  background: var(--brick); color: var(--parchment);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border-radius: 2px; transform: rotate(-4deg);
}
.menu-card__name { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: 0.2rem; }
.menu-card__sub { font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: 1.5rem; }
.menu-card--featured .menu-card__sub { color: rgba(253,246,236,0.55); }
.menu-card__price {
  display: flex; align-items: baseline; gap: 0.25rem;
  padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--hairline);
}
.menu-card--featured .menu-card__price { border-bottom-color: rgba(253,246,236,0.2); }
.price-amount { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 600; }
.price-per { font-size: var(--text-sm); color: var(--ink-muted); }
.menu-card--featured .price-per { color: rgba(253,246,236,0.55); }
.menu-card__list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.menu-card__list li { font-size: var(--text-base); display: flex; align-items: baseline; gap: 0.75rem; }
.menu-card--featured .menu-card__list li { color: rgba(253,246,236,0.85); }
.check-y { color: var(--sage); font-weight: 700; }
.check-n { color: var(--hairline); }
.menu-card--featured .check-y { color: rgba(253,246,236,0.7); }
/* Comparison table */
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th, .comp-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--hairline); text-align: left; }
.comp-table thead th { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--espresso); font-family: var(--font-body); }
.comp-table td { color: var(--ink-muted); font-size: var(--text-sm); }
.pro-val { color: var(--brick); font-weight: 700; }
.comp-table tr:last-child td { border-bottom: none; }

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-wrap {
  display: grid; grid-template-columns: 1fr;
  min-height: 100vh; min-height: 100dvh;
}
@media (min-width: 768px) { .login-wrap { grid-template-columns: 1fr 1fr; } }
.login-photo { position: relative; display: none; }
@media (min-width: 768px) { .login-photo { display: block; } }
.login-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-col {
  background: var(--parchment); display: flex; flex-direction: column;
  justify-content: center; padding: clamp(2rem, 8vw, 4.5rem);
}
/* Legacy auth styles recast in editorial palette */
.auth-card {
  background: var(--parchment); width: 100%; max-width: 420px;
}
.auth-tabs {
  display: flex; border-bottom: 1px solid var(--hairline); margin-bottom: 1.75rem;
}
.auth-tab {
  flex: 1; padding: 0.65rem; min-height: 44px; font-size: var(--text-sm);
  font-weight: 600; text-align: center; cursor: pointer; border: none;
  background: none; color: var(--ink-muted); transition: color 0.2s;
  position: relative;
}
.auth-tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--brick); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.auth-tab.active { color: var(--espresso); }
.auth-tab.active::after { transform: scaleX(1); }
.auth-error {
  background: none; border-left: 2px solid var(--brick); color: var(--brick);
  padding: 0.5rem 0.75rem; font-size: var(--text-sm); margin-bottom: 1rem; display: none;
}
.auth-error.show { display: block; }
.auth-note { font-size: var(--text-xs); color: var(--ink-muted); text-align: center; margin-top: 1.25rem; max-width: none; }
.auth-note a { color: var(--brick); }
.divider {
  text-align: center; color: var(--ink-muted); font-size: var(--text-xs);
  margin: 1.25rem 0; position: relative;
}
.divider::before, .divider::after {
  content:''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--hairline);
}
.divider::before { left: 0; } .divider::after { right: 0; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.form-label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-muted);
}
.form-input, .form-select {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.6rem 0; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--espresso);
  outline: none; transition: border-color 0.2s; border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus { border-bottom-color: var(--espresso); }
.form-input::placeholder { color: var(--hairline); }
.form-error { font-size: var(--text-xs); color: var(--brick); margin-top: 0.25rem; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--ink-muted); padding: 0; }
.reset-link { font-size: var(--text-xs); color: var(--brick); text-decoration: none; display: block; text-align: right; margin-top: 0.35rem; cursor: pointer; }
.reset-link:hover { text-decoration: underline; }
.reset-token-box { background: var(--parchment-deep); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 0.75rem; font-size: var(--text-xs); word-break: break-all; font-family: monospace; margin-bottom: 1rem; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--hairline);
  border-radius: var(--radius); background: var(--parchment); color: var(--espresso);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s; font-family: var(--font-body);
}
.btn-google:hover { background: var(--parchment-deep); border-color: var(--espresso); }

/* ================================================================
   EMAIL POPUP (reskinned)
   ================================================================ */
.email-popup-overlay {
  position: fixed; inset: 0; background: rgba(26,18,8,0.6);
  z-index: 600; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.email-popup-overlay.open { opacity: 1; pointer-events: auto; }
.email-popup-card {
  background: var(--espresso); color: var(--parchment);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  text-align: center; transform: scale(0.92);
  transition: transform 0.3s var(--ease-edit);
}
.email-popup-overlay.open .email-popup-card { transform: scale(1); }
.email-popup-card h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; margin-bottom: 0.5rem; color: var(--parchment); }
.email-popup-card p { font-size: var(--text-sm); opacity: 0.8; margin-bottom: 1.5rem; }
.email-popup-form { display: flex; flex-direction: column; gap: 0.75rem; }
.email-popup-input {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(253,246,236,0.3);
  border-radius: var(--radius); font-size: var(--text-sm); font-family: var(--font-body);
  background: rgba(253,246,236,0.1); color: var(--parchment); outline: none;
}
.email-popup-input::placeholder { color: rgba(253,246,236,0.5); }
.email-popup-input:focus { border-color: rgba(253,246,236,0.6); }
.email-popup-btn {
  width: 100%; padding: 0.85rem; background: var(--brick); color: var(--parchment);
  border: none; border-radius: var(--radius); font-weight: 700; font-size: var(--text-base);
  cursor: pointer; font-family: var(--font-body); transition: background 0.2s;
}
.email-popup-btn:hover { background: var(--brick-deep); }
.email-popup-dismiss {
  margin-top: 1rem; display: block; font-size: var(--text-xs); opacity: 0.55;
  cursor: pointer; background: none; border: none; color: var(--parchment);
  font-family: var(--font-body); text-decoration: underline;
}
.email-popup-dismiss:hover { opacity: 1; }

/* ================================================================
   MISC / ANIMATIONS
   ================================================================ */
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pricePop { 0% { transform: scale(0.95); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }
.price-animated { animation: pricePop 0.25s ease; }
/* Hero entrance stagger */
.hero-text .section-label { opacity: 0; animation: slideUp 0.5s var(--ease-edit) 0.05s both; }
.hero-headline            { opacity: 0; animation: slideUp 0.5s var(--ease-edit) 0.18s both; }
.hero-text .hero-sub      { opacity: 0; animation: slideUp 0.5s var(--ease-edit) 0.28s both; }
.hero-text .hero-actions  { opacity: 0; animation: slideUp 0.5s var(--ease-edit) 0.36s both; }
.hero-text > p:not(.hero-sub) { opacity: 0; animation: slideUp 0.5s var(--ease-edit) 0.44s both; }
.hero__panel              { opacity: 0; animation: slideUp 0.65s var(--ease-edit) 0.1s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-text .section-label, .hero-headline, .hero-text .hero-sub,
  .hero-text .hero-actions, .hero-text > p:not(.hero-sub), .hero__panel {
    animation: none; opacity: 1;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   DARK MODE
   ================================================================ */
[data-theme="dark"] {
  --parchment:      hsl(150,12%,10%);
  --parchment-deep: hsl(150,12%,13%);
  --espresso:       hsl(46,20%,90%);
  --espresso-soft:  hsl(46,15%,75%);
  --ink-muted:      hsl(150,8%,55%);
  --hairline:       hsl(150,10%,22%);
}
[data-theme="dark"] body { background: var(--parchment); color: var(--espresso); }
[data-theme="dark"] .nav-fixed.scrolled { background: rgba(15,20,15,0.96); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
  .hero { align-items: flex-end; padding-bottom: 2rem; }
  .hero__panel { max-width: 100%; }
  .how__step { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .how__numeral { font-size: 2.2rem; }
}

/* Focus rings */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brick); outline-offset: 3px; border-radius: var(--radius);
}
input:focus-visible { outline: none; border-bottom-color: var(--espresso) !important; }
