/* ==========================================================================
   LPU Team Member Journey Playbook — splash page
   Tokens and component styling reproduced from the LPU design system export
   (_ds/lpu-design-system). Single responsive stylesheet covering the desktop
   and mobile mockups.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Base palette — from ColorPalette.pdf */
  --lpu-blue: #1aa3d7;        /* primary brand blue */
  --lpu-blue-dark: #026096;   /* deep blue, headings/emphasis, hero bg */
  --lpu-blue-light: #a1dbef;  /* background tint */
  --lpu-gold: #deb448;
  --lpu-magenta: #991e5a;
  --lpu-teal: #028585;
  /* Neutrals */
  --lpu-ink: #1d2530;
  --lpu-gray: #5c6670;
  --lpu-gray-light: #a9b2ba;
  --lpu-line: #d9e2e8;
  --lpu-surface: #f2f9fc;
  /* Semantic */
  --text-body: var(--lpu-ink);
  --text-muted: var(--lpu-gray);
  --border-default: var(--lpu-line);
  --border-strong: var(--lpu-gray-light);
  --focus-ring: 0 0 0 3px rgba(26, 163, 215, .35);
  --font-sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --dur-fast: 120ms;
  --ease-brand: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

/* `hidden` must win over component display rules (e.g. .card__body { display:flex }). */
[hidden] { display: none !important; }

html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--lpu-blue-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--lpu-blue-dark); }
a:hover { color: var(--lpu-blue); }

@keyframes lpuFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lpuFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lpuPulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.15); opacity: .9; } }
@keyframes lpuSpin { to { transform: rotate(360deg); } }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lpu-blue-dark);
}

/* ---- Top bar --------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 48px;
  background: #fff;
  border-bottom: 1px solid var(--lpu-line);
}
.topbar__logo { height: 52px; display: block; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lpu-gray); font-weight: 600;
}
.pill {
  background: var(--lpu-blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill); letter-spacing: .06em;
  flex: none; white-space: nowrap;
}

/* ---- Hero ------------------------------------------------------------ */
.hero { flex: 1; position: relative; overflow: hidden; background: var(--lpu-blue-dark); }
.blob { position: absolute; border-radius: 50%; background: var(--lpu-blue); pointer-events: none; }
.blob--1 { top: -120px; right: -120px; width: 420px; height: 420px; opacity: .25; }
.blob--2 { bottom: -160px; left: -100px; width: 380px; height: 380px; opacity: .18; }
.blob--3 { top: 38%; left: 44%; width: 120px; height: 120px; background: var(--lpu-blue-light); opacity: .12; animation: lpuPulse 6s ease-in-out infinite; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 48px 88px;
  align-items: center;
}

.pitch { animation: lpuFadeUp .5s ease both; }
.pitch__title {
  color: #fff; font-size: 52px; line-height: 1.06; font-weight: 800;
  margin: 0 0 20px; letter-spacing: -.01em; text-wrap: pretty;
}
.pitch__lead {
  color: var(--lpu-blue-light); font-size: 19px; line-height: 1.55;
  margin: 0 0 34px; max-width: 52ch; text-wrap: pretty;
}
.pitch__lead strong { color: #fff; }

.pillars { display: flex; gap: 14px; margin-bottom: 38px; }
.pillar {
  background: #fff; border-radius: 10px; padding: 12px 10px; width: 96px;
  display: flex; align-items: center; justify-content: center;
  animation: lpuFloat 4.5s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}
.pillar img { width: 100%; height: 96px; object-fit: contain; display: block; }

.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: center; gap: 12px; }
.check__mark {
  width: 22px; height: 22px; border-radius: 50%; background: var(--lpu-blue);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex: none;
}
.check__text { color: #fff; font-size: 16px; line-height: 1.45; }

/* ---- Form card ------------------------------------------------------- */
.cardwrap { animation: lpuFadeUp .5s ease .12s both; }
.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(1, 42, 68, .45); overflow: hidden;
}
.card__head {
  background: var(--lpu-blue); padding: 22px 32px;
  display: flex; align-items: center; gap: 16px;
}
.card__badge {
  background: #fff; border-radius: 10px; padding: 8px 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(1, 42, 68, .25);
}
.card__badge img { height: 48px; display: block; }
.card__title { color: #fff; font-weight: 800; font-size: 18px; line-height: 1.2; }
.card__sub { color: var(--lpu-blue-light); font-size: 13px; }

.card__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Field + Input (mirrors _ds Field/Input) */
.field { display: block; position: relative; }
.field__label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--lpu-blue-dark); margin-bottom: 6px;
}
.input {
  font-family: var(--font-sans); font-size: 15px; color: var(--text-body);
  background: #fff; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 10px 14px; outline: none;
  width: 100%; box-sizing: border-box;
  transition: border-color var(--dur-fast) var(--ease-brand), box-shadow var(--dur-fast) var(--ease-brand);
}
.input::placeholder { color: var(--lpu-gray-light); }
.input:focus { border-color: var(--lpu-blue); box-shadow: var(--focus-ring); }

/* honeypot — visually hidden, off-screen, not focusable by keyboard */
.hp {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.error { color: var(--lpu-magenta); font-size: 13px; font-weight: 600; }
.error[hidden] { display: none; }

.btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 17px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  background: var(--lpu-blue-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; box-sizing: border-box;
  transition: background var(--dur-fast) var(--ease-brand);
}
.btn:hover:not(:disabled) { background: #014a75; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn__spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: lpuSpin .7s linear infinite;
}

.finenote {
  font-size: 12px; color: var(--lpu-gray); text-align: center; line-height: 1.5;
}

/* ---- Combobox (searchable dealer picker) ----------------------------- */
.combo { position: relative; }
.combo__control { position: relative; }
.combo__input { padding-right: 40px; cursor: text; }
.combo__chevron {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; pointer-events: none; color: var(--lpu-gray);
  transition: transform var(--dur-fast) var(--ease-brand);
}
.combo[data-open="true"] .combo__chevron { transform: translateY(-50%) rotate(180deg); }
.combo__list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 264px; overflow-y: auto; background: #fff;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(1, 42, 68, .22); padding: 4px;
  list-style: none; margin: 0;
}
.combo__list[hidden] { display: none; }
.combo__option {
  padding: 9px 12px; border-radius: 6px; font-size: 14.5px; color: var(--text-body);
  cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.combo__option:hover,
.combo__option[aria-selected="true"] { background: var(--lpu-surface); }
.combo__option[aria-selected="true"] { outline: 2px solid var(--lpu-blue); outline-offset: -2px; }
.combo__code { font-size: 12px; color: var(--lpu-gray-light); font-variant-numeric: tabular-nums; flex: none; }
.combo__empty { padding: 14px 12px; font-size: 14px; color: var(--text-muted); }

/* ---- Success state --------------------------------------------------- */
.done { padding: 44px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.done[hidden] { display: none; }
.done img { width: 170px; display: block; animation: lpuFadeUp .4s ease both; }
.done__title { font-size: 20px; font-weight: 800; color: var(--lpu-blue-dark); }
.done__text { font-size: 15px; color: var(--lpu-gray); max-width: 34ch; line-height: 1.55; }
.done__link { font-size: 14px; font-weight: 600; }

/* ---- Footer ---------------------------------------------------------- */
.footer {
  background: #fff; padding: 20px 48px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; border-top: 4px solid var(--lpu-blue);
}
.footer__copy { font-size: 13px; color: var(--lpu-gray); }
.footer__values { font-size: 13px; font-weight: 700; color: var(--lpu-blue-dark); letter-spacing: .08em; }

/* ==========================================================================
   Responsive — collapse to the single-column mobile mockup
   ========================================================================== */
@media (max-width: 900px) {
  .page { max-width: 480px; margin: 0 auto; }
  body { background: var(--lpu-blue-dark); }

  .topbar { padding: 14px 20px; }
  .topbar__logo { height: 40px; }
  .topbar__kicker { display: none; }
  .pill { font-size: 11px; padding: 5px 12px; }

  .blob--1 { top: -100px; right: -100px; width: 280px; height: 280px; }
  .blob--2 { bottom: -120px; left: -90px; width: 260px; height: 260px; }
  .blob--3 { display: none; }

  .hero__grid {
    display: flex; flex-direction: column; gap: 28px;
    padding: 36px 20px 48px;
  }

  .pitch { display: flex; flex-direction: column; gap: 18px; }
  .pitch__title { font-size: 32px; line-height: 1.1; margin: 0; }
  .pitch__lead { font-size: 16px; margin: 0; max-width: none; }

  .pillars { gap: 8px; justify-content: space-between; margin-bottom: 0; }
  .pillar { width: auto; flex: 1; padding: 8px 6px; border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .28); }
  .pillar img { height: 60px; }

  .check { align-items: flex-start; gap: 11px; }
  .check__mark { width: 20px; height: 20px; font-size: 12px; margin-top: 1px; }
  .check__text { font-size: 14.5px; }

  .card__head { padding: 16px 20px; gap: 14px; }
  .card__badge { padding: 6px 8px; border-radius: 8px; }
  .card__badge img { height: 40px; }
  .card__title { font-size: 17px; }
  .card__sub { font-size: 12.5px; }

  .card__body { padding: 22px 20px 26px; gap: 16px; }
  .row2 { grid-template-columns: 1fr; gap: 16px; }
  .input { min-height: 44px; }
  .btn { min-height: 52px; }

  .done { padding: 36px 20px; }
  .done img { width: 150px; }
  .done__title { font-size: 19px; }
  .done__text { font-size: 14.5px; max-width: 32ch; }

  .footer { flex-direction: column-reverse; gap: 8px; text-align: center; padding: 18px 20px; }
  .footer__values { font-size: 12px; letter-spacing: .06em; line-height: 1.5; }
  .footer__copy { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pitch, .cardwrap, .pillar, .blob--3, .done img, .btn__spinner { animation: none !important; }
}
