/* Stiler kun for de offentlige sidene (forside og personvern).
   Fargevariablene arves fra styles.css. */

body.landing {
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-glow) 0%, var(--bg-0) 60%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.landing-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.landing-nav a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: var(--on-accent) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
}

main { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 60px 0 48px; text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: var(--on-accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 34px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -12px var(--gold-glow);
}

.landing-section { padding: 44px 0; border-top: 1px solid var(--border); }
.landing-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.landing-section > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 10px;
}
.feature p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }

.advice { margin-bottom: 30px; }
.advice h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 10px;
}
.advice p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 8px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 32px 0 10px;
}
.prose p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; max-width: 68ch; }
.prose a { color: var(--gold); }

.landing-footer {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 26px 24px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
}
.landing-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.landing-footer a:hover { color: var(--gold); }
.footer-note { color: var(--muted); opacity: 0.65; margin-top: 8px; }

.landing-ad { margin: 8px 0 0; min-height: 0; }

@media (max-width: 560px) {
  .landing-nav { padding: 16px; }
  .landing-nav nav { gap: 14px; font-size: 13px; }
  main { padding: 0 16px; }
  .hero { padding: 40px 0 34px; }
}

/* ---------- Oppskrifter ---------- */
.recipe-hero { padding-bottom: 30px; }

.recipe-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-accent);
}

.recipe-disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 24px;
}

.recipe-list { display: flex; flex-direction: column; gap: 20px; }
.recipe {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.recipe-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.recipe-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}
.recipe-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-edge);
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.recipe-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 68ch;
}
.recipe-nutrition-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin: -8px 0 8px;
}
.recipe-nutrition {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.recipe-nutrition li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.recipe-cols {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 26px;
}
.recipe-cols h3 {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 0 0 10px;
}
.recipe-cols ul, .recipe-cols ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.75;
}
.recipe-cols ul { list-style: none; padding-left: 0; }
.recipe-cols ul li {
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}
.recipe-cols ul li:last-child { border-bottom: none; }
.recipe-cols ol li { padding-left: 4px; margin-bottom: 6px; }
.recipe-cols ol li::marker { color: var(--gold); font-weight: 700; }

.recipe-swap {
  margin: 20px 0 0;
  padding: 13px 16px;
  background: var(--bg-1);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.recipe-swap strong { color: var(--text); }

@media (max-width: 640px) {
  .recipe { padding: 20px; }
  .recipe-cols { grid-template-columns: 1fr; gap: 20px; }
}

/* Legg-i-handlelista-knapp */
.add-to-list-btn {
  margin-top: 14px;
  width: 100%;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-edge);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.add-to-list-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--on-accent);
}
.add-to-list-btn:disabled { opacity: 0.65; cursor: default; }

.recipe-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-hi);
  border: 1px solid var(--gold-edge);
  color: var(--text);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 50;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.recipe-toast.error { border-color: var(--red); color: var(--red); }
.recipe-toast.hidden { display: none; }
