/* ============================================================
   FERMENTY — Marketing site styles
   Built on the design-system tokens (link ../styles.css first).
   Calm & artisanal: warm paper grounds, generous space,
   Comfortaa display over Raleway, mono eyebrows. Quiet motion.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-primary); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight); line-height: var(--lh-tight); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---- Layout primitives ---- */
.wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow { font-family: var(--font-data); font-size: var(--text-xs); font-weight: var(--fw-medium);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-600); margin: 0 0 var(--space-4); }
.eyebrow--muted { color: var(--text-muted); }
.lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--text-secondary); max-width: 44ch; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.section-head p { margin-top: var(--space-4); font-size: 1.0625rem; color: var(--text-secondary); }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out),
  border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-500); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--green-600); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold-500); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-default); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--paper-4); }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1.0625rem; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.9rem; }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---- Top nav ---- */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg-canvas) 86%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dur-base) var(--ease-out); }
.nav.is-scrolled { border-bottom-color: var(--border-subtle); }
.nav__inner { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0; flex-shrink: 0; }
.brand svg { height: 30px; width: auto; }
.nav__links { display: flex; gap: var(--space-6); margin-left: var(--space-4); }
.nav__links a { font-size: 0.95rem; font-weight: var(--fw-medium); color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out); }
.nav__links a:hover { color: var(--green-700); }
.nav__right { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }

/* language toggle */
.lang { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle); }
.lang button { border: none; background: transparent; cursor: pointer; font-family: var(--font-data);
  font-size: 0.72rem; font-weight: var(--fw-semibold); letter-spacing: 0.06em; color: var(--text-muted);
  padding: 0.4rem 0.7rem; border-radius: var(--radius-pill); transition: all var(--dur-fast) var(--ease-out); }
.lang button[aria-pressed="true"] { background: var(--surface-card); color: var(--green-700); box-shadow: var(--shadow-xs); }

/* desktop: collapse is transparent to layout (links left, actions right) */
.nav__collapse { display: contents; }

/* hamburger button (mobile only) */
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--green-700);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; }
.hero h1 .spark { color: var(--green-500); }
.hero .lede { margin-top: var(--space-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__note { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5);
  font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-muted); }
.hero__note svg { width: 15px; height: 15px; color: var(--green-500); }
.hero__bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5; }
.hero__grid { position: relative; z-index: 1; }

/* phone frame */
.phone-frame { position: relative; width: min(300px, 78vw); margin-inline: auto;
  background: #1B241D; border-radius: 42px; padding: 9px; box-shadow: var(--shadow-xl), 0 0 0 1px rgba(27,36,29,0.5); }
.phone-frame::before { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; background: #1B241D; border-radius: 12px; z-index: 3; }
.phone-frame__screen { position: relative; border-radius: 34px; overflow: hidden; background: var(--bg-canvas);
  aspect-ratio: 300 / 430; }
.phone-frame__screen img { width: 100%; height: auto; }
.phone-frame__screen::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg-canvas)); }
.phone-frame--card .phone-frame__screen { background: var(--surface-card); }
.phone-tilt { transform: rotate(-2deg); transition: transform var(--dur-slow) var(--ease-out); }
.phone-tilt:hover { transform: rotate(0deg); }

/* ---- Category chips strip ---- */
.cats-strip { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.cat-chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: var(--fw-semibold);
  border: 1px solid var(--border-subtle); background: var(--surface-card); }
.cat-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
a.cat-chip { color: inherit; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
a.cat-chip:hover { transform: translateY(-2px); border-color: var(--green-400); box-shadow: var(--shadow-md); }

/* ---- Steps (how it works) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.step { position: relative; }
.step__num { font-family: var(--font-data); font-size: 0.8rem; font-weight: var(--fw-bold); letter-spacing: 0.1em;
  color: var(--green-600); display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.step__num::before { content: ''; width: 34px; height: 34px; border-radius: 50%; background: var(--green-050);
  border: 1.5px solid var(--green-200); display: inline-flex; align-items: center; justify-content: center;
  counter-increment: step; content: counter(step, decimal-leading-zero); color: var(--green-700);
  font-size: 0.85rem; }
.step h3 { font-size: 1.3rem; margin-bottom: var(--space-3); }
.step p { font-size: 1rem; }

/* ---- Feature rows (alternating image/text) ---- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem); }
.feature-row:nth-child(even) .feature-row__media { order: -1; }
.feature-row h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: var(--space-4); }
.feature-row p { font-size: 1.0625rem; }
.feature-row__list { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.feature-row__list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 1rem; color: var(--text-secondary); }
.feature-row__list svg { width: 20px; height: 20px; color: var(--green-500); flex-shrink: 0; margin-top: 2px; }
.feature-row__media { display: flex; justify-content: center; }
.story-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--space-4);
  font-weight: var(--fw-semibold); color: var(--green-700); text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.story-link:hover { color: var(--green-600); gap: 0.65rem; }
.story-link svg { width: 18px; height: 18px; }

/* ---- Feature cards grid ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: var(--space-6); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
  border-color var(--dur-base) var(--ease-out); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-default); }
.card__ico { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  background: var(--green-050); color: var(--green-600); margin-bottom: var(--space-4); }
.card__ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.card p { font-size: 0.98rem; color: var(--text-secondary); }

/* ---- Category showcase ---- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.cat-card { border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); overflow: hidden;
  background: var(--surface-card); transition: transform var(--dur-base) var(--ease-out); }
.cat-card:hover { transform: translateY(-3px); }
.cat-card__top { height: 6px; }
.cat-card__body { padding: var(--space-5); }
.cat-card__ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-4); }
.cat-card__ring::after { content: ''; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-card); }
.cat-card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.cat-card p { font-size: 0.92rem; color: var(--text-muted); }
.cat-card__ex { margin-top: var(--space-3); font-family: var(--font-data); font-size: 0.78rem; color: var(--text-muted); }

/* ---- Premium teaser ---- */
.premium-teaser { background: var(--green-900); color: var(--text-on-dark); border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.premium-teaser h2 { color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.premium-teaser .lede { color: color-mix(in srgb, var(--text-on-dark) 88%, transparent); }
.premium-teaser__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: center; position: relative; z-index: 1; }
.premium-teaser__list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-3); }
.premium-teaser__list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 1.0625rem; color: var(--text-on-dark); }
.premium-teaser__list svg { width: 20px; height: 20px; color: var(--lime-400); flex-shrink: 0; margin-top: 3px; }
.premium-teaser .btn--gold { margin-top: var(--space-8); }
.premium-teaser__bubbles { position: absolute; right: -40px; top: -40px; width: 320px; height: 320px; opacity: 0.18; }
.gold-tag { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-data);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400);
  border: 1px solid color-mix(in srgb, var(--gold-400) 40%, transparent); padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); }

/* ---- Testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.quote { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); }
.quote p { font-size: 1.05rem; color: var(--text-primary); line-height: var(--lh-normal); }
.quote__by { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1rem; flex-shrink: 0; }
.quote__by div { font-size: 0.9rem; }
.quote__by strong { display: block; color: var(--text-primary); font-weight: var(--fw-semibold); }
.quote__by span { color: var(--text-muted); font-size: 0.82rem; }
.quote__stars { color: var(--gold-500); margin-bottom: var(--space-4); letter-spacing: 2px; font-size: 0.9rem; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; cursor: pointer; list-style: none; font-family: var(--font-display);
  font-weight: var(--fw-semibold); font-size: 1.15rem; color: var(--text-primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; color: var(--green-600); transition: transform var(--dur-base) var(--ease-out); flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--space-5); font-size: 1.0625rem; color: var(--text-secondary); max-width: 64ch; }

/* ---- Newsletter ---- */
.newsletter { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem); text-align: center; }
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.newsletter p { margin-top: var(--space-3); color: var(--text-secondary); }
.subscribe { display: flex; flex-direction: column; gap: var(--space-3); max-width: 480px; margin: var(--space-6) auto 0; }
.subscribe__row { display: flex; gap: var(--space-3); }
.subscribe input { flex: 1; min-width: 0; font-family: var(--font-sans); font-size: 1rem; padding: 0.9rem 1.1rem;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border-default); background: var(--paper-1); color: var(--text-primary); }
.subscribe input:focus { outline: none; border-color: var(--green-500); box-shadow: var(--ring-accent); }
.subscribe__ok { margin-top: var(--space-4); font-size: 0.95rem; color: var(--green-700); font-weight: var(--fw-semibold);
  display: none; align-items: center; gap: var(--space-2); justify-content: center; }
.subscribe__ok.is-shown { display: flex; }
.subscribe-flash { animation: subscribe-flash 1.8s ease-out; border-radius: var(--radius-pill); }
@keyframes subscribe-flash {
  0%   { background: color-mix(in srgb, currentColor 15%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 15%, transparent); }
  100% { background: transparent; box-shadow: 0 0 0 0 transparent; }
}

/* ---- Footer ---- */
.footer { background: var(--paper-2); border-top: 1px solid var(--border-subtle); padding-block: clamp(3rem, 5vw, 4rem) var(--space-8); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem); }
.footer__brand svg { height: 28px; margin-bottom: var(--space-4); }
.footer__brand p { font-size: 0.95rem; color: var(--text-muted); max-width: 30ch; }
.footer__col h4 { font-family: var(--font-data); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: var(--fw-semibold); margin-bottom: var(--space-4); }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer__col a { font-size: 0.95rem; color: var(--text-secondary); transition: color var(--dur-fast) var(--ease-out); }
.footer__col a:hover { color: var(--green-700); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.footer__social { display: flex; gap: var(--space-3); }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-card);
  border: 1px solid var(--border-subtle); display: grid; place-items: center; color: var(--text-secondary); }
.footer__social a:hover { color: var(--green-700); border-color: var(--green-300); }
.footer__social svg { width: 18px; height: 18px; }

/* ---- Back-to-top button (shown by site.js after scrolling) ---- */
.to-top { position: fixed; right: clamp(16px, 4vw, 28px); bottom: clamp(16px, 4vw, 28px); z-index: 50;
  width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: none; cursor: pointer;
  border-radius: 50%; color: var(--text-on-accent); background: var(--green-500); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-600); }
.to-top:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transform: none;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out); } }

/* ---- Placeholder marker (for premium content awaiting the doc) ---- */
.tbd { border: 1.5px dashed var(--border-default); border-radius: var(--radius-md); background: var(--paper-1);
  padding: var(--space-2) var(--space-4); }
.tbd-tag { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-data);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-500);
  background: var(--amber-100); padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); }

/* ---- Pricing (premium page) ---- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: var(--space-5); justify-content: center; }
.price-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: var(--space-8); position: relative; }
.price-card--featured { border-color: var(--gold-400); box-shadow: var(--shadow-lg); }
.price-card__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--green-900); font-family: var(--font-data); font-size: 0.7rem;
  font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); }
.price-card h3 { font-size: 1.4rem; }
.price-card__amt { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--text-primary);
  font-size: 2.6rem; margin: var(--space-4) 0 var(--space-1); letter-spacing: -0.02em; }
.price-card__amt span { font-family: var(--font-sans); font-size: 1rem; font-weight: var(--fw-medium); color: var(--text-muted); }
.price-card__list { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: var(--space-3); }
.price-card__list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.98rem; color: var(--text-secondary); }
.price-card__list svg { width: 19px; height: 19px; color: var(--green-500); flex-shrink: 0; margin-top: 2px; }

/* ---- Comparison table ---- */
.compare { width: 100%; border-collapse: collapse; background: var(--surface-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-subtle); }
.compare th, .compare td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--border-subtle); }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); background: var(--paper-1); }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare tbody td:first-child { font-weight: var(--fw-medium); color: var(--text-primary); }
.compare .yes { color: var(--green-600); }
.compare .no { color: var(--ink-300); }
.compare tr:last-child td { border-bottom: none; }
.compare th.is-premium { color: var(--gold-700); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero__cta, .hero__note { justify-content: center; }
  .hero__media { margin-top: var(--space-8); }
  .feature-row { grid-template-columns: 1fr; gap: var(--space-6); }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
  .feature-row__media { order: -1; }
  .premium-teaser__grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* ---- Mobile nav (hamburger) ---- */
@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__collapse {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4);
    position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
    background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg); padding: var(--space-5) var(--space-5) var(--space-6);
    max-height: calc(100dvh - 72px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .nav.is-open .nav__collapse { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; gap: 0; margin-left: 0; }
  .nav__links a { padding: var(--space-3) 0; font-size: 1.05rem; border-bottom: 1px solid var(--border-subtle); }
  .nav__right { flex-direction: column; align-items: stretch; gap: var(--space-3); margin-left: 0; margin-top: var(--space-2); }
  .nav__right .btn { width: 100%; text-align: center; }
  .nav__right .lang { align-self: flex-start; }
}

/* recipe rail: grid on desktop, horizontal swipe on mobile */
.lp-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }

/* ---- Mobile: horizontal swipe rails (How it works + Recipes) ---- */
@media (max-width: 680px) {
  .steps, .lp-rail {
    display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--space-5)); padding: var(--space-1) var(--space-5) var(--space-4);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .steps::-webkit-scrollbar, .lp-rail::-webkit-scrollbar { display: none; }
  .steps > .step { flex: 0 0 82%; scroll-snap-align: center; margin: 0; }
  .lp-rail > a { flex: 0 0 78%; scroll-snap-align: center; }
}

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .pricing { grid-template-columns: 1fr; }
  .subscribe__row { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .compare { font-size: 0.88rem; }
  .compare th, .compare td { padding: var(--space-3); }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
  .wrap { padding-inline: var(--space-4); }
  .section { padding-block: clamp(2.75rem, 11vw, 3.5rem); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; }
}
