/* KRDL Solutions developer site — single shared stylesheet.
   Dark theme matched to the Home or Hospital app (#0f1419 base). */

:root {
  --bg: #0f1419;
  --bg-elev: #161d26;
  --bg-card: #1b2530;
  --border: #2a3744;
  --text: #e7edf3;
  --text-dim: #9fb0c0;
  --accent: #4ea1ff;
  --accent-dim: #2b6fb8;
  --danger: #ff6b6b;
  --ok: #5ad19a;
  --maxw: 760px;
  --radius: 12px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #06121f;
}
.nav a {
  color: var(--text-dim);
  margin-left: 18px;
  font-size: 15px;
}
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
.hero p.lead { font-size: 18px; color: var(--text-dim); margin: 0 0 8px; max-width: 60ch; }

/* Sections */
main { padding: 8px 0 64px; }
section { margin: 36px 0; }
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

/* App card */
.app-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 14px 0;
}
.app-card:hover { border-color: var(--accent-dim); text-decoration: none; }
.app-card .icon {
  width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto;
  background: linear-gradient(135deg, #1e3a52, #0f1419);
  border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 28px;
}
.app-card .body { min-width: 0; }
.app-card .body h3 { margin: 0 0 4px; color: var(--text); font-size: 18px; }
.app-card .body p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Legal / prose pages */
.prose { max-width: 70ch; }
.prose h1 { font-size: 28px; margin: 0 0 6px; }
.prose .updated { color: var(--text-dim); font-size: 14px; margin: 0 0 28px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose code {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 13px;
}

/* Callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 15px;
}
.callout.warn { border-left-color: var(--danger); }

/* Contact box */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-box .email {
  font-size: 18px; font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.site-footer .links a { margin-left: 0; margin-right: 18px; }

@media (max-width: 540px) {
  .hero { padding: 44px 0 28px; }
  .hero h1 { font-size: 27px; }
  .app-card { flex-direction: row; }
}
