:root {
  --bg: #f3eee6;
  --bg-2: #ebe4d8;
  --paper: #fffaf3;
  --paper-2: #f7f1e8;
  --ink: #1b1712;
  --ink-2: #4a4338;
  --ink-3: #7a7266;
  --line: #e4dacb;
  --line-2: #d3c7b4;
  --accent: #c24d1f;
  --accent-2: #9a3a16;
  --accent-soft: #f6e2d6;
  --forest: #2c4638;
  --gold: #c4962c;
  --shadow: 0 10px 30px rgba(40, 28, 14, 0.08);
  --shadow-lg: 0 24px 60px rgba(40, 28, 14, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, sans-serif;
  --serif: "Inter", system-ui, sans-serif;
  --fw: 300;
  --fw-mid: 400;
  --fw-strong: 500;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-weight: 300;
  background:
    radial-gradient(1200px 600px at 10% -10%, #f8e8d4 0%, transparent 50%),
    radial-gradient(900px 500px at 110% 0%, #eadcc8 0%, transparent 46%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body.site { overflow: auto; height: auto; min-height: 100%; font-weight: 300; }
h1, h2, h3, h4 { font-weight: 300; letter-spacing: -0.03em; }

button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; }

.app {
  height: 100dvh;
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-rows: auto 1fr;
}

/* ========== SIDE NAV ========== */
.sidenav {
  grid-row: 1 / -1;
  background: #1c1915;
  color: #f4eee4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px calc(16px + var(--safe-b));
  gap: 4px;
  z-index: 20;
  overflow-y: auto;
}
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 18px; text-decoration: none; color: inherit;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(160deg, #e8a062, #c24d1f);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(194, 77, 31, 0.35);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #c9bfb1; font-weight: 400; }

.nav-btn {
  width: 64px; min-height: 52px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #b7ada0; font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  transition: 0.18s ease;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-btn.active { background: #2b2621; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.nav-btn.active svg { color: #f0a06a; }
.sidenav .spacer { flex: 1; }

/* ========== TOPBAR ========== */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 10px;
  min-height: 68px;
}
.topbar h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 28px;
  letter-spacing: -0.03em;
  flex: 1;
}
.clock-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  box-shadow: var(--shadow);
}
.clock-chip b { color: var(--ink); font-weight: 650; font-size: 14px; }
.weather-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0b24a; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: 0.15s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.cta {
  height: 42px; padding: 0 16px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 650;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 18px rgba(194,77,31,0.28);
}
.cta:hover { background: var(--accent-2); }
.cta.ghost {
  background: var(--paper); color: var(--ink); box-shadow: none;
  border: 1px solid var(--line);
}

/* ========== STAGE ========== */
.stage {
  overflow: auto;
  padding: 4px 22px 28px;
  padding-bottom: calc(28px + var(--safe-b));
}

.view { display: none; animation: rise 0.32s ease; }
.view.active { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ========== TODAY / KITCHEN ========== */
.hero-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
  margin-bottom: 16px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel h2, .section-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin-bottom: 12px;
}
.big-when {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px;
}
.big-when .dayname {
  font-family: var(--serif); font-size: 42px; font-weight: 560; letter-spacing: -0.03em; line-height: 1;
}
.big-when .date { color: var(--ink-3); font-size: 16px; }
.tagline { color: var(--ink-2); margin-bottom: 16px; font-size: 15px; }

.event-stack { display: flex; flex-direction: column; gap: 8px; }
.event-row {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}
.event-row:hover { border-color: var(--line); transform: translateX(2px); }
.event-row .when { font-size: 12px; font-weight: 650; color: var(--ink-3); }
.event-row .title { font-weight: 650; font-size: 15px; }
.event-row .meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.people-dots { display: flex; gap: 4px; }
.dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 10px; font-weight: 700;
  box-shadow: 0 0 0 2px var(--paper);
}

.empty-soft {
  padding: 18px; border-radius: 14px; background: var(--paper-2);
  color: var(--ink-3); font-size: 14px;
}

.family-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-height: 92px;
  box-shadow: var(--shadow);
}
.person-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
}
.person-card h3 { font-size: 15px; font-weight: 650; }
.person-card p { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

.three-col {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px;
}
.list-mini { display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 4px; font-size: 14px; cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.check.done span { text-decoration: line-through; color: var(--ink-3); }
.who-mini { font-size: 11px; color: var(--ink-3); margin-left: auto; }

/* ========== CALENDAR ========== */
.cal-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.cal-toolbar .month-title {
  font-family: var(--serif); font-size: 26px; font-weight: 560;
  letter-spacing: -0.03em; min-width: 210px;
}
.seg {
  display: flex; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 3px; gap: 2px;
}
.seg button {
  height: 32px; padding: 0 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
}
.seg button.on { background: var(--ink); color: #fff; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.chip {
  height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { color: #fff; border-color: transparent; }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.dow {
  text-align: center; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
  padding: 6px 0 2px;
}
.day-cell {
  min-height: 118px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: 0.15s;
}
.day-cell:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.day-cell.out { opacity: 0.42; background: transparent; }
.day-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day-num {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center;
}
.day-cell.today .day-num span:first-child {
  background: var(--accent); color: #fff; width: 22px; height: 22px;
  border-radius: 50%; display: grid; place-items: center; font-size: 12px;
}
.ev-pill {
  font-size: 11px; font-weight: 650; color: #fff;
  border-radius: 7px; padding: 3px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.more-n { font-size: 11px; color: var(--ink-3); padding-left: 4px; }

.week-grid {
  display: grid; grid-template-columns: 56px repeat(7, 1fr);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--paper);
}
.week-head, .week-col { border-left: 1px solid var(--line); }
.week-head { padding: 10px 8px; text-align: center; background: var(--paper-2); }
.week-head b { display: block; font-size: 18px; }
.week-head span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.week-head.today-col { background: var(--accent-soft); }
.hours { font-size: 11px; color: var(--ink-3); padding: 8px 6px 0; text-align: right; }
.week-col { min-height: 640px; position: relative; background-image: repeating-linear-gradient(to bottom, transparent, transparent 39px, var(--line) 40px); }
.week-block {
  position: absolute; left: 4px; right: 4px; border-radius: 8px;
  padding: 6px 8px; color: #fff; font-size: 12px; font-weight: 650;
  overflow: hidden; cursor: pointer;
}
.week-block small { display: block; font-weight: 500; opacity: 0.9; font-size: 10px; }

.agenda { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.agenda-day h3 {
  font-family: var(--serif); font-size: 20px; margin-bottom: 8px;
}

/* ========== LISTS / NOTES / CHORES ========== */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.board {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow); min-height: 280px;
  display: flex; flex-direction: column;
}
.board header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.board header h3 { font-size: 16px; font-weight: 700; flex: 1; }
.item-add {
  display: flex; gap: 8px; margin-top: auto; padding-top: 10px;
}
.item-add input, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 10px 12px; font-size: 14px; outline: none;
}
.item-add input:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tiny { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 650; font-size: 13px; }

.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sticky {
  border-radius: 16px; padding: 16px; min-height: 170px;
  box-shadow: var(--shadow); position: relative;
  transform: rotate(var(--tilt, -0.4deg));
}
.sticky textarea {
  width: 100%; height: 110px; background: transparent; border: 0; resize: none;
  font-size: 15px; line-height: 1.45; outline: none; font-family: var(--serif);
}
.sticky footer { display: flex; justify-content: space-between; font-size: 11px; color: rgba(0,0,0,0.45); margin-top: 8px; }
.sticky .x { position: absolute; top: 8px; right: 8px; opacity: 0.4; }

.chore-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 8px;
}

/* ========== PEOPLE / SETTINGS ========== */
.people-edit { display: grid; gap: 10px; max-width: 640px; }
.pe-row {
  display: grid; grid-template-columns: 40px 1fr 120px auto; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); padding: 10px; border-radius: 14px;
}

/* ========== MODALS ========== */
.overlay {
  position: fixed; inset: 0; background: rgba(28, 22, 16, 0.46);
  backdrop-filter: blur(8px);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 50; padding: 16px;
}
.overlay.show { display: flex; }
.sheet {
  width: min(640px, 100%);
  max-height: min(92dvh, 900px);
  overflow: auto;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  animation: sheet 0.28s ease;
}
@keyframes sheet {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.sheet h2 { font-family: var(--serif); font-size: 26px; font-weight: 560; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.assign { display: flex; flex-wrap: wrap; gap: 8px; }
.assign label {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 650; cursor: pointer;
}
.assign label.on { color: #fff; border-color: transparent; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.danger { background: #8d2a22; color: #fff; height: 42px; padding: 0 14px; border-radius: 12px; font-weight: 650; }
.muted { color: var(--ink-3); font-size: 13px; }

/* capture choices */
.capture-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.cap-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px;
  text-align: center; background: var(--paper-2); cursor: pointer;
}
.cap-card:hover { border-color: var(--accent); background: #fff; }
.cap-card .ico { font-size: 26px; margin-bottom: 8px; }
.cap-card b { display: block; font-size: 14px; }
.cap-card span { font-size: 12px; color: var(--ink-3); }

.voice-orb {
  width: 120px; height: 120px; border-radius: 50%; margin: 10px auto 16px;
  background: radial-gradient(circle at 30% 30%, #f3c2a4, var(--accent));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 0 10px var(--accent-soft), 0 20px 40px rgba(194,77,31,0.25);
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  50% { transform: scale(1.04); box-shadow: 0 0 0 16px var(--accent-soft), 0 20px 40px rgba(194,77,31,0.25); }
}
.transcript {
  background: var(--paper-2); border-radius: 14px; padding: 14px; min-height: 72px;
  font-size: 16px; line-height: 1.5;
}
.scan-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; background: #ddd; }
.ocr-status { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }

/* ========== MOBILE ========== */
.bottomnav { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .sidenav { display: none; }
  .topbar { padding: 10px 14px; padding-top: calc(10px + var(--safe-t)); }
  .topbar h1 { font-size: 22px; }
  .stage { padding: 4px 12px 18px; }
  .hero-row, .three-col { grid-template-columns: 1fr; }
  .clock-chip .hide-sm { display: none; }
  .month-grid { gap: 4px; }
  .day-cell { min-height: 86px; padding: 6px; border-radius: 10px; }
  .ev-pill { font-size: 10px; padding: 2px 4px; }
  .capture-grid, .grid-2 { grid-template-columns: 1fr; }
  .bottomnav {
    display: flex; justify-content: space-around;
    background: #1c1915; color: #cfc6ba;
    padding: 8px 6px calc(8px + var(--safe-b));
  }
  .bottomnav button {
    flex: 1; color: #b7ada0; font-size: 10px; font-weight: 650;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
  }
  .bottomnav button.active { color: #fff; }
  .bottomnav svg { width: 20px; height: 20px; }
  .filters { margin-left: 0; width: 100%; }
}

/* Kitchen / wall display */
body.wall .sidenav { width: 76px; }
body.wall .big-when .dayname { font-size: 56px; }
body.wall .event-row .title { font-size: 18px; }
body.wall .day-cell { min-height: 132px; }
body.wall .topbar h1 { font-size: 34px; }

.fab {
  position: fixed; right: 22px; bottom: calc(22px + var(--safe-b));
  width: 60px; height: 60px; border-radius: 20px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 32px rgba(194,77,31,0.35);
  z-index: 30;
}
.fab svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .fab { bottom: calc(72px + var(--safe-b)); right: 16px; }
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: 0.25s; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== MARKETING + AUTH ========== */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 16px 28px;
  background: rgba(243,238,230,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 13px;
}
.site-nav .logo .brand-mark { width: 36px; height: 36px; border-radius: 12px; margin: 0; }
.seal { width: 52px; height: 52px; display: block; }
.seal-sm { width: 36px; height: 36px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.seal-auth { width: 72px; height: 72px; margin: 0 auto 12px; display: block; }
.site-nav .links { display: flex; gap: 22px; flex: 1; }
.site-nav .links a { color: var(--ink-2); text-decoration: none; font-weight: 300; font-size: 15px; }
.site-nav .links a:hover { color: var(--ink); }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero {
  padding: 72px 0 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 12px 0 16px; font-weight: 300; }
.hero p.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 18px; box-shadow: var(--shadow-lg);
}
.hero-card .mini-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hero-card .mini-row:last-child { border: 0; }

.section { padding: 64px 0; }
.section h2 { font-size: 36px; margin-bottom: 10px; }
.section .sub { color: var(--ink-2); max-width: 560px; margin-bottom: 28px; font-size: 17px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.feat h3 { font-size: 20px; margin: 8px 0 8px; }
.feat p { color: var(--ink-2); line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 8px 8px 8px 0; }
.step b { display: block; color: var(--accent); font-weight: 400; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px; min-height: 320px;
}
.price.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price .amt { font-size: 40px; margin: 8px 0; }
.price ul { list-style: none; color: var(--ink-2); line-height: 1.8; flex: 1; font-size: 14px; }

.site-footer {
  border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--ink-3); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.auth-page { min-height: calc(100dvh - 70px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card {
  width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 32px; margin-bottom: 8px; }
.auth-card .hint { color: var(--ink-2); margin-bottom: 18px; }
.auth-card .cta { width: 100%; justify-content: center; height: 46px; margin-top: 8px; }
.demo-box {
  margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--paper-2);
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.err { color: #8d2a22; font-size: 13px; min-height: 18px; margin: 4px 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0 4px; }

.who-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13px; font-weight: 400;
}
.who-chip img, .who-chip .avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.who-menu { position: relative; }
.who-drop {
  position: absolute; right: 0; top: 44px; width: 220px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 40;
}
.who-drop.show { display: block; }
.who-drop button, .who-drop a {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: 10px; text-decoration: none; color: inherit; font-size: 14px; font-weight: 300;
}
.who-drop button:hover, .who-drop a:hover { background: var(--paper-2); }

.person-full {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px;
}
.person-full .photo {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--paper-2);
  display: grid; place-items: center; color: #fff; font-size: 22px; overflow: hidden;
}
.person-full .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero, .feat-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .site-nav .links { display: none; }
  .hero { padding: 36px 0 28px; }
}

.settings-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px;
}
.settings-grid .panel h3 { font-size: 22px; margin-bottom: 12px; }
.trial-banner {
  max-width: 980px; margin-bottom: 16px;
  background: var(--accent-soft); border: 1px solid #e8c2aa; border-radius: 16px; padding: 16px 18px;
}
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-pick button {
  text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff;
}
.plan-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.pay-box { background: var(--paper-2); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 8px; }
.lock-card { text-align: center; padding: 36px 16px; }
.person-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.shot-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.shot-grid img {
  width: 100%; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(40,32,24,0.08); display: block;
}
.shot-grid figcaption { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) {
  .settings-grid, .plan-pick { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid figure:first-child { grid-column: 1 / -1; }
}
.menu-chip {
  margin: 8px 0 14px; padding: 10px 14px; border-radius: 14px;
  background: var(--accent-soft); display: flex; gap: 12px; align-items: baseline;
}
.recipe-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff;
}
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notice-pic img, .menu-photo { width: 100%; border-radius: 12px; display: block; margin-top: 8px; }
.chat-log { max-height: 240px; overflow: auto; }
.chat-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.meals-layout {
  display: grid; grid-template-columns: minmax(260px,1fr) minmax(260px,1fr) minmax(300px,1.15fr); gap: 16px;
}
.bank-amt { font-size: 42px; font-weight: 300; letter-spacing: -0.03em; margin: 6px 0; }
.bank-card { margin-bottom: 16px; }
@media (max-width: 1100px) {
  .meals-layout { grid-template-columns: 1fr; }
}

.week-meals { display: grid; gap: 8px; }
.week-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; }
.week-row span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.book-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.add-recipe { margin: 12px 0; }
.add-recipe summary { cursor: pointer; color: var(--ink-2); }
.photo-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.cta.ghost.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.recipe-actions, .photo-row, .book-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recipe-actions { margin-top: 10px; }
.day-pick {
  height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper);
}
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.browse-panel { margin-top: 16px; }
.week-meals { display: grid; gap: 8px; margin-top: 8px; }
.week-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.week-row span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.week-row input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; background: #fff; }
label.cta { cursor: pointer; }
button.muted[data-act], .chore-row button.muted {
  height: 36px; min-width: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
}
.item-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-add .tiny, .item-add button { height: 42px; }
