/* Landing page — the front door of the app, shown before any navigation exists.
   South Florida palette: ivory and shell, forest green, Gulf gold, warm brick. */

html,
body {
  min-height: 100%;
}

.landing-root {
  min-height: 100vh;
  background:
    radial-gradient(760px 420px at 6% -6%, rgba(196, 137, 47, 0.16), transparent 62%),
    radial-gradient(680px 420px at 100% 100%, rgba(29, 90, 61, 0.12), transparent 60%),
    var(--surface-sunken);
}

.landing-root[hidden],
.application-frame[hidden] {
  display: none !important;
}

.landing-shell {
  display: grid;
  grid-template-columns: minmax(430px, 46%) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---- Left: the agency introduction and the sign-in ---- */

.landing-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 38px);
  background: linear-gradient(165deg, #fffdf7 0%, #f7f0df 100%);
  border-right: 1px solid var(--border-muted);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-brand strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.landing-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.landing-brand .brand-mark {
  width: 46px;
  height: 46px;
  color: var(--accent-deep);
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
  flex-wrap: wrap;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-nav-item {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease;
}

.landing-nav-item:hover {
  background: rgba(16, 41, 30, 0.07);
  border-color: rgba(16, 41, 30, 0.18);
}

.landing-nav-item.is-current {
  border-color: rgba(16, 41, 30, 0.24);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-title {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.landing-title em {
  color: var(--accent-gold);
  font-style: italic;
}

.landing-lede {
  margin: 0;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.landing-points {
  display: grid;
  gap: 5px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.landing-points li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.landing-points li::before {
  content: '◆';
  font-size: 8px;
  line-height: 1.9;
  color: var(--accent-gold);
}

.landing-points strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- Sign-in card ---- */

.landing-signin {
  margin-top: auto;
  width: 100%;
  max-width: 420px;
  padding: 15px 16px;
  background: #fffefb;
  border: 1px solid var(--border-muted);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(30, 45, 35, 0.08);
}

.landing-signin h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-deep);
}

.landing-signin-note {
  margin: 0 0 9px;
  font-size: 11px;
  color: var(--text-faint);
}

.landing-form {
  display: grid;
  gap: 7px;
}

.landing-field {
  display: grid;
  gap: 3px;
}

.landing-field span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.landing-field input {
  padding: 6px 10px;
  font-size: 13px;
}

.landing-form .button-primary {
  margin-top: 3px;
  padding: 9px 18px;
}

.landing-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.landing-divider::before,
.landing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-muted);
}

.landing-demo {
  width: 100%;
  font-size: 12px;
  padding: 8px 14px;
}

.landing-smallprint {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-faint);
}

.landing-smallprint a {
  color: var(--accent-primary);
}

/* ---- Right: the Florida collage ---- */

.landing-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1.2fr 1fr 0.95fr 1fr;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(160deg, #0d241a, #123326 55%, #0a1c14);
}

.landing-collage figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0a1c14;
}

.landing-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
  transition: transform 420ms ease;
}

.landing-collage figure:hover img {
  transform: scale(1.03);
}

.landing-collage figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 17, 0) 55%, rgba(8, 24, 17, 0.45));
  pointer-events: none;
}

.collage-main {
  grid-area: 1 / 1 / 3 / 3;
}

.collage-b {
  grid-area: 1 / 3 / 2 / 4;
}

.collage-c {
  grid-area: 2 / 3 / 3 / 4;
}

.collage-d {
  grid-area: 3 / 3 / 4 / 4;
}

.collage-e {
  grid-area: 4 / 1 / 5 / 2;
}

.collage-f {
  grid-area: 4 / 2 / 5 / 3;
}

.collage-g {
  grid-area: 4 / 3 / 5 / 4;
}

.collage-caption {
  grid-area: 3 / 1 / 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 10px;
  background:
    radial-gradient(220px 160px at 90% 0%, rgba(196, 137, 47, 0.28), transparent 70%),
    rgba(9, 27, 19, 0.92);
  border: 1px solid rgba(196, 137, 47, 0.28);
}

.collage-caption span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e3b566;
}

.collage-caption strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.1;
  color: #fbf3df;
}

.collage-caption small {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(250, 244, 230, 0.66);
}

/* ---- Responsive ---- */

@media (max-width: 1080px) {
  .landing-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-panel {
    order: 2;
    border-right: 0;
    border-top: 1px solid var(--border-muted);
  }

  .landing-collage {
    order: 1;
    grid-template-rows: 168px 112px auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collage-main {
    grid-area: 1 / 1 / 3 / 3;
  }

  .collage-b {
    grid-area: 1 / 3 / 3 / 4;
  }

  .collage-c,
  .collage-d,
  .collage-e,
  .collage-f,
  .collage-g {
    display: none;
  }

  .collage-caption {
    grid-area: 3 / 1 / 4 / 4;
    padding: 12px 14px;
  }

  .collage-caption strong {
    font-size: 16px;
  }

  .collage-caption small {
    display: none;
  }

  .landing-signin {
    margin-top: 0;
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .landing-collage {
    grid-template-rows: 132px 96px auto;
    gap: 6px;
    padding: 6px;
  }

  .landing-title {
    font-size: clamp(28px, 8vw, 34px);
  }

  .landing-panel {
    padding: 20px 16px 28px;
  }

  .landing-signin {
    padding: 14px;
  }
}
