:root {
  --rose-50: #fff5f8;
  --rose-100: #ffe4ee;
  --rose-200: #f7c4d8;
  --rose-300: #e8a0bf;
  --rose-500: #c45d86;
  --rose-700: #8f3a5c;
  --ink: #3a2a2f;
  --ink-soft: #6b525a;
  --cream: #fffaf7;
  --cream-deep: #f6ebe6;
  --line: rgba(196, 93, 134, 0.2);
  --shadow: 0 14px 40px rgba(142, 58, 92, 0.1);
  --radius: 16px;
  --space: 1.5rem;
  --section: clamp(2.5rem, 5vw, 3.5rem);
  --content-w: 1080px;
  --font-script: "Great Vibes", cursive;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-500); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); }
p { margin: 0 0 1rem; }
[x-cloak] { display: none !important; }

.bg-wash {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(232, 160, 191, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 5%, rgba(255, 228, 238, 0.7), transparent 50%),
    linear-gradient(180deg, #fff7fa 0%, var(--cream) 45%, var(--cream-deep) 100%);
}

.wrap {
  width: min(var(--content-w, 1080px), calc(100% - 2rem));
  margin-inline: auto;
}
.narrow { width: min(720px, calc(100% - 2rem)); }
.section { padding: var(--section) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: 1.25rem;
}
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 36rem; margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }
.h-sub { font-size: 1.25rem; margin-top: 1.5rem; }

/* —— Header —— */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-name, .footer-brand, .install-brand, .hero-brand {
  font-family: var(--font-script);
  font-size: 2.05rem;
  color: var(--rose-500);
  line-height: 1;
  display: block;
  transform: translateY(0.1em);
}
.brand-mark {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 247, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* Inner bar matches .wrap used by page sections — no floating island */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  min-height: 68px;
  padding: .55rem 0;
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}
.header-right { flex-shrink: 0; gap: .85rem; }

.nav-primary,
.nav-account {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-primary a,
.nav-account a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  line-height: 1;
}
.nav-primary a:hover,
.nav-account a:hover { color: var(--rose-500); }

.nav-desk {
  background: var(--rose-100);
  color: var(--rose-700) !important;
  padding: .45rem .75rem !important;
  border-radius: 999px;
}
.nav-user { color: var(--rose-700) !important; }

/* Mobile drawer — hidden on desktop */
.site-nav { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rose-500); color: #fff; border: 0;
  padding: .7rem 1.2rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 18px rgba(196, 93, 134, 0.22);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--rose-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--rose-700); border: 1.5px solid var(--rose-300); box-shadow: none; }
.btn-ghost:hover { background: var(--rose-100); color: var(--rose-700); }
.btn-sm { padding: .4rem .85rem; font-size: .88rem; }
.badge {
  display: inline-block; background: var(--rose-500); color: #fff;
  border-radius: 999px; padding: 0 .4rem; margin-left: .25rem;
  font-size: .68rem; font-style: normal; vertical-align: middle;
}

.flash { padding: .85rem 1rem; border-radius: 12px; margin: .75rem 0; }
.flash-success { background: #e8f6ee; color: #1f6b3a; }
.flash-error { background: #fdecee; color: #8a2434; }
.flashes { padding-top: .75rem; }

/* Overlay notices — don't push page content */
.flash-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.flash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 42, 47, 0.45);
  backdrop-filter: blur(3px);
}
.flash-modal-card {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(58, 42, 47, 0.22);
  text-align: center;
  animation: flash-pop .22s ease-out;
}
.flash-modal-card.flash-modal-error { border-color: #f0b4be; }
.flash-modal-kicker {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rose-700);
}
.flash-modal-error .flash-modal-kicker { color: #8a2434; }
.flash-modal-msg {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.flash-modal-card .btn { width: 100%; }
@keyframes flash-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* Badge is fixed at right:-186px and expands page scrollWidth — remove from layout entirely */
.grecaptcha-badge {
  display: none !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(58, 30, 42, 0.55) 0%, rgba(142, 58, 92, 0.35) 48%, rgba(232, 160, 191, 0.2) 100%),
    url('../img/hero-bake.svg') center/cover no-repeat,
    linear-gradient(135deg, #e8a0bf, #c45d86 50%, #8f3a5c);
  transform-origin: center;
  animation: heroDrift 20s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
}
.hero-copy {
  color: #fff;
  max-width: 34rem;
  animation: riseIn .8s ease both;
}
.hero-brand {
  font-family: var(--font-script);
  color: #ffe4ee;
  font-size: clamp(3.4rem, 8vw, 5.2rem);
  line-height: .95;
  margin: 0 0 .6rem;
  display: block;
}
.hero-line {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 0 .85rem;
}
.hero-sub {
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}
.hero-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.65);
  background: transparent;
}
.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.hero-portrait {
  margin: 0;
  justify-self: end;
  width: min(320px, 100%);
  animation: riseIn .9s ease .08s both;
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 244, 248, 0.85);
  box-shadow: 0 24px 50px rgba(40, 16, 28, 0.35);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.story-list { display: grid; gap: .85rem; }
.story-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
  padding: .9rem; border-radius: var(--radius);
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.story-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.story-row img, .story-placeholder {
  width: 120px; height: 96px; object-fit: cover; border-radius: 12px;
  background: linear-gradient(135deg, var(--rose-100), var(--rose-300));
}

.band { background: rgba(255,228,238,.4); border-block: 1px solid var(--line); }
.recipe-strip, .recipe-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.recipe-tile {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.recipe-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recipe-tile img, .recipe-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--rose-100); }
.recipe-tile h3 { padding: .8rem 1rem 0; font-size: 1.3rem; }
.recipe-tile .muted { padding: 0 1rem 1rem; margin: 0; }

.tool-promo {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: center;
}
.tool-promo p { margin-bottom: 1.1rem; }

.form-panel, .install-panel {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stack { display: grid; gap: .85rem; }
.stack.compact { gap: .5rem; margin-top: .5rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; padding: .7rem .85rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  width: 100%; max-width: 100%; min-width: 0;
}
/* iOS Safari datetime-local has a huge intrinsic min-width — clamp it */
input[type="datetime-local"],
input[type="date"],
input[type="time"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 1rem; /* avoids iOS zoom + keeps native control narrower */
}
.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.check input { width: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

.prose :where(p, ul, ol) { margin-bottom: 1rem; }
.prose img { border-radius: 12px; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.25rem; }

.recipe-hero { position: relative; min-height: 40vh; display: grid; align-items: end; color: #fff; margin-bottom: 1rem; }
.recipe-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(58,42,47,.72));
}
.recipe-hero-copy { position: relative; z-index: 1; padding: 2.5rem 0 1.75rem; }
.recipe-section { margin-bottom: 1.75rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.gallery img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }

.comments { border-top: 1px solid var(--line); }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment.reply { margin-left: 1.1rem; padding-left: 1rem; border-left: 2px solid var(--rose-200); }
.comment-meta { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .35rem; }
.linkish { background: none; border: 0; color: var(--rose-700); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

.messages-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; min-height: 60vh; }
.thread-list, .thread-pane {
  background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.thread-item { display: grid; gap: .15rem; padding: .7rem; border-radius: 12px; text-decoration: none; color: inherit; }
.thread-item.active, .thread-item:hover { background: var(--rose-100); }
.message-stream { display: grid; gap: .65rem; max-height: 50vh; overflow: auto; margin: 1rem 0; }
.bubble { max-width: 80%; padding: .7rem .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bubble.mine { margin-left: auto; background: var(--rose-100); }
.compose { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; }

.notify-row {
  display: grid; gap: .2rem; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); text-decoration: none; color: inherit; background: #fff;
}
.notify-row.unread { border-color: var(--rose-300); background: var(--rose-50); }
.profile-head { display: flex; gap: 1.25rem; align-items: flex-start; }
.avatar { border-radius: 50%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; }
.avatar.placeholder { background: var(--rose-200); }

.site-header,
.site-footer,
main {
  width: 100%;
  max-width: 100%;
}
.site-footer {
  margin-top: var(--section); padding: 2.25rem 0 1.35rem;
  border-top: 1px solid var(--line); background: rgba(255,228,238,.32);
  overflow-x: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 1.5rem;
  min-width: 0;
}
.footer-heading { font-weight: 700; margin-bottom: .5rem; }
.footer-grid > * { min-width: 0; }
.footer-grid a { display: block; text-decoration: none; margin: .25rem 0; color: var(--ink-soft); }
.footer-base { margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-whisky { text-align: center; }
.footer-whisky img { border-radius: 50%; margin-inline: auto; width: 88px; height: 88px; object-fit: cover; }

/* —— Sourdough planner —— */
.sourdough-page { padding-bottom: var(--section); overflow-x: hidden; }
.tool-hero {
  width: min(1080px, calc(100% - 2rem));
  max-width: 100%;
  margin: .85rem auto clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.15rem, 3vw, 1.75rem);
  background:
    linear-gradient(135deg, rgba(255,228,238,.95), rgba(247,196,216,.6)),
    radial-gradient(circle at 90% 20%, rgba(196,93,134,.18), transparent 40%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-sizing: border-box;
}
.tool-hero-inner { max-width: 40rem; }
.tool-kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--rose-700); margin: 0 0 .4rem;
}
.tool-hero h1 { margin-bottom: .55rem; }
.tool-hero .lede { margin: 0; }

.planner {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  min-width: 0;
}
.planner-setup {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 4.5rem;
  min-width: 0;
  max-width: 100%;
}
.setup-card, .reminders-card, .plan-alert, .timeline-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}
.setup-card h2, .reminders-card h2, .timeline-board-head h2 {
  font-size: 1.35rem; margin: 0 0 1rem;
}
.mode-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
  padding: .3rem; background: var(--rose-50); border-radius: 12px; margin-bottom: 1rem;
}
.mode-btn {
  border: 0; background: transparent; color: var(--ink-soft);
  font: inherit; font-weight: 700; font-size: .88rem;
  padding: .65rem .5rem; border-radius: 10px; cursor: pointer;
}
.mode-btn.active {
  background: #fff; color: var(--rose-700);
  box-shadow: 0 2px 10px rgba(142, 58, 92, 0.1);
}
.field {
  display: grid;
  gap: .35rem;
  margin-bottom: .95rem;
  font-weight: 600;
  font-size: .92rem;
  min-width: 0;
  max-width: 100%;
}
.field-hint { font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.temp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  min-width: 0;
}
.temp-row input[type="range"] { accent-color: var(--rose-500); width: 100%; min-width: 0; }
.temp-readout {
  font-family: var(--font-display); font-size: 1.35rem;
  color: var(--rose-700); min-width: 3.5rem; text-align: right;
}

.overnight-block {
  background: var(--rose-50); border: 1px solid var(--line);
  border-radius: 12px; padding: .9rem; margin-bottom: .95rem;
}
.switch {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem;
  align-items: start; cursor: pointer; font-weight: 400;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui {
  width: 44px; height: 26px; border-radius: 999px; background: #ddd;
  position: relative; margin-top: .15rem; transition: background .2s ease;
}
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s ease; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.switch input:checked + .switch-ui { background: var(--rose-500); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch-copy { display: grid; gap: .15rem; }
.switch-copy strong { font-size: .95rem; }
.switch-copy small { color: var(--ink-soft); font-size: .82rem; line-height: 1.35; }

.assumptions-details { border-top: 1px solid var(--line); padding-top: .75rem; }
.assumptions-details summary {
  cursor: pointer; font-weight: 700; color: var(--rose-700); font-size: .92rem;
}
.assumptions {
  display: grid; gap: .65rem; margin-top: .75rem;
  grid-template-columns: 1fr;
}
.assumptions label { font-size: .85rem; }

.reminders-card { background: linear-gradient(180deg, #fff, var(--rose-50)); }
.reminders-card ol { margin: 0; padding-left: 1.15rem; display: grid; gap: .55rem; }
.reminders-card li { color: var(--ink-soft); font-size: .92rem; }

.planner-result { display: grid; gap: 1rem; min-width: 0; }
.plan-summary {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: center;
}
.remind-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #fff, var(--rose-50));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.remind-bar strong { display: block; margin-bottom: .2rem; }
.remind-bar p { margin: 0; }
.remind-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.summary-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .75rem 1rem; display: grid; gap: .15rem; min-width: 7.5rem;
  box-shadow: var(--shadow);
}
.summary-chip span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.summary-chip strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.summary-chip.accent { background: var(--rose-500); border-color: var(--rose-500); color: #fff; }
.summary-chip.accent span { color: rgba(255,255,255,.8); }
.summary-chip.soft { background: var(--rose-50); }
.summary-arrow { color: var(--rose-300); font-size: 1.4rem; font-weight: 700; }

.plan-alert {
  background: #fff5f6; border-color: #f0b4be;
}
.plan-alert h2 { color: #8a2434; font-size: 1.3rem; }
.plan-alert p { margin-bottom: .5rem; }
.plan-alert .btn { margin-top: .65rem; }

.timeline-board { display: grid; gap: .55rem; padding-bottom: 1rem; }
.timeline-board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: .35rem;
}
.timeline-board-head h2 { margin: 0; }
.timeline-board-head p { margin: 0; }

.stage-card {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem;
  align-items: start; padding: .85rem .95rem;
  border-radius: 14px; border: 1px solid var(--line);
  background: #fafafa; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.stage-card:hover { border-color: var(--rose-300); }
.stage-card.done { opacity: .55; background: #f3f3f3; }
.stage-card.done .stage-name { text-decoration: line-through; }
.stage-check {
  width: 1.25rem; height: 1.25rem; margin-top: .2rem;
  accent-color: var(--rose-500); cursor: pointer;
}
.stage-body { min-width: 0; }
.stage-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .75rem; margin-bottom: .2rem;
}
.stage-name { font-weight: 700; font-size: 1rem; }
.stage-dur {
  font-size: .8rem; font-weight: 700; color: var(--rose-700);
  background: var(--rose-100); padding: .15rem .5rem; border-radius: 999px;
  white-space: nowrap;
}
.stage-times {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--ink); letter-spacing: .01em;
}
.stage-sep { color: var(--ink-soft); margin: 0 .25rem; }
.stage-note { margin: .35rem 0 0; font-size: .85rem; color: var(--ink-soft); }

.stage-card.prep { border-left: 3px solid #6a9e7c; }
.stage-card.mix, .stage-card.fold { border-left: 3px solid var(--rose-300); }
.stage-card.ferment, .stage-card.proof { border-left: 3px solid #d4a24c; }
.stage-card.overnight { border-left: 3px solid #7b6bb0; background: #f7f4ff; }
.stage-card.bake { border-left: 3px solid #d978a0; background: #fff6f0; }
.stage-card.cool, .stage-card.warm, .stage-card.shape { border-left: 3px solid var(--rose-200); }

.install-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.install-card { width: min(560px, calc(100% - 2rem)); }
.step-pill {
  display: inline-block; background: var(--rose-100); color: var(--rose-700);
  padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
}

/* —— Responsive —— */
@media (max-width: 920px) {
  .planner { grid-template-columns: 1fr; }
  .planner-setup { position: static; }
  .nav-account { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .nav-primary,
  .nav-account { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + .15rem);
    background: rgba(255,250,247,.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .5rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
  }
  .site-nav .btn {
    margin-top: .75rem;
    text-align: center;
    justify-content: center;
    border: 0;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-grid > :first-child,
  .footer-whisky {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 2.25rem 0 2.5rem;
    gap: 1.75rem;
    text-align: center;
  }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero-line { max-width: none; margin-inline: auto; }
  .hero-sub { max-width: 28ch; margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-portrait {
    justify-self: center;
    width: min(220px, 55vw);
    order: -1;
  }
  .tool-promo, .footer-grid, .messages-layout, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid > :first-child,
  .footer-whisky { grid-column: auto; }
  .story-row { grid-template-columns: 88px 1fr; }
  .story-row img, .story-placeholder { width: 88px; height: 76px; }
  .plan-summary { flex-direction: column; align-items: stretch; }
  .summary-arrow { display: none; }
  .summary-chip { min-width: 0; }
  .mode-toggle { grid-template-columns: 1fr; }
  .setup-card, .reminders-card, .plan-alert, .timeline-board {
    padding: 1.05rem 1rem;
  }
  .remind-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .stage-top { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.85rem; }
  .hero-cta .btn { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .wrap, .tool-hero { width: min(var(--content-w, 1080px), calc(100% - 1.5rem)); }
  input[type="datetime-local"] {
    padding-inline: .65rem;
    font-size: 16px; /* iOS won’t zoom; also trims native control width */
  }
}
