/* ============================================================================
   HDRSAM landing page + sign-in.
   Everything here is namespaced under .lp-* so it cannot collide with the
   app shell in styles.css.
   ========================================================================= */

.lp-root {
  --lp-blue:      #006fc9;
  --lp-blue-lit:  #2998ef;
  --lp-cyan:      #00a9c7;
  --lp-ink:       #0a2946;
  --lp-glass:     rgba(255, 255, 255, 0.82);
  --lp-hairline:  rgba(16, 72, 116, 0.16);
  --lp-gutter:    clamp(22px, 3.4vw, 56px);

  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--lp-ink);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

/* Full-viewport photo section. Position relative so the three background
   layers (photo, scrim, glow) stack within it and don't bleed into the
   white card section below. */
.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* The photograph — absolute within the hero section. */
.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-color: #0d2b44;
  background-image:
    url("/static/img/hero-hydrogen-station1.jpg"),
    url("/static/img/hero-hydrogen-station.jpg"),
    radial-gradient(120% 90% at 70% 35%, #1a5a99 0%, #0d2b44 60%, #071828 100%);
  background-size: cover, cover, cover;
  background-position: center 46%, center 46%, center;
  background-repeat: no-repeat;
}

/* Dark scrim: heavy on the left (hero copy) and bottom, fades right. */
.lp-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.00) 0%,
      rgba(0, 0, 0, 0.08) 40%,
      rgba(0, 0, 0, 0.42) 75%,
      rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(105deg,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.25) 38%,
      rgba(0, 0, 0, 0.00) 62%);
}

/* Subtle glow behind the headline. */
.lp-hero-glow {
  position: absolute;
  top: -14%; left: -12%;
  width: 68%; height: 78%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 32% 30%, rgba(255, 255, 255, 0.22) 0%, transparent 70%),
    radial-gradient(40% 44% at 14% 58%, rgba(41, 152, 239, 0.10) 0%, transparent 72%);
  filter: blur(24px);
  animation: lp-drift 26s ease-in-out infinite alternate;
}

@keyframes lp-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3%, 2.5%, 0) scale(1.07); }
}

/* ── Top bar ──────────────────────────────────────────────────────────────── */

.lp-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(14px, 2.4vh, 24px) var(--lp-gutter);
}
.lp-topbar-logo {
  width: 245px;
  height: auto;
  max-width: 48vw;
  object-fit: contain;
  flex: none;
  color: #fff;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  opacity: 1;
  filter: drop-shadow(0 3px 12px rgba(255, 255, 255, 0.30));
}
.lp-topbar-spacer { flex: 1; }

.lp-topbar-signin {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 82, 132, 0.22);
  background: rgba(255, 255, 255, 0.62);
  color: var(--lp-ink);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s;
}
.lp-topbar-signin:hover {
  background: #fff;
  border-color: rgba(0, 111, 201, 0.48);
  box-shadow: 0 8px 22px rgba(15, 67, 108, 0.15);
}

/* ── Hero copy (NO border, NO backdrop) ──────────────────────────────────── */

.lp-hero-inner {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px var(--lp-gutter) 40px;
}

.lp-hero-copy {
  box-sizing: border-box;
  width: 640px;
  max-width: 90vw;
  padding: 0;
  background: transparent;
  border: none;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.lp-eyebrow b {
  background: linear-gradient(92deg, var(--lp-cyan), var(--lp-blue-lit));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lp-title {
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.026em;
  margin: 0 0 14px;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.lp-subtitle {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
  max-width: 480px;
  margin-bottom: 24px;
}

.lp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
}
.lp-btn:disabled { opacity: 0.55; cursor: default; }
.lp-btn .lp-arrow { transition: transform 0.16s; }
.lp-btn:not(:disabled):hover .lp-arrow { transform: translateX(4px); }

.lp-btn-primary {
  background: linear-gradient(96deg, var(--lp-blue) 0%, #2b8cff 55%, #24c8f0 130%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(21, 115, 230, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.lp-btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(37, 150, 255, 0.58),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ── White section below the hero photo ──────────────────────────────────── */

.lp-below {
  background: #ffffff;
  padding: 44px var(--lp-gutter) 20px;
}

/* 4-column grid of white feature cards */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin-inline: auto;
}

.lp-card {
  position: relative;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 111, 201, 0.18);
  box-shadow: 0 2px 14px rgba(0, 80, 160, 0.07);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 111, 201, 0.38);
  box-shadow: 0 10px 32px rgba(0, 80, 160, 0.13);
}

.lp-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.lp-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #deeaf9;
  color: var(--lp-blue);
  border: none;
}
.lp-card-icon svg { width: 20px; height: 20px; display: block; }

.lp-card-title {
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--lp-blue);
}
.lp-card-text {
  font-size: 13px; line-height: 1.5;
  color: #4a5568;
  padding-left: 50px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.lp-footer {
  position: relative;
  padding: clamp(18px, 2.3vh, 28px) 0 0;
  font-size: 12px;
  color: #8a9bb0;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  max-width: 1400px;
  margin-inline: auto;
}

/* ── Auth modal ───────────────────────────────────────────────────────────── */

.lp-modal-backdrop {
  --lp-blue: #006fc9;
  --lp-blue-lit: #2998ef;
  --lp-cyan: #00a9c7;
  --lp-ink: #0a2946;
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(202, 228, 246, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lp-fade 0.18s ease-out;
}
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }

.lp-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 18px;
  padding: 26px 28px 22px;
  color: #0a2946;
  background: rgba(250, 253, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  box-shadow: 0 30px 80px rgba(14, 56, 91, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.94);
  animation: lp-rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.lp-modal-title {
  font-size: 21px; font-weight: 750; letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.lp-modal-sub {
  font-size: 13px; line-height: 1.55;
  color: #657f95;
  margin-bottom: 20px;
}

/* Segmented New / Returning toggle */
.lp-seg {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px;
  border-radius: 12px;
  background: rgba(229, 241, 249, 0.60);
  border: 1px solid rgba(183, 211, 231, 0.64);
  margin-bottom: 22px;
}
.lp-seg-btn {
  padding: 9px 10px;
  border: none; border-radius: 9px;
  background: transparent;
  color: #5d768b;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lp-seg-btn:hover { color: #0a2946; }
.lp-seg-btn.active {
  background: linear-gradient(96deg, var(--lp-blue), #2b8cff);
  color: #fff;
  box-shadow: 0 3px 12px rgba(21, 115, 230, 0.42);
}

.lp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.lp-field.full { grid-column: 1 / -1; }

.lp-label {
  display: block;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.045em; text-transform: uppercase;
  color: #466a86;
  margin-bottom: 6px;
}
.lp-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
  color: #102f4b;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(175, 207, 229, 0.74);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.lp-input::placeholder { color: #9aafbf; }
.lp-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--lp-blue-lit);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.18);
}
.lp-input.invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
}
.lp-field-error {
  margin-top: 5px;
  font-size: 11.5px;
  color: #c62828;
}

.lp-form-msg {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px; line-height: 1.5;
  margin-bottom: 16px;
}
.lp-form-msg.error {
  background: #fff0f0;
  border: 1px solid #efb5b5;
  color: #a61b1b;
}
.lp-form-msg.info {
  background: #eaf5ff;
  border: 1px solid #b8daf5;
  color: #14578c;
}
.lp-form-msg button {
  display: inline-block;
  margin-top: 9px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 111, 201, 0.28);
  background: #fff;
  color: #075c9f;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.lp-form-msg button:hover { background: #eef7fe; }

.lp-modal-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
}
.lp-modal-actions .lp-btn { flex: 1; justify-content: center; }
.lp-link-btn {
  background: none; border: none;
  color: #5c7890;
  font-family: inherit; font-size: 13px;
  cursor: pointer; padding: 8px 4px;
}
.lp-link-btn:hover { color: #075c9f; text-decoration: underline; }

/* Small spinner */
.lp-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-spin 0.7s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .lp-cards { grid-template-columns: 1fr; }
  .lp-hero-copy { max-width: 100%; }
  .lp-title { font-size: 32px; }
  .lp-subtitle { font-size: 13.5px; }
  .lp-topbar-logo { width: 210px; max-width: 54vw; }
  .lp-form-grid { grid-template-columns: 1fr; }
  .lp-cta-row .lp-btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-glow, .lp-modal, .lp-modal-backdrop { animation: none; }
  .lp-btn, .lp-card { transition: none; }
}
