:root {
  --bg: #fff7ee;
  --bg-deep: #fde9d6;
  --surface: #ffffff;
  --ink: #2e1f16;
  --muted: #8a6f5c;
  --tomato: #e2543b;
  --tomato-dark: #c13a23;
  --mango: #f4a83d;
  --herb: #4c9a6a;
  --berry: #b5538a;
  --cream: #fff1e2;
  --line: #f0dcc6;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(194, 92, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, #ffe8c9 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 20%, #ffd9c4 0%, transparent 55%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Site bar ---------- */

.site-bar {
  display: flex;
  justify-content: center;
  padding: 18px 20px 0;
}

.site-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--tomato-dark);
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 6px 16px rgba(194, 92, 44, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-bar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(194, 92, 44, 0.16);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 48px 24px 40px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-blob--a {
  width: 340px;
  height: 340px;
  background: var(--mango);
  top: -120px;
  left: -80px;
}

.hero-blob--b {
  width: 300px;
  height: 300px;
  background: var(--tomato);
  top: -60px;
  right: -60px;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tomato-dark);
  box-shadow: 0 6px 18px rgba(194, 92, 44, 0.12);
}

.hero-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--tomato) 0%, var(--mango) 55%, var(--herb) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 17px;
  color: var(--muted);
}

.hero-collage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px auto 0;
  max-width: 560px;
}

.chip {
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(194, 92, 44, 0.12);
  animation: float 5s ease-in-out infinite;
}

.chip--sm { width: 46px; height: 46px; font-size: 23px; }
.chip--md { width: 58px; height: 58px; font-size: 30px; }
.chip--lg { width: 68px; height: 68px; font-size: 36px; }

.chip:nth-child(2n) { animation-delay: 1.2s; }
.chip:nth-child(3n) { animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ---------- Week tabs ---------- */

.weeks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 24px;
}

.week-tab {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.week-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(194, 92, 44, 0.14);
}

.week-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-dark));
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(226, 84, 59, 0.35);
}

/* ---------- Board ---------- */

.board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.board-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf9, var(--cream));
}

.nav-arrow {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--tomato-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-arrow:hover {
  border-color: var(--tomato);
  transform: translateY(-2px);
}

.board-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  white-space: nowrap;
}

.owner-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--herb);
  border-radius: 999px;
  padding: 4px 10px;
}

.board-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--herb);
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.save-status.is-visible {
  opacity: 1;
}

.btn-ghost {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: var(--tomato-dark);
  border-color: var(--tomato);
}

.stats {
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fffdf9;
  border-bottom: 1px solid var(--line);
}

/* ---------- Meal table (calendar grid) ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.meal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
}

.meal-table th,
.meal-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.meal-table thead th:last-child,
.meal-table tbody td:last-child {
  border-right: none;
}

.meal-table tbody tr:last-child th,
.meal-table tbody tr:last-child td {
  border-bottom: none;
}

.meal-table th {
  font-weight: 600;
}

/* Corner + header */
.meal-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 14px 8px;
}

.meal-table thead th.corner {
  left: 0;
  z-index: 5;
  text-align: left;
  padding-left: 22px;
  width: 190px;
}

.meal-table thead th.is-today {
  color: var(--tomato-dark);
}

.day-label {
  display: block;
  text-align: center;
}

.today-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--mango);
  border-radius: 999px;
  padding: 3px 10px;
}

.combo-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--herb);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

/* Row label column (sticky on scroll) */
.meal-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  text-align: left;
  padding: 16px 14px 16px 22px;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  width: 190px;
}

.row-icon {
  margin-right: 8px;
  font-size: 16px;
}

.meal-table tr:hover th[scope="row"] {
  background: #fffaf3;
}

/* Tint the row label by category */
.meal-row--lun th[scope="row"] { box-shadow: inset 4px 0 0 var(--herb); }
.meal-row--din th[scope="row"] { box-shadow: inset 4px 0 0 var(--tomato); }
.meal-row--snk th[scope="row"] { box-shadow: inset 4px 0 0 var(--berry); }

/* Day cells */
.meal-table td {
  padding: 12px;
  background: var(--surface);
  transition: background 0.15s ease;
}

.meal-table tr:hover td {
  background: #fffaf3;
}

.meal-table td.is-today {
  background: #fff3e4;
}

.meal-table tr:hover td.is-today {
  background: #ffeed9;
}

.cell {
  min-height: 42px;
  cursor: text;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px dashed transparent;
  transition: all 0.15s ease;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.cell:hover {
  background: var(--cream);
  border-color: var(--mango);
}

.cell:focus {
  background: #fffaf3;
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(226, 84, 59, 0.14);
}

.cell.is-empty::before {
  content: "tap to add";
  color: var(--muted);
  opacity: 0.45;
  font-style: italic;
  font-weight: 400;
}

.table-hint {
  margin: 0;
  padding: 12px 22px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Daily deal (The Day-Duo) ---------- */

.deal {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(194, 92, 44, 0.08);
  padding: 22px 24px;
}

.deal-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.deal-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}

.deal-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.deal-spotlight {
  margin: 0 0 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff7a18 0%, var(--tomato) 55%, var(--tomato-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(226, 84, 59, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.deal-spot-copy {
  flex: 1 1 340px;
}

.deal-spot-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.deal-spot-title {
  margin: 4px 0 2px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
}

.deal-spot-dishes {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.97;
}

.deal-spot-meta {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.92;
}

.deal-spot-meta strong {
  font-size: 15px;
}

.deal-spot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.deal-spot-empty {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.97;
}

.deal-order-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--tomato-dark);
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.deal-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.deal-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fffdf9;
}

.deal-band-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.deal-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tomato-dark);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
}

.deal-code-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--tomato);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.deal-code-btn:hover {
  transform: scale(1.04);
}

/* ---------- Meal ideas palette ---------- */

.palette {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(194, 92, 44, 0.08);
  padding: 22px 24px;
}

.palette-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.palette-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
}

.palette-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.palette-search {
  margin-bottom: 14px;
}

.palette-search input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.palette-search input:focus {
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(226, 84, 59, 0.12);
}

.palette-search input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.palette-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idea-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.idea-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(194, 92, 44, 0.16);
}

.idea-chip--lun:hover { border-color: var(--herb); }
.idea-chip--din:hover { border-color: var(--tomato); }
.idea-chip--snk:hover { border-color: var(--berry); }

.palette-empty {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Notes ---------- */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(194, 92, 44, 0.08);
}

.note-title {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
}

.note-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 34px 20px 60px;
  color: var(--muted);
  font-size: 14px;
}

.footer-mark {
  margin-right: 6px;
}

/* ---------- Sticky order bar (mobile) ---------- */

.sticky-order {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff7a18 0%, var(--tomato) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 20px;
  box-shadow: 0 14px 34px rgba(226, 84, 59, 0.42);
  animation: slideUp 0.3s ease both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .hero { padding: 42px 18px 34px; }
  .hero-title { font-size: 44px; }
  .board-head { flex-wrap: wrap; row-gap: 10px; }
  .board-actions { width: 100%; justify-content: flex-end; }
  .board-title { font-size: 22px; }
  .meal-table { min-width: 860px; }
  .meal-table thead th.corner,
  .meal-table th[scope="row"] { width: 150px; padding-left: 16px; }
  .palette { padding: 18px; }
  .deal { padding: 18px; }
  .deal-spotlight { padding: 16px 18px; }
  .sticky-order.is-visible { display: flex; }
}

@media (max-width: 420px) {
  .weeks { gap: 6px; }
  .week-tab { padding: 9px 14px; font-size: 13px; }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-bar,
  .hero,
  .weeks,
  .deal,
  .order-cta,
  .palette,
  .notes,
  .footer,
  .board-actions,
  .nav-arrow,
  .stats,
  .table-hint,
  .sticky-order {
    display: none !important;
  }
  .wrap {
    max-width: 100%;
    padding: 0;
  }
  .board {
    box-shadow: none;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  .board-head {
    background: none;
    border: none;
    padding: 0 0 10px;
  }
  .board-title {
    font-size: 22px;
    color: #000;
  }
  .table-wrap {
    overflow: visible;
  }
  .meal-table {
    min-width: 0;
    width: 100%;
    font-size: 11px;
  }
  .meal-table thead th,
  .meal-table th[scope="row"] {
    position: static;
    background: #f3f3f3 !important;
    color: #000;
  }
  .meal-table th[scope="row"] {
    box-shadow: none !important;
  }
  .meal-table td,
  .meal-table td.is-today {
    background: #fff !important;
  }
  .cell:focus,
  .cell:hover {
    border-color: transparent;
    box-shadow: none;
    background: none;
  }
}

/* ---------- Order CTA ---------- */

.order-cta {
  margin-top: 26px;
  background: linear-gradient(135deg, #ff7a18 0%, #e2543b 55%, #c13a23 100%);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(226, 84, 59, 0.28);
  padding: 30px 34px;
  color: #fff;
}

.order-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.order-cta-copy {
  flex: 1 1 300px;
}

.order-cta-title {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
}

.order-cta-sub {
  margin: 0;
  font-size: 14.5px;
  opacity: 0.92;
}

.order-cta-trust {
  margin: 10px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-cta-trust span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 12px;
}

.order-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--tomato-dark);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.order-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

@media (max-width: 720px) {
  .order-cta {
    padding: 24px 22px;
  }
  .order-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
