/* =============================================================================
   Temia — Landing / role chooser
   -----------------------------------------------------------------------------
   The first screen anyone sees: the mark, one sentence about the platform, and
   the two ways into it. Loaded after css/common.css, and namespaced under
   `.tm-land`, so none of it can reach an application screen.

   The palette is the sidebar's: navy ground, white card, Tertiary100 for the
   one accent. Everything inside the cards — buttons, badges, icons, type — is
   the shared component set.
   ============================================================================ */

.tm-land {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--space-8) var(--space-5);
  background: var(--color-secondary-100);
  color: var(--color-white);
}

/* A wash of light behind the content, so the navy reads as depth rather than a
   flat fill. Two soft radials, no image. */
.tm-land::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgb(60 112 209 / 35%), transparent 70%),
    radial-gradient(50% 45% at 90% 100%, rgb(11 76 197 / 28%), transparent 70%);
  pointer-events: none;
}

.tm-land__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 960px;
  margin: auto;
}


/* =============================================================================
   1. Masthead
   ============================================================================ */
.tm-land__head { text-align: center; max-width: 640px; }

.tm-land__logo { justify-content: center; margin-bottom: var(--space-6); }
.tm-land__logo .tm-logo__img { height: 44px; }

.tm-land__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-3xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-normal);
}

.tm-land__text {
  margin: 0;
  font-size: var(--font-size-md);
  line-height: var(--line-height-md);
  color: var(--color-secondary-20);
}

/* The instruction that makes the cards obviously clickable */
.tm-land__prompt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 8%);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--color-secondary-20);
}
.tm-land__prompt .tm-icon { color: var(--color-tertiary-100); }


/* =============================================================================
   2. Role cards
   -----------------------------------------------------------------------------
   Each card is one big link, so the whole surface is the target rather than a
   button buried inside it. The chevron and the lift on hover say so; the focus
   ring is the shared one, because these are reached by keyboard too.
   ============================================================================ */
.tm-land__roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  width: 100%;
}

.tm-role {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-6);
  border: 1px solid var(--color-shade-10);
  border-radius: var(--radius-xs);
  background: var(--color-white);
  color: var(--color-shade-80);
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.tm-role:hover,
.tm-role:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-primary-80);
  box-shadow: 0 16px 32px rgb(0 0 0 / 28%);
  color: var(--color-shade-80);
}

.tm-role:focus-visible { outline: 2px solid var(--color-tertiary-100); outline-offset: 3px; }

.tm-role__head { display: flex; align-items: center; gap: var(--space-3); }

.tm-role__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  background: var(--color-secondary-10);
  color: var(--color-secondary-100);
}

/* The associate is the other side of the same line of work, so it takes the
   primary tint rather than the secondary one */
.tm-role--associate .tm-role__icon { background: var(--color-primary-10); color: var(--color-primary-100); }

.tm-role__name {
  margin: 0;
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary-100);
}

.tm-role__eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-2xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-shade-60);
}

.tm-role__text {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-md);
  color: var(--color-shade-60);
}

/* What the role can actually reach, stated plainly */
.tm-role__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-role__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--color-shade-80);
}
.tm-role__list .tm-icon { flex: 0 0 auto; margin-top: 2px; color: var(--color-green); }

.tm-role__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-shade-10);
}

.tm-role__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-80);
}
.tm-role:hover .tm-role__cta { color: var(--color-primary-100); }

/* The arrow steps forward on hover — the small movement that reads as "go" */
.tm-role__cta .tm-icon { transition: transform .16s ease; }
.tm-role:hover .tm-role__cta .tm-icon { transform: translateX(3px); }


/* =============================================================================
   3. Foot
   ============================================================================ */
.tm-land__foot {
  position: relative;
  z-index: 1;
  margin-top: var(--space-8);
  text-align: center;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  color: var(--color-secondary-40);
}
.tm-land__foot a { color: var(--color-secondary-20); text-decoration: underline; }
.tm-land__foot a:hover { color: var(--color-white); }


/* =============================================================================
   4. Responsive
   ============================================================================ */
@media (max-width: 767.98px) {
  .tm-land { padding: var(--space-6) var(--space-4); }
  .tm-land__inner { gap: var(--space-6); }
  .tm-land__roles { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .tm-land__title { font-size: var(--font-size-3xl); line-height: var(--line-height-2xl); }
  .tm-land__logo .tm-logo__img { height: 36px; }
  .tm-role { padding: var(--space-5); }
}

/* A hover lift is meaningless where there is no pointer, and the motion is
   unwelcome for anyone who has asked for less of it */
@media (hover: none) {
  .tm-role:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-role,
  .tm-role__cta .tm-icon { transition: none; }
  .tm-role:hover { transform: none; }
  .tm-role:hover .tm-role__cta .tm-icon { transform: none; }
}
