/* LeadingAge 2026 pages: /la26, /la26/thanks and /privacy.
   Mobile first in a 560px column; desktop layout from 1024px.
   Matches design/la26-design-v2/ (not deployed). */

:root {
  --la-midnight: #0e1a2b;
  --la-navy: #24364f;
  --la-slate: #5a6a80;
  --la-line: #dce2ea;
  --la-line-strong: #c6cfdb;
  --la-mist: #f3f5f8;
  --la-amber: #f2a33a;
  --la-red: #c23b32;
  --la-red-tint: #f8e3e1;
  --la-glow: 0 0 0 6px rgba(242, 163, 58, 0.18);
  --la-ease: 400ms cubic-bezier(0.33, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--la-navy);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  color: var(--la-midnight);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--la-midnight);
  text-decoration: underline;
  text-decoration-color: var(--la-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--la-navy);
  text-decoration-color: var(--la-navy);
}

:focus-visible {
  outline: 3px solid var(--la-amber);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.la-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.la-header {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-bottom: 1px solid var(--la-line);
}

.la-header-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
}

.la-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.la-brand svg {
  display: block;
  flex-shrink: 0;
}

.la-wordmark {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--la-midnight);
  line-height: 1;
}

/* Page frame: one 560px column below 1024px */

.la-page {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* Photos: just the banner photo on mobile, the mosaic on desktop */

.la-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--la-navy);
}

.la-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.la-mosaic-photo {
  display: none;
}

.la-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 24px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(10, 19, 32, 0) 0%, rgba(10, 19, 32, 0.74) 42%, rgba(10, 19, 32, 0.92) 100%);
}

.la-hero .la-banner-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.la-banner-divider {
  width: 1px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.35);
}

.la-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff;
}

.la-banner-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.la-banner-place {
  font-size: 14px;
  line-height: 1.3;
}

/* Intro */

.la-intro {
  padding: 28px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.la-intro h1 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.la-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: var(--la-mist);
}

.la-panel-lead {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--la-midnight);
  text-wrap: balance;
}

.la-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.la-points li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--la-midnight);
  text-wrap: balance;
}

.la-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--la-midnight);
  background: linear-gradient(172deg, #ffffff 0%, #eef3f9 30%, #d9e4f2 58%, #f6ddba 86%, #f7c988 100%);
  border: 1px solid var(--la-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px rgba(14, 26, 43, 0.12);
}

.la-follow {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--la-slate);
}

/* Form */

.la-form {
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.la-required {
  font-size: 14px;
  line-height: 1.4;
  color: var(--la-slate);
}

.la-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.la-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.la-label,
.la-legend {
  font-size: 16px;
  font-weight: 600;
  color: var(--la-midnight);
}

.la-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--la-line-strong);
  background: #ffffff;
  color: var(--la-midnight);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--la-ease), box-shadow var(--la-ease);
}

.la-input::placeholder {
  color: #66768b;
  opacity: 1;
}

.la-input:focus,
.la-input:focus-visible {
  border-color: var(--la-midnight);
  box-shadow: var(--la-glow);
  outline: none;
}

.la-input[aria-invalid="true"] {
  border-color: var(--la-red);
}

.la-error {
  font-size: 15px;
  line-height: 1.45;
  color: var(--la-red);
}

.la-group {
  border: 0;
  padding: 0;
  margin: 6px 0 0;
  min-width: 0;
}

.la-legend {
  padding: 0;
  margin-bottom: 10px;
}

.la-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 400;
  color: var(--la-slate);
}

.la-hint svg {
  display: none;
  flex-shrink: 0;
}

.la-hint.is-error {
  color: var(--la-red);
}

.la-hint.is-error svg {
  display: block;
}

.la-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.la-tile {
  position: relative;
  display: flex;
  cursor: pointer;
}

.la-tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  left: 16px;
  top: 16px;
}

.la-tile-face {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 112px;
  padding: 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--la-line);
  background: #ffffff;
  transition: background var(--la-ease), border-color var(--la-ease), box-shadow var(--la-ease);
}

.la-tile:hover .la-tile-face {
  border-color: var(--la-line-strong);
}

.la-tile input:checked + .la-tile-face {
  border-color: var(--la-midnight);
  background: var(--la-mist);
}

.la-tile input:focus-visible + .la-tile-face {
  box-shadow: var(--la-glow);
}

.la-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.la-tile-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--la-midnight);
}

.la-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.5px solid var(--la-line-strong);
  background: #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: background var(--la-ease), border-color var(--la-ease);
}

.la-check svg {
  opacity: 0;
}

.la-tile input:checked + .la-tile-face .la-check {
  background: var(--la-midnight);
  border-color: var(--la-midnight);
}

.la-tile input:checked + .la-tile-face .la-check svg {
  opacity: 1;
}

/* Send */

.la-send {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.la-failure {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(194, 59, 50, 0.35);
  background: var(--la-red-tint);
}

.la-failure svg {
  flex-shrink: 0;
  color: var(--la-red);
}

.la-failure p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--la-midnight);
}

.la-send-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.la-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #3e6295 0%, #1d3354 48%, #0e1a2b 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 4px 14px rgba(14, 26, 43, 0.14);
  color: #ffffff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: background var(--la-ease), opacity var(--la-ease);
}

.la-btn:hover {
  background: linear-gradient(135deg, #5478aa 0%, #2c4c7c 48%, #16294a 100%);
}

.la-btn.is-sending,
.la-btn:disabled {
  cursor: progress;
  opacity: 0.75;
  background: linear-gradient(135deg, #3e6295 0%, #1d3354 48%, #0e1a2b 100%);
  box-shadow: none;
}

.la-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: la-spin 800ms linear infinite;
}

@keyframes la-spin {
  to {
    transform: rotate(360deg);
  }
}

.la-note {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.4;
  color: var(--la-slate);
}

.la-note svg {
  flex-shrink: 0;
}

.la-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thank-you screen */

.la-render {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #0a1320;
}

.la-render img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  display: block;
}

.la-thanks {
  position: relative;
  z-index: 1;
  padding: 0 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.la-check-badge {
  margin-top: -31px;
  border: 3px solid #ffffff;
  width: 56px;
  height: 56px;
  box-sizing: content-box;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--la-midnight);
  background: linear-gradient(135deg, #ffdca6 0%, #f6b353 40%, #f2a33a 65%, #dc7a1a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px rgba(14, 26, 43, 0.12);
}

.la-thanks h1 {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.la-thanks-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--la-navy);
}

.la-thanks-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.la-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--la-line-strong);
  background: #ffffff;
  color: var(--la-midnight);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: background var(--la-ease);
}

.la-btn-secondary:hover {
  background: var(--la-mist);
  color: var(--la-midnight);
}

.la-btn-secondary svg {
  flex-shrink: 0;
}

.la-questions {
  font-size: 16px;
  line-height: 1.5;
  color: var(--la-slate);
}

/* The thank-you screen has no footer on mobile */
.la-thanks-page .la-footer {
  display: none;
}

/* Privacy */

.la-prose {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  line-height: 1.55;
}

.la-prose h1 {
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.la-prose strong {
  font-weight: 600;
  color: var(--la-midnight);
}

.la-prose .la-updated {
  margin-top: 8px;
  font-size: 15px;
  color: var(--la-slate);
}

/* Footer */

.la-footer {
  margin-top: auto;
  background: var(--la-mist);
  border-top: 1px solid var(--la-line);
}

.la-footer-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.la-footer p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--la-slate);
}

.la-partners {
  display: flex;
  align-items: center;
  gap: 20px;
}

.la-partners img {
  display: block;
  width: auto;
}

.la-partners .la-ff {
  height: 24px;
}

.la-partners .la-bosch {
  height: 19px;
}

/* Desktop */

@media (min-width: 1024px) {
  .la-desk-mist {
    background: var(--la-mist);
  }

  .la-header-inner {
    max-width: 1200px;
    min-height: 76px;
    padding: 0 24px;
  }

  .la-page {
    max-width: 1200px;
    padding: 48px 24px 56px;
    display: flex;
    align-items: stretch;
    gap: 32px;
  }

  /* The mosaic takes what's left, so the card keeps its width from 1024 to 1200px */
  .la-mosaic {
    flex: 1 1 0;
    min-width: 0;
    min-height: 560px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px;
  }

  .la-hero {
    grid-column: 1 / span 2;
    height: auto;
    min-height: 0;
    border-radius: 20px;
    container-type: inline-size;
  }

  .la-hero img {
    object-position: 50% 28%;
  }

  .la-banner {
    padding: 56px 28px 24px;
    gap: 18px;
  }

  .la-hero .la-banner-logo {
    height: 48px;
  }

  .la-banner-divider {
    height: 44px;
  }

  .la-banner-name {
    font-size: 19px;
  }

  .la-banner-place {
    font-size: 16px;
  }

  /* Narrow mosaic (about 1024 to 1150px wide): keep the banner on two lines */
  @container (max-width: 480px) {
    .la-banner {
      padding: 36px 20px 18px;
      gap: 14px;
    }

    .la-hero .la-banner-logo {
      height: 38px;
    }

    .la-banner-divider {
      height: 36px;
    }

    .la-banner-name {
      font-size: 16px;
    }

    .la-banner-place {
      font-size: 14px;
    }

    .la-banner-text {
      white-space: nowrap;
    }

    /* A narrow, tall crop: keep the caregiver's face in frame */
    .la-hero img {
      object-position: 22% 28%;
    }
  }

  .la-mosaic-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: 20px;
  }

  .la-mosaic-lamp {
    object-position: 48% 45%;
  }

  .la-mosaic-family {
    object-position: 45% 40%;
  }

  .la-card {
    flex: 0 0 580px;
    padding: 44px;
    border-radius: 24px;
    border: 1px solid var(--la-line);
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(14, 26, 43, 0.04), 0 8px 24px rgba(14, 26, 43, 0.06);
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .la-intro {
    padding: 0;
    gap: 18px;
  }

  .la-intro h1 {
    font-size: 44px;
  }

  .la-panel {
    padding: 20px 20px 18px;
  }

  .la-panel-lead {
    font-size: 20px;
  }

  .la-points {
    gap: 12px;
  }

  .la-points li {
    font-size: 16px;
  }

  .la-follow {
    margin-top: 0;
    text-wrap: balance;
  }

  .la-form {
    padding: 0;
    gap: 22px;
  }

  .la-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .la-group {
    margin: 0;
  }

  .la-hint {
    display: inline;
    margin: 0;
  }

  .la-hint.is-error {
    display: inline-flex;
    vertical-align: bottom;
  }

  .la-tile-face {
    min-height: 96px;
  }

  .la-send {
    margin-top: 6px;
  }

  .la-send-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
  }

  .la-btn {
    display: inline-flex;
    width: auto;
    min-width: 200px;
    padding: 0 40px;
  }

  .la-note {
    justify-content: flex-start;
  }

  /* Thank-you: render on the left, card on the right, centred between header and footer.
     Sized on its own, nothing here comes from the form page. */
  .la-thanks-page .la-page {
    flex: 0 0 auto;
    margin: auto;
    padding: 48px 24px 56px;
    align-items: stretch;
    gap: 32px;
  }

  .la-thanks-page .la-footer {
    margin-top: 0;
  }

  .la-thanks-page .la-render {
    position: relative;
    flex: 1 1 480px;
    min-width: 0;
    min-height: 440px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    background: #0a1320;
  }

  /* Absolutely placed, so the render never sets the column's height */
  .la-thanks-page .la-render img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 88% 50%;
  }

  .la-thanks-page .la-thanks {
    flex: 1 1 520px;
    max-width: 600px;
    padding: 56px 44px;
    gap: 14px;
    justify-content: center;
  }

  .la-thanks-page .la-check-badge {
    margin-top: 0;
  }

  .la-thanks-page .la-thanks h1 {
    margin-top: 10px;
    font-size: 44px;
  }

  .la-thanks-page .la-thanks-actions {
    margin-top: 10px;
    gap: 16px;
  }

  .la-thanks-page .la-footer {
    display: block;
  }

  /* On the Mist pages the footer sits on the page, centred */
  .la-desk-mist .la-footer {
    background: transparent;
    border-top: 0;
  }

  .la-desk-mist .la-footer-inner {
    max-width: 1152px;
    padding: 0 0 40px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
  }

  .la-footer-inner {
    max-width: 1200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
