/* myDinnerPlan — modern brand layer (guest, auth, marketing) */

:root {
  --primary: #d96c3d;
  --secondary: #d4e8d4;
  --tertiary: #5c4033;
  --light: #fffaf5;
  --dark: #3d2e1f;
  --action: #f5c842;
  --accent: #5a8f6e;
  --text-black: #3d2e1f;
  --text-theme-2: #5a8f6e;
  --text-theme-3: #6b5c4f;
  --gray-light: #ffffff;
  --brand-surface: #ffffff;
  --brand-border: #ecd9c8;
  --brand-shadow: 0 8px 32px rgba(92, 64, 51, 0.1);
  --brand-radius: 16px;
  --brand-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  /* Bootstrap 5 link tokens — replace default blue sitewide */
  --bs-link-color: #b34f28;
  --bs-link-color-rgb: 179, 79, 40;
  --bs-link-hover-color: #8f3c1c;
  --bs-link-hover-color-rgb: 143, 60, 28;
  --food-tomato: #e8734a;
  --food-sage: #5a8f6e;
  --food-cream: #fff8f0;
  --food-honey: #f0a54a;
  --header-height: 72px;
  --header-content-gap: 1.15rem;
  --header-padding-x: clamp(0.75rem, 2.5vw, 1.5rem);
  --header-logo-height: 48px;
  --header-logo-min-width: 175px;
  --header-logo-max-width: 250px;
  /* Type scale — rem only; scales with user browser/OS font size */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.25rem, 1.1rem + 0.35vw, 1.5rem);
  --text-3xl: clamp(1.35rem, 1.15rem + 0.5vw, 1.65rem);
  --leading-tight: 1.2;
  --leading-normal: 1.45;
  --leading-snug: 1.35;
  /* Form control scale — shared across inputs, selects, buttons */
  --form-control-min-h: 2rem;
  --form-control-py: 0.45rem;
  --form-control-px: 0.65rem;
  --form-control-font: var(--text-sm);
  --form-control-radius: 8px;
  --form-label-font: var(--text-xs);
  --form-label-mb: 0.25rem;
  --form-btn-min-h: 2rem;
  --form-btn-py: 0.35rem;
  --form-btn-px: 0.75rem;
  --form-btn-font: var(--text-sm);
  /* Compact inline steppers (guest count, servings, qty) */
  --stepper-btn-size: 1.5rem;
  --stepper-pad: 0.1rem;
  --stepper-gap: 0.2rem;
  --stepper-font: 0.8125rem;
  --stepper-icon-font: 0.625rem;
  /* Authenticated page content width */
  --page-max-width: 1200px;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  font-family: var(--brand-font);
  background: var(--light);
  color: var(--text-black);
}

.bodyContainer {
  background: #fffaf5 !important;
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + var(--header-content-gap)) !important;
  width: 100%;
}

.bodyContainer:has(.landing-page) {
  padding-bottom: 0;
}

.myhead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  max-height: var(--header-height) !important;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: visible;
  z-index: 1000;
}

.navbar-modern {
  background: transparent !important;
  padding: 0.35rem 0 !important;
  min-height: 0 !important;
  height: 100%;
  width: 100%;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.myhead .navbar {
  --bs-navbar-padding-y: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar-modern > .container,
.navbar-modern > .container-fluid {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: calc(var(--header-padding-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--header-padding-x) + env(safe-area-inset-right, 0px));
  min-height: 0;
  align-items: center;
}

.navbar-modern .nav-link,
.navbar-modern .dropdown-item,
.navbar-modern .navbar-toggler {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.navbar-modern .nav-link {
  color: var(--text-theme-3) !important;
  font-weight: 500;
  font-size: 0.84rem;
  padding: 0.4rem 0.65rem !important;
  text-transform: none;
  letter-spacing: 0;
}

.navbar-modern .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(217, 108, 61, 0.1) !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
  -webkit-tap-highlight-color: transparent;
}

.navbar-brand:focus {
  outline: none;
  box-shadow: none;
}

.navbar-brand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Override legacy absolute positioning from layout.css / style.min.css */
.navbar-brand img,
.navbar-brand picture,
.navbar-brand .brand-logo-wrap,
.navbar-brand .brand-logo {
  position: static !important;
  left: auto !important;
  top: auto !important;
  display: block;
  max-width: none !important;
  width: auto !important;
  height: var(--header-logo-height, 48px) !important;
  max-height: var(--header-logo-height, 48px);
  transform: none !important;
  z-index: auto !important;
}

.navbar-brand .brand-logo {
  width: auto !important;
  min-width: var(--header-logo-min-width, 175px);
  max-width: min(var(--header-logo-max-width, 250px), 42vw);
  object-fit: contain;
  object-position: left center;
  user-select: none;
  -webkit-user-drag: none;
}

.navbar-brand:hover .brand-logo {
  opacity: 0.92;
}

.nav-active::after {
  background: var(--primary) !important;
}

.nav-signup-btn {
  background: #b34f28 !important;
  color: #fff !important;
  border-radius: 10px !important;
}

.nav-signup-btn:hover,
.nav-signup-btn:focus {
  background: #9a3f1c !important;
  color: #fff !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d96c3d' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-modern .navbar-collapse.collapsing {
  transition-duration: 80ms;
}

/* Main navigation */
.navbar-modern .nav-main-menu {
  align-items: center;
  gap: 0.05rem;
}

.navbar-modern .nav-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.navbar-modern .dropdown-menu {
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
  padding: 0.4rem;
  min-width: 13rem;
}

.navbar-modern .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}

.navbar-modern .dropdown-item.nav-dropdown-current,
.navbar-modern .dropdown-item.nav-dropdown-current:hover {
  background: #fff5eb !important;
  color: #c45a2e !important;
  font-weight: 600;
}

.navbar-modern .dropdown-item.nav-dropdown-current em {
  color: #d96c3d !important;
}

.navbar-modern .dropdown-divider {
  margin: 0.35rem 0;
  border-color: var(--brand-border);
}

.navbar-modern .nav-logout-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-modern .nav-logout-btn:hover {
  color: #dc2626;
}

.nav-premium-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.3rem;
  font-size: 0.58rem;
  color: #d97706;
  opacity: 0.9;
  vertical-align: middle;
  line-height: 1;
}

.nav-dropdown-item-premium {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-dropdown-item-premium .nav-premium-hint {
  margin-left: 0;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-dropdown-item-premium:hover .nav-premium-hint,
.navbar-modern .nav-link:hover .nav-premium-hint {
  opacity: 1;
}

.nav-admin-menu {
  min-width: 15rem;
  max-height: min(75vh, 36rem);
  overflow-y: auto;
}

.navbar-modern .nav-admin-menu .dropdown-item {
  color: var(--text-black, #3d2e1f);
}

.navbar-modern .nav-admin-menu .dropdown-item:hover {
  background: #fff5eb !important;
  color: #d96c3d !important;
}

.navbar-modern .nav-admin-menu .dropdown-item.nav-admin-current,
.navbar-modern .nav-admin-menu .dropdown-item.nav-admin-current:hover {
  background: #d96c3d !important;
  color: #fff !important;
}

.navbar-modern .nav-admin-menu .dropdown-item.nav-admin-current em {
  color: #fff !important;
}

.nav-admin-menu .dropdown-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted, #94a3b8);
  padding-top: 0.45rem;
  padding-bottom: 0.2rem;
}

.nav-admin-menu .nav-admin-subhead {
  padding-top: 0.55rem;
  color: #b7a99a;
  font-size: 0.64rem;
}

.nav-admin-section-desc {
  font-size: 0.7rem;
  line-height: 1.35;
  color: #6b5c4f;
  max-width: 16rem;
}

.nav-admin-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav-admin-menu-item-label {
  min-width: 0;
}

.nav-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.nav-admin-badge-sm {
  min-width: 1rem;
  height: 1rem;
  margin-left: 0;
  flex-shrink: 0;
}

.navbar-modern .nav-link .nav-admin-badge {
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .myhead .navbar-modern {
    position: relative;
  }

  .myhead .navbar-modern .navbar-collapse.show {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 12px 32px rgba(92, 64, 51, 0.12);
    padding: 0.75rem calc(var(--header-padding-x) + env(safe-area-inset-right, 0px)) 1rem calc(var(--header-padding-x) + env(safe-area-inset-left, 0px));
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  .navbar-modern .nav-main-menu {
    width: 100%;
    align-items: stretch;
    margin: 0;
  }

  .navbar-modern .navbar-nav {
    width: 100%;
    align-items: stretch !important;
    text-align: left !important;
  }

  .navbar-modern .nav-item,
  .navbar-modern .nav-item.dropdown {
    width: 100%;
  }

  .navbar-modern .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-size: var(--text-sm) !important;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0;
    line-height: 1.35;
  }

  .navbar-modern .nav-link.dropdown-toggle::after {
    margin-left: auto;
  }

  .navbar-modern .dropdown-menu {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin: 0.1rem 0 0.4rem;
    padding: 0.25rem;
    box-shadow: none;
    border: 1px solid var(--brand-border);
    background: var(--food-cream);
  }

  .navbar-modern .dropdown-item {
    padding: 0.45rem 0.7rem;
    font-size: var(--text-sm) !important;
    font-weight: 500;
    text-transform: none !important;
    line-height: 1.35;
    border-radius: 6px;
  }

  .navbar-modern .dropdown-header {
    padding: 0.35rem 0.7rem 0.2rem;
    font-size: var(--text-xs) !important;
    font-weight: 600;
    text-transform: none !important;
  }

  .navbar-modern .nav-logout-btn {
    font-size: var(--text-sm) !important;
    font-weight: 500;
    text-transform: none !important;
  }

  .navbar-modern .nav-active::after {
    display: none;
  }
}

/* Footer */
.footer-modern {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--brand-border);
  padding: 1.75rem 0 1.25rem;
}

.footer-inner {
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 1.25rem;
}

.footer-col__title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-theme-3);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.1rem 0.15rem;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--primary);
  background: rgba(217, 108, 61, 0.08);
}

.footer-link em {
  font-size: 0.72rem;
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brand-border);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--text-theme-3);
  background: rgba(217, 108, 61, 0.08);
  line-height: 1;
  text-decoration: none;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  color: var(--primary);
  background: rgba(217, 108, 61, 0.16);
  outline: none;
}

.footer-social__link em {
  font-size: 0.95rem;
}

.footer-copy {
  margin: 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col__list {
    justify-items: center;
  }
}

/* Auth shell */
.auth-shell {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
}

.auth-pg-row {
  max-width: 920px;
  margin-inline: auto;
}

.auth-pg-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  margin-bottom: 1.15rem;
}

.auth-pg-header-text {
  min-width: 0;
}

.auth-pg-header .auth-pg-title {
  margin-bottom: 0.15rem;
  font-size: 1.3rem;
}

.auth-pg-header .auth-pg-subtitle {
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-pg-visual-col {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.auth-pg-visual-col .page-illustration-panel {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  aspect-ratio: 4 / 3;
  max-height: none;
  min-height: 220px;
}

@media (min-width: 992px) {
  .auth-pg-visual-col .page-illustration-panel {
    min-height: 280px;
  }
}

.auth-pg-icon-circle,
.auth-pg-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
}

.auth-pg-header .auth-pg-icon-circle,
.auth-pg-header .auth-pg-icon {
  margin: 0;
}

.auth-pg-header.justify-content-center {
  justify-content: center;
  text-align: center;
}

.auth-pg-header.justify-content-center .auth-pg-header-text {
  text-align: left;
}

.auth-pg-icon-teal {
  background: linear-gradient(135deg, #e8734a, #f0a54a);
}

.auth-pg-icon-accent {
  background: linear-gradient(135deg, #d96c3d, #e8734a);
}

.auth-pg-icon-blue {
  background: linear-gradient(135deg, #5a8f6e, #4a7c59);
}

.auth-pg-icon-green {
  background: linear-gradient(135deg, #5a8f6e, #6b9b7a);
}

.auth-pg-icon-amber {
  background: linear-gradient(135deg, #f0a54a, #e8734a);
}

.auth-pg-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.auth-pg-subtitle {
  font-size: 0.9rem;
  color: var(--text-theme-3);
  margin-bottom: 0;
}

.form-label-modern {
  font-size: var(--form-label-font);
  font-weight: 600;
  color: #334155;
  margin-bottom: var(--form-label-mb);
}

.form-control-modern,
.form-select.form-control-modern {
  border-radius: var(--form-control-radius);
  border: 1px solid var(--brand-border);
  min-height: var(--form-control-min-h);
  padding: var(--form-control-py) var(--form-control-px);
  font-size: var(--form-control-font) !important;
  line-height: 1.35;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-modern:focus,
.form-select.form-control-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 108, 61, 0.18);
}

/* Align plain Bootstrap controls and Select2 with modern form scale */
.form-control:not(.form-control-lg):not(.form-control-sm),
.form-select:not(.form-select-lg):not(.form-select-sm) {
  min-height: var(--form-control-min-h);
  padding: var(--form-control-py) var(--form-control-px);
  font-size: var(--form-control-font) !important;
  line-height: 1.35;
  border-radius: var(--form-control-radius);
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: var(--form-control-min-h) !important;
  height: auto !important;
  padding: var(--form-control-py) var(--form-control-px) !important;
  font-size: var(--form-control-font) !important;
  line-height: 1.35 !important;
  border-radius: var(--form-control-radius) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  line-height: 1.35 !important;
  padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(var(--form-control-min-h) - 2px) !important;
}

.select2-dropdown,
.select2-container--default .select2-results__option {
  font-size: var(--form-control-font) !important;
}

.auth-pg-password-wrapper {
  position: relative;
}

.auth-pg-password-input {
  padding-right: 2.75rem;
}

.auth-pg-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.auth-pg-btn-primary,
.auth-pg-btn-green,
.auth-pg-btn-submit {
  background: linear-gradient(135deg, #e8734a, #d96c3d) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  min-height: var(--form-btn-min-h);
  padding: var(--form-btn-py) var(--form-btn-px);
  font-size: var(--form-btn-font);
  border-radius: var(--form-control-radius) !important;
}

.auth-pg-btn-primary:hover,
.auth-pg-btn-green:hover,
.auth-pg-btn-submit:hover {
  background: linear-gradient(135deg, #d96c3d, #c45a2e) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 108, 61, 0.35);
}

.auth-pg-btn-primary.py-2,
.auth-pg-btn-green.py-2,
.auth-pg-btn-submit.py-2,
.auth-pg-btn-outline.py-2 {
  padding-top: var(--form-btn-py) !important;
  padding-bottom: var(--form-btn-py) !important;
}

.auth-pg-link-accent,
.auth-pg-forgot-link,
.auth-pg-back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-pg-link-accent:hover,
.auth-pg-forgot-link:hover,
.auth-pg-back-link:hover {
  color: #c45a2e;
  text-decoration: underline;
}

.auth-pg-alt-link {
  font-size: 0.875rem;
  color: var(--text-theme-3);
}

.auth-pg-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.auth-pg-success-msg {
  background: #f0faf2;
  border: 1px solid #b8dcc4;
  color: #4a7c59;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  text-align: center;
}

.auth-pg-btn-outline {
  background: transparent !important;
  border: 1.5px solid var(--brand-border) !important;
  color: #475569 !important;
  font-weight: 600;
  min-height: var(--form-btn-min-h);
  padding: var(--form-btn-py) var(--form-btn-px);
  font-size: var(--form-btn-font);
  border-radius: var(--form-control-radius) !important;
}

.auth-pg-btn-outline:hover {
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  background: #fef2f2 !important;
}

.auth-pg-divider {
  margin: 0;
  border-color: var(--brand-border);
}

.auth-pg-divider-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 0.75rem;
  color: #64748b;
  font-size: 0.875rem;
  text-transform: lowercase;
}

.auth-visual-panel {
  border-radius: var(--brand-radius);
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(160deg, #fff5eb 0%, #f0f5ee 55%, #fffaf5 100%);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-visual-panel svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ===== Landing page (lp-) ===== */
/* Reset root 62.5% html font-size so type renders at normal scale */
.landing-page {
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  width: 100%;
}

.landing-page .container {
  max-width: 1140px;
}

.lp-text-accent {
  color: var(--primary);
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border: 1px solid #f0d4c4;
  border-radius: 6px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.lp-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 108, 61, 0.28);
}

.lp-btn--primary:hover {
  background: #c45a2e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 108, 61, 0.35);
}

.lp-btn--ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--brand-border);
}

.lp-btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.lp-btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.lp-section-head__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.lp-section-head__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-theme-3);
}

.lp-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lp-hero__desc {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-theme-3);
}

.lp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-hero__tags li {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-theme-3);
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
}

.lp-hero__video {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf5;
  box-shadow: 0 20px 50px rgba(92, 64, 51, 0.12);
}

.lp-hero__video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fffaf5;
}

.lp-about {
  background: #fff;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}

.lp-about__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
}

.lp-about__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-theme-3);
}

.lp-step {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}

.lp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
}

.lp-step__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.lp-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-theme-3);
}

.lp-features {
  background: linear-gradient(180deg, transparent 0%, #fff8f0 100%);
}

.lp-feature {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}

.lp-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  color: var(--primary);
  background: #fff5eb;
  border-radius: 8px;
}

.lp-feature__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.lp-feature__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-theme-3);
}

.lp-cta__inner {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #5a8f6e, #4a7c59);
  border-radius: 16px;
  color: #fff;
}

.lp-cta__inner .lp-cta__title,
.landing-page .lp-cta__inner h2.lp-cta__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.lp-cta__inner .lp-cta__text,
.lp-cta__inner .lp-cta__trust {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: #fff;
  opacity: 0.92;
}

.lp-cta__inner .lp-cta__trust {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.lp-cta__inner a:not(.lp-btn) {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.lp-cta__inner a:not(.lp-btn):hover,
.lp-cta__inner a:not(.lp-btn):focus-visible {
  color: #fff8f0 !important;
  text-decoration-color: #fff;
}

.lp-cta .lp-btn--primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.lp-cta .lp-btn--primary:hover {
  background: #fff8f0;
  color: #c45a2e;
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --header-content-gap: 0.5rem;
    /* Compact type scale — site-wide on small screens */
    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-base: 0.875rem;
    --text-md: 0.9375rem;
    --text-lg: 1rem;
    --text-xl: 1.0625rem;
    --text-2xl: 1.125rem;
    --text-3xl: 1.25rem;
    /* Keep inputs at 16px so iOS does not zoom on focus */
    --form-control-font: 1rem;
  }

  .myhead {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    max-height: var(--header-height) !important;
  }

  .bodyContainer,
  .bodyContainer:has(.landing-page) {
    padding-top: calc(var(--header-height) + var(--header-content-gap)) !important;
  }

  .navbar-brand .brand-logo {
    min-width: 0;
    max-width: min(230px, 54vw) !important;
    height: 46px !important;
    max-height: 46px;
  }

  .form-label-modern {
    font-size: var(--text-xs);
    margin-bottom: 0.25rem;
  }

  .form-control-modern,
  .form-select.form-control-modern {
    min-height: 2rem;
    padding: 0.45rem 0.65rem;
    font-size: max(16px, 1rem);
    border-radius: 8px;
  }

  .auth-pg-btn-primary,
  .auth-pg-btn-green,
  .auth-pg-btn-submit {
    min-height: 2rem;
    padding: 0.45rem 0.85rem;
    font-size: var(--text-sm);
    border-radius: 8px !important;
  }
}

@media (max-width: 480px) {
  .navbar-modern .nav-link {
    font-size: var(--text-sm);
  }
}

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}

.skip-to-content:focus-visible {
  left: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Keyboard focus indicators for interactive elements */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.footer-link:focus-visible,
.navbar-toggler:focus-visible,
.step-header:focus-visible,
.source-option:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-control-modern:focus-visible,
.form-select:focus-visible,
.form-select-modern:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 0;
}

.consent-agreement__card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #f0c4c4;
  background: #fff5f5;
}

.consent-agreement__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.8rem;
  margin-top: 0.05rem;
}

.consent-agreement__body {
  flex: 1;
  min-width: 0;
}

.consent-agreement__check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.consent-agreement__input {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: #b91c1c;
}

.consent-agreement__label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5c4a3d;
  margin: 0;
  cursor: pointer;
}

.consent-agreement__label a {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-agreement__label a:hover {
  color: #92400e;
}

/* User headshot (public byline / profile) */
.user-headshot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fff3e8;
  color: var(--primary, #d96c3d);
  border: 1px solid #f0d4c4;
  vertical-align: middle;
}
.user-headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-headshot-initials {
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}
.user-headshot--sm {
  width: 1.5rem;
  height: 1.5rem;
}
.user-headshot--sm .user-headshot-initials { font-size: 0.62rem; }
.user-headshot--md {
  width: 2.25rem;
  height: 2.25rem;
}
.user-headshot--md .user-headshot-initials { font-size: 0.85rem; }
.user-headshot--lg {
  width: 4rem;
  height: 4rem;
}
.user-headshot--lg .user-headshot-initials { font-size: 1.35rem; }
