/* Garcon brand logo — backend site_logo / site_logo_footer */
.garcon-brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(148px, 42vw);
  object-fit: contain;
}

.at-offcanvas-logo .garcon-brand-logo {
  height: 36px;
  max-width: 160px;
}

.garcon-brand-logo--on-dark {
  display: none;
}

html[data-bs-theme="dark"] .garcon-brand-logo--on-light {
  display: none;
}

html[data-bs-theme="dark"] .garcon-brand-logo--on-dark {
  display: block;
}

html[data-bs-theme="light"] .garcon-brand-logo--on-light,
html:not([data-bs-theme="dark"]) .garcon-brand-logo--on-light {
  display: block;
}

html[data-bs-theme="light"] .garcon-brand-logo--on-dark,
html:not([data-bs-theme="dark"]) .garcon-brand-logo--on-dark {
  display: none;
}

/* Backend pair: never CSS-invert uploaded marks */
html[data-bs-theme="dark"] .at-header-logo img.garcon-brand-logo.invert-0,
html[data-bs-theme="dark"] .at-offcanvas-logo img.garcon-brand-logo.invert-0 {
  filter: invert(0) !important;
}

/* Only light-footer logo on light canvas may need invert when dark mark missing */
html[data-bs-theme="light"] .at-header-logo img.garcon-brand-logo--on-light:not(.invert-0),
html[data-bs-theme="light"] .at-offcanvas-logo img.garcon-brand-logo--on-light:not(.invert-0) {
  filter: invert(1);
}

/* ── Plans section: call-lead affordances ───────────── */
.sec-5-home-14__head .at-btn-group > button.at-btn,
.sec-5-home-14__head .at-btn-group > button.at-btn-circle {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

button.sec-5-home-14__row-link {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: inherit;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  padding: 0;
}

.sec-5-home-14__row-price-note {
  font-family: var(--at-ff-body, inherit);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: var(--at-neutral-500, #8a8a8a);
  line-height: 1.3;
}

/* ── Plan lead bottom-sheet popup ───────────────────── */
/* Keep overflow lock only — do NOT position:fixed the body:
   ScrollSmoother owns scroll via transforms; fixing body jumps to header. */
html.plan-lead-open,
html.plan-lead-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.plan-lead {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.plan-lead.is-open {
  pointer-events: auto;
}

.plan-lead[hidden] {
  display: none !important;
}

.plan-lead__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.66);
  opacity: 0;
  transition: opacity 0.32s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.plan-lead.is-open .plan-lead__backdrop {
  opacity: 1;
}

.plan-lead__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 680px);
  overflow: auto;
  margin: 0;
  padding: 10px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #161617;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.5);
  transform: translate3d(0, 110%, 0);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  outline: none;
  will-change: transform;
}

.plan-lead.is-open .plan-lead__panel {
  transform: translate3d(0, 0, 0);
}

.plan-lead.is-closing .plan-lead__panel {
  transform: translate3d(0, 110%, 0);
}

.plan-lead.is-closing .plan-lead__backdrop {
  opacity: 0;
}

.plan-lead__handle {
  display: flex;
  justify-content: center;
  padding: 4px 0 14px;
}

.plan-lead__handle-bar {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.plan-lead__close {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  cursor: pointer;
}

.plan-lead__close:hover,
.plan-lead__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.plan-lead__kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9a9a9a;
  margin-bottom: 10px !important;
}

.plan-lead__title {
  font-family: var(--at-ff-heading, inherit);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 8px !important;
  padding-inline-end: 2.5rem;
}

.plan-lead__price {
  font-size: 0.9rem;
  color: #cfcfcf;
  margin-bottom: 10px !important;
}

.plan-lead__trust {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #9a9a9a;
  margin-bottom: 22px !important;
}

.plan-lead__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-lead__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #c8c8c8;
}

.plan-lead__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0f10;
  color: #fefefe;
  font-size: 1rem;
  letter-spacing: 0.02em;
  direction: ltr;
  text-align: left;
}

.plan-lead__input::placeholder {
  color: #6e6e6e;
}

.plan-lead__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.plan-lead__captcha {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  min-height: 0;
}

.plan-lead__captcha .margin-bottom-15 {
  margin-bottom: 0 !important;
}

.plan-lead__error {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #ff8f8f;
}

.plan-lead__submit {
  margin-top: 6px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: #fefefe;
  color: #111;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.plan-lead__submit:hover,
.plan-lead__submit:focus-visible {
  opacity: 0.92;
}

.plan-lead__submit.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.plan-lead__success {
  text-align: center;
  padding: 28px 8px 12px;
}

.plan-lead__success-icon {
  display: inline-flex;
  color: #fefefe;
  margin-bottom: 16px;
}

.plan-lead__success-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px !important;
}

.plan-lead__success-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #b0b0b0;
  margin-bottom: 22px !important;
}

.plan-lead__success-close {
  height: 44px;
  min-width: 120px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #fefefe;
  font-weight: 500;
  cursor: pointer;
}

.plan-lead__success-close:hover,
.plan-lead__success-close:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .plan-lead__panel {
    max-width: 480px;
    padding-inline: 28px;
    border-radius: 24px 24px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-lead__backdrop,
  .plan-lead__panel {
    transition: none;
  }
}
