:root {
  --planner-bg: #eef2f7;
  --planner-surface: rgba(255, 255, 255, 0.72);
  --planner-border: rgba(15, 23, 42, 0.08);
  --planner-text: #162033;
  --planner-muted: #66748a;
  --planner-accent: #1f6fe5;
  --planner-accent-soft: rgba(31, 111, 229, 0.12);
  --planner-warm: #4f7cff;
  --app-header-offset: 8.75rem;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  color: var(--planner-text);
  background:
    radial-gradient(circle at top, rgba(79, 124, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.65), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, var(--planner-bg) 52%, #e7edf6 100%);
  min-height: 100vh;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(36, 55, 70, 0.25);
}

.site-header {
  background: rgba(248, 251, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0.35rem 1.4rem rgba(15, 23, 42, 0.06);
}

.navbar-brand {
  color: var(--planner-text);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.planner-utility-bar {
  gap: 1rem;
  min-height: 4.5rem;
}

.planner-utility-link {
  color: var(--planner-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.planner-utility-link:hover,
.planner-utility-link:focus {
  color: var(--planner-text);
}

.planner-utility-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-content-offset {
  padding-top: calc(var(--app-header-offset) + 0.5rem);
}

.app-shell {
  max-width: 1280px;
  padding-top: 0.25rem;
}

.planner-scroll-nav-wrap {
  background: rgba(248, 251, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
}

.planner-scroll-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.95rem 0 0.9rem;
}

.planner-scroll-link {
  color: var(--planner-muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.planner-scroll-link:hover,
.planner-scroll-link:focus,
.planner-scroll-link.is-active {
  color: var(--planner-text);
}

.planner-scroll-link.is-active {
  text-decoration: underline;
  text-decoration-color: var(--planner-warm);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45rem;
}

.planner-scroll-divider {
  color: rgba(102, 114, 124, 0.55);
}

.planner-hero {
  padding: 1rem 0 1.25rem;
}

.planner-hero-copy {
  max-width: 44rem;
}

.planner-typewriter {
  min-height: 1.2em;
}

.planner-typewriter.is-typing::after {
  animation: planner-caret 0.9s steps(1) infinite;
  color: var(--planner-warm);
  content: "|";
  margin-left: 0.08em;
}

@keyframes planner-caret {
  50% {
    opacity: 0;
  }
}

.planner-kicker,
.planner-step-label {
  color: var(--planner-warm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.planner-step {
  padding: 2.5rem 0 1rem;
  scroll-margin-top: 7rem;
}

.planner-anchor-section {
  scroll-margin-top: calc(var(--app-header-offset) + 1.5rem);
}

.planner-step-secondary {
  padding-bottom: 3rem;
}

.planner-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--planner-accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.8rem;
}

.planner-chip-muted {
  background: var(--planner-accent-soft);
  color: var(--planner-accent);
}

.planner-option-rail {
  display: grid;
  gap: 1rem;
  grid-auto-columns: minmax(16rem, 18.5rem);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.35rem 0.2rem 1rem;
  scroll-padding-inline: 0.2rem;
  scroll-snap-type: x proximity;
}

.planner-option-rail::-webkit-scrollbar {
  height: 10px;
}

.planner-option-rail::-webkit-scrollbar-thumb {
  background: rgba(102, 116, 138, 0.22);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

.planner-option-card {
  min-height: 13.5rem;
  padding: 0;
  scroll-snap-align: start;
}

.planner-option-card .card-body {
  padding: 1.2rem;
}

.planner-option-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.planner-option-meta {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-height: 1.3rem;
}

.planner-option-copy {
  color: var(--planner-muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.planner-option-count {
  color: var(--planner-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.planner-option-cta {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-radius: 999px;
  color: var(--planner-text);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
}

.category-card,
.meat-card,
.empty-state,
.planner-hero .bg-white,
.decision-panel,
.recipe-result-card,
.recipe-list-card {
  background: var(--planner-surface) !important;
  border: 1px solid var(--planner-border) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.06);
}

.category-card,
.meat-card {
  border-radius: 1.5rem;
  color: inherit;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, opacity 0.24s ease, filter 0.24s ease, background-color 0.24s ease;
}

.category-card:hover,
.meat-card:hover,
.category-card:focus-visible,
.meat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 1.1rem 2.4rem rgba(15, 23, 42, 0.12) !important;
}

.category-card.is-selected,
.meat-card.is-selected {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(231, 239, 255, 0.92)) !important;
  border-color: rgba(31, 111, 229, 0.34) !important;
  box-shadow: 0 1.25rem 2.6rem rgba(31, 111, 229, 0.18) !important;
  transform: translateY(-6px) scale(1.01);
}

.category-card.is-dimmed,
.meat-card.is-dimmed {
  filter: saturate(0.72);
  opacity: 0.48;
}

.meat-card,
.empty-state {
  border-radius: 1.5rem;
}

.decision-panel,
.recipe-result-card,
.recipe-list-card {
  border-radius: 1.5rem;
}

.recipe-result-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(220, 231, 239, 0.45)) !important;
}

.recipe-meta {
  color: var(--planner-muted);
  line-height: 1.7;
}

.recipe-html > :last-child {
  margin-bottom: 0;
}

.recipe-html ul,
.recipe-html ol {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.recipe-pagination {
  border-top: 1px solid rgba(29, 35, 41, 0.08);
  padding-top: 1.5rem;
}

.consent-banner {
  bottom: 1.25rem;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 1100;
}

.consent-banner-inner {
  align-items: flex-end;
  background: rgba(248, 251, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.14);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.25rem;
}

.consent-copy {
  max-width: 48rem;
}

.consent-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.footer {
  margin-top: 1rem;
  padding: 2rem 0 2.5rem;
}

.footer a {
  color: inherit;
}

@media (max-width: 767.98px) {
  .planner-option-rail {
    grid-auto-columns: minmax(14.5rem, 82vw);
  }

  .planner-option-card {
    min-height: 12.75rem;
  }

  .planner-scroll-nav {
    gap: 0.6rem;
    padding: 0.85rem 0 0.8rem;
  }

  .planner-scroll-link {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .planner-utility-bar {
    align-items: flex-start !important;
    flex-direction: column;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .planner-utility-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .app-content-offset {
    padding-top: calc(var(--app-header-offset) + 0.25rem);
  }

  .planner-hero {
    padding-top: 0.5rem;
  }

  .consent-banner-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-actions {
    justify-content: stretch;
  }
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*
.planner-utility-link.privacy-link.active {
  color: grey;
  background-color: lightgray;
}
  */

  .privacy-link {
    background-color: transparent;
  }
