.marketing-shell { min-height: 100vh; display: flex; flex-direction: column; }
.marketing-shell main { flex: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 234, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { display: flex; align-items: center; gap: 12px 16px; min-height: 60px; padding-block: 6px; }

.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 800; font-size: 17px; color: var(--green-700); }
.brand-light { color: #B9C4A8; }

.site-nav { display: none; gap: 14px; margin-inline: auto; }
.site-nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-600); padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink-900); }
.site-nav a.active { color: var(--green-700); border-bottom-color: var(--green-700); }
@media (min-width: 1280px) { .site-nav { display: flex; } }

.site-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.site-login { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.site-logout-form { display: contents; }
.site-logout-btn { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-900); background: none; border: none; padding: 0; cursor: pointer; }
.site-logout-btn:hover { color: var(--green-700); }

.site-footer { background: var(--ink-900); color: rgba(247, 243, 234, .75); }

.site-footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 36px;
}
@media (max-width: 720px) {
  .site-footer-columns { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 40px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand p { margin: 10px 0 0; color: #9aa08b; font-size: 13.5px; }

.footer-col h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9aa08b;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #c9cdba; font-size: 13.5px; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.footer-col .footer-link-minor a { font-size: 12px; font-weight: 400; color: var(--ink-on-dark); }
.footer-col .footer-social { flex-direction: row; gap: 10px; margin-top: 16px; }
.footer-col .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  transition: color .15s, border-color .15s, background-color .15s;
}
.footer-col .footer-social a:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.footer-col .footer-social a:focus-visible { outline-color: #fff; }

.site-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px 28px; }
.footer-disclaimer { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.6; color: var(--ink-on-dark); }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.footer-copyright { margin: 0; font-size: 12.5px; color: var(--ink-on-dark); }
.footer-copyright a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.lang-switcher { position: relative; }
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: #E9E5D6;
  font-size: 14px;
  font-weight: 600;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}
.lang-switcher[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.lang-switcher summary:hover { background: rgba(255, 255, 255, .14); }

.lang-switcher ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  z-index: 30;
}
.lang-switcher li { margin: 0; }
.lang-switcher a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}
.lang-switcher a:hover { background: var(--surface-1); }
.lang-switcher a.is-current { color: var(--green-700); }
.lang-switcher a.is-current::after { content: "✓"; font-weight: 700; }

.site-actions .lang-switcher summary {
  min-height: 44px;
  padding: 0 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-900);
}
.site-actions .lang-switcher summary:hover { background: var(--surface-1); }
.site-actions .lang-switcher ul { top: calc(100% + 8px); bottom: auto; right: 0; }

.hero { padding: 64px 18px; text-align: center; max-width: 720px; margin-inline: auto; }
.hero p { font-size: 17px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  display: none;
  width: 216px;
  flex: none;
  background: var(--green-900);
  color: #c9cdba;
  padding: 20px 14px;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 900px) { .app-sidebar { display: flex; } }
.app-new-recipe-form { display: contents; }
.app-new-recipe { background: var(--surface-0); color: var(--green-900); font-weight: 700; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav a { color: #c9cdba; font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 10px; }
.app-nav a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.app-user { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.app-user a { color: #c9cdba; font-size: 13.5px; font-weight: 600; }
.app-main { flex: 1; min-width: 0; padding: 24px 18px 90px; }
@media (min-width: 1024px) { .app-main { padding: 32px; } }

.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  min-height: 58px;
  z-index: 20;
}
@media (min-width: 900px) { .app-bottom-nav { display: none; } }
.app-bottom-nav a { font-size: 11px; font-weight: 600; color: var(--ink-600); min-height: 44px; display: inline-flex; align-items: center; }
.app-bottom-nav a.active { color: var(--green-700); }
.app-fab-form { display: contents; }
.app-fab {
  width: 52px;
  height: 52px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff !important;
  font-size: 26px;
  font-family: inherit;
  cursor: pointer;
  margin-top: -26px;
  box-shadow: 0 8px 20px rgba(31, 74, 44, .35);
}

.site-actions-desktop { display: contents; }
.site-menu { display: none; }
.site-menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-900);
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu-icon { position: relative; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: background .15s; }
.site-menu-icon::before, .site-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s;
}
.site-menu-icon::before { top: -6px; }
.site-menu-icon::after { top: 6px; }
.site-menu[open] .site-menu-icon { background: transparent; }
.site-menu[open] .site-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.site-menu[open] .site-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  padding: 4px 18px 20px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-float);
}
.site-menu-nav { display: flex; flex-direction: column; }
.site-menu-nav a, .site-menu-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 0 4px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
}
.site-menu-nav a.active { color: var(--green-700); }

.lang-list { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}
.lang-list a.is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; }

@media (max-width: 1279px) {
  .site-actions { gap: 10px; }
  .site-actions-desktop { display: none; }
  .site-menu { display: block; }
  .site-cta { min-height: 40px; padding: 8px 14px; font-size: 13.5px; }
}

.app-mobile-header { display: none; }
@media (max-width: 899px) {
  .app-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 6px 18px;
    background: rgba(247, 243, 234, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
  }
  .app-mobile-header .site-menu { display: block; }
  .app-main { padding-top: 72px; }
  .app-menu-new-form { display: block; padding: 12px 0 4px; }
  .app-menu-new { width: 100%; }
}

.consent-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  background: var(--surface-2);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -8px 24px rgba(35, 40, 31, .1);
  padding-bottom: env(safe-area-inset-bottom);
}
.consent-bar-form { max-width: 1160px; margin-inline: auto; padding: 14px 18px; display: grid; gap: 12px; }
.consent-bar-text { margin: 0; max-width: 64ch; font-size: 13.5px; line-height: 1.5; color: var(--ink-900); }
.consent-bar-text a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-bar-actions .btn { flex: 1 1 130px; white-space: nowrap; }
.has-consent-bar .site-footer { padding-bottom: 170px; }
main.has-consent-bar { padding-bottom: 170px; }
@media (min-width: 720px) {
  .consent-bar {
    inset-inline: auto 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
  }
  .consent-bar-form { padding: 18px 20px; gap: 14px; }
  .has-consent-bar .site-footer { padding-bottom: 200px; }
  main.has-consent-bar { padding-bottom: 200px; }
}

.site-header-inner > .brand { flex-shrink: 0; }
.brand-name { white-space: nowrap; }
.site-nav a, .site-login, .site-logout-btn, .site-cta { white-space: nowrap; }
.site-actions, .site-cta, .site-menu { flex-shrink: 0; }
@media (max-width: 419px) {
  .site-header-inner { gap: 10px; }
  .site-actions { gap: 8px; }
  .site-cta { padding: 8px 12px; font-size: 13px; }
  .site-header-inner .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
}
@media (min-width: 1280px) {
  html:is([lang="fr"], [lang="es"], [lang="hu"]) .site-nav { display: none; }
  html:is([lang="fr"], [lang="es"], [lang="hu"]) .site-menu { display: block; }
  html:is([lang="fr"], [lang="es"], [lang="hu"]) .site-menu-account,
  html:is([lang="fr"], [lang="es"], [lang="hu"]) .site-menu .lang-list { display: none; }
}

.lang-switcher-icon { flex: none; }
.lang-switcher-code { display: none; letter-spacing: .04em; }
.site-actions .lang-switcher-code { display: inline; }
.site-actions .lang-switcher-name { display: none; }

.cookie-preferences { scroll-margin-top: 84px; margin: 20px 0 32px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-2); }
.cookie-preferences h3 { margin: 0 0 6px; font-size: 16px; }
.cookie-preferences-status { margin: 0 0 14px; font-size: 14px; color: var(--ink-600); }
.cookie-preferences .consent-bar-actions { max-width: 420px; }
