:root {
  --cream: #FAF5EA;
  --cream-2: #F2E9D8;
  --paper: #FFFFFF;
  --border: #E7DBC3;
  --ink: #2B241D;
  --ink-soft: #5B4F41;
  --ink-mute: #8A7C69;
  --teal: #1F5C52;
  --teal-dark: #153F38;
  --teal-soft: #E3EEEA;
  --terracotta: #B1512F;
  --terracotta-soft: #F6E3DA;
  --gold: #C98A2C;
  --success: #3F7A4E;
  --shadow: 0 10px 28px -16px rgba(43, 36, 29, .35);
  --radius: 16px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --top-h: 52px;
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #14201D;
    --cream-2: #1C2B27;
    --paper: #1F302B;
    --border: #2E433D;
    --ink: #F3ECDF;
    --ink-soft: #CFC4B2;
    --ink-mute: #9A8F7E;
    --teal: #7FC4B4;
    --teal-dark: #A6DCCF;
    --teal-soft: #22403A;
    --terracotta: #E48A68;
    --terracotta-soft: #3A2A23;
    --gold: #E2B05E;
    --shadow: 0 10px 28px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }

/* ---------- chrome ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 8px 0;
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar-title { flex: 1; min-width: 0; font-weight: 600; font-size: 17px; padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title img { height: 22px; display: block; }
.topbar-actions { display: flex; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--teal);
}
.lang-btn {
  height: 32px; min-width: 44px; padding: 0 10px; margin-right: 6px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--paper); color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
.icon-btn:active { background: var(--cream-2); }
.icon-btn.on svg { fill: var(--terracotta); stroke: var(--terracotta); }

main { padding: 4px 16px calc(var(--tab-h) + var(--safe-b) + 28px); max-width: 720px; margin: 0 auto; outline: none; }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--border);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-mute); }
.tabbar a.active { color: var(--teal); }
.tabbar a.active svg { stroke-width: 2.2; }
body.cooking .tabbar, body.cooking .topbar { display: none; }

/* ---------- home ---------- */
.hero { padding: 12px 0 18px; }
.hero h1 { font-size: 30px; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero p { margin: 6px 0 0; color: var(--ink-soft); }
.searchbox {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 14px; height: 48px; box-shadow: var(--shadow);
}
.searchbox svg { color: var(--ink-mute); width: 20px; height: 20px; }
.searchbox input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.searchbox input::placeholder { color: var(--ink-mute); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.section-h h2 { font-size: 21px; }
.section-h a { font-size: 14px; font-weight: 600; color: var(--teal); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 14px; min-height: 96px;
  background: var(--c-bg); color: var(--c-fg); display: flex; flex-direction: column; justify-content: space-between;
}
.cat .cat-ico { width: 34px; height: 34px; stroke-width: 1.6; }
.cat strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.cat small { display: block; font-size: 12.5px; opacity: .8; }
.cat::after { content: ""; position: absolute; right: -22px; top: -22px; width: 86px; height: 86px; border-radius: 50%; background: currentColor; opacity: .07; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 74%; max-width: 280px; }

/* ---------- cards ---------- */
.card {
  display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 10px; }
.thumb {
  width: 64px; height: 64px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--c-bg); color: var(--c-fg);
}
.thumb svg { width: 30px; height: 30px; stroke-width: 1.6; }
.card-body { min-width: 0; flex: 1; }
.card-body h3 { font-size: 16.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: var(--ink-mute); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 14px; height: 14px; }

.feature { display: block; background: var(--c-bg); color: var(--c-fg); border-radius: 20px; padding: 18px; min-height: 168px; position: relative; overflow: hidden; }
.feature .eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.feature h3 { font-size: 21px; margin-top: 30px; }
.feature p { margin: 6px 0 0; font-size: 13.5px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature > svg { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; stroke-width: 1.4; opacity: .9; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 4px; padding: 0 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--border); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.result-count { color: var(--ink-mute); font-size: 13.5px; margin: 14px 0 10px; }

/* ---------- recipe ---------- */
.r-hero { background: var(--c-bg); color: var(--c-fg); margin: 0 -16px; padding: 22px 20px 26px; position: relative; overflow: hidden; }
.r-hero > svg { position: absolute; right: -14px; bottom: -18px; width: 150px; height: 150px; stroke-width: 1; opacity: .16; }
.r-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.r-hero h1 { font-size: 30px; margin-top: 6px; max-width: 92%; }
.r-hero p { margin: 10px 0 0; max-width: 92%; opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); margin: -14px 0 0; position: relative; box-shadow: var(--shadow); }
.stats div { padding: 12px 6px; text-align: center; }
.stats div + div { border-left: 1px solid var(--border); }
.stats b { display: block; font-size: 15px; }
.stats small { color: var(--ink-mute); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.r-section { margin-top: 28px; }
.r-section > h2 { font-size: 22px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.r-section > h2 small { font-family: var(--sans); font-size: 13px; color: var(--ink-mute); font-weight: 500; }
.ing-group { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--terracotta); margin: 16px 0 4px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.checklist li:last-child { border-bottom: 0; }
.box { width: 22px; height: 22px; border-radius: 7px; border: 1.8px solid var(--border); flex: none; display: grid; place-items: center; margin-top: 1px; transition: .15s; }
.box svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; color: #fff; }
.checklist li.done .box { background: var(--success); border-color: var(--success); }
.checklist li.done .box svg { opacity: 1; }
.checklist li.done .txt { color: var(--ink-mute); text-decoration: line-through; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; padding: 10px 0; }
.steps li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--cream);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-top: -1px;
}
.tip { background: var(--terracotta-soft); border-radius: 14px; padding: 12px 14px; margin-top: 8px; font-size: 15px; display: flex; gap: 10px; }
.tip svg { color: var(--terracotta); width: 20px; height: 20px; margin-top: 1px; }
.review-note { font-size: 13px; color: var(--ink-mute); margin-top: 20px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 14px;
  border: 0; background: var(--teal); color: var(--cream); font-weight: 600; font-size: 16px; cursor: pointer;
}
.btn.secondary { background: var(--paper); color: var(--teal); border: 1.5px solid var(--teal); }
.btn:active { transform: scale(.985); }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

/* ---------- cook mode ---------- */
.cook { position: fixed; inset: 0; z-index: 50; background: var(--cream); display: flex; flex-direction: column; padding: calc(var(--safe-t) + 10px) 20px calc(var(--safe-b) + 16px); }
.cook-top { display: flex; align-items: center; gap: 10px; }
.cook-top .title { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 4px; background: var(--cream-2); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--terracotta); transition: width .25s; }
.cook-body { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.cook-body .n { font-family: var(--serif); color: var(--terracotta); font-size: 18px; font-weight: 600; }
.cook-body p { font-family: var(--serif); font-size: clamp(24px, 6.5vw, 34px); line-height: 1.3; margin: 10px 0 0; }
.cook-body .done-h { text-align: center; }
.cook-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.wake { font-size: 12.5px; color: var(--ink-mute); text-align: center; margin-top: 10px; }

/* ---------- shopping / lists ---------- */
.empty { text-align: center; padding: 56px 24px; color: var(--ink-soft); }
.empty svg { width: 52px; height: 52px; color: var(--gold); stroke-width: 1.3; }
.empty h2 { font-size: 22px; margin: 12px 0 6px; color: var(--ink); }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 14px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 4px; }
.panel-h h3 { font-size: 17px; }
.panel-h button { border: 0; background: none; color: var(--ink-mute); font-size: 13px; cursor: pointer; padding: 6px; }
.add-row { display: flex; gap: 8px; margin: 12px 0 16px; }
.add-row input { flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--paper); padding: 0 14px; outline: 0; min-width: 0; }
.add-row button { width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--teal); color: var(--cream); display: grid; place-items: center; }
.link-btn { border: 0; background: none; color: var(--terracotta); font-weight: 600; font-size: 14px; padding: 8px 0; cursor: pointer; }

/* ---------- guides ---------- */
.guide-card { display: block; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.guide-card + .guide-card { margin-top: 10px; }
.guide-card h3 { font-size: 19px; }
.guide-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; }
.prose h3 { font-size: 17px; margin: 18px 0 6px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 10px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--cream-2); font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.more { margin: 16px auto 0; }
.fade-in { animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* dark mode: category colors become tinted surfaces with light accents (must come after the base rules) */
@media (prefers-color-scheme: dark) {
  .cat, div.thumb, .feature:not(.has-photo), .r-hero { background: color-mix(in srgb, var(--c-bg) 16%, var(--paper)); color: var(--c-bg); }
}

/* ---------- photos ---------- */
img.thumb { object-fit: cover; background: var(--cream-2); }
.feature.has-photo { background-size: cover; background-position: center; color: #fff; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 40%, rgba(20,16,12,.74) 100%); }
.feature.has-photo > * { position: relative; }
.feature.has-photo h3 { margin-top: 0; }
.r-photo { margin: 0 -16px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.r-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- install card + sheet ---------- */
.install-card { display: grid; grid-template-columns: 52px 1fr; gap: 12px 14px; align-items: center; background: var(--teal-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 0 0 18px; }
.install-card img { border-radius: 12px; }
.install-txt strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--teal-dark); }
.install-txt span { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.install-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.install-actions .btn { width: auto; height: 44px; padding: 0 18px; }
.install-actions .link-btn { color: var(--ink-mute); font-weight: 500; }
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(20,16,12,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(var(--safe-b) + 20px); text-align: center; animation: fade .2s ease-out; }
.sheet img { border-radius: 14px; }
.sheet h2 { font-size: 21px; margin: 12px 0 6px; }
.sheet-note { color: var(--terracotta); font-size: 14px; margin: 0 0 6px; }
.sheet ol { list-style: none; padding: 0; margin: 14px 0 20px; text-align: left; }
.sheet li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.sheet li:last-child { border-bottom: 0; }
.sheet li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.sheet li svg { width: 20px; height: 20px; color: var(--teal); }

/* ---------- transform (flagship) ---------- */
.tabbar a.tab-cta svg { background: var(--teal); color: var(--cream); border-radius: 12px; padding: 5px; width: 34px; height: 30px; stroke-width: 2; margin: -6px 0 0; }
.tabbar a.tab-cta.active svg { background: var(--terracotta); }
.tf-banner { display: flex; align-items: center; gap: 14px; background: var(--teal); color: var(--cream); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
.tf-banner > svg { width: 28px; height: 28px; flex: none; }
.tf-banner > svg:last-child { opacity: .7; width: 24px; }
.tf-banner div { flex: 1; min-width: 0; }
.tf-banner strong { display: block; font-family: var(--serif); font-size: 18px; }
.tf-banner span { display: block; font-size: 13.5px; opacity: .85; margin-top: 2px; }
.tf-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tf-mode { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--paper); color: var(--ink-soft); font-size: 13px; font-weight: 500; cursor: pointer; }
.tf-mode.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.tf-hint { color: var(--ink-mute); font-size: 14px; margin: 12px 0 10px; }
.tf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; border: 1.5px dashed var(--border); border-radius: var(--radius); background: var(--paper); color: var(--teal); font-weight: 600; cursor: pointer; }
.tf-drop svg { width: 38px; height: 38px; stroke-width: 1.5; }
.tf-preview { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.tf-preview img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.tf-preview .link-btn { position: absolute; right: 10px; bottom: 8px; background: var(--paper); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow); }
.tf-field { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); padding: 12px 14px; font-size: 16px; outline: 0; resize: vertical; }
.tf-field:focus { border-color: var(--teal); }
.tf-h { font-size: 17px; margin: 22px 0 0; }
.tf-err { color: var(--terracotta); font-size: 14px; min-height: 20px; margin: 10px 0 4px; }
.tf-go svg { width: 22px; height: 22px; }
.tf-loading { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.tf-loading img { width: 140px; border-radius: 14px; opacity: .85; }
.tf-loading p { font-family: var(--serif); font-size: 20px; margin: 0; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--teal-soft); border-top-color: var(--teal); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tf-orig-title { color: var(--ink-mute); font-size: 13.5px; margin: 14px 0 4px; }
.tf-title { font-size: 30px; }
.tf-version { color: var(--teal); font-weight: 600; margin: 6px 0 0; }
.tf-desc { color: var(--ink-soft); margin: 8px 0 0; }
.tf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.tf-stat { border-radius: 14px; padding: 12px; text-align: center; background: var(--teal-soft); color: var(--teal-dark); }
.tf-stat small { display: block; font-size: 12.5px; opacity: .85; }
.tf-stat b { display: block; font-size: 18px; margin-top: 2px; }
.tf-stat.light-green { background: #DDEFD9; color: #2F5A22; }
.tf-stat.light-yellow { background: #F6E7C4; color: #6E4E10; }
.tf-stat.light-red { background: #F6DCD3; color: #8F3F22; }
.tf-changes { list-style: none; margin: 0; padding: 0; }
.tf-changes li { padding: 11px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.tf-changes s { color: var(--ink-mute); }
.tf-changes .to { color: var(--teal-dark); font-weight: 600; }
.tf-changes small { color: var(--ink-soft); font-size: 13.5px; }
.tf-warn { margin-top: 12px; }
.tf-original { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); padding: 12px 14px; }
.tf-original summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.tf-original img { display: block; width: 100%; border-radius: 10px; margin-top: 10px; }
.tf-result .btn-row .btn svg { width: 20px; height: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-2); border-radius: 12px; padding: 3px; margin: 10px 0 4px; }
.seg a { text-align: center; padding: 9px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-mute); }
.seg a.on { background: var(--paper); color: var(--teal-dark); box-shadow: var(--shadow); }
.fam-thumb { background: var(--terracotta-soft); color: var(--terracotta); }
@media (prefers-color-scheme: dark) {
  .tf-stat.light-green { background: #24392A; color: #BFE3B4; }
  .tf-stat.light-yellow { background: #3D3420; color: #F2D79A; }
  .tf-stat.light-red { background: #3F2A23; color: #F2B9A3; }
}

/* ---------- free tier, gate, paywall ---------- */
.lock-pill, .free-pill { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.lock-pill { background: var(--cream-2); color: var(--ink-soft); }
.lock-pill svg { width: 12px; height: 12px; }
.free-pill { background: var(--teal-soft); color: var(--teal-dark); }
.card.is-locked .thumb { filter: saturate(.75); }
.gate, .pw { text-align: center; padding-top: 6px; }
.gate h1, .pw h1 { font-size: 27px; margin: 18px 0 8px; }
.gate > p, .pw-reason { color: var(--ink-soft); margin: 0 auto 18px; max-width: 420px; }
.gate-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 360px; margin: 0 auto; }
.gate-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.gate form { max-width: 420px; margin: 0 auto; text-align: left; }
.gate input { width: 100%; height: 50px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); padding: 0 16px; font-size: 16px; outline: 0; }
.gate input:focus { border-color: var(--teal); }
.gate-fine { color: var(--ink-mute); font-size: 12.5px; margin: 10px auto; max-width: 420px; }
.pw-crown { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--terracotta-soft); color: var(--terracotta); display: grid; place-items: center; }
.pw-crown svg { width: 34px; height: 34px; }
.pw-benefits { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 420px; text-align: left; }
.pw-benefits li { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-weight: 500; }
.pw-benefits svg { width: 20px; height: 20px; color: var(--success); flex: none; stroke-width: 2.5; }
.pw-cta { width: 100%; margin: 14px 0 0; }
.pw-cta svg { width: 18px; height: 18px; }
.pw-price { max-width: 420px; margin: 0 auto 8px; background: var(--paper); border: 1.5px solid var(--teal); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pw-launch { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--terracotta); border-radius: 999px; padding: 3px 10px; margin-bottom: 4px; }
.pw-was, .pw-bar s { font-family: var(--sans, inherit); font-size: .55em; font-weight: 500; color: var(--ink-soft); text-decoration-thickness: 2px; vertical-align: middle; }
.pw-bar s { font-size: 1em; }
.gate-once { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--teal-dark); text-align: center; }
.pw-once { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta); }
.pw-price b { font-family: var(--serif); font-size: 38px; line-height: 1.1; color: var(--teal-dark); }
.pw-price small { color: var(--ink-soft); font-size: 13.5px; }
.pw-welcome { display: flex; gap: 12px; align-items: center; text-align: left; max-width: 420px; margin: 4px auto 0; background: var(--teal-soft); border-radius: 16px; padding: 12px 14px; }
.pw-welcome > svg { width: 30px; height: 30px; flex: none; color: #fff; background: var(--success); border-radius: 50%; padding: 6px; stroke-width: 3; }
.pw-welcome strong { display: block; font-size: 15.5px; }
.pw-welcome .link-btn { padding: 2px 0 0; margin: 0; font-size: 14.5px; }
.pw-demo { max-width: 420px; margin: 4px auto 18px; text-align: left; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.pw-demo h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 12px; }
.pw-demo h2 svg { width: 22px; height: 22px; color: var(--terracotta); flex: none; }
.pw-demo figure { margin: 0; }
.pw-demo figure img { width: 100%; border-radius: 12px; display: block; }
.pw-demo figcaption, .pw-demo-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 6px; display: block; }
.pw-demo-magic { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0; color: var(--terracotta); font-weight: 600; font-size: 14px; }
.pw-demo-magic svg { width: 18px; height: 18px; }
.pw-demo-after { background: var(--teal-soft); border-radius: 14px; padding: 12px 14px 4px; }
.pw-demo-after .pw-demo-label { margin: 0 0 4px; color: var(--teal-dark); }
.pw-demo-after h3 { font-size: 17px; margin: 0 0 8px; }
.pw-demo-tags { display: flex; gap: 6px; margin-bottom: 4px; }
.pw-demo-tags .tag { background: var(--paper); }
.pw-demo-after .tf-changes li { padding: 8px 0; }
.pw-demo-after .tf-changes li:last-child { border-bottom: 0; }
.pw-demo > p { color: var(--ink-soft); font-size: 14.5px; margin: 12px 0 0; }
.pw-try { width: 100%; margin-top: 12px; }
.pw-try svg { width: 18px; height: 18px; }
.pw-inside { font-size: 21px; max-width: 420px; margin: 26px auto 12px; }
.pw-sec { max-width: 420px; margin: 0 auto 12px; text-align: left; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.pw-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pw-sec h3 { margin: 0; font-size: 18px; }
.pw-sec-head span { color: var(--terracotta); font-weight: 700; font-size: 14px; white-space: nowrap; }
/* pack offer (Hotmart ladder): the pack the tapped recipe belongs to stands out; the others are quieter */
.pk .pk-cta { width: 100%; margin-top: 12px; }
.pk-main { border: 1.5px solid var(--teal); }
.pk-main h3 { font-size: 20px; }
.pw-sec p { color: var(--ink-soft); margin: 6px 0 10px; font-size: 14.5px; }
.pw-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pw-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--teal-soft); }
.pw-sec .free-pill { margin-top: 10px; }
.pw-tools ul { list-style: none; padding: 0; margin: 10px 0 0; }
.pw-tools li { display: flex; gap: 12px; padding: 8px 0; }
.pw-tools li p { margin: 2px 0 0; }
.pw-tool-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--terracotta-soft); color: var(--terracotta); display: grid; place-items: center; }
.pw-tool-ico svg { width: 20px; height: 20px; }
.pw { padding-bottom: 64px; }
.pw-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 19; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(0,0,0,.06); transform: translateY(110%); opacity: 0; pointer-events: none; transition: transform .28s ease, opacity .2s ease; }
.pw-bar.show { transform: none; opacity: 1; pointer-events: auto; }
.pw-bar strong { display: block; font-size: 14.5px; }
.pw-bar span { font-size: 13px; color: var(--ink-soft); }
.pw-bar .btn { width: auto; flex: none; height: 44px; padding: 0 20px; margin: 0; }
.pw-later { display: block; margin: 6px auto 0; }
.pw-pack { color: var(--teal-dark); font-weight: 600; font-size: 14px; margin: 16px 0 0; }

/* ---------- ad welcome screen ---------- */
body.focus .tabbar { display: none; }
body.focus main { padding-bottom: calc(var(--safe-b) + 28px); }
.wel { text-align: center; padding-top: 4px; }
.wel h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.1; margin: 8px auto 10px; max-width: 420px; }
.wel-sub { color: var(--ink-soft); font-size: 16.5px; margin: 0 auto 16px; max-width: 420px; }
.wel-form { max-width: 420px; margin: 16px auto 0; text-align: left; }
.wel-form input { width: 100%; height: 52px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); padding: 0 16px; font-size: 16px; outline: 0; }
.wel-form input:focus { border-color: var(--teal); }
.wel-form .btn { width: 100%; margin-top: 10px; }
.wel-form .tf-err:empty { display: none; }
.wel .pw-demo { margin-top: 22px; }
.wel-browse { display: block; margin: 4px auto 0; }

/* purchase: guarantee + local price in the offer, thank-you and restore screens */
.pw-price .pw-local { color: var(--teal-dark); font-weight: 600; }
.pw-price .pw-guarantee { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--teal-dark); font-weight: 600; }
.pw-guarantee svg { width: 15px; height: 15px; }
.thx { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.thx .btn { max-width: 280px; }
.wel-form input + input { margin-top: 10px; }

/* offer: photos of the complete cookbook gliding by (two rows, opposite directions) */
.pw-marquee { margin: 6px -16px 18px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pw-track { display: flex; width: max-content; animation: pw-glide 42s linear infinite; }
.pw-track.rev { animation-direction: reverse; animation-duration: 48s; }
.pw-track img { width: 104px; height: 104px; margin-right: 8px; border-radius: 16px; object-fit: cover; flex: none; background: var(--teal-soft); }
@keyframes pw-glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pw-track { animation: none; } }

/* "Already bought?" on the email gate: a comfortable tap target, clear of the tab bar */
#gateHave { display: block; margin: 10px auto 24px; padding: 12px 18px; min-height: 44px; }

/* cook mode: read-aloud toggle */
.cook-voice { color: var(--ink-mute); }
.cook-voice.on { color: var(--paper); background: var(--teal); border-radius: 50%; }
.cook-voice.on svg { fill: none; stroke: #fff; }   /* beats .icon-btn.on (favourite heart) colors */

/* step headline (first sentence) in bold; cook mode shows the detail smaller under the big headline */
.steps li strong { font-weight: 700; color: var(--ink); }
.cook-body p.detail { font-family: var(--sans, inherit); font-size: clamp(17px, 4.6vw, 21px); line-height: 1.45; color: var(--ink-soft); margin-top: 14px; }

/* Brief / Detailed switch above the method (reuses the .seg look) */
.seg-steps { margin: 2px 0 12px; }
.seg-steps button { border: 0; background: none; cursor: pointer; text-align: center; padding: 9px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-mute); }
.seg-steps button.on { background: var(--paper); color: var(--teal-dark); box-shadow: var(--shadow); }

/* ---------- cook with what you have (#/have) ---------- */
.have-banner { display: flex; align-items: center; gap: 14px; background: var(--terracotta); color: var(--cream); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
.have-banner .have-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 26px; flex: none; }
.have-banner div { flex: 1; min-width: 0; }
.have-banner strong { display: block; font-family: var(--serif); font-size: 18px; }
.have-banner span { display: block; font-size: 13.5px; opacity: .92; margin-top: 2px; }
.have-banner > svg { width: 24px; height: 24px; opacity: .75; flex: none; }
.have-pantry { width: 100%; margin: 0 0 16px; }
.have { padding-bottom: 96px; }
.have-note { display: flex; gap: 8px; align-items: flex-start; background: var(--teal-soft); color: var(--teal-dark); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 4px 0 14px; }
.have-gh { margin: 18px 0 8px; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.have-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.have-ing { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 9px; border: 1px solid var(--border); background: var(--paper); border-radius: 14px; font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--ink-soft); position: relative; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.have-ing b { font-size: 24px; line-height: 1.15; font-weight: 400; }
.have-ing.on { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.have-ing.on::after { content: "✓"; position: absolute; top: 4px; right: 8px; font-size: 12px; font-weight: 700; }
.have-ing[hidden], .have-group[hidden] { display: none; }
.have .link-btn#haveClear { margin-top: 12px; }
.have-q { font-family: var(--serif); font-size: 19px; margin: 18px 0 4px; }
.have-time { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.have-time button { border: 1px solid var(--border); background: var(--paper); border-radius: 14px; padding: 11px 12px; font: inherit; font-size: 13px; color: var(--ink-mute); text-align: left; cursor: pointer; }
.have-time button strong { display: block; color: var(--ink); font-size: 15px; }
.have-time button.on { border-color: var(--teal); background: var(--teal-soft); }
.have-time button.on strong { color: var(--teal-dark); }
.have-cta { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); z-index: 20; max-width: 688px; margin: 0 auto; }
.have-cta .btn { width: 100%; box-shadow: 0 12px 28px -10px rgba(31, 92, 82, .6); }
.have-cta .btn.disabled { background: var(--cream-2); color: var(--ink-mute); box-shadow: var(--shadow); }
.have-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 6px; }
.have-sum div { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.have-sum b { display: block; font-family: var(--serif); font-size: 28px; color: var(--teal-dark); line-height: 1; }
.have-sum span { font-size: 13px; color: var(--ink-mute); }
.have-up { display: flex; gap: 10px; align-items: center; background: var(--cream-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin: 12px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.have-up strong { color: var(--ink); }
.have-up a { margin-left: auto; background: var(--teal); color: var(--cream); border-radius: 10px; padding: 8px 10px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.have-count { font-size: 14px; color: var(--ink-mute); font-weight: 600; }
.have-card { gap: 10px; }
.have-link { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; color: inherit; }
.have-uses { font-size: 12.5px; color: var(--success); margin-top: 4px; }
.have-miss { display: inline-block; margin-top: 5px; background: var(--terracotta-soft); color: var(--terracotta); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 600; }
.have-add { flex: none; align-self: center; border: 1.5px solid var(--teal); color: var(--teal); border-radius: 10px; padding: 7px 9px; font: inherit; font-size: 12.5px; font-weight: 700; background: var(--paper); cursor: pointer; }
.have-add:disabled { opacity: .6; }
.have-edit { width: 100%; margin-top: 22px; }

/* value reminder at the end of a free recipe / cook mode (hidden for buyers) */
.upsell { margin-top: 32px; padding: 20px 18px; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--teal); text-align: center; }
.upsell h2 { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 0; color: var(--teal-dark); }
.upsell p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.upsell-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.upsell-pic { position: relative; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.upsell-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; filter: saturate(.9); }
.upsell-pic span { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.upsell-pic span svg { width: 13px; height: 13px; stroke: #fff; }
.upsell-pic small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.3; margin-top: 5px; color: var(--ink-soft); }
.upsell-price { margin: 4px 0 12px; font-size: 14px; color: var(--ink-soft); }
.upsell-price b { font-family: var(--serif); font-size: 24px; color: var(--teal-dark); }
.upsell-price s { font-size: 15px; }
.upsell-price span { display: block; margin-top: 2px; font-weight: 600; color: var(--terracotta); font-size: 13px; }
.upsell-cook { margin: 28px auto 0; max-width: 420px; }
.upsell-cook p { font-family: var(--sans, inherit) !important; font-size: 16px !important; color: var(--ink-soft); margin: 0 0 10px !important; }

/* reviews */
.rv-ask { margin: 22px auto 0; max-width: 420px; }
.rv-ask span { display: block; font-size: 16px; color: var(--ink-soft); margin-bottom: 6px; }
.rv-stars { display: flex; justify-content: center; gap: 6px; }
.rv-stars button { background: none; border: 0; font-size: 34px; line-height: 1; color: #d9d2c5; cursor: pointer; padding: 4px; }
.rv-stars button.on, .rv-ask .rv-stars button:hover { color: #f2a900; }
.rv-stars.big button { font-size: 42px; }
.rv .rv-recipe { font-weight: 700; margin: 4px 0 0; }
.rv textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); padding: 12px 16px; font: inherit; font-size: 16px; outline: 0; margin: 12px 0 10px; resize: vertical; }
.rv textarea:focus { border-color: var(--teal); }
.rv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.rv-consent input { width: 20px !important; height: 20px !important; margin-top: 2px; flex: none; }

/* 21-day meal plan */
.mp-banner { background: var(--green, #1E5F4E); }
.mp .seg { margin: 10px 0 0; }
.mp-prog { margin: 14px 0 6px; }
.mp-prog .bar { height: 10px; border-radius: 99px; background: var(--border); overflow: hidden; }
.mp-prog .bar i { display: block; height: 100%; background: var(--terracotta); border-radius: 99px; transition: width .3s; }
.mp-prog span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.mp-week h2 { font-family: var(--serif); font-size: 22px; margin: 26px 0 4px; }
.mp-day { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin: 10px 0; }
.mp-day.done { border-color: var(--terracotta); }
.mp-dh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mp-dh h3 { margin: 0; font-family: var(--serif); font-size: 19px; }
.mp-check { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); border-radius: 99px; padding: 6px 12px; background: transparent; color: var(--ink-soft); font: 600 13px var(--sans, inherit); cursor: pointer; }
.mp-check svg { width: 16px; height: 16px; opacity: .45; }
.mp-day.done .mp-check { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.mp-day.done .mp-check svg { opacity: 1; }
.mp-meal { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.mp-meal img, .mp-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--border); display: grid; place-items: center; }
.mp-meal div { min-width: 0; }
.mp-meal small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; }
.mp-meal strong { display: block; font-size: 15.5px; line-height: 1.25; }
.mp-meal span { font-size: 12.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px; }
.mp-meal span svg { width: 13px; height: 13px; }
.mp-shop { margin: 8px 0 4px; }
.mp-lock { text-align: center; background: var(--paper); border: 1.5px dashed var(--terracotta); border-radius: var(--radius); padding: 22px 16px; margin: 18px 0; }
.mp-lock > svg { width: 30px; height: 30px; color: var(--terracotta); }
.mp-lock h2 { font-family: var(--serif); font-size: 21px; margin: 8px 0 4px; }
.mp-lock p { margin: 0 0 14px; color: var(--ink-soft); }
.mp-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: 18px 0 8px; }

.mp-chips { margin: 10px 0 0; flex-wrap: wrap; }
.mp .seg { display: none; }

/* Spanish brand mark (Cocina Libre) */
.brand-txt{font:700 22px/1 var(--serif,Fraunces,Georgia,serif);color:#1F5C52;letter-spacing:-.01em}.brand-txt i{font-style:normal;color:#B1512F}
@media (prefers-color-scheme: dark){.brand-txt{color:#CFE6DC}.brand-txt i{color:#E08A66}}

/* ====================================================================================================
   Landing look (3 nov 2026): the app takes the look of the sales landing (peru3 / peru-pan): one dark
   green ground, cream ink, heavy serif headlines, amber→orange→pink accents and glowing gradient buttons.
   One scheme for everyone (no light mode). Placed last so it wins over every rule above.
   ==================================================================================================== */
:root, :root[data-theme] {
  --deep: #0B2A25; --amber: #FFB35C; --orange: #FF6A1F; --cta: #E8590C; --cta2: #FF7A2E; --mint: #A8E6CF;
  --grad: linear-gradient(100deg, var(--amber), var(--orange) 55%, #FF3D6E);
  --cream: #0B2A25; --cream-2: #143D36; --paper: #12352F; --border: rgba(255, 255, 255, .11);
  --ink: #FAF5EA; --ink-soft: #E7DCC6; --ink-mute: #C9BDA4;
  --teal: #A8E6CF; --teal-dark: #FFB35C; --teal-soft: #1A4A42;
  --terracotta: #FF7A2E; --terracotta-soft: rgba(255, 122, 46, .16);
  --gold: #FFB35C; --success: #A8E6CF;
  --shadow: 0 14px 34px -18px rgba(0, 0, 0, .7);
  --radius: 20px;
  color-scheme: dark;
}
body { background: radial-gradient(900px 500px at 85% -10%, rgba(255, 138, 60, .16), transparent 60%), radial-gradient(700px 500px at -10% 100%, rgba(31, 111, 98, .5), transparent 60%), var(--deep); background-attachment: fixed; }
h1, h2, h3 { font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
h3 { letter-spacing: -.015em; }
.hero h1 { font-size: 40px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; }
.section-h h2 { font-size: 24px; }
.section-h a { color: var(--amber); }

/* category colours become tinted dark surfaces (always, not only in dark mode) */
.cat, div.thumb, .feature:not(.has-photo), .r-hero { background: color-mix(in srgb, var(--c-bg) 16%, var(--paper)); color: var(--c-bg); }
.cat { border: 1px solid var(--border); }
.cat strong { font-weight: 800; }
.tf-stat.light-green { background: #24392A; color: #BFE3B4; }
.tf-stat.light-yellow { background: #3D3420; color: #F2D79A; }
.tf-stat.light-red { background: #3F2A23; color: #F2B9A3; }
.brand-txt { color: var(--ink); font-weight: 900; } .brand-txt i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-title { font-weight: 800; }

/* the landing's button: gradient pill, glow, a light sweep */
.btn { position: relative; overflow: hidden; border-radius: 999px; background: linear-gradient(135deg, var(--cta2), var(--cta)); color: #fff; font-weight: 800;
  box-shadow: 0 14px 34px -12px rgba(255, 106, 31, .75), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .18s ease, box-shadow .18s ease; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn:active { transform: scale(.97); }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid rgba(255, 179, 92, .7); box-shadow: none; }
.btn.secondary::after { display: none; }
.have-cta .btn.disabled { background: var(--cream-2); color: var(--ink-mute); box-shadow: none; }
.have-cta .btn.disabled::after { display: none; }
@media (prefers-reduced-motion: reduce) { .btn::after { animation: none; } }
.add-row button, .steps li::before, .sheet li > span, .have-up a { background: linear-gradient(135deg, var(--cta2), var(--cta)); color: #fff; }
.link-btn { color: var(--amber); }
.tabbar a.active { color: var(--amber); }
.tabbar a.tab-cta svg { background: linear-gradient(135deg, var(--cta2), var(--cta)); color: #fff; }
.tabbar a.tab-cta.active svg { background: var(--grad); }
.chip.on { background: var(--amber); border-color: var(--amber); color: var(--deep); }
.tag { background: rgba(168, 230, 207, .14); color: var(--mint); }
.free-pill { background: rgba(168, 230, 207, .16); color: var(--mint); }
.lock-pill { background: rgba(0, 0, 0, .3); color: var(--ink-mute); }
.lang-btn { color: var(--ink-soft); }
.icon-btn { color: var(--ink-soft); }
.toast { background: var(--ink); color: var(--deep); }
.cook-voice.on { background: var(--amber); color: var(--deep); } .cook-voice.on svg { stroke: var(--deep); }
.progress i, .mp-prog .bar i { background: var(--grad); }

/* banners: deep teal glass and the orange one keeps the landing's glow */
.tf-banner { background: linear-gradient(135deg, #1F6F62, #134B42); border: 1px solid var(--border); }
.have-banner { background: linear-gradient(135deg, var(--cta2), var(--cta)); color: #fff; box-shadow: 0 14px 34px -14px rgba(255, 106, 31, .6); }
.mp-banner { background: linear-gradient(135deg, #1A5A4C, #0F3D35); }
.install-card { background: var(--teal-soft); }
.install-txt strong { color: var(--ink); }

/* numbers and prices in amber, the price itself in the gradient */
.stats b, .have-sum b, .pw-sec-head span, .upsell-price b, .cook-body .n { color: var(--amber); }
.pw-price { border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad) border-box; }
.pw-price b { font-weight: 900; font-size: 44px; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pw-price .pw-was { -webkit-text-fill-color: var(--ink-mute); color: var(--ink-mute); background: none; }
.pw-launch { background: var(--grad); color: #fff; }
.pw-once { color: var(--amber); }
.pw-price .pw-local, .pw-price .pw-guarantee, .gate-once, .pw-pack { color: var(--mint); }
.pw-crown { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -14px rgba(255, 106, 31, .7); }
.pk-main { border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad) border-box; }
.upsell { border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad) border-box; }
.upsell h2 { color: var(--ink); }
.mp-lock { border-color: rgba(255, 179, 92, .6); }
.mp-day.done { border-color: var(--amber); }
.mp-day.done .mp-check { background: var(--amber); border-color: var(--amber); color: var(--deep); }
.pw-tool-ico { background: var(--terracotta-soft); color: var(--amber); }
.pw-demo-after { background: var(--teal-soft); }
.rv-stars button { color: rgba(255, 255, 255, .22); }
.gate input:focus, .wel-form input:focus, .tf-field:focus, .rv textarea:focus { border-color: var(--amber); }
.seg a.on, .seg-steps button.on { color: var(--amber); }
.have-ing.on, .have-time button.on { border-color: var(--amber); }
.have-ing.on { background: var(--amber); color: var(--deep); }
.have-time button.on { background: rgba(255, 179, 92, .14); }
.have-time button.on strong { color: var(--amber); }
.tf-mode.on { border-color: var(--amber); color: var(--ink); background: rgba(255, 179, 92, .12); }
.tf-drop { color: var(--amber); border-color: rgba(255, 179, 92, .5); }
.tf-version, .tf-original summary { color: var(--amber); }
.tf-changes .to { color: var(--mint); }
.mp-meal small, .ing-group { color: var(--amber); }
.tf-banner { color: var(--ink); }
.tf-banner strong { color: var(--ink); }
