:root {
  color-scheme: light;
  --ink: #27312f;
  --muted: #68736e;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #eadfce;
  --tomato: #f06a3d;
  --tomato-dark: #c94825;
  --herb: #2f8f76;
  --berry: #9b315d;
  --sun: #f6b343;
  --shadow: 0 12px 32px rgba(39, 49, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  color: var(--tomato-dark);
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.header-cta,
.button,
.app-search button,
.premium-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.header-cta,
.button.primary,
.app-search button {
  background: var(--tomato);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: clamp(60px, 10vw, 110px) clamp(18px, 7vw, 90px);
  background-image: url("https://images.unsplash.com/photo-1495195134817-aeb325a55b65?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 21, 16, 0.48);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
  color: #fff;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text,
.lead {
  max-width: 720px;
  color: inherit;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd195;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.page-section {
  min-height: 68vh;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 8vw, 62px);
}

h2 {
  font-size: clamp(26px, 5vw, 42px);
}

h3 {
  font-size: 22px;
}

p {
  line-height: 1.58;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6ead8;
  color: #6f4a31;
  font-size: 12px;
  font-weight: 800;
}

.featured-recipe,
.recipe-hero,
.recipe-body,
.split-band,
.premium-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.featured-recipe img,
.recipe-hero img {
  width: 100%;
  height: min(52vw, 430px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split-band,
.premium-band {
  width: 100%;
  max-width: none;
  padding: 56px max(16px, calc((100vw - 1120px) / 2));
  background: #f3f8f1;
}

.premium-band {
  background: #fff0df;
}

.benefit-grid,
.recipe-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit,
.recipe-card,
.pricing-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(39, 49, 47, 0.07);
}

.benefit {
  padding: 18px;
}

.benefit span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.recipe-card {
  display: grid;
  grid-template-rows: 180px 1fr;
}

.recipe-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.recipe-card div,
.pricing-grid article {
  padding: 16px;
}

.recipe-card h2,
.recipe-card h3 {
  font-size: 19px;
}

.recipe-card p {
  color: var(--muted);
}

.recipe-card a {
  color: var(--tomato-dark);
  font-weight: 800;
}

.category-grid,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-grid a,
.chips a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.faq details {
  margin: 10px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recipe-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.meta-row span {
  padding: 8px 12px;
  background: #edf7f3;
  color: #245f51;
  border-radius: 8px;
  font-weight: 800;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 8px 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps-list li {
  margin-bottom: 12px;
  padding-left: 6px;
  line-height: 1.55;
}

.payment-form {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  margin-top: 28px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.payment-form input,
.payment-form select,
.app-search input,
.filter-bar select,
.filter-bar input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.warning {
  padding: 12px;
  border-radius: 8px;
  background: #fff1d7;
  color: #6f421a;
  border: 1px solid #f2cc8f;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 4vw, 48px);
  background: #25312f;
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.webapp-shell {
  width: min(720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px 92px;
  background: var(--paper);
}

.webapp-shell .site-header,
.webapp-shell + .site-footer {
  display: none;
}

body:has(.webapp-shell) .site-header,
body:has(.webapp-shell) .site-footer {
  display: none;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.app-topbar h1 {
  font-size: 28px;
}

.premium-link {
  background: #25312f;
  color: #fff;
}

.app-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: none;
}

.quick-tabs button,
.bottom-nav button,
.app-action,
.rating-buttons button,
.step-controls button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.quick-tabs button {
  flex: 0 0 auto;
  padding: 9px 12px;
}

.quick-tabs button.active,
.bottom-nav button.active {
  background: var(--herb);
  color: #fff;
  border-color: var(--herb);
}

.app-view {
  display: grid;
  gap: 14px;
}

.app-panel {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-panel h2 {
  font-size: 23px;
}

.app-recipe-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-height: 132px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-recipe-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
}

.app-recipe-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.card-actions,
.detail-actions,
.step-controls,
.rating-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.app-action {
  padding: 9px 12px;
}

.app-action.primary {
  background: var(--tomato);
  color: #fff;
  border-color: var(--tomato);
}

.app-action.ghost {
  background: #f9f1e5;
}

.rating-buttons button {
  width: 44px;
  font-size: 20px;
}

.rating-buttons button.active {
  background: var(--sun);
  border-color: var(--sun);
  color: #3f2b08;
}

.pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.ingredient-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ingredient-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.step-screen {
  min-height: 58vh;
  display: grid;
  align-content: center;
  gap: 16px;
}

.step-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eadfce;
}

.step-progress span {
  display: block;
  height: 100%;
  background: var(--herb);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(720px, 100%);
  padding: 8px;
  transform: translateX(-50%);
  background: rgba(255, 250, 242, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  min-width: 0;
  min-height: 48px;
  padding: 7px 4px;
  font-size: 11px;
}

.locked-card {
  border-color: #e8c2b1;
  background: #fff8f3;
}

.lock-text {
  margin: 6px 0;
  color: var(--tomato-dark);
  font-weight: 800;
}

.locked-detail .warning {
  margin-top: 14px;
}

.pricing-mini {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.pricing-mini strong {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.holiday-card h3 {
  font-size: 20px;
}

.empty-state {
  padding: 24px;
  text-align: center;
  background: #f3f8f1;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .featured-recipe,
  .recipe-hero,
  .recipe-body,
  .split-band,
  .premium-band,
  .benefit-grid,
  .recipe-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .featured-recipe img,
  .recipe-hero img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 78vh;
    padding: 48px 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .app-recipe-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .app-recipe-card img {
    width: 96px;
    height: 106px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}
