/* DinnerPeace website. Colours and type follow the app (theme.ts): sage, cream, kraft, Nunito. */
:root {
  --sage-bg: #BFCCBA;
  --sage-soft: #E8EFE6;
  --sage-deep: #475B46;
  --sage-dark: #314030;
  --kraft-soft: #F7F2EA;
  --kraft-deep: #8B6A3E;
  --cream-bg: #F8F6F1;
  --card-white: #FFFDFB;
  --border: #E5DFD6;
  --text: #2B231D;
  --text-2: #5A5046;
  --text-muted: #82776E;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(43, 35, 29, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--cream-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; font-weight: 900; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 14px; color: var(--text-2); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 80px 0; }
.section-tint { background: var(--kraft-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { font-weight: 800; color: var(--kraft-deep); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 8px; }
.lead { font-size: 1.2rem; }
.note { font-size: 0.92rem; color: var(--text-muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-secondary { background: transparent; color: var(--sage-deep); border-color: var(--sage-deep); }
.btn-secondary:hover { background: var(--sage-soft); }
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 246, 241, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; font-size: 1.3rem; }
.brand img { border-radius: 10px; }
.brand-accent { color: var(--sage-deep); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 700; }
.nav-links a:not(.btn):hover { color: var(--sage-deep); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

/* Phone frames around real app screens */
.phone {
  margin: 0; padding: 10px; background: #2B231D; border-radius: 44px;
  box-shadow: var(--shadow); max-width: 300px; width: 100%;
}
.phone img { border-radius: 34px; width: 100%; }
.phone-sm { max-width: 240px; padding: 8px; border-radius: 36px; }
.phone-sm img { border-radius: 28px; }
.card-shot { margin: 0; max-width: 260px; width: 100%; box-shadow: var(--shadow); border-radius: 16px; overflow: hidden; background: #fff; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.phone-hero { justify-self: center; }

/* Features */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; margin: 0 auto 64px; max-width: 900px; }
.feature-flip { grid-template-columns: 1fr 300px; }
.feature-flip .phone { order: 2; }
.feature-text h3 { font-size: 1.6rem; }
.feature-text p { font-size: 1.08rem; }

.mini-grid, .chef-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 16px; }
.mini { background: var(--card-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.mini figure { margin: 0 auto 22px; }
.mini-text h3:not(:first-child) { margin-top: 24px; }

.together { max-width: 760px; margin: 56px auto 0; text-align: center; }

/* Pricing */
.billing { display: flex; justify-content: center; gap: 6px; margin: 0 auto 32px; background: var(--card-white); border: 1px solid var(--border); border-radius: 999px; padding: 5px; width: fit-content; }
.billing-btn { border: 0; background: transparent; padding: 9px 22px; border-radius: 999px; font: inherit; font-weight: 800; color: var(--text-2); cursor: pointer; }
.billing-btn.active { background: var(--sage-deep); color: #fff; }
.price-group { text-align: center; margin: 8px 0 18px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin-bottom: 40px; }
.price-card { background: var(--card-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.price-card.featured { border: 2px solid var(--sage-deep); }
.price-card h4 { font-size: 1.25rem; margin-bottom: 4px; }
.price { margin-bottom: 16px; }
.amount { font-size: 2.2rem; font-weight: 900; color: var(--text); }
.per { color: var(--text-muted); font-weight: 700; margin-left: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { padding: 6px 0 6px 28px; position: relative; color: var(--text-2); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-deep); font-weight: 900; }

/* Get the app */
.get-app { display: grid; grid-template-columns: 1fr 200px; gap: 48px; align-items: center; max-width: 880px; }
.get-app-icon { border-radius: 44px; box-shadow: var(--shadow); }

/* Questions */
details { background: var(--card-white); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
summary { font-weight: 800; cursor: pointer; font-size: 1.05rem; }
details p { margin: 12px 0 0; }

/* Footer */
.site-footer { background: #2B231D; color: #D9D2C8; padding: 40px 0; }
.footer { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: #fff; font-size: 1.15rem; }
.site-footer .brand-accent { color: var(--sage-bg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #D9D2C8; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-note { width: 100%; font-size: 0.85rem; color: #A39A8F; margin: 0; }

/* Smaller screens */
@media (max-width: 900px) {
  .mini-grid, .chef-grid { grid-template-columns: 1fr 1fr; }
  .mini-text { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px;
    background: var(--cream-bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 4px; }
  .nav-links .btn { margin-top: 8px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 24px; }
  .hero-grid, .feature, .feature-flip, .get-app { grid-template-columns: 1fr; gap: 28px; }
  .feature .phone, .feature-flip .phone { order: 0; justify-self: center; max-width: 260px; }
  .feature { margin-bottom: 48px; }
  .mini-grid, .chef-grid, .price-grid { grid-template-columns: 1fr; }
  .get-app-icon { width: 140px; }
}
