/* Cookie banner styles for the static /lp pages, copied from src/styles/global.css (.consent-banner). Keep in step. */
:root{--instrument:var(--violet);--radius-control:var(--r)}
.consent-banner {
  position: fixed;
  z-index: 60;
  inset-inline: 0;
  bottom: 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 -8px 30px rgb(25 24 21 / 0.08);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner-inner {
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
  padding-block: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 2rem;
  row-gap: 0.5rem;
}

.consent-banner-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.consent-banner-body {
  max-width: 62ch;
  margin: 0.1875rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.consent-button {
  min-height: 44px;
  padding-inline: 1.125rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.consent-button:hover {
  border-color: var(--ink);
}

.consent-button:active {
  transform: translateY(1px);
}

.consent-button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.consent-button-primary:hover {
  background: var(--instrument);
  border-color: var(--instrument);
}

.consent-banner button:focus-visible,
.consent-banner a:focus-visible {
  outline: 3px solid var(--instrument);
  outline-offset: 3px;
}

/* The privacy link belongs under the copy, not beside the buttons, so it never
   competes with the two things the reader has to choose between. */
.consent-banner-mobile-link {
  display: none;
  color: var(--muted);
}

.consent-banner-mobile-link a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-banner-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8125rem;
}

.consent-banner-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.consent-banner-note a:hover {
  color: var(--ink);
}

/* On a phone the full banner covered the bottom third of the first screen,
   hiding the hero's button (session 64: 62% of homepage visits left without
   scrolling). Here it is one short line and two small buttons. The long
   explanation is on /privacy, linked from the title line. */
@media (max-width: 720px) {
  .consent-banner-inner {
    width: min(100% - 2rem, 1400px);
    padding-block: 0.625rem;
    grid-template-columns: 1fr auto;
    column-gap: 0.75rem;
    row-gap: 0;
  }

  .consent-banner-title {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
  }

  .consent-banner-body,
  .consent-banner-note {
    display: none;
  }

  .consent-banner-mobile-link {
    display: inline;
  }

  .consent-banner-actions {
    gap: 0.375rem;
  }

  .consent-button {
    min-height: 40px;
    padding-inline: 0.75rem;
    font-size: 0.8125rem;
  }
}
