:root {
  --forest: #18362a;
  --forest-2: #244a39;
  --ink: #172019;
  --paper: #f7f1e7;
  --surface: #fffdf8;
  --cream: #eadfca;
  --terracotta: #b75d3f;
  --gold: #c79b57;
  --muted: #6c746d;
  --line: #ded6c8;
  --danger: #85422f;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(15, 29, 22, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(2.45rem, 7vw, 5.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.topbar { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 750; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--gold); font: 700 .75rem/1 Georgia, serif; }
.quiet-link { color: #fff; font-size: .9rem; text-underline-offset: 5px; }
.delivery-hero { color: #fff; min-height: 92vh; background: linear-gradient(110deg, rgba(8,16,12,.97), rgba(24,54,42,.91)), url("assets/capa-botanica.png") center/cover; }
.hero-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(290px, .65fr); gap: clamp(48px, 8vw, 110px); align-items: center; }
.hero-copy { max-width: 720px; }
.hero-lead { color: #dbe4dd; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 62ch; }
.eyebrow { margin-bottom: 18px; color: #d4ac6b; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 800; }
.eyebrow.dark { color: var(--terracotta); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 750; line-height: 1.2; }
.button-primary { color: #132219; background: #e4b66d; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.button-dark { color: #fff; background: var(--forest); }
.button.disabled { opacity: .62; cursor: not-allowed; user-select: none; }
.delivery-note { color: #aebbb3; font-size: .87rem; }
.cover-frame { margin: 0; padding: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 28px; transform: rotate(1.2deg); box-shadow: 0 34px 80px rgba(0,0,0,.35); }
.cover-frame img { aspect-ratio: 3/4; object-fit: cover; border-radius: 17px; }
.cover-frame figcaption { padding: 14px 4px 2px; color: #cbd4ce; font-size: .78rem; }
.light-section, .botanical-section { padding: clamp(72px, 10vw, 130px) max(24px, calc((100% - 1180px)/2)); }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article { padding: 28px; border-top: 1px solid var(--line); }
.feature-grid span { color: var(--terracotta); font: 700 .8rem/1 ui-monospace, monospace; }
.feature-grid h3 { margin: 22px 0 12px; }
.feature-grid p { color: var(--muted); font-size: .95rem; }
.botanical-section { color: #fff; background: var(--forest); }
.notice-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(34px, 7vw, 90px); align-items: center; }
.avatar { width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); box-shadow: var(--shadow); }
.notice-layout p { color: #d8e0da; }
.thank-you { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.thank-you > div { max-width: 770px; }
footer { padding: 28px 20px; color: #cdd5d0; background: #101a15; text-align: center; font-size: .82rem; }

.app-page { min-height: 100vh; background: #e7e1d8; }
.app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 26px 24px 112px; background: var(--paper); box-shadow: 0 0 70px rgba(20,31,25,.12); }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.app-header h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.2rem); }
.app-kicker { margin: 0 0 4px; color: var(--terracotta); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.round-button { flex: 0 0 auto; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: var(--surface); font-weight: 800; cursor: pointer; }
.safety-strip { margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid var(--terracotta); background: #efe3d7; color: #573a2e; font-size: .88rem; }
.app-view { display: none; }
.app-view.active { display: block; }
.search-box { display: block; margin-bottom: 28px; }
.search-box span { display: block; margin-bottom: 8px; font-weight: 750; }
.search-box input { width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid #cfc6b8; border-radius: 14px; color: var(--ink); background: var(--surface); }
.search-box input:focus { outline: 3px solid rgba(183,93,63,.22); border-color: var(--terracotta); }
.welcome-panel { display: grid; grid-template-columns: 1fr 120px; gap: 18px; padding: 26px; border-radius: var(--radius); color: #fff; background: var(--forest); overflow: hidden; }
.welcome-panel h2 { font-size: 1.8rem; }
.welcome-panel p:not(.eyebrow) { color: #d9e0db; font-size: .93rem; }
.welcome-panel img { width: 120px; height: 120px; object-fit: cover; align-self: end; border-radius: 50%; border: 2px solid var(--gold); }
.list-title { margin: 38px 0 18px; font-size: 1.65rem; }
.pain-list-title { margin-top: 30px; }
.section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.section-card { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; }
.collection-card { width: 100%; min-height: 132px; border-color: #cdbb9e; background: linear-gradient(135deg, #fffdf8, #f0e5d3); box-shadow: 0 12px 30px rgba(24,54,42,.07); }
.section-card strong { display: block; margin-bottom: 8px; font: 700 1.12rem/1.2 Georgia, serif; }
.section-card small { display: block; margin-bottom: 8px; color: var(--terracotta); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.section-card span { color: var(--muted); font-size: .82rem; }
.section-card:hover, .section-card:focus-visible { border-color: var(--terracotta); transform: translateY(-1px); }
.back-button { min-height: 48px; margin-bottom: 22px; padding: 0; border: 0; color: var(--forest); background: transparent; font-weight: 800; cursor: pointer; }
.section-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 22px; }
.print-section-button, .download-section-link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--forest); border-radius: 999px; font-weight: 750; cursor: pointer; text-decoration: none; }
.download-section-link { color: #fff; background: var(--forest); }
.print-section-button { color: var(--forest); background: transparent; }
.section-intro { color: var(--muted); }
.section-professional-note { margin: 16px 0; padding: 13px 15px; border-left: 4px solid var(--terracotta); background: #efe3d7; color: #573a2e; font-size: .88rem; }
.recipe-list { display: grid; gap: 12px; }
.editorial-hold { padding: 22px; border: 1px dashed #b8aa98; border-radius: 16px; color: var(--muted); background: var(--surface); }
.editorial-hold p { margin: 6px 0 0; }
.recipe-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.recipe-card summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 750; }
.recipe-card summary::-webkit-details-marker { display: none; }
.recipe-card summary::after { content: "+"; color: var(--terracotta); font-size: 1.3rem; }
.recipe-card[open] summary::after { content: "−"; }
.recipe-body { padding: 0 18px 20px; border-top: 1px solid var(--line); }
.recipe-body h4 { margin: 22px 0 8px; color: var(--forest); }
.recipe-body ul, .recipe-body ol { padding-left: 24px; }
.review-badge { display: inline-block; margin-top: 12px; padding: 5px 9px; border-radius: 999px; color: #6a432f; background: #f1ddc9; font-size: .72rem; font-weight: 800; }
.save-button { min-height: 44px; margin-top: 16px; padding: 8px 14px; border: 1px solid var(--forest); border-radius: 999px; color: var(--forest); background: transparent; cursor: pointer; font-weight: 700; }
.download-card { display: grid; grid-template-columns: 140px 1fr; gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.download-card img { width: 140px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; }
.featured-download { margin-bottom: 28px; border-color: #cdbb9e; box-shadow: 0 14px 34px rgba(24,54,42,.08); }
.download-subtitle { margin: 0 0 12px; }
.downloads-list { display: grid; gap: 12px; }
.download-card.compact { display: block; }
.download-card.compact h3 { margin-bottom: 8px; }
.download-card.compact p { color: var(--muted); font-size: .92rem; }
.guardian-note { display: grid; grid-template-columns: 72px 1fr; gap: 15px; align-items: center; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.guardian-note img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); }
.guardian-note p { margin: 0; font-size: .88rem; }
.climacteric-subtitle { max-width: 58ch; color: var(--forest); font-size: 1.05rem; font-weight: 650; }
.climacteric-introduction { margin: 24px 0; padding: 22px; border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; background: var(--surface); }
.climacteric-introduction p:last-child, .need-introduction p:last-child { margin-bottom: 0; }
.climacteric-master-action { margin: 0 0 34px; }
.climacteric-master-action .button { width: 100%; text-transform: uppercase; letter-spacing: .04em; }
.need-grid-title { margin: 0 0 15px; font-size: 1.55rem; }
.need-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.need-category-card { min-width: 0; min-height: 178px; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
.need-category-card:hover, .need-category-card:focus-visible { border-color: var(--terracotta); transform: translateY(-1px); }
.need-icon { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--forest); background: var(--cream); font: 700 1.15rem/1 Georgia, serif; }
.need-card-copy { min-width: 0; display: block; }
.need-card-copy strong { display: block; margin-bottom: 8px; font: 700 1.08rem/1.18 Georgia, serif; overflow-wrap: anywhere; }
.need-description { display: block; margin-bottom: 12px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.need-card-copy small { display: block; color: var(--terracotta); font-size: .7rem; font-weight: 800; line-height: 1.35; }
.need-introduction { max-width: 64ch; color: var(--muted); }
.contextual-note { margin: 18px 0; padding: 14px 16px; border-left: 4px solid var(--terracotta); background: #efe3d7; color: #573a2e; font-size: .88rem; }
.need-content-section { margin-top: 34px; }
.need-content-section h3, .related-needs h3 { margin-bottom: 14px; font-size: 1.45rem; }
.compact-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compact-info-grid > div { min-height: 68px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .9rem; }
.routine-grid > div { border-left: 4px solid var(--gold); }
.need-recipe-context { color: var(--muted); font-size: .92rem; }
.related-needs { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-needs-grid, .search-need-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-need-card { min-height: 100px; }
.climacteric-disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.source-note { margin-top: 14px; color: var(--muted); font-size: .78rem; }
.source-note summary { cursor: pointer; font-weight: 700; }
.source-note a { text-underline-offset: 3px; }
.search-group-title { margin: 20px 0 10px; color: var(--terracotta); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.climacteric-download { border-color: #cdbb9e; background: #fbf5ea; }
.bonus-intro { max-width: 60ch; color: var(--muted); }
.bonus-grid { display: grid; gap: 18px; margin-top: 26px; }
.bonus-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 30px rgba(24,54,42,.06); }
.bonus-card img { width: 150px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 24px rgba(20,31,25,.14); }
.bonus-card h3 { margin: 4px 0 9px; font-size: 1.45rem; }
.bonus-card p:not(.app-kicker) { color: var(--muted); font-size: .9rem; }
.bonus-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.bonus-actions .button { min-height: 45px; padding: 9px 15px; border-radius: 999px; cursor: pointer; }
.bonus-download { border-color: var(--forest); color: var(--forest); background: transparent; }
.bonus-detail { margin-top: 10px; }
.bonus-note { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.settings-list { display: grid; gap: 10px; margin-bottom: 34px; }
.settings-list button, .settings-list a { min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); text-align: left; text-decoration: none; cursor: pointer; }
.long-notice { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; width: min(100%, 760px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(14px); }
.bottom-nav button { min-height: 58px; padding: 5px 2px; border: 0; color: #667068; background: transparent; font-size: .68rem; cursor: pointer; }
.bottom-nav span { display: block; margin-bottom: 2px; font-size: 1.2rem; }
.bottom-nav button.active { color: var(--forest); font-weight: 800; }
.large-text { font-size: 20px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; }
  .cover-frame { max-width: 440px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .notice-layout { grid-template-columns: 1fr; }
  .avatar { width: 170px; }
  .thank-you { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .topbar, .hero-grid { width: min(100% - 30px, 1180px); }
  .hero-grid { padding-bottom: 70px; }
  .hero-actions .button { width: 100%; }
  .feature-grid, .section-grid, .need-category-grid, .compact-info-grid, .related-needs-grid, .search-need-results { grid-template-columns: 1fr; }
  .feature-grid article { padding: 24px 0; }
  .light-section, .botanical-section { padding-left: 20px; padding-right: 20px; }
  .app-shell { padding-left: 17px; padding-right: 17px; }
  .welcome-panel { grid-template-columns: 1fr 82px; padding: 20px; }
  .welcome-panel img { width: 82px; height: 82px; }
  .download-card { grid-template-columns: 95px 1fr; gap: 15px; }
  .download-card img { width: 95px; }
  .bonus-card { grid-template-columns: 90px 1fr; gap: 14px; padding: 15px; }
  .bonus-card img { width: 90px; }
  .bonus-actions .button { width: 100%; }
  .need-category-card { min-height: 0; }
  .bottom-nav { padding-left: 4px; padding-right: 4px; }
  .bottom-nav button { font-size: .56rem; }
  .bottom-nav span { font-size: 1.05rem; }
}

@media print {
  .bottom-nav, .app-header, .safety-strip, .back-button, .save-button, .section-actions, .related-needs, .source-note { display: none !important; }
  .app-shell { width: 100%; padding: 0; box-shadow: none; }
  .recipe-card { break-inside: avoid; border-color: #999; }
  .recipe-body { display: block; }
  .recipe-card summary::after { display: none; }
}
