/* Andrea Foodie × FoodiePlan — sistema visual
   Arena cálida + oliva suave + terracota (tu infografía)
   Tipografía elegante · cocina + criterio clínico */

:root {
  /* Extraídos / alineados con tu infografía ANDREA FOODIE */
  --sand: #efe8dc;
  --sand-deep: #e5dccb;
  --cream: #f6f1e7;
  --paper: #f6f1e7;
  --paper-2: #fffcf7;
  --ink: #2f342c;
  --muted: #6f7569;
  --olive: #5f6b4a;
  --olive-deep: #4c5640;
  --olive-soft: #dde3d0;
  --terracotta: #c17b6b;
  --terracotta-soft: #f0ddd7;
  --line: rgba(47, 52, 44, 0.12);
  --shadow: 0 20px 50px rgba(47, 52, 44, 0.07);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --sage: var(--olive);
  --sage-2: var(--olive-deep);
  --leaf: var(--olive-soft);
  --clay: var(--terracotta);
  --clay-soft: var(--terracotta-soft);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(216, 222, 204, 0.55), transparent 60%),
    radial-gradient(700px 380px at 100% 8%, rgba(237, 217, 204, 0.45), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* —— Marca tipográfica (sin dibujo) —— */
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  cursor: pointer;
  border-radius: 12px;
  padding: 4px 6px 4px 2px;
  margin-left: -2px;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.82; }
.brand:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.brand-logo {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand img.brand-logo {
  display: block;
}
.logo-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.logo-mock img,
.logo-mock svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-name em {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 0.72em;
  color: var(--terracotta);
  display: block;
  text-transform: uppercase;
  margin-top: 3px;
}
.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
}
.brand-app .brand-name {
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: 1.35rem;
}
.brand-app .brand-name em {
  display: inline;
  color: var(--terracotta);
  font-style: italic;
  letter-spacing: -0.02em;
  font-size: inherit;
  text-transform: none;
  margin: 0;
}

.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(247, 242, 232, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 16px;
}
.nav-links { display: flex; gap: 20px; align-items: center; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s ease; }
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.private-link {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.private-link:hover { color: var(--ink); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.auth-page { padding: 72px 0 96px; }
.auth-card { max-width: 520px; margin: 0 auto; }
.auth-card h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--terracotta-soft);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 999px; padding: 12px 20px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--olive); color: #f7f2e8; }
.btn-primary:hover { background: var(--olive-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-clay { background: var(--terracotta); color: #fff; }

.kicker {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--olive); font-weight: 600; margin: 0 0 10px;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; margin: 0; }

/* Sobre mí — tipografía única y ordenada */
.about { border-top: 1px solid var(--line); }
.about-inner { max-width: 40rem; }
.about-copy {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-copy p {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.about-copy a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-cta-line {
  margin-top: 0.5rem !important;
  color: var(--ink) !important;
  font-weight: 600;
}

/* Hero marca — una composición */
.hero-brand {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  padding: 48px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-brand::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(95, 107, 74, 0.18), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(184, 106, 69, 0.12), transparent 55%);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-brand::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: 5%;
  width: min(40vw, 380px);
  height: min(40vw, 380px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 216, 198, 0.9), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 12px) scale(1.04); }
}
.hero-brand .wrap { position: relative; z-index: 1; max-width: 720px; }
.hero-brand .brand-signal {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--olive);
  margin: 0 0 18px;
}
.hero-brand h1 {
  margin-bottom: 18px;
  color: var(--ink);
}
.hero-brand h1 .soft {
  display: block;
  color: var(--olive);
  font-weight: 400;
  font-style: italic;
  font-size: 0.72em;
  margin-top: 0.15em;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 0; }
.meta-row { display: flex; gap: 18px; color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; margin-top: 22px; }

.section { padding: 72px 0; position: relative; }
.section.alt {
  background: rgba(255, 252, 246, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.card p { color: var(--muted); margin: 0; }
.num {
  font-family: var(--display);
  color: var(--terracotta);
  font-size: 1.8rem;
  font-style: italic;
  margin: 0 0 6px;
}
.path-cta {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-style: italic;
  color: var(--ink);
  margin: 36px 0 0;
  max-width: 28rem;
}

/* Guía de marca */
.swatch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.swatch {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2);
}
.swatch-chip { height: 88px; }
.swatch-meta { padding: 12px 14px; font-size: 0.85rem; }
.swatch-meta strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.type-sample {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.type-sample .big {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 0 0 8px;
}
.type-sample .big em { font-style: italic; color: var(--olive); }
.type-sample .ui { font-size: 0.95rem; color: var(--muted); }

.wordmark-block {
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  text-align: center;
}
.wordmark-block .wm {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
.wordmark-block .wm em { font-style: italic; color: var(--olive); }
.wordmark-block .wm-app span { color: var(--terracotta); font-style: italic; }
.wordmark-block .tag {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ig {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--olive); color: var(--cream); border-radius: 28px; padding: 28px 32px;
}
.ig h2 { color: var(--cream); margin-bottom: 6px; }
.ig p { margin: 0; color: var(--olive-soft); }
.ig .kicker { color: var(--olive-soft); }
.ig-btn {
  border-color: rgba(246, 241, 231, 0.35);
  color: var(--cream);
  background: transparent;
}
.ig-btn:hover {
  background: rgba(246, 241, 231, 0.12);
  border-color: var(--cream);
}

footer { padding: 28px 0 48px; color: var(--muted); font-size: 0.85rem; }

.pill { font-size: 0.7rem; padding: 4px 8px; border-radius: 999px; background: var(--olive-soft); color: var(--olive-deep); font-weight: 600; }
.hero-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
}
.hero-card header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.plan-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.plan-item b { display: block; }
.plan-item span { color: var(--muted); font-size: 0.75rem; }

.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.flow-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 28px 0 48px;
  align-items: start;
}
.steps {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  position: sticky;
  top: 88px;
}
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 8px; border-radius: 12px; color: var(--muted); font-size: 0.82rem;
}
.steps li.on { background: var(--olive-soft); color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--olive); }
.step-n {
  width: 22px; height: 22px; border-radius: 999px; flex: none;
  display: grid; place-items: center; font-size: 0.7rem;
  background: var(--cream); color: var(--olive);
}
.steps li.on .step-n { background: var(--olive); color: #fff; }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 26px 28px;
  box-shadow: var(--shadow);
}
.panel[hidden], .wizard-step[hidden], .is-hidden { display: none !important; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
label.field span.hint { font-weight: 400; color: var(--muted); font-size: 0.75rem; }
input, select, textarea {
  font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; background: #fff;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(95, 107, 74, 0.25); border-color: var(--olive);
}

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check {
  display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 0.85rem; font-weight: 400; cursor: pointer; background: #fff;
}
.check input { margin-top: 2px; }

.wizard-nav {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}

.result-hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-top: 8px;
}
.big-stat {
  font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1;
}
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot {
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 14px; text-align: left; cursor: pointer; font: inherit;
}
.slot:hover, .slot.on { border-color: var(--olive); background: var(--olive-soft); }
.slot b { display: block; }
.slot span { color: var(--muted); font-size: 0.75rem; }

.progress-bar {
  height: 6px; border-radius: 999px; background: var(--olive-soft); overflow: hidden; margin: 12px 0 0;
}
.progress-bar > i {
  display: block; height: 100%; width: 0; background: var(--olive); border-radius: inherit;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper-2);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 0.85rem;
}
.chip.on { background: var(--olive); color: #fff; border-color: var(--olive); }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recipe {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
}
.recipe-top {
  height: 92px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--olive-soft), var(--terracotta-soft));
  font-size: 34px;
}
.recipe-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.7rem; padding: 3px 8px; border-radius: 999px; background: var(--olive-soft); }
.tag.dm2 { background: var(--terracotta-soft); }
.stats { display: flex; gap: 10px; color: var(--muted); font-size: 0.75rem; }
.clinical { font-size: 0.9rem; color: var(--muted); }

.app-shell {
  display: grid; grid-template-columns: 280px 1fr; gap: 18px;
  min-height: calc(100vh - 72px); padding: 22px 0 40px;
}
.side {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 24px; padding: 18px;
}
.patient {
  width: 100%; text-align: left; border: 1px solid var(--line);
  background: transparent; border-radius: 16px; padding: 12px; margin: 0 0 8px;
  cursor: pointer; font-family: inherit;
}
.patient.on { border-color: var(--olive); background: var(--olive-soft); }
.patient b { display: block; }
.patient span { color: var(--muted); font-size: 0.75rem; }
.board { display: grid; gap: 16px; }
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.meal { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.meal small { color: var(--terracotta); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi div { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi strong { display: block; font-size: 1.4rem; font-family: var(--display); }

.disclaimer {
  font-size: 0.75rem; color: var(--muted); background: var(--terracotta-soft);
  border-radius: 14px; padding: 12px 14px;
}

.nutri-grid { display: grid; gap: 14px; margin-top: 8px; }
.nutri-label { display: flex; align-items: baseline; gap: 8px; font-size: 0.85rem; margin-bottom: 6px; }
.nutri-label b { font-family: var(--display); font-size: 1.15rem; }
.nutri-label .hint { color: var(--muted); font-weight: 400; margin-left: auto; }
.nutri-bar {
  height: 8px; border-radius: 999px; background: var(--olive-soft); overflow: hidden;
}
.nutri-bar > i { display: block; height: 100%; border-radius: inherit; }
.meal-rich .meal-head {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start;
}
.meal-macros {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.75rem; color: var(--muted);
  background: var(--olive-soft); border-radius: 12px; padding: 8px 10px;
}
.meal-macros b { color: var(--ink); }
.ingredient-list {
  margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.85rem;
}
.editor-kcal input:disabled { opacity: 0.7; background: var(--sand); }

.fade-up {
  animation: fadeUp 0.8s ease both;
}
.fade-up-delay { animation: fadeUp 0.9s ease 0.15s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-up-delay {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.composer { margin: 22px 0 8px; }
.composer h2 { font-family: var(--display); font-weight: 500; }
.tips-feed { display: grid; gap: 16px; margin: 18px 0 40px; }
.tip-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
}
.tip-card h2 {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 8px 0 10px;
}
.tip-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tip-meta time { color: var(--muted); font-size: 0.78rem; }
.tip-body p { color: var(--ink); margin: 0 0 8px; }
.tip-body p:last-child { margin-bottom: 0; }
.tip-actions { display: flex; gap: 8px; margin-top: 14px; }

/* Web pública */
.hero-public-grid {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px !important;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 64px;
  align-items: center;
}
.public-hero { min-height: min(760px, calc(100vh - 72px)); }
.hero-location-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--shadow);
}
.hero-location-card img { width: 72px; margin-bottom: 24px; }
.hero-location-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.hero-location-card p:last-child { margin-bottom: 0; color: var(--muted); }
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}
.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}
.section-copy p { margin: 0 0 22px; }
.text-link {
  color: var(--olive-deep);
  font-weight: 700;
  text-decoration: none;
}
.text-link span { color: var(--terracotta); margin-left: 4px; }
.card .text-link { display: inline-block; margin-top: 16px; }
.process-grid { margin-top: 30px; }
.page-hero {
  padding: 100px 0 84px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 123, 107, 0.18), transparent 68%);
  pointer-events: none;
}
.page-hero.compact { padding-bottom: 56px; }
.narrow { max-width: 760px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  min-height: 280px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
}
.service-card p:last-child { color: var(--muted); }
.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--olive);
  background: var(--olive-soft);
  font-size: 1.35rem;
}
.feature-list { border-top: 1px solid var(--line); }
.feature-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list span { color: var(--muted); }
.final-cta { padding-top: 24px; }
.cta-panel {
  padding: clamp(34px, 7vw, 72px);
  border-radius: 30px;
  color: var(--cream);
  background: var(--olive);
  text-align: center;
}
.cta-panel .kicker, .cta-panel p { color: var(--olive-soft); }
.cta-panel h2 { max-width: 720px; margin-right: auto; margin-left: auto; }
.cta-panel .btn { margin-top: 12px; background: var(--cream); color: var(--olive-deep); }
.advice-section { padding-top: 20px; }
.public-tips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.public-tips .tip-card { height: 100%; }
.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner a { color: var(--olive-deep); text-underline-offset: 3px; }
.booking-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
}
.booking-card, .booking-aside {
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-2);
}
.booking-options { display: grid; gap: 10px; margin: 26px 0; }
.booking-options div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--olive-soft);
}
.booking-options span, .booking-aside p, .booking-note { color: var(--muted); }
.booking-note { margin: 14px 0 0; font-size: 0.78rem; }
.booking-aside img { width: 64px; margin-bottom: 24px; }

@media (max-width: 860px) {
  .hero, .grid-3, .recipe-grid, .app-shell, .day-grid, .kpi,
  .flow-layout, .form-grid, .result-hero, .slot-grid, .check-grid, .swatch-row,
  .hero-public-grid, .split-section, .service-grid, .public-tips, .booking-preview { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  body.software .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.8rem;
  }
  body.software .nav-inner { flex-wrap: wrap; }
  .private-link { font-size: 0.78rem; }
  .steps { position: static; }
  .public-hero { min-height: auto; }
  .hero-public-grid { gap: 38px; }
  .hero-location-card { display: none; }
  .page-hero { padding: 72px 0 54px; }
  .section { padding: 56px 0; }
  .feature-list div { grid-template-columns: 1fr; gap: 4px; }
  .nav-cta { padding: 10px 15px; }
}

@media (max-width: 420px) {
  .wrap, .hero-public-grid { width: min(100% - 28px, 1120px); }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; }
  .nav-inner { padding: 12px 0; }
  .nav-cta { font-size: 0.78rem; }
}

.week-page { padding: 20px 0 64px; }
.needs-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.needs-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.week-head {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  align-items: flex-end; margin-bottom: 20px;
}
.week-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.week-toolbar select { min-width: 260px; font: inherit; }
.diet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.diet-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.diet-grid { border-collapse: collapse; min-width: 1100px; width: 100%; font-size: 0.78rem; }
.diet-grid th, .diet-grid td {
  border: 1px solid var(--line); vertical-align: top; padding: 8px;
}
.diet-grid thead th { background: var(--sand); font-weight: 600; text-align: left; }
.diet-grid thead small, .diet-grid .sticky-col small {
  display: block; font-weight: 400; color: var(--muted); font-size: 0.7rem;
}
.diet-grid .sticky-col {
  position: sticky; left: 0; background: #f3eee4; z-index: 1; min-width: 120px;
  font-family: var(--display); font-size: 1rem;
}
.cell-kcal { margin: 0 0 6px; color: var(--olive); font-weight: 600; font-size: 0.72rem; }
.food-line {
  display: grid; grid-template-columns: 1fr 52px auto auto; gap: 4px;
  align-items: center; margin-bottom: 8px;
}
.food-line .how {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--olive-deep);
  font-size: 0.7rem;
}
.food-line select, .food-line input {
  font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 3px 5px; background: #fff;
}
.icon-x {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem;
}
.add-food {
  margin-top: 4px; border: 0; background: transparent; color: var(--terracotta);
  cursor: pointer; font: inherit; font-size: 0.72rem;
}
.week-analysis {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  position: sticky; top: 84px;
}
.energy-box { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 8px 0 12px; }
.energy-box strong { font-family: var(--display); font-size: 2rem; }
.energy-box span { color: var(--muted); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.mini-table td, .mini-table th { padding: 4px 0; border-bottom: 1px solid var(--line); text-align: left; }
.desv-ok { color: var(--olive-deep); font-weight: 600; }
.desv-mid { color: #9a6b2f; font-weight: 600; }
.desv-off { color: var(--terracotta); font-weight: 600; }
.macro-bars { display: flex; flex-direction: column; gap: 8px; }
.macro-bars div { font-size: 0.75rem; }
.macro-bars i {
  display: block; height: 8px; border-radius: 99px; margin-top: 4px; max-width: 100%;
}

@media (max-width: 960px) {
  .diet-layout { grid-template-columns: 1fr; }
  .week-analysis { position: static; }
}

.print-sheet {
  max-width: 780px;
  margin: 0 auto 48px;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 40px 28px;
}
.print-brand { text-align: center; margin-bottom: 8px; }
.print-brand img { width: min(280px, 70%); margin: 0 auto 6px; }
.print-brand p {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--olive);
}
.print-sheet h1 {
  text-align: center;
  font-size: 2rem;
  margin: 12px 0 6px;
}
.print-meta {
  text-align: center;
  color: var(--muted);
  margin: 0 0 28px;
}
.print-day {
  break-inside: avoid;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.print-day h2 { font-size: 1.35rem; margin-bottom: 8px; }
.print-meal { margin-bottom: 10px; }
.print-meal h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 4px;
}
.print-meal ul { margin: 0; padding-left: 18px; color: var(--ink); }
.print-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.print-extras {
  margin-top: 28px;
  padding-top: 8px;
}
.print-extras h2 {
  font-size: 1.45rem;
  margin: 22px 0 8px;
}
.print-note {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.92rem;
}
.print-shop-block { margin-bottom: 14px; break-inside: avoid; }
.print-shop-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 6px;
}
.print-shop-block ul,
.print-habits {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}
.print-habits li { margin-bottom: 8px; }
.print-watermark { display: none; }

@media print {
  body { background: #fff !important; }
  .no-print, .nav { display: none !important; }
  .print-sheet {
    border: 0;
    margin: 0;
    padding: 0;
    max-width: none;
    box-shadow: none;
  }
  .print-sheet > :not(.print-watermark) {
    position: relative;
    z-index: 1;
  }
  .print-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 0;
    display: flex;
    width: 360px;
    transform: translate(-50%, -50%) rotate(-18deg);
    flex-direction: column;
    align-items: center;
    color: #5f6b4a;
    opacity: 0.075;
    pointer-events: none;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-watermark img {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
  }
  .print-watermark strong {
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
  }
  .print-watermark span {
    margin-top: 5px;
    color: #c17b6b;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.35em;
  }
  .print-watermark small {
    margin-top: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
  }
  .print-day { break-inside: avoid; }
  .print-extras { break-before: page; }
}
