/* The Pantry Butler
   Airy and editorial — lots of white space, clean card grid — but the color
   and voice are ours: deep sand-plum skin, tart orange flesh, ripe gold,
   dry-thicket grass. Warm and personal, NOT the generic cream/terracotta look. */
:root {
  /* The Pantry Butler — clean bright palette: warm cream base, crisp near-black
     text, ONE confident coral accent; gold reserved as the Premium cue. */
  --plum:      #1F2024;  /* near-black — text-strong + dark UI (tabs, chips) */
  --plum-dk:   #14151A;  /* deepest ink */
  --plum-soft: #6B6C74;  /* muted grey (borders/focus) */
  --accent:    #DE5B3A;  /* coral — primary CTA + accents */
  --accent-dk: #C24A2C;  /* coral hover */
  --flesh:     #DE5B3A;  /* accent alias (eyebrows, highlights, links) */
  --gold:      #C4A257;  /* champagne gold — Premium cue only */
  --leaf:      #E0894F;  /* warm secondary (progress fills) */
  --grass:     #8B8B84;  /* muted text */
  --paper:     #FCFAF6;  /* warm off-white — page */
  --card:      #FFFFFF;  /* clean card */
  --ink:       #1B1C20;  /* near-black text */
  --ink-soft:  #6C6C72;  /* grey secondary */
  --line:      #ECE8E1;  /* hairline */
  --line-2:    #F5F2EC;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,20,22,0.06);
  --shadow:    0 10px 30px -14px rgba(20,20,22,0.22);
  --shadow-lg: 0 26px 56px -22px rgba(20,20,22,0.32);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* The `hidden` attribute must win over element `display` rules (e.g. .sheet's
   `display: flex`), or the modal shows on load and its close button does nothing. */
[hidden] { display: none !important; }
html, body { margin: 0; }
html, body { overflow-x: hidden; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 100;
  background: var(--plum); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 600; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
#main-content:focus { outline: none; }
/* Visible keyboard focus on every interactive element. */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .tab:focus-visible, label.avatar-wrap:focus-within {
  outline: 3px solid var(--plum-soft); outline-offset: 2px; border-radius: 6px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 4rem;
  overflow-x: hidden; /* guards the full-bleed masthead breakout */
}
button { font-family: inherit; }
input { font-family: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(252,251,248,0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand-mark { flex: 0 0 auto; display: block; transition: transform 0.2s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brandname {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.34rem; letter-spacing: -0.018em; line-height: 1;
}
.bn-1 { color: var(--plum); }
.bn-2 { color: var(--flesh); font-style: italic; }
.tabs { display: flex; gap: 0.2rem; background: var(--line-2); padding: 0.25rem; border-radius: 999px; }
.tab {
  border: 0; background: transparent; cursor: pointer;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
  padding: 0.42rem 0.95rem; border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.tab:hover { color: var(--plum); }
.tab.is-active {
  background: var(--card); color: var(--plum);
  box-shadow: var(--shadow-sm);
}

/* ---------- views ---------- */
.view { display: none; max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.view.is-active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { padding: 2.6rem 0 2rem; max-width: 720px; }
.eyebrow {
  margin: 0 0 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700; color: var(--flesh);
}
.hero-title {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.06; letter-spacing: -0.02em; color: var(--ink);
}
.hero-title { text-wrap: balance; }

/* ---------- homepage butler hero (light, airy, character-led) ---------- */
.hero-butler {
  position: relative; overflow: hidden;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  margin-top: -1.5rem; margin-bottom: 2.8rem;
  background:
    radial-gradient(85% 120% at 84% 4%, #FCE7DD 0%, transparent 52%),
    linear-gradient(180deg, #FEFBF7, #F8F1E8);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hb-inner {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5.2rem) 1.5rem clamp(2.8rem, 5vw, 4.2rem);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center;
}
.hb-copy { max-width: 580px; }
.hero-butler .eyebrow { color: var(--accent); letter-spacing: 0.18em; margin-bottom: 0.9rem; }
.hb-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: 0.98; letter-spacing: -0.025em;
  margin: 0 0 1.1rem; color: var(--ink); text-wrap: balance;
}
.hb-title em { font-style: italic; color: var(--accent); }
.hb-sub {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem); line-height: 1.55;
  color: var(--ink-soft); margin: 0 0 1.9rem; max-width: 42ch;
}
.hb-service { color: var(--accent); font-style: italic; font-family: var(--font-display); }
.hero-butler .clip-line { color: var(--ink-soft); max-width: 520px; }
.hero-butler .clip-line b { color: var(--ink); }
.hero-butler .clip-phone { color: var(--accent); }
.hero-butler .clipper { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.hb-mascot { position: relative; display: grid; place-items: center; }
.hb-glow {
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(222,91,58,0.22), rgba(222,91,58,0.06) 46%, transparent 68%);
  filter: blur(6px);
}
.hb-robot {
  position: relative; width: min(340px, 72vw); height: auto;
  filter: drop-shadow(0 22px 40px rgba(120,60,40,0.28));
  animation: hb-float 5s ease-in-out infinite;
}
.hb-name {
  position: relative; margin-top: -0.4rem; font-family: var(--font-display);
  font-style: italic; font-size: 1.15rem; color: var(--accent); letter-spacing: 0.02em;
}
@keyframes hb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hb-robot { animation: none; } }
@media (max-width: 820px) {
  .hb-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .hb-mascot { order: -1; }
  .hb-robot { width: min(200px, 52vw); }
  .hb-sub { max-width: 100%; }
}

/* Farm sunset — a real client photo, used on the About page ONLY (not every
   header). Banner strip above the profile form. */
.about-banner {
  height: clamp(150px, 30vw, 260px);
  margin: 0.2rem 0 1.4rem;
  border-radius: var(--r-lg);
  background: url("/hero.jpg") center 45% / cover no-repeat;
  box-shadow: var(--shadow);
}

/* ---------- capture ---------- */
.capture {
  display: flex; gap: 0.5rem;
  background: var(--card); padding: 0.5rem;
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.capture-input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 0.6rem 0.9rem; font-size: 0.98rem; color: var(--ink);
}
.capture-input::placeholder { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  border: 0; cursor: pointer; font-weight: 600; font-size: 0.94rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(222,91,58,0.5);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-ghost {
  border: 0; background: var(--line-2); color: var(--ink-soft);
  width: 34px; height: 34px; border-radius: 999px; cursor: pointer;
  font-size: 0.9rem; line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { background: var(--plum); color: #fff; }

/* ---------- homepage story band ---------- */
.story-band {
  display: block; text-decoration: none; color: #fff;
  margin: 0.5rem 0 2rem; padding: 1.8rem 1.9rem; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--plum-dk), var(--plum) 55%, var(--flesh));
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.story-band:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.story-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.18), transparent 70%);
}
.story-band-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--gold); }
.story-band-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.01em; margin: 0.4rem 0 0.5rem; color: #fff; }
.story-band-text { margin: 0; font-size: 0.98rem; line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 620px; }
.story-band-link { font-weight: 700; color: #fff; white-space: nowrap; }

/* ---------- section head + filters ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin: 0.5rem 0 1.25rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.01em; margin: 0; color: var(--ink);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 0.8rem; color: var(--ink-soft); font-size: 1rem; pointer-events: none;
}
.search {
  border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 0.5rem 0.9rem 0.5rem 2rem;
  font-size: 0.88rem; color: var(--ink); width: 230px; max-width: 60vw;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus { border-color: var(--plum-soft); box-shadow: 0 0 0 3px rgba(222,91,58,0.14); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.84rem; font-weight: 500; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  padding: 0.42rem 0.85rem; border-radius: 999px; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--plum-soft); }
.chip input { accent-color: var(--plum); margin: 0; }
.chip:has(input:checked) { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ---------- recipe grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem 1.25rem;
  padding-bottom: 2.5rem;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-thumb {
  position: relative; aspect-ratio: 4 / 3;
  display: grid; place-items: center; overflow: hidden;
}
.card:hover .card-mono { transform: scale(1.06) rotate(-3deg); }
.card-mono {
  font-family: var(--font-display); font-weight: 600;
  font-size: 3.4rem; color: var(--gold);
  transition: transform 0.3s ease; text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
/* per-card tile variants — elegant charcoal with a gold monogram (black-tie) */
.thumb-0 { background: linear-gradient(140deg, #26262E, #131318); }
.thumb-1 { background: linear-gradient(140deg, #35301F, #16140E); }
.thumb-2 { background: linear-gradient(140deg, #2A2A33, #101014); }
.thumb-3 { background: linear-gradient(140deg, #302B1D, #17150F); }
.card-fav {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92); color: var(--gold);
  font-size: 0.85rem; box-shadow: var(--shadow-sm);
}
.card-src {
  position: absolute; bottom: 0.6rem; left: 0.6rem;
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: rgba(42,31,34,0.42);
  padding: 0.2rem 0.5rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 0.9rem 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.55rem; }
.card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  line-height: 1.22; letter-spacing: -0.01em; margin: 0; color: var(--ink);
}
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.meta-chip {
  font-size: 0.72rem; font-weight: 500; color: var(--ink-soft);
  background: var(--line-2); padding: 0.24rem 0.55rem; border-radius: 999px;
}
.meta-chip.chip-make { background: rgba(91,122,75,0.14); color: var(--leaf); font-weight: 600; }

/* ---------- empty state ---------- */
.empty {
  text-align: center; padding: 3.5rem 1rem 4rem;
  color: var(--ink-soft);
}
.empty-mark { display: block; font-size: 2rem; color: var(--flesh); margin-bottom: 0.6rem; }
.empty-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin: 0 0 0.3rem; }
.empty-sub { margin: 0; font-size: 0.92rem; }

/* ---------- hints ---------- */
.hint {
  color: var(--ink-soft); font-size: 0.96rem; max-width: 560px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1rem 1.15rem;
}
.hint-todo { color: var(--ink-soft); font-style: italic; }

/* ---------- confirm sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(14,14,18,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  animation: overlay 0.2s ease;
}
@keyframes overlay { from { opacity: 0; } to { opacity: 1; } }
.sheet-inner {
  background: var(--card); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-lg);
  animation: rise 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Bottom-sheet on phones (thumb-friendly). */
@media (max-width: 520px) {
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-inner { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sheet-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0; color: var(--ink); }
.sheet h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  margin: 1.4rem 0 0.5rem; color: var(--plum);
}
.fld { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; }
.fld > span { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.fld input,
.editlist input {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem; font-size: 0.95rem; color: var(--ink);
  background: var(--paper); outline: none; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fld input:focus,
.editlist input:focus {
  border-color: var(--plum-soft); background: var(--card);
  box-shadow: 0 0 0 3px rgba(162,75,99,0.13);
}
.source-link {
  display: inline-block; margin: -0.4rem 0 0.75rem; font-size: 0.82rem;
  font-weight: 600; color: var(--plum); text-decoration: none;
}
.source-link:hover { text-decoration: underline; }
.fld-row { display: flex; gap: 0.6rem; }
.fld-row .fld { flex: 1; }
.chk { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 500; color: var(--ink); margin: 0.3rem 0 0.2rem; cursor: pointer; }
.chk input { accent-color: var(--plum); width: 1.05rem; height: 1.05rem; }
.editlist { display: flex; flex-direction: column; gap: 0.45rem; }
.sheet-foot {
  position: sticky; bottom: -1.6rem; background: var(--card);
  padding: 1rem 0 0.2rem; margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.sheet-foot .btn { width: 100%; padding: 0.85rem; }
.btn-danger {
  border: 0; background: transparent; color: #B23A48; cursor: pointer;
  font-weight: 600; font-size: 0.85rem; width: 100%; padding: 0.6rem;
  border-radius: 999px; margin-top: 0.3rem; transition: background 0.15s ease;
}
.btn-danger:hover { background: rgba(178,58,72,0.09); }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
/* Tab bar: on narrow screens too many tabs to fit — make it swipe-scrollable
   so every tab (incl. About) stays reachable instead of clipping off-screen. */
@media (max-width: 780px) {
  .topbar-inner { gap: 0.5rem 0.75rem; }
  .tabs {
    order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap;
    justify-content: flex-start; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .brand { order: 1; }
  .account-btn { order: 2; margin-left: auto; }
}

@media (max-width: 520px) {
  .topbar-inner { padding: 0.7rem 1rem; }
  .view { padding: 1rem 1rem 0; }
  .hero { padding: 1.8rem 0 1.4rem; }
  .hero-masthead { margin-top: -1rem; }
  .about-banner { background-image: url("/hero-mobile.jpg"); }
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.85rem; }
  .card-mono { font-size: 2.6rem; }
  .section-head { margin-bottom: 1rem; }
}
/* ---------- pantry ---------- */
.pantry-hero { padding-bottom: 1.4rem; }
.loc-picker {
  display: inline-flex; gap: 0.2rem; background: var(--line-2);
  padding: 0.25rem; border-radius: 999px; margin-bottom: 0.85rem;
}
.loc-opt {
  border: 0; background: transparent; cursor: pointer;
  font-size: 0.84rem; font-weight: 600; color: var(--ink-soft);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.loc-opt:hover { color: var(--plum); }
.loc-opt.is-active { background: var(--card); color: var(--plum); box-shadow: var(--shadow-sm); }
.pantry-add { max-width: 560px; margin-bottom: 0; }

.pantry-groups {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin: 0.5rem 0 2rem;
}
.pantry-group {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1rem 1.1rem;
}
.pantry-group.is-staples { border-color: #E6C368; box-shadow: inset 0 0 0 1px #F3E4B8; }
.staples-note { margin: -0.55rem 0 0.7rem; font-size: 0.78rem; color: var(--ink-soft); }
.pantry-group-title {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  margin: 0 0 0.8rem; color: var(--ink);
}
.pantry-count {
  margin-left: auto; font-family: var(--font-body); font-weight: 600;
  font-size: 0.72rem; color: var(--ink-soft);
  background: var(--line-2); border-radius: 999px; padding: 0.1rem 0.5rem; min-width: 1.4rem; text-align: center;
}
.pantry-chips { display: flex; flex-direction: column; gap: 0.3rem; }
.pantry-chip {
  display: flex; align-items: center; gap: 0.4rem; min-height: 38px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  font-size: 0.88rem; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pantry-chip:hover { border-color: var(--plum-soft); background: var(--card); }
.chip-name { flex: 1 1 auto; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.chip-moves {
  display: inline-flex; gap: 0.05rem; flex: 0 0 auto;
  opacity: 0; transition: opacity 0.15s ease;
}
.pantry-chip:hover .chip-moves, .pantry-chip:focus-within .chip-moves { opacity: 1; }
@media (hover: none) { .chip-moves { opacity: 0.55; } }
.chip-move {
  border: 0; background: transparent; cursor: pointer;
  font-size: 0.82rem; line-height: 1; padding: 0.22rem 0.26rem; border-radius: 6px;
  opacity: 0.6; transition: opacity 0.15s ease, background 0.15s ease;
}
.chip-move:hover { opacity: 1; background: var(--line-2); }
.chip-x {
  border: 0; background: transparent; color: var(--ink-soft); flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 999px; cursor: pointer;
  font-size: 0.66rem; line-height: 1; display: grid; place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.wild-saved { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--leaf); padding: 0.5rem 0; }
.chip-x:hover { background: var(--plum); color: #fff; }
.pantry-empty-note { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

/* pantry match meter on suggestion cards */
.match-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(255,255,255,0.94); color: var(--plum);
  font-weight: 700; font-size: 0.72rem; padding: 0.2rem 0.5rem;
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.match-bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.match-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--gold)); }
.match-note { margin: 0.1rem 0 0; font-size: 0.76rem; color: var(--ink-soft); }
.miss-label { font-weight: 700; color: var(--plum); }
.have-all { color: var(--leaf); font-weight: 600; }
.miss-list { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.miss-chip {
  font-size: 0.72rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.18rem 0.5rem;
}
.match-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.match-btn {
  border: 0; cursor: pointer; font-weight: 600; font-size: 0.8rem;
  padding: 0.42rem 0.72rem; border-radius: 999px; line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.match-btn:active { transform: translateY(1px); }
.match-btn-add { background: var(--plum); color: #fff; }
.match-btn-add:hover { background: var(--plum-dk); }
.match-btn-add.is-on { background: var(--leaf); }
.match-btn-add.is-on:hover { background: var(--leaf); }

/* ---------- your photo + story ---------- */
.card-thumb.has-photo { background-size: cover; background-position: center; }
.photo-block {
  display: flex; gap: 0.9rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0.8rem; margin-bottom: 1rem;
}
.photo-preview {
  width: 88px; height: 88px; flex: 0 0 auto; border-radius: 12px;
  background: var(--line-2) center / cover no-repeat;
}
.photo-preview.has { border: 1px solid var(--line); }
.photo-actions { display: flex; flex-direction: column; gap: 0.1rem; }
.photo-label { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink); }
.photo-hint { margin: 0 0 0.45rem; font-size: 0.8rem; color: var(--ink-soft); }
.btn-soft { background: var(--line-2); color: var(--plum); cursor: pointer; }
.btn-soft:hover { background: var(--plum); color: #fff; }
.photo-btn { align-self: flex-start; font-size: 0.85rem; padding: 0.5rem 1rem; }
#c-story {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem; font-size: 0.95rem; font-family: inherit;
  color: var(--ink); background: var(--paper); resize: vertical; outline: none; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#c-story:focus { border-color: var(--plum-soft); background: var(--card); box-shadow: 0 0 0 3px rgba(162,75,99,0.13); }

/* ---------- select recipes + build plans ---------- */
.card-select {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--card); color: var(--plum);
  font-size: 0.95rem; font-weight: 700; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.card-select:hover { transform: scale(1.1); background: var(--plum); color: #fff; }
.card.is-selected { outline: 3px solid var(--plum); outline-offset: 2px; }
.card.is-selected .card-select { background: var(--plum); border-color: #fff; color: #fff; }

.select-bar {
  position: fixed; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  z-index: 45; display: flex; align-items: center; gap: 0.9rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45rem 0.55rem 0.45rem 1.15rem;
  box-shadow: var(--shadow-lg); animation: rise 0.22s ease-out;
  max-width: calc(100vw - 1.5rem);
}
.select-count { font-size: 0.9rem; color: var(--ink); white-space: nowrap; }
.select-count b { color: var(--plum); }
.select-actions { display: flex; align-items: center; gap: 0.4rem; }
.select-actions .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

/* ---------- shopping list ---------- */
.list-aisle { margin-bottom: 1.4rem; }
.list-aisle-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--plum); margin: 0 0 0.55rem; text-transform: capitalize;
}
.list-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.85rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 0.4rem; cursor: pointer; font-size: 0.95rem; max-width: 560px;
}
.list-item input { accent-color: var(--plum); width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.list-item label { flex: 1; cursor: pointer; }
.list-item.checked label { text-decoration: line-through; color: var(--ink-soft); }
.buy-link {
  font-size: 0.76rem; font-weight: 700; color: var(--flesh); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.24rem 0.7rem; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.buy-link:hover { background: var(--flesh); color: #fff; border-color: var(--flesh); }
.affiliate-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0.7rem 0 0; max-width: 560px; }

/* ---------- cook day ---------- */
.cookday-summary { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.cookday-recipe {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.1rem 1.2rem; margin-bottom: 1rem; max-width: 640px;
}
.cookday-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.cookday-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0; color: var(--ink); }
.cookday-steps { margin: 0; padding-left: 1.2rem; color: var(--ink); }
.cookday-steps li { margin-bottom: 0.45rem; line-height: 1.5; }

/* ---------- account + auth ---------- */
.account-btn {
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-size: 0.84rem; font-weight: 600; color: var(--plum);
  padding: 0.42rem 0.95rem; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.account-btn:hover { border-color: var(--plum-soft); }
.account-btn.is-in { background: var(--plum); color: #fff; border-color: var(--plum); }
.auth-inner { max-width: 440px; border-radius: var(--r-lg); }
.auth-sub { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1.1rem; }
.auth-msg { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--plum); }
.auth-msg a { color: var(--plum); font-weight: 600; }

/* ---------- wild patch ---------- */
.wild-lede { color: var(--ink-soft); font-size: 1rem; margin: 0.4rem 0 0; max-width: 540px; }
.wild-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.3rem; }
.wfilter {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.85rem; border-radius: 999px;
  cursor: pointer; text-transform: capitalize;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wfilter:hover { border-color: var(--plum-soft); }
.wfilter.is-on { background: var(--plum); color: #fff; border-color: var(--plum); }
.wfilter-clear { text-transform: none; color: var(--plum); }
.wild-save { width: 100%; margin-top: 0.3rem; font-size: 0.85rem; padding: 0.55rem; text-align: center; }
.wild-save:disabled { opacity: 0.7; cursor: default; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 5.2rem; transform: translateX(-50%);
  z-index: 60; background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 999px; font-size: 0.9rem;
  box-shadow: var(--shadow-lg); animation: rise 0.2s ease-out; max-width: calc(100vw - 2rem);
}

/* ---------- paste-to-structure + smart add ---------- */
.paste-block {
  background: var(--paper); border: 1px dashed var(--line);
  border-radius: var(--r); padding: 0.9rem 1rem; margin-bottom: 1rem;
}
.paste-note { margin: 0 0 0.55rem; font-size: 0.84rem; color: var(--ink-soft); }
#c-paste, #smart-text {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem; font-family: inherit; font-size: 0.92rem;
  color: var(--ink); background: var(--card); resize: vertical; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#c-paste:focus, #smart-text:focus { border-color: var(--plum-soft); box-shadow: 0 0 0 3px rgba(162,75,99,0.13); }
.paste-block .btn { margin-top: 0.55rem; }
.smart-toggle {
  border: 0; background: transparent; color: var(--plum); font-weight: 600;
  font-size: 0.86rem; cursor: pointer; padding: 0.5rem 0 0; align-self: flex-start;
}
.smart-toggle:hover { text-decoration: underline; }
.smart-box { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.55rem; max-width: 560px; }
.smart-box .btn { align-self: flex-start; }

/* ---------- clipper bookmarklet ---------- */
.clip-line { margin: 0.95rem 0 0; font-size: 0.82rem; color: var(--ink-soft); max-width: 620px; line-height: 1.5; }
.clip-line b { color: var(--ink); }
.clip-phone { display: inline-block; margin-top: 0.15rem; color: var(--plum); font-weight: 700; text-decoration: none; white-space: nowrap; }
.clip-phone:hover { text-decoration: underline; }

/* ---------- how it works (editorial ledger, not a card grid) ---------- */
.howto { margin: 0.6rem 0 2.6rem; }
.howto-eyebrow {
  margin: 0 0 1.1rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700; color: var(--grass);
}
.howto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 2rem; }
.howto-step { border-top: 2px solid var(--plum); padding-top: 0.75rem; }
.howto-num { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--flesh); }
.howto-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0.1rem 0 0.4rem; color: var(--ink); letter-spacing: -0.01em; }
.howto-desc { margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 820px) { .howto-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; } }
@media (max-width: 520px) { .howto-grid { grid-template-columns: 1fr; gap: 1.15rem; } }

/* freshness / use-it-up */
.fresh-badge { display: inline-block; font-size: 0.66rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.fresh-soon { background: #FBE7C7; color: #8a5a12; }
.fresh-past { background: #F6D9D9; color: #9a2020; }
.fresh-ok { background: var(--line-2); color: var(--grass); }
.useup-note { margin: 0 0 0.35rem; font-size: 0.74rem; font-weight: 700; color: var(--flesh); }
.clipper {
  display: inline-block; font-weight: 700; color: var(--plum);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.12rem 0.6rem; text-decoration: none; cursor: grab;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.clipper:hover { border-color: var(--plum-soft); background: var(--paper); }

/* ---------- about / favorites ---------- */
.about-head { display: flex; gap: 1.3rem; align-items: flex-start; flex-wrap: wrap; }
.avatar-wrap { position: relative; flex: 0 0 auto; cursor: pointer; }
.avatar {
  width: 96px; height: 96px; border-radius: 999px;
  background: var(--line-2) center / cover no-repeat;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.2rem; color: var(--plum);
  border: 1px solid var(--line);
}
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px;
  width: 30px; height: 30px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.about-head-fields { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 0.6rem; }
.about-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink);
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 0.3rem 0.5rem; margin-left: -0.5rem;
  background: transparent; outline: none;
}
.about-name:focus { border-color: var(--line); background: var(--card); }
.about-bio {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.7rem 0.85rem;
  font-family: inherit; font-size: 0.98rem; color: var(--ink); background: var(--card);
  resize: vertical; outline: none; line-height: 1.55;
}
.about-bio:focus { border-color: var(--plum-soft); box-shadow: 0 0 0 3px rgba(162,75,99,0.13); }
.about-head-fields .btn { align-self: flex-start; }

.fav-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; max-width: 640px; }
.fav-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0.85rem 1rem;
}
.fav-body { flex: 1; min-width: 0; }
.fav-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin: 0; color: var(--ink); }
.fav-note { margin: 0.2rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.fav-shop { flex: 0 0 auto; font-size: 0.82rem; padding: 0.45rem 0.9rem; text-decoration: none; }
.fav-del {
  flex: 0 0 auto; border: 0; background: var(--line-2); color: var(--ink-soft);
  width: 24px; height: 24px; border-radius: 999px; cursor: pointer; font-size: 0.66rem;
  display: grid; place-items: center; transition: background 0.15s ease, color 0.15s ease;
}
.fav-del:hover { background: var(--plum); color: #fff; }
.fav-add { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 640px; margin-bottom: 0.7rem; }
.fav-add input {
  flex: 1 1 180px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.6rem 0.8rem; font-size: 0.92rem; color: var(--ink); background: var(--card); outline: none;
}
.fav-add input:focus { border-color: var(--plum-soft); box-shadow: 0 0 0 3px rgba(162,75,99,0.13); }
.fav-add .btn { flex: 0 0 auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 2.2rem 1.25rem 1.6rem; background: var(--card); }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; justify-content: space-between; }
.footer-brand p { color: var(--ink-soft); font-size: 0.88rem; max-width: 340px; margin: 0.45rem 0 0; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; align-content: flex-start; }
.footer-links a { color: var(--plum); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal {
  max-width: 1080px; margin: 1.6rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem;
}
.footer-legal p { margin: 0; font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- journal / blog authoring ---------- */
.post-list { display: flex; flex-direction: column; gap: 0.8rem; max-width: 680px; }
.post-item {
  display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem;
}
.post-item-body { min-width: 0; }
.post-item .cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--flesh); }
.post-item-title { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; margin: 0.15rem 0; }
.post-item-title:hover { color: var(--plum); }
.post-item-body p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.badge-draft { display: inline-block; font-size: 0.66rem; font-weight: 700; color: #fff; background: var(--ink-soft); border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.4rem; vertical-align: middle; }
.post-item-actions { flex: 0 0 auto; }
.btn-soft2 { border: 1px solid var(--line); background: var(--card); color: var(--plum); font-weight: 600; font-size: 0.82rem; padding: 0.42rem 0.9rem; border-radius: 999px; cursor: pointer; transition: border-color 0.15s ease; }
.btn-soft2:hover { border-color: var(--plum-soft); }

/* shopping list hand-off buttons */
.list-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 1.3rem; max-width: 560px; }
.btn-instacart { background: #0AAD0A; color: #fff; }
.btn-instacart:hover { background: #098f09; }
.btn-instacart:disabled { opacity: 0.6; cursor: default; }

.footer-credit { margin-top: 0.4rem; }
.footer-credit a { color: var(--plum-soft); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- quick idea (AI) ---------- */
.idea-btn {
  display: flex; flex-direction: column; gap: 0.15rem; width: 100%; text-align: left;
  margin: 0 0 1.6rem; padding: 1rem 1.2rem; border: 0; border-radius: var(--r); cursor: pointer;
  background: linear-gradient(120deg, var(--plum), var(--flesh));
  color: #fff; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.idea-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.idea-btn-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.idea-btn-sub { font-size: 0.86rem; color: rgba(255,255,255,0.9); }
.idea-loading { color: var(--ink-soft); padding: 1rem 0; }
.idea-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1rem; background: var(--paper); }
.idea-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.idea-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0; color: var(--ink); }
.idea-why { font-style: italic; color: var(--ink-soft); margin: 0.3rem 0 0.6rem; }
.idea-line { font-size: 0.88rem; margin: 0.2rem 0; color: var(--ink); }
.idea-need { color: var(--plum); }
.idea-steps { margin: 0.6rem 0 0.9rem; padding-left: 1.2rem; }
.idea-steps li { padding: 0.2rem 0; line-height: 1.5; }

/* ---------- kitchen inventory collapse ---------- */
.pantry-toggle {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  margin: 1.6rem 0 0.9rem; padding: 0.7rem 0; border: 0; border-top: 1px solid var(--line);
  background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.pantry-toggle-caret { color: var(--flesh); font-size: 0.85rem; }
.pantry-toggle-count { color: var(--ink-soft); font-weight: 400; font-size: 0.95rem; }

/* ---------- household (shared pantry) ---------- */
.household-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0.9rem 1.1rem; margin: 0 0 1.4rem; box-shadow: var(--shadow-sm);
}
.hh-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); cursor: default; }
.hh-title b[data-owner="1"] { cursor: pointer; border-bottom: 1px dashed var(--line); }
.hh-members { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.hh-actions { display: flex; align-items: center; gap: 0.6rem; }
.hh-leave { border: 0; background: none; color: var(--ink-soft); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
.hh-leave:hover { color: var(--plum); }

/* ---------- family cookbook ---------- */
.fam-passed { margin: 0.1rem 0 0.4rem; font-size: 0.78rem; font-style: italic; color: var(--plum-soft); }
.fam-who { background: var(--line-2); color: var(--ink-soft); }
.fam-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin-top: 0.3rem; }
#family-grid .card-thumb { cursor: pointer; }

/* read-only recipe viewer */
.rv-photo { width: 100%; height: 220px; border-radius: var(--r); background: var(--line-2) center/cover no-repeat; margin-bottom: 0.9rem; }
.rv-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 0 0 0.2rem; color: var(--ink); }
.rv-passed { font-style: italic; color: var(--plum-soft); margin: 0 0 0.3rem; }
.rv-who { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.rv-meta { margin: 0 0 0.8rem; }
.rv-story { font-style: italic; line-height: 1.6; border-left: 3px solid var(--gold); padding-left: 0.9rem; color: var(--ink); margin: 0 0 1rem; }
.rv-h { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--plum); margin: 1.1rem 0 0.4rem; }
/* Ingredients — ReciMe-style rows: bold quantity, then the item. */
.rv-ings { list-style: none; margin: 0; padding: 0; }
.rv-ings .ing { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--line-2); }
.rv-ings .ing-q { flex: 0 0 auto; min-width: 4.5rem; font-weight: 700; color: var(--ink); }
.rv-ings .ing-i { color: var(--ink); }
/* Steps — numbered cards, well spaced. */
.rv-steps { list-style: none; margin: 0; padding: 0; }
.rvs { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.55rem 0; }
.rvs-n {
  flex: 0 0 auto; width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  background: var(--plum); color: #fff; border-radius: 50%; font-size: 0.85rem; font-weight: 700;
}
.rvs-t { margin: 0; line-height: 1.55; color: var(--ink); padding-top: 0.1rem; }
.rv-source { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.rv-source a { color: var(--flesh); }
.rv-save { margin-top: 1.2rem; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.btn-ghost2 { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: 0.5rem 0.9rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.btn-ghost2:hover { border-color: var(--plum-soft); color: var(--ink); }
.rv-del:hover { color: #b3261e; border-color: #f0c8c4; background: #fbe9e7; }

/* ---------- heritage / family recipe ---------- */
.heritage-block { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.9rem; }
#c-family-fields { margin-top: 0.6rem; }
.chip-family { background: #F4E3C3; color: #8a5a12; }

/* Keepsake card — screen-hidden, print-only */
#print-card { display: none; }
@media print {
  body { background: #fff !important; padding: 0 !important; overflow: visible !important; }
  body > *:not(#print-card) { display: none !important; }
  #print-card { display: block; }
  .pc-inner { max-width: 680px; margin: 0 auto; padding: 1.4rem; color: #2A1F22; font-family: Georgia, "Times New Roman", serif; }
  .pc-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; color: #7C1F3A; margin: 0 0 0.25rem; }
  .pc-title { font-family: Georgia, serif; font-size: 30px; line-height: 1.05; margin: 0 0 0.15rem; color: #571026; }
  .pc-passed { font-style: italic; color: #6B5C60; margin: 0 0 0.9rem; }
  .pc-photo { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; margin: 0.5rem 0; }
  .pc-meta { font-size: 12px; letter-spacing: 0.04em; color: #6B5C60; margin: 0.3rem 0 1rem; }
  .pc-story { font-style: italic; line-height: 1.6; border-left: 3px solid #E8B23A; padding-left: 0.9rem; margin: 0 0 1.3rem; color: #3a2c2f; }
  .pc-cols { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; }
  .pc-cols h2 { font-family: Georgia, serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: #7C1F3A; border-bottom: 1px solid #ECE6DD; padding-bottom: 0.3rem; margin: 0 0 0.5rem; }
  .pc-ings ul { list-style: none; padding: 0; margin: 0; }
  .pc-ings li { padding: 0.18rem 0; border-bottom: 1px dotted #ECE6DD; font-size: 12.5px; }
  .pc-steps ol { padding-left: 1.1rem; margin: 0; }
  .pc-steps li { padding: 0.22rem 0; line-height: 1.5; font-size: 12.5px; }
  .pc-foot { margin-top: 1.8rem; text-align: center; font-size: 10px; color: #9C8E72; }
  @page { margin: 1.4cm; }
}
.post-editor { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 1.5rem; max-width: 720px; }
.post-editor .fld { margin-bottom: 0.8rem; }
.post-editor input, .post-editor textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.75rem;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); outline: none;
}
.post-editor textarea { resize: vertical; line-height: 1.6; }
.post-editor input:focus, .post-editor textarea:focus { border-color: var(--plum-soft); box-shadow: 0 0 0 3px rgba(162,75,99,0.13); background: var(--card); }
.pe-cover-row { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.pe-cover { width: 150px; height: 84px; border-radius: 10px; background: var(--line-2) center / cover no-repeat; flex: 0 0 auto; border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Olive: AI chat ---------- */
.olive-launch {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--plum); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.olive-launch:hover { transform: translateY(-2px); }
.olive-launch img { border-radius: 50%; background: #101014; }
.olive-launch-label { font-weight: 600; font-size: 0.92rem; }
.olive-chat {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 61;
  width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 2rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.oc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem; background: var(--plum); color: #fff;
}
.oc-title { display: flex; align-items: center; gap: 0.45rem; font-size: 0.98rem; }
.oc-title img { border-radius: 50%; background: #101014; }
.oc-title b { font-family: var(--font-display); font-weight: 600; }
.oc-sub { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.oc-head .btn-ghost { background: rgba(255,255,255,0.16); color: #fff; }
.oc-head .btn-ghost:hover { background: rgba(255,255,255,0.3); color: #fff; }
.oc-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--paper); }
.oc-msg { max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; }
.oc-user { align-self: flex-end; background: var(--plum); color: #fff; border-bottom-right-radius: 4px; }
.oc-assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.oc-typing { color: var(--ink-soft); font-style: italic; }
.oc-form { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line); background: var(--card); }
.oc-input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 0.9rem; font-size: 0.92rem; color: var(--ink); outline: none; }
.oc-input:focus { border-color: var(--plum-soft); }
.oc-send { padding: 0.55rem 1rem; }
@media (max-width: 520px) {
  .olive-launch-label { display: none; }
  .olive-launch { padding: 0.5rem; }
}

/* ---------- homepage features showcase ---------- */
.features { margin: 0.4rem 0 2.8rem; }
.features-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.015em;
  margin: 0.2rem 0 1.6rem; color: var(--ink); text-wrap: balance;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1rem; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.2rem 1.3rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { border-color: var(--plum-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  margin: 0 0 0.4rem; color: var(--ink);
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.feature p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.feature p em { font-style: italic; color: var(--ink); }
.feature-premium { border-color: var(--gold); background: linear-gradient(180deg, #FFFDF5, var(--card)); }
.feat-tag {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #7A5A12;
  background: #F4E3C3; padding: 0.15rem 0.45rem; border-radius: 999px;
}

/* ---------- pricing ---------- */
.pricing { margin: 0.4rem 0 2.8rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; max-width: 780px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem 1.5rem; display: flex; flex-direction: column; }
.tier-premium { border: 2px solid var(--gold); position: relative; background: linear-gradient(180deg, #FFFDF5, var(--card)); box-shadow: var(--shadow); }
.tier-badge { position: absolute; top: -0.85rem; left: 1.4rem; background: var(--plum); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.28rem 0.75rem; border-radius: 999px; }
.tier-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 0.25rem; color: var(--ink); }
.tier-price { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: var(--ink); margin: 0 0 1.1rem; }
.tier-price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.tier-was { font-size: 1.05rem; color: var(--ink-soft); font-weight: 400; }
.tier-list { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.tier-list li { padding: 0.38rem 0 0.38rem 1.5rem; font-size: 0.92rem; color: var(--ink); position: relative; }
.tier-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.tier-cta { width: 100%; }
.pricing-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0.95rem 0 0; }
/* upgrade button in the top bar */
.upgrade-btn { border: 0; cursor: pointer; font-weight: 700; font-size: 0.86rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--gold); color: #1a1400; transition: transform 0.12s ease, background 0.15s ease; }
.upgrade-btn:hover { background: #d4b264; transform: translateY(-1px); }

/* ---------- upgrade / sales sheet ---------- */
.upgrade-inner { position: relative; max-width: 460px; text-align: left; padding: 1.9rem 1.7rem 1.6rem; }
.up-x { position: absolute; top: 0.7rem; right: 0.8rem; }
.up-reason {
  background: #FBF3DE; color: #6b5310; border: 1px solid #EAD9A6;
  font-size: 0.86rem; font-weight: 600; padding: 0.6rem 0.8rem; border-radius: 10px; margin: 0 0 1rem;
}
.up-badge { position: static; display: inline-block; margin: 0 0 0.7rem; }
.up-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.5rem;
}
.up-sub { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 1.2rem; }
.up-list { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: 0.85rem; }
.up-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.up-ic {
  flex: 0 0 auto; width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--line-2); border-radius: 9px; font-size: 1.05rem;
}
.up-list li div { display: flex; flex-direction: column; }
.up-list li b { font-size: 0.95rem; color: var(--ink); }
.up-list li span:not(.up-ic) { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.up-price { display: flex; align-items: baseline; gap: 0.55rem; margin: 0 0 1rem; }
.up-amt { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--ink); }
.up-amt span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.up-perday { font-size: 0.82rem; color: var(--flesh); font-weight: 600; margin-left: auto; }
.up-cta { width: 100%; font-size: 1rem; padding: 0.85rem; }
.up-fine { font-size: 0.76rem; color: var(--ink-soft); text-align: center; margin: 0.85rem 0 0; }

/* ---------- shared household list (non-recipe items) ---------- */
.extras-block { margin: 0.4rem 0 2rem; }
.extras-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 0 0 0.15rem; }
.extras-sub { font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); margin-left: 0.4rem; }
.extras-form { display: flex; gap: 0.5rem; margin: 0.7rem 0 0.9rem; max-width: 520px; }
.extras-input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1rem; font-size: 0.95rem; background: var(--card); color: var(--ink);
}
.extras-input:focus { outline: none; border-color: var(--plum-soft); }
.extras-list { list-style: none; padding: 0; margin: 0; max-width: 520px; }
.extra {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line-2);
}
.extra-check { display: inline-flex; }
.extra-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--flesh); cursor: pointer; }
.extra-item { flex: 1; font-size: 0.96rem; color: var(--ink); }
.extra.is-checked .extra-item { text-decoration: line-through; color: var(--ink-soft); }
.extra-who {
  flex: 0 0 auto; font-size: 0.72rem; font-weight: 600; color: var(--flesh);
  background: var(--line-2); padding: 0.15rem 0.55rem; border-radius: 999px; text-transform: lowercase;
}
.extra-x {
  flex: 0 0 auto; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: 0.9rem; padding: 0.2rem 0.35rem; border-radius: 6px;
}
.extra-x:hover { color: #b3261e; background: #fbe9e7; }
.extras-empty { list-style: none; color: var(--ink-soft); font-size: 0.9rem; padding: 0.5rem 0.4rem; }
.recipe-list-head { margin-top: 1.6rem; }
.up-legal { font-size: 0.72rem; color: var(--ink-soft); text-align: center; margin: 0.3rem 0 0; }
.up-legal a { color: var(--flesh); }

/* ---------- icon system (inline SVG, replaces emoji) ---------- */
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.22em; }
.ico-sm { width: 1em; height: 1em; vertical-align: -0.15em; }
/* Feature cards get a real icon tile (à la the mood board) */
.feat-ico {
  display: inline-flex; width: 2.7rem; height: 2.7rem; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--line-2); color: var(--flesh); margin-bottom: 0.85rem;
}
.feat-ico .ico { width: 1.4rem; height: 1.4rem; }
.feature-premium .feat-ico { background: rgba(196,162,87,0.16); color: var(--gold); }
/* Upgrade-sheet bullet icons */
.up-ic .ico { width: 1.15rem; height: 1.15rem; }
.up-ic { color: var(--flesh); }
.search-icon .ico { width: 1.05rem; height: 1.05rem; }
/* Section-title accent underline (mood-board style) */
.features-title { position: relative; }
.features-title::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 999px;
  background: var(--flesh); margin: 0.7rem auto 0;
}


/* ============================================================================
   REDESIGN v2 — "Bright & Friendly" (Favor.fit / ReciMe / Gusto references)
   White base · friendly blue · warm serif headlines · rounded photo cards.
   Appended last so it overrides everything above.
   ========================================================================== */
:root{
  --bg:#FFFFFF; --tint:#F4F7FC; --cream:#FBF7EF; --panel:#FFFFFF;
  --ink:#1B2130; --ink-soft:#6A7180; --soft:#6A7180;
  --line:#E9ECF2; --line-2:#F1F3F7;
  --blue:#3B7DD8; --blue-dk:#2E68BC; --blue-tint:#EAF1FB;
  --accent:#3B7DD8; --accent-dk:#2E68BC; --flesh:#3B7DD8; --gold:#3B7DD8;
  --plum:#1B2130; --plum-dk:#141926; --plum-soft:#9AA1AE; --paper:#FFFFFF; --card:#FFFFFF;
  --r-sm:10px; --r:14px; --r-lg:20px;
  --shadow-sm:0 1px 2px rgba(27,33,48,.05);
  --shadow:0 18px 40px -24px rgba(27,33,48,.30);
  --shadow-lg:0 30px 60px -30px rgba(27,33,48,.40);
  --font-display:"Newsreader","Georgia",serif;
  --font-body:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body{ background:var(--bg); color:var(--ink); font-family:var(--font-body); }

/* ---- landing vs app toggle ---- */
.landing{ display:block; }
.shell{ display:none; }
body.is-app .landing{ display:none; }
body.is-app .shell{ display:flex; }

/* ============ SIGNED-OUT LANDING ============ */
.landing .lwrap{ max-width:1140px; margin:0 auto; padding:0 1.6rem; }
.lnav{ display:flex; align-items:center; gap:1rem; padding:1.1rem 0; }
.lnav .logo{ display:flex; align-items:center; gap:.55rem; font-family:var(--font-display); font-weight:600; font-size:1.4rem; color:var(--ink); text-decoration:none; }
.lnav .logo .m{ width:32px; height:32px; border-radius:10px; background:var(--blue); color:#fff; display:grid; place-items:center; font-weight:700; font-family:var(--font-body); font-size:1rem; }
.lnav .logo i{ font-style:italic; color:var(--blue); }
.lnav .l-links{ display:flex; gap:1.8rem; margin:0 auto; font-weight:600; font-size:.95rem; color:var(--soft); }
.lnav .l-links a{ text-decoration:none; color:inherit; }
.lnav .l-links a:hover{ color:var(--ink); }
.lnav .l-signin{ color:var(--ink); font-weight:600; background:none; border:0; font-size:.95rem; cursor:pointer; font-family:inherit; }
.lbtn{ background:var(--blue); color:#fff; border:0; border-radius:12px; padding:.7rem 1.3rem; font-weight:700; font-size:.95rem; cursor:pointer; font-family:inherit; text-decoration:none; display:inline-block; }
.lbtn:hover{ background:var(--blue-dk); }
.lhero{ display:grid; grid-template-columns:1.05fr .95fr; gap:3rem; align-items:center; padding:3rem 0 3.5rem; }
.lpill{ display:inline-flex; align-items:center; gap:.4rem; background:var(--blue-tint); color:var(--blue-dk); font-weight:700; font-size:.8rem; padding:.4rem .8rem; border-radius:999px; margin-bottom:1.3rem; }
.lhero h1{ font-family:var(--font-display); font-weight:600; font-size:clamp(2.4rem,5vw,3.6rem); line-height:1.02; letter-spacing:-.02em; margin-bottom:1.1rem; }
.lhero h1 em{ font-style:italic; color:var(--blue); }
.lhero .lead{ font-size:1.15rem; line-height:1.55; color:var(--soft); max-width:42ch; margin-bottom:1.7rem; }
.lpaste{ display:flex; gap:.6rem; max-width:470px; }
.lpaste input{ flex:1; border:1.5px solid var(--line); border-radius:14px; padding:.85rem 1.1rem; font-size:.98rem; font-family:inherit; outline:none; color:var(--ink); }
.lpaste input:focus{ border-color:var(--blue); }
.lpaste .lbtn{ border-radius:14px; white-space:nowrap; }
.ltrust{ display:flex; gap:1.4rem; margin-top:1.4rem; color:var(--soft); font-size:.85rem; font-weight:600; flex-wrap:wrap; }
.ltrust span{ display:flex; align-items:center; gap:.4rem; }
.ltrust svg{ color:var(--blue); width:16px; height:16px; }
.lshot{ position:relative; }
.lshot .big{ border-radius:22px; overflow:hidden; box-shadow:var(--shadow-lg); aspect-ratio:4/5; background:#e8e8ea center/cover no-repeat; }
.lshot .float{ position:absolute; left:-24px; bottom:34px; background:#fff; border-radius:16px; box-shadow:var(--shadow); padding:.75rem; display:flex; gap:.7rem; align-items:center; max-width:250px; }
.lshot .float img{ width:52px; height:52px; border-radius:12px; object-fit:cover; }
.lshot .float b{ font-family:var(--font-display); font-size:.98rem; display:block; line-height:1.1; }
.lshot .float .mm{ font-size:.76rem; color:var(--soft); margin-top:.2rem; }
.lshot .ltag{ position:absolute; right:-14px; top:24px; background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:.65rem .9rem; }
.lshot .ltag b{ color:var(--blue); font-size:1.5rem; font-family:var(--font-display); }
.lshot .ltag span{ display:block; font-size:.72rem; color:var(--soft); font-weight:600; }
.lsec{ padding:3rem 0; }
.lsec-h{ text-align:center; margin-bottom:2rem; }
.lsec-h .k{ color:var(--blue); font-weight:700; font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:.6rem; }
.lsec-h h2{ font-family:var(--font-display); font-weight:600; font-size:2.3rem; letter-spacing:-.01em; }
.lcards{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.lrc{ background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; transition:transform .15s, box-shadow .15s; cursor:pointer; }
.lrc:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.lrc .ph{ aspect-ratio:16/11; background:#e8e8ea center/cover no-repeat; }
.lrc .b{ padding:1rem 1.1rem 1.2rem; }
.lrc h3{ font-family:var(--font-display); font-weight:600; font-size:1.25rem; margin-bottom:.6rem; line-height:1.1; }
.lhow{ background:var(--cream); border-radius:28px; padding:2.6rem; }
.lsteps{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.8rem; }
.lstep .n{ width:44px; height:44px; border-radius:14px; background:var(--blue-tint); color:var(--blue); display:grid; place-items:center; margin-bottom:.9rem; }
.lstep h4{ font-family:var(--font-display); font-size:1.3rem; font-weight:600; margin-bottom:.4rem; }
.lstep p{ color:var(--soft); line-height:1.5; font-size:.95rem; }
.lfoot{ border-top:1px solid var(--line); margin-top:2rem; padding:2rem 0; color:var(--soft); font-size:.9rem; display:flex; gap:1.2rem; flex-wrap:wrap; justify-content:space-between; }
.lfoot a{ color:var(--soft); text-decoration:none; } .lfoot a:hover{ color:var(--ink); }
.chip{ display:inline-flex; align-items:center; gap:.3rem; background:var(--tint); color:var(--soft); font-weight:600; font-size:.78rem; padding:.3rem .6rem; border-radius:999px; }
.chip svg{ width:13px; height:13px; color:var(--blue); }
.chip.blue{ background:var(--blue); color:#fff; } .chip.blue svg{ color:#fff; }
.chips{ display:flex; gap:.5rem; flex-wrap:wrap; }

/* ============ SIGNED-IN APP (light sidebar) ============ */
.shell{ min-height:100vh; align-items:flex-start; background:var(--bg); }
.content{ flex:1; min-width:0; }
.content .view{ max-width:1160px; margin:0; padding:1.8rem 2.2rem 2.4rem; }
.side{
  position:sticky; top:0; align-self:stretch; width:236px; flex:0 0 auto; height:100vh;
  background:#fff; color:var(--ink); border-right:1px solid var(--line);
  display:flex; flex-direction:column; padding:1.4rem 0; z-index:30;
}
.side .wm{ padding:0 1.3rem 1.2rem; text-decoration:none; display:flex; align-items:center; gap:.5rem; border-bottom:1px solid var(--line); }
.wm-name{ font-family:var(--font-display); font-weight:600; font-size:1.25rem; line-height:1; color:var(--ink); }
.wm-name i{ font-style:italic; color:var(--blue); } .wm-name br{ display:none; }
.wm-est{ display:none; }
.side .tabs{ display:flex; flex-direction:column; gap:2px; padding:1rem .8rem; background:none; border-radius:0; }
.side .tab{ display:flex; align-items:center; gap:.75rem; justify-content:flex-start; padding:.62rem .8rem; border-radius:11px; background:none; box-shadow:none; color:var(--soft); font-weight:600; font-size:.92rem; letter-spacing:0; text-transform:none; }
.side .tab .ico{ width:19px; height:19px; }
.side .tab:hover{ background:var(--tint); color:var(--ink); }
.side .tab.is-active{ background:var(--blue-tint); color:var(--blue-dk); box-shadow:none; }
.side .tab.is-active .ico{ color:var(--blue); }
.side-foot{ margin-top:auto; padding:1rem .9rem 0; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:.55rem; }
.side .upgrade-btn{ background:var(--blue); color:#fff; border-radius:11px; justify-content:center; padding:.6rem; font-size:.85rem; letter-spacing:0; text-transform:none; }
.side .upgrade-btn:hover{ background:var(--blue-dk); }
.side .account-btn{ background:none; border:1px solid var(--line); color:var(--ink); border-radius:11px; padding:.55rem; font-weight:600; font-size:.85rem; cursor:pointer; }
.side .account-btn:hover{ border-color:var(--blue); color:var(--blue); }

/* app masthead lighter */
.mast{ border-bottom:1px solid var(--line); padding-bottom:1.3rem; margin-bottom:1.6rem; }
.mast-kicker{ color:var(--blue); font-weight:700; letter-spacing:.1em; }
.mast-h{ font-family:var(--font-display); font-weight:600; letter-spacing:-.02em; }
.mast-h em{ font-style:italic; color:var(--blue); }
.capture{ border:1.5px solid var(--line); border-radius:14px; background:#fff; }
.capture-input{ color:var(--ink); }
.clipper{ background:var(--ink); color:#fff; border-radius:8px; }
.clip-phone{ color:var(--blue); }
.cook-now{ background:var(--blue); color:#fff; border-radius:18px; }
.cook-now .cn-k{ color:#fff; }
.cook-now .cn-go{ background:#fff; color:var(--blue-dk); }
.cook-now:hover .cn-go{ background:var(--ink); color:#fff; }

/* buttons */
.btn{ border-radius:12px; font-weight:700; }
.btn-primary{ background:var(--blue); color:#fff; box-shadow:none; }
.btn-primary:hover{ background:var(--blue-dk); transform:translateY(-1px); }
.btn-soft,.btn-soft2{ border-radius:12px; background:#fff; color:var(--ink); border:1px solid var(--line); }
.btn-soft:hover{ background:var(--tint); color:var(--ink); }

/* section head + cards */
.section-head{ border-bottom:1px solid var(--line); padding-bottom:.7rem; margin-bottom:1.2rem; }
.section-title{ font-family:var(--font-display); font-weight:600; font-size:1.5rem; color:var(--ink); }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:1.4rem; }
.card{ background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:none; overflow:hidden; transition:transform .15s, box-shadow .15s; }
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.card-thumb{ border-radius:0; aspect-ratio:16/11; }
.card-body{ padding:.9rem 1rem 1.1rem; }
.card-title{ font-family:var(--font-display); font-weight:600; font-size:1.18rem; line-height:1.1; color:var(--ink); }
.meta-chip{ border-radius:999px; background:var(--tint); color:var(--soft); font-weight:600; border:0; }
.card-src{ border-radius:999px; }
.chip,.pantry-chip,.filters .chip{ border-radius:999px; }

/* mobile: sidebar -> bottom bar */
@media (max-width:820px){
  .shell{ display:block; } body.is-app .shell{ display:block; }
  .side{ position:fixed; bottom:0; left:0; top:auto; width:100%; height:auto; flex-direction:row; padding:0; border-right:0; border-top:1px solid var(--line); background:#fff; }
  .side .wm,.side-foot{ display:none; }
  .side .tabs{ flex-direction:row; width:100%; padding:.3rem; gap:0; justify-content:space-between; }
  .side .tab{ flex-direction:column; gap:.2rem; font-size:.6rem; padding:.45rem .2rem; flex:1; text-align:center; }
  .content .view{ padding:1.1rem 1.1rem 5rem; }
  .lhero{ grid-template-columns:1fr; gap:1.6rem; } .lcards,.lsteps{ grid-template-columns:1fr; }
  .lnav .l-links{ display:none; }
}
