/* Shared shell for the Ilitha Care and TruMD Verify portals.
   Brand tokens follow the TruMd&Ilitha source: Ilitha orange #FF6700,
   TruMD blue #1863DC, Montserrat headings on Inter body copy. */

:root {
  --ilitha-orange: #ff6700;
  --ilitha-orange-dark: #e05300;
  --trumd-blue: #1863dc;
  --trumd-blue-dark: #1247a6;
  --dark-text: #181818;
  --body-text: #374151;
  --muted-text: #6b7280;
  --light-bg: #fafaf9;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --green: #10b981;
  --green-light: #ecfdf5;
  --red: #b91c1c;
  --red-light: #fef2f2;

  --brand: var(--ilitha-orange);
  --brand-dark: var(--ilitha-orange-dark);
  --brand-tint: #fff4ed;
}

[data-brand="trumd"] {
  --brand: var(--trumd-blue);
  --brand-dark: var(--trumd-blue-dark);
  --brand-tint: #eff6ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--light-bg);
  color: var(--body-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: Montserrat, Inter, sans-serif;
  color: var(--dark-text);
  letter-spacing: -0.01em;
}

header.topbar {
  background: #fff;
  border-bottom: 3px solid var(--brand);
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  background: var(--brand);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}

.brand-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--dark-text);
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--muted-text);
}

.session {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.card + .card {
  margin-top: 1.25rem;
}

.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.card .hint {
  font-size: 0.82rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: #fff;
  margin-bottom: 0.9rem;
}

input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 9px;
  padding: 0.7rem 1.15rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--brand-dark);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border-color);
}

button.ghost:hover:not(:disabled) {
  background: var(--brand-tint);
}

.signin-wrap {
  max-width: 420px;
  margin: 3rem auto;
}

.otp-note {
  background: var(--brand-tint);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.msg {
  border-radius: 9px;
  padding: 0.7rem 0.9rem;
  font-size: 0.83rem;
  margin-bottom: 0.9rem;
}

.msg.error {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #fecaca;
}

.msg.ok {
  background: var(--green-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.kpi {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.kpi .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
  margin-bottom: 0.35rem;
}

.kpi .value {
  font-family: Montserrat, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark-text);
}

.kpi .sub {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-top: 0.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.pill.active {
  background: var(--green-light);
  color: #065f46;
}

.pill.inactive {
  background: var(--red-light);
  color: var(--red);
}

.feature-list {
  list-style: none;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.action {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand);
  border-radius: 11px;
  background: var(--brand-tint);
  text-decoration: none;
  color: var(--dark-text);
}

.action:hover {
  border-color: var(--brand);
}

.action-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.action-sub {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
}

.cta:hover {
  background: var(--brand-dark);
}

.step-list {
  margin: 0 0 1.2rem 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.fineprint {
  font-size: 0.76rem;
  color: var(--muted-text);
  margin-top: 0.9rem;
}

.source-note {
  font-size: 0.76rem;
  color: var(--muted-text);
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-color);
}

.source-note code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

.hidden {
  display: none !important;
}
