/* =====================================================================
   immcase.app — gateway page.
   "Forward Fan" brand system, matching www.immcase.com:
   green #8CC63F -> teal #3FB6A8 -> blue #1CA3DC -> deep blue #0E76BC,
   navy ink #16314D, Plus Jakarta Sans.
   ===================================================================== */

:root {
  --green:       #8CC63F;
  --teal:        #3FB6A8;
  --blue:        #1CA3DC;
  --deep-blue:   #0E76BC;
  --bright-blue: #37B6EA;
  --ink:         #16314D;

  --bg:      #ffffff;
  --bg-soft: #f5f8fb;
  --bg-tint: #eef5fb;
  --line:    #e2e8f0;
  --text:    #1f2d3d;
  --muted:   #5b6b7e;

  --maxw: 1040px;
  --radius: 18px;
  --shadow-sm: 0 8px 24px -14px rgba(14, 49, 77, .35);
  --shadow:    0 18px 50px -20px rgba(14, 49, 77, .28);
  --fan: linear-gradient(90deg, var(--green) 0%, var(--teal) 38%, var(--blue) 70%, var(--deep-blue) 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--deep-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- fan bar + header ---------- */

.fanbar { height: 5px; background: var(--fan); }

.site-head { padding: 22px 0; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-block; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 142px; height: auto; }

.langs { display: flex; gap: 4px; }
.lang {
  appearance: none;
  border: 1px solid transparent;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.lang:hover { color: var(--ink); background: var(--bg-soft); }
.lang.is-on { color: var(--ink); background: var(--bg-tint); border-color: #d7e6f4; }
.lang:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; }

/* ---------- hero ---------- */

.hero { padding: 42px 0 40px; max-width: 700px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--fan);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-1px);
}

.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.lede { margin: 16px 0 0; font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); }

/* ---------- the two cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.card {
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  height: 100%;
}

.card h2 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }

.card-icon { width: 44px; height: 44px; margin-bottom: 20px; }
.card-icon svg { width: 100%; height: 100%; }
.card-icon-flat { padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }

/* Practitioner card — the one with the action. */
.card-pro {
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-pro:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-pro .steps { flex: 1 1 auto; }

.btn {
  align-self: flex-start;
  margin-top: 24px;
  display: inline-block;
  background: var(--deep-blue);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 11px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn::after { content: " \2192"; }
.btn:hover {
  background: #0b6099;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(14, 118, 188, .8);
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Applicant card — informational, deliberately has no button. */
.card-applicant {
  background: var(--bg-tint);
  border: 1px solid #d7e6f4;
  position: relative;
  overflow: hidden;
}
.card-applicant::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--fan);
}

.steps { margin: 18px 0 0; padding: 0; list-style: none; }
.steps li {
  position: relative;
  padding-left: 26px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 15.5px;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- apps strip ---------- */

.apps { margin: 56px 0 64px; padding-top: 34px; border-top: 1px solid var(--line); }

.apps-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.apps-head h2 { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.apps-head p { margin: 0; font-size: 14px; color: var(--muted); }

.app-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.app-list a {
  display: block;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.app-list a:hover { text-decoration: none; border-color: #c6dcef; background: #fff; }
.app-name { display: block; font-weight: 700; color: var(--ink); }
.app-desc { display: block; font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.app-host { display: block; font-size: 13px; color: var(--deep-blue); margin-top: 9px; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 24px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-foot p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 30px 0 32px; }
  .apps { margin: 44px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card-pro:hover, .btn:hover { transform: none; }
}
