/* ========================================================================
   Landing styles — Маша | Нутрициолог
   Two variants share: constructor mechanics, color tokens, base resets.
   V1 = "Кухонная тетрадь" (editorial, serif headlines)
   V2 = "Тёплый минимал" (sans-only, airy)
   ======================================================================== */

/* ---------- Tokens (warm food-blog palette) ---------- */
:root {
  --paper: #F4ECDD;
  --paper-soft: #FAF4E7;
  --paper-deep: #EADFC6;
  --ink: #2A2520;
  --ink-soft: #5C5247;
  --ink-mute: #8A7E6E;
  --line: #D9CDB3;
  --line-soft: #E8DEC6;

  --forest: #2F4A38;
  --forest-deep: #1F3225;
  --forest-soft: #3E5C47;

  --ochre: #C77E3A;
  --ochre-soft: #E2A968;
  --terra: #B65A3A;

  --cream: #FBF5E7;
  --shadow-soft: 0 1px 2px rgba(58, 42, 22, 0.06), 0 6px 18px rgba(58, 42, 22, 0.06);
  --shadow-card: 0 2px 4px rgba(58, 42, 22, 0.08), 0 12px 28px rgba(58, 42, 22, 0.10);

  --rad-sm: 8px;
  --rad-md: 14px;
  --rad-lg: 22px;
  --rad-xl: 32px;
}

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Subtle paper grain — applied to landing roots only */
.v1-root, .v2-root {
  position: relative;
  overflow: hidden;
}
.v1-root::before, .v2-root::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(60, 40, 20, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 0;
}
.v1-root > *, .v2-root > * { position: relative; z-index: 1; }

/* ---------- Placeholders for photos ---------- */
.placeholder-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px dashed var(--line);
}
[class*="-photo"], .v1-avatar, .v2-avatar {
  background:
    repeating-linear-gradient(135deg, rgba(60,40,20,0.04) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, var(--paper-deep), var(--paper-soft));
}

/* =========================================================================
   V1 — "Кухонная тетрадь" (editorial)
   ========================================================================= */
.v1-root {
  font-family: "Funnel Sans", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  --acc: var(--forest);
  --acc-soft: var(--forest-soft);
  container-type: inline-size;
}
.v1-root .v1-h1, .v1-root .v1-h2, .v1-root .v1-meal-title, .v1-root .v1-tip-title {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ----- v1 hero ----- */
.v1-hero {
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.v1-hero-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 500;
}
.v1-eyebrow { font-size: inherit; letter-spacing: inherit; }
.v1-eyebrow.light { color: var(--ochre-soft); }
.v1-dot { color: var(--line); font-size: 18px; }
.v1-h1 {
  font-size: 50px;
  line-height: 0.94;
  margin: 0;
  color: var(--forest-deep);
  overflow-wrap: break-word;
  word-break: break-word;
}
.v1-h1 em { font-style: italic; color: var(--ochre); }
.v1-subtitle {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--forest);
  font-style: italic;
  margin: 0;
  max-width: 30ch;
}
.v1-forwhom {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 36ch;
}
.v1-author-row {
  display: flex; align-items: center; gap: 12px;
  padding-top: 4px;
}
.v1-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.v1-avatar .placeholder-tag { font-size: 8px; padding: 2px 4px; }
.v1-author-name { font-size: 14px; font-weight: 500; color: var(--forest-deep); }
.v1-author-handle { font-size: 12px; color: var(--ink-mute); font-family: ui-monospace, monospace; }
.v1-pipe { color: var(--ochre); margin: 0 4px; }

.v1-hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--rad-lg);
  display: grid; place-items: center;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* ----- v1 method ----- */
.v1-section-label {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ochre);
  display: inline-block;
}
.v1-method {
  padding: 56px 22px 40px;
  background: var(--paper-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.v1-method-grid { display: flex; flex-direction: column; gap: 32px; }
.v1-method-text { display: flex; flex-direction: column; gap: 14px; }
.v1-h2 {
  font-size: 36px;
  line-height: 1.02;
  margin: 0;
  color: var(--forest-deep);
  overflow-wrap: break-word;
}
.v1-h2 em { font-style: italic; color: var(--ochre); }
.v1-h2 .muted { color: var(--ink-mute); font-style: italic; }
.v1-h2.light { color: var(--cream); }
.v1-h2.light em { color: var(--ochre-soft); }
.v1-h2.bridge-h em { color: var(--ochre-soft); }
.v1-body { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 40ch; }
.v1-body.light { color: rgba(251, 245, 231, 0.85); max-width: 50ch; }

.v1-rules { display: flex; flex-direction: column; gap: 14px; }
.v1-rule-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  padding: 18px 18px 16px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.v1-rule-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 14px;
  color: var(--ochre);
  font-style: italic;
}
.v1-rule-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin: 4px 0 8px;
}
.v1-rule-text {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px; line-height: 1.2;
  margin: 0;
  color: var(--forest-deep);
}
.v1-rule-meta {
  margin-top: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ochre);
  letter-spacing: 0.04em;
}

/* ----- v1 constructor section wrapper ----- */
.v1-constructor-section {
  padding: 56px 22px 48px;
}
.v1-constructor-head {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}

/* ----- v1 ready meals carousel ----- */
.v1-ready {
  padding: 56px 22px 48px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.v1-ready-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.v1-carousel { display: flex; flex-direction: column; gap: 18px; }
.v1-carousel-track {
  display: flex; gap: 16px;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.v1-meal-card {
  flex: 0 0 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.v1-meal-photo {
  aspect-ratio: 5 / 4;
  position: relative;
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
}
.v1-meal-num {
  position: absolute; top: 14px; left: 16px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 56px; line-height: 1;
  color: var(--forest-deep);
  font-style: italic;
}
.v1-meal-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.v1-meal-tag {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ochre);
  font-weight: 500;
}
.v1-meal-title { font-size: 28px; line-height: 1.05; margin: 0; color: var(--forest-deep); }
.v1-meal-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.v1-meal-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.v1-meal-list li:first-child { border-top: none; padding-top: 0; }
.v1-meal-cat { color: var(--ochre); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.v1-meal-v { color: var(--ink); }

.v1-carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v1-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 18px;
  color: var(--forest-deep);
  display: grid; place-items: center;
  transition: background 200ms;
}
.v1-nav-btn:hover { background: var(--paper-soft); }
.v1-carousel-dots { display: flex; gap: 4px; }
.v1-dot-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-mute);
  transition: all 200ms;
}
.v1-dot-btn.on {
  background: var(--forest-deep);
  color: var(--cream);
  border-color: var(--forest-deep);
}

/* ----- v1 sweet rule ----- */
.v1-sweet {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 64px 22px 64px;
}
.v1-sweet-inner {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 38ch;
}
.v1-sweet-glyph {
  font-size: 24px;
  color: var(--ochre-soft);
}

/* ----- v1 tips ----- */
.v1-tips { padding: 56px 22px 48px; }
.v1-tips-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.v1-tips-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.v1-tip-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.v1-tip-icon { color: var(--forest); width: 28px; height: 28px; }
.v1-tip-num {
  position: absolute; top: 18px; right: 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 14px;
  color: var(--ochre);
  font-style: italic;
}
.v1-tip-title { font-size: 24px; line-height: 1.1; margin: 0; color: var(--forest-deep); }
.v1-tip-body { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* ----- v1 bridge ----- */
.v1-bridge {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 64px 22px 72px;
}
.v1-bridge-inner { display: flex; flex-direction: column; gap: 18px; max-width: 50ch; }
.v1-pain {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px; line-height: 1.3;
  font-style: italic;
  color: var(--ochre-soft);
  margin: 6px 0;
  border-left: 2px solid var(--ochre);
  padding-left: 16px;
}
.v1-cta-card {
  margin-top: 14px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--rad-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-card);
}
.v1-cta-meta { display: flex; flex-direction: column; gap: 4px; }
.v1-cta-product {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px; line-height: 1.15; color: var(--forest-deep);
}
.v1-cta-includes { font-size: 12.5px; color: var(--ink-mute); }
.v1-cta-price { display: flex; align-items: baseline; gap: 10px; }
.v1-price-old { text-decoration: line-through; color: var(--ink-mute); font-size: 14px; }
.v1-price-new {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px;
  color: var(--forest-deep);
  font-weight: 500;
}
.v1-cta-btn {
  display: block;
  background: var(--forest-deep);
  color: var(--cream);
  text-decoration: none;
  text-align: center;
  padding: 16px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 200ms, transform 200ms;
}
.v1-cta-btn:hover { background: #2a4030; transform: translateY(-1px); }
.v1-cta-note { font-size: 12px; color: var(--ink-mute); text-align: center; }

/* ----- v1 footer ----- */
.v1-footer {
  background: var(--paper-deep);
  padding: 36px 22px 48px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.v1-footer-row { display: flex; flex-direction: column; gap: 4px; }
.v1-footer-row.small { font-size: 12px; color: var(--ink-mute); margin-top: 8px; }
.v1-footer-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px; color: var(--forest-deep);
}
.v1-footer-bio { font-size: 13px; color: var(--ink-soft); }

/* ===== v1 desktop ===== */
@container (min-width: 768px) {
  .v1-h1 { font-size: 88px; line-height: 0.92; }
  .v1-subtitle { font-size: 26px; }
  .v1-h2 { font-size: 52px; line-height: 1.0; }
  .v1-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 56px 56px 48px; align-items: end; }
  .v1-hero-photo { aspect-ratio: 4 / 5; }
  .v1-method { padding: 80px 56px 72px; }
  .v1-method-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .v1-rules { gap: 16px; }
  .v1-constructor-section { padding: 80px 56px 72px; }
  .v1-ready { padding: 80px 56px 72px; }
  .v1-tips { padding: 80px 56px 72px; }
  .v1-tips-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .v1-sweet { padding: 96px 56px; }
  .v1-bridge { padding: 96px 56px; }
}

/* =========================================================================
   V2 — "Тёплый минимал" (sans-only, airy)
   ========================================================================= */
.v2-root {
  font-family: "Funnel Sans", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  --acc: var(--terra);
  container-type: inline-size;
}
.v2-root .v2-h1, .v2-root .v2-h2 { letter-spacing: -0.02em; font-weight: 600; }

/* ----- v2 hero ----- */
.v2-hero { padding: 28px 22px 32px; display: flex; flex-direction: column; gap: 22px; }
.v2-eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.v2-eyebrow { color: var(--terra); font-weight: 500; }
.v2-author-handle { font-family: ui-monospace, monospace; letter-spacing: 0.04em; text-transform: none; }
.v2-h1 {
  font-size: 38px;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}
.v2-h1-soft { color: var(--ink-mute); font-weight: 500; }
.v2-lede { font-size: 17px; color: var(--ink-soft); margin: 0; max-width: 36ch; }
.v2-hero-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--rad-lg);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.v2-hero-author { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.v2-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.v2-avatar .placeholder-tag { font-size: 8px; padding: 2px 4px; }
.v2-author-name { font-size: 14px; font-weight: 600; }
.v2-author-bio { font-size: 13px; color: var(--ink-mute); }
.v2-pipe { color: var(--terra); margin: 0 4px; }

/* ----- v2 generic blocks ----- */
.v2-section-label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra); font-weight: 500;
  display: block; margin-bottom: 12px;
}
.v2-section-label.light { color: var(--ochre-soft); }
.v2-h2 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
  overflow-wrap: break-word;
}
.v2-h2.light { color: var(--cream); }
.v2-h2-soft { color: var(--ink-mute); font-weight: 500; }
.v2-body { font-size: 16px; color: var(--ink-soft); margin: 0 0 12px; max-width: 50ch; line-height: 1.6; }
.v2-body.light { color: rgba(251, 245, 231, 0.85); }

/* ----- v2 method ----- */
.v2-method { padding: 56px 22px 40px; }
.v2-rules { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.v2-rule {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  background: var(--cream);
}
.v2-rule-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); font-weight: 500; margin-bottom: 6px; }
.v2-rule-text { font-size: 18px; line-height: 1.3; color: var(--ink); }
.v2-rule-meta { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ochre); margin-top: 8px; letter-spacing: 0.04em; }

/* ----- v2 constructor ----- */
.v2-constructor-section { padding: 56px 22px 48px; background: var(--paper-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ----- v2 ready meals ----- */
.v2-ready { padding: 56px 22px 48px; }
.v2-carousel { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.v2-carousel-track { display: flex; gap: 12px; transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1); }
.v2-meal-card {
  flex: 0 0 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  padding: 16px 18px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.v2-meal-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--rad-sm);
  display: grid; place-items: center;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.v2-meal-num { font-size: 12px; color: var(--terra); font-family: ui-monospace, monospace; letter-spacing: 0.06em; }
.v2-meal-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.v2-meal-title { font-size: 22px; line-height: 1.15; margin: 0; font-weight: 600; }
.v2-meal-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.v2-meal-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  font-size: 13.5px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}
.v2-meal-list li:first-child { border-top: none; padding-top: 0; }
.v2-meal-cat { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); padding-top: 2px; }

.v2-carousel-nav { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; }
.v2-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.v2-progress-bar { height: 100%; background: var(--terra); transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1); }
.v2-counter { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em; }
.v2-nav-buttons { display: flex; gap: 6px; }
.v2-nav-buttons button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.v2-nav-buttons button:hover { background: var(--paper-deep); }

/* ----- v2 sweet ----- */
.v2-sweet { background: var(--terra); color: var(--cream); padding: 56px 22px; }
.v2-sweet .v2-body.light { color: rgba(251, 245, 231, 0.92); max-width: 50ch; }

/* ----- v2 tips ----- */
.v2-tips { padding: 56px 22px 48px; background: var(--paper-soft); border-top: 1px solid var(--line-soft); }
.v2-tips-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.v2-tip-card {
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
}
.v2-tip-num { font-family: ui-monospace, monospace; font-size: 11px; color: var(--terra); letter-spacing: 0.1em; margin-bottom: 6px; }
.v2-tip-title { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.v2-tip-body { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ----- v2 bridge ----- */
.v2-bridge { background: var(--forest-deep); color: var(--cream); padding: 64px 22px 72px; }
.v2-pain {
  font-size: 18px; line-height: 1.4;
  color: var(--ochre-soft);
  border-left: 2px solid var(--ochre);
  padding-left: 14px;
  margin: 8px 0;
}
.v2-cta-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--rad-lg);
  padding: 22px;
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.v2-cta-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.v2-cta-product { font-size: 18px; font-weight: 600; }
.v2-cta-includes { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
.v2-cta-price { display: flex; align-items: baseline; gap: 10px; }
.v2-price-old { text-decoration: line-through; color: var(--ink-mute); font-size: 13px; }
.v2-price-new { font-size: 28px; font-weight: 600; color: var(--terra); }
.v2-cta-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--ink); color: var(--cream);
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.v2-cta-btn:hover { background: var(--terra); }
.v2-cta-note { font-size: 12px; color: var(--ink-mute); text-align: center; }

/* ----- v2 footer ----- */
.v2-footer {
  padding: 36px 22px 48px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.v2-footer-name { font-weight: 600; }
.v2-footer-bio { color: var(--ink-soft); margin-top: 4px; }
.v2-footer-meta { color: var(--ink-mute); font-size: 12px; margin-top: 12px; font-family: ui-monospace, monospace; }

/* ===== v2 desktop ===== */
@container (min-width: 768px) {
  .v2-h1 { font-size: 64px; line-height: 1.02; }
  .v2-h2 { font-size: 40px; line-height: 1.08; }
  .v2-hero { padding: 56px 56px 48px; }
  .v2-method { padding: 80px 56px 64px; }
  .v2-rules { grid-template-columns: 1fr 1fr; gap: 14px; }
  .v2-constructor-section { padding: 80px 56px 72px; }
  .v2-ready { padding: 80px 56px 72px; }
  .v2-tips { padding: 80px 56px 72px; }
  .v2-tips-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .v2-sweet { padding: 96px 56px; }
  .v2-bridge { padding: 96px 56px; }
}

/* =========================================================================
   Constructor — shared between V1 and V2 (with light variant tweaks)
   ========================================================================= */
.constructor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.bowl-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.bowl-stack { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.bowl-wrap { display: grid; place-items: center; }
.bowl-svg {
  width: min(260px, 80%);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(60, 40, 20, 0.12));
}
.bowl-readout { display: flex; flex-direction: column; gap: 12px; }
.bowl-readout-row {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}
.bowl-readout-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.bowl-readout-val {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  color: var(--forest-deep);
}
.constructor-v2 .bowl-readout-val {
  font-family: "Funnel Sans", Inter, sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}
.kcal-unit { font-size: 13px; color: var(--ink-mute); font-family: "Funnel Sans", sans-serif; font-style: normal; margin-left: 2px; }

.bowl-legend { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; transition: opacity 200ms; }
.legend-row.off { opacity: 0.45; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--ink); }
.legend-count { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-mute); }

.bowl-status {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--rad-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.bowl-status.ready {
  background: #E8F0E2;
  color: var(--forest-deep);
  border-color: #C9DDB6;
}
.status-glyph { font-size: 8px; }

.bowl-actions { display: flex; flex-direction: column; gap: 8px; }
.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  transition: background 200ms, transform 200ms, color 200ms;
}
.btn-primary {
  background: var(--forest-deep); color: var(--cream); border-color: var(--forest-deep);
}
.btn-primary:hover { background: #2a4030; }
.constructor-v2 .btn-primary { background: var(--terra); border-color: var(--terra); }
.constructor-v2 .btn-primary:hover { background: #9c4d31; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--paper); }
.btn-text {
  background: transparent; border-color: transparent;
  color: var(--ink-mute);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- Categories carousel ----- */
.cat-carousel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cat-carousel-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.cat-step {
  display: flex; align-items: baseline; gap: 4px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.cat-step-num { color: var(--forest-deep); font-weight: 600; font-size: 16px; }
.constructor-v2 .cat-step-num { color: var(--terra); }
.cat-step-of { font-size: 12px; }

.cat-step-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
}
.cat-step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 200ms;
  position: relative;
}
.cat-step-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 200ms;
}
.cat-step-dot.filled { background: var(--paper-deep); }
.cat-step-dot.on::after { border-color: var(--forest-deep); }
.constructor-v2 .cat-step-dot.on::after { border-color: var(--terra); }
.cat-step-dot:hover { transform: translateY(-1px); }

.cat-step-nav { display: flex; gap: 4px; }
.cat-step-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms;
}
.cat-step-btn:hover { background: var(--paper-deep); }

.cat-track {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 0 -2px;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
.cat-slide .cat-col { height: 100%; }
.cat-col {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.cat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.cat-head-l { display: flex; align-items: center; gap: 12px; }
.cat-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cat-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
  color: var(--forest-deep);
}
.constructor-v2 .cat-title {
  font-family: "Funnel Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.cat-sub { font-size: 11.5px; color: var(--ink-mute); letter-spacing: 0.04em; }
.cat-status {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); }
.cat-status.ok { color: var(--forest); border-color: #C9DDB6; background: #EFF5E8; }
.cat-status.ok .cat-status-dot { background: var(--forest); }

.chip-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.chip {
  width: 100%;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  text-align: left;
  transition: background 200ms, border-color 200ms, transform 100ms;
}
.chip:hover { background: var(--paper-soft); border-color: var(--ink-mute); }
.chip:active { transform: scale(0.98); }
.chip.on {
  background: var(--forest-deep);
  color: var(--cream);
  border-color: var(--forest-deep);
}
.constructor-v2 .chip.on {
  background: var(--terra);
  border-color: var(--terra);
}
.chip-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-mute);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  color: transparent;
  transition: all 200ms;
}
.chip.on .chip-check {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--forest-deep);
}
.constructor-v2 .chip.on .chip-check { color: var(--terra); }
.chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.chip-name { font-size: 14px; font-weight: 500; line-height: 1.25; }
.chip-note { font-size: 12px; opacity: 0.7; line-height: 1.2; }
.chip.on .chip-note { opacity: 0.85; }

.constructor-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  font-style: italic;
  padding: 12px 16px;
  border-left: 2px solid var(--ochre);
  background: rgba(199, 126, 58, 0.06);
  border-radius: 0 var(--rad-sm) var(--rad-sm) 0;
}

/* ===== Constructor desktop ===== */
@container (min-width: 768px) {
  .constructor { gap: 28px; }
  .bowl-stack {
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
  }
  .bowl-svg { width: 100%; max-width: 320px; }
  .bowl-actions { flex-direction: row; flex-wrap: wrap; }
  .bowl-actions .btn { flex: 1 1 auto; }
  /* Show 2 category cards per page on desktop */
  .cat-slide { flex: 0 0 calc(50% - 6px); }
}
@container (min-width: 1100px) {
  .cat-slide { flex: 0 0 calc(33.333% - 8px); }
}
