/* SAAR Quote — the public landing page.
   Features on the left, sign-in on the right, one screen, no scrolling on a
   normal desktop. Consumes tokens.css like everything else, so re-theming the
   app re-themes this too. */

.landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--c-bg);
}
/* A grid item defaults to min-width:auto, so a long headline or a row of pills
   can push its column wider than the screen and the page scrolls sideways with
   the text cut off at the edge. min-width:0 lets the columns actually shrink. */
.landing > section { min-width: 0; }

/* ── Left: what the product is ─────────────────────────────────────────── */
.landing__pitch {
  padding: var(--s-8, 40px) clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  /* The brand gradient, quietly: a wash rather than a billboard. */
  background:
    radial-gradient(1100px 520px at -10% -20%, #eef2ff 0%, transparent 60%),
    radial-gradient(900px 480px at 110% 120%, #fae8ff 0%, transparent 55%),
    var(--c-surface);
  border-right: 1px solid var(--c-border);
}

/* The artwork is 1536x768 with white space baked in, so it needs more width
   than a tight wordmark would. margin-left pulls the optical edge back into
   line with the text below it. */
.landing__logo { width: 340px; max-width: 78%; height: auto; margin-left: -18px; }

.landing__head h1 {
  margin: 0 0 10px;
  overflow-wrap: break-word;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--c-text);
}
.landing__head p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: var(--fs-lg, 16px);
  max-width: 52ch;
  line-height: 1.55;
}

.landing__flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--c-text-muted);
}
.landing__flow span {
  padding: 5px 11px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  white-space: nowrap;
}
.landing__flow i { color: var(--c-text-subtle); font-style: normal; }

.landing__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0; padding: 0; list-style: none;
}
.landing__features li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.landing__features .tick {
  margin-top: 2px;
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #22d3ee, #6366f1 55%, #c026d3);
  color: #fff; font-size: 12px; line-height: 1;
}
.landing__features b {
  display: block;
  font-size: 13.5px; font-weight: var(--fw-semi, 600); color: var(--c-text);
}
.landing__features small {
  display: block;
  font-size: 12.5px; color: var(--c-text-muted); line-height: 1.45;
}

.landing__foot {
  font-size: 12px; color: var(--c-text-subtle);
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* ── Right: sign in ────────────────────────────────────────────────────── */
.landing__auth {
  display: grid;
  place-items: center;
  padding: var(--s-8, 40px) clamp(20px, 4vw, 56px);
}
.landing__card {
  width: 100%; max-width: 380px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg, 14px);
  padding: 30px 28px;
  box-shadow: 0 10px 34px rgba(26, 29, 43, 0.07);
}
.landing__card h2 { margin: 0 0 4px; font-size: 20px; color: var(--c-text); }
.landing__card .sub { margin: 0 0 20px; color: var(--c-text-muted); font-size: 13.5px; }
.landing__card .form-row { margin-bottom: 14px; }
.landing__card label {
  display: block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: var(--fw-med, 500); color: var(--c-text-muted);
}
.landing__card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md, 8px);
  font-size: 14px; font-family: inherit; color: var(--c-text);
  background: var(--c-surface);
}
.landing__card input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.landing__card button[type="submit"] {
  width: 100%;
  padding: 11px 14px;
  border: 0; border-radius: var(--r-md, 8px);
  background: linear-gradient(135deg, #3b82f6, #6366f1 55%, #a855f7);
  color: #fff; font-size: 14.5px; font-weight: var(--fw-semi, 600);
}
.landing__card button[type="submit"]:hover { filter: brightness(1.05); }

.landing__error {
  margin-bottom: 14px; padding: 9px 12px;
  border-radius: var(--r-md, 8px);
  background: var(--c-danger-soft); color: var(--c-danger);
  font-size: 13px;
}
.landing__hint {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: 12px; color: var(--c-text-subtle); line-height: 1.6;
}

/* ── Narrow screens: pitch first, then the form ────────────────────────── */
@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; }
  .landing__pitch { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .landing__features { grid-template-columns: 1fr; }
  .landing__auth { padding-top: 28px; padding-bottom: 48px; }
}
