/* Round 12 — mynomadhealth.com patient-facing marketing site.
   Same glass design language as the SanaLogs SPA (web/src/styles/glass.css
   is the reference: same tokens, same gradients) but fully self-contained —
   no webfont downloads, no external requests, so the page renders fast on a
   phone with zero third-party calls. */
:root {
  --bg-0: #070b18; --bg-1: #0a0a1f; --bg-2: #0b0720;
  --glass-fill: rgba(255, 255, 255, 0.07);
  --glass-fill-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur: saturate(140%) blur(12px);
  --grad-primary: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --text: #E6EAF5; --text-dim: #93A0BC;
  --danger: #DC2626; --ok: #34D399; --warn: #F59E0B;
  --radius: 16px; --radius-sm: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-2) 100%);
  background-attachment: fixed; min-height: 100vh;
  line-height: 1.55;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(59,130,246,.30), transparent 50%),
    radial-gradient(ellipse at 85% 12%, rgba(139,92,246,.26), transparent 50%),
    radial-gradient(ellipse at 70% 88%, rgba(59,130,246,.16), transparent 55%);
}
.glass {
  background: var(--glass-fill); border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.glass-strong { background: var(--glass-fill-strong); }
a { color: #8B9EF6; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* BAA gate banner — shown unless /site-config.json says
   acceptingRealPatients: true (fail-safe: any fetch error keeps it shown). */
#test-mode-banner {
  background: var(--warn); color: #1a1200; font-weight: 600;
  text-align: center; padding: 9px 16px; font-size: 14px;
}
#test-mode-banner.hidden { display: none; }

header.site {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 0;
}
/* Round 12 — Nomad Health app icon in the site header (owner-chosen art) */
header.site .brand-logo {
  width: 46px; height: 46px; border-radius: 11px; flex: 0 0 auto;
  display: block; object-fit: cover;
  /* Round 19: neutral drop shadow instead of a blue glow halo — the halo
     read as a faint "ghost" around the app-icon squircle. */
  box-shadow: 0 3px 12px rgba(8, 10, 24, .5);
}
/* Round 12 mobile pass: under 700px the single-row header squeezed the
   brand text into a tall skinny column beside the nav ("mushed"). Stack:
   logo + brand on one row, nav full-width beneath. */
@media (max-width: 700px) {
  header.site { flex-wrap: wrap; }
  header.site .brand { flex: 1; }
  header.site nav { margin-left: 0; flex-basis: 100%; gap: 12px 16px; padding-top: 4px; }
}
header.site .brand { font-size: 20px; font-weight: 600; letter-spacing: .3px; }
header.site .brand small { display: block; font-size: 12px; color: var(--text-dim); font-weight: 400; }
header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
header.site nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 64px 0 48px; }
.hero h1 {
  font-size: clamp(32px, 6vw, 54px); margin: 0 0 14px;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lede { color: var(--text-dim); font-size: clamp(16px, 2.5vw, 19px); max-width: 640px; margin: 0 auto 28px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: var(--glass-fill);
  color: var(--text); font: 600 15px inherit; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--glass-fill-strong); }
.btn-primary { background: var(--grad-primary); border: none; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

section { padding: 40px 0; }
section h2 { font-size: 28px; margin: 0 0 8px; }
section p.sub { color: var(--text-dim); margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.card .price {
  font-size: 30px; font-weight: 600; margin: 12px 0 2px;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.card .per { color: var(--text-dim); font-size: 12px; margin-bottom: 14px; }
.card .btn { width: 100%; text-align: center; }

ul.pricelist { list-style: none; margin: 0; padding: 0; }
ul.pricelist li {
  display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid var(--glass-border); font-size: 14px;
}
ul.pricelist li:last-child { border-bottom: none; }
/* Round 12 mobile pass: values may wrap (long entries like the service-area
   line overflowed 375px portrait when nowrap was forced); prices stay
   one-line naturally because they are short. */
ul.pricelist li span:last-child { color: var(--text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
ul.pricelist li span:first-child { color: var(--text-dim); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps .step { padding: 20px; position: relative; }
.steps .step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 600; margin-bottom: 10px;
}
.steps .step h3 { margin: 0 0 6px; font-size: 16px; }
.steps .step p { color: var(--text-dim); font-size: 14px; margin: 0; }

footer.site {
  margin-top: 40px; padding: 28px 0 40px; border-top: 1px solid var(--glass-border);
  color: var(--text-dim); font-size: 13px;
}
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

/* Round 19 — brick-and-mortar Miami DPC model: "opening in Miami" badge,
   the "It all starts with a call" flow, disposition grid, plan tags. */
/* Round 19 — one cohesive icon set: a single accent-color line icon inside
   a soft translucent rounded tile, identical size/stroke everywhere it
   appears (how-DPC pillars + the four triage dispositions). No emoji. */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px;
  background: rgba(139, 158, 246, 0.12);
  border: 1px solid rgba(139, 158, 246, 0.30);
  color: #9db0ff;
}
.icon-tile svg { width: 26px; height: 26px; min-width: 26px; min-height: 26px; max-width: 26px; max-height: 26px; flex: 0 0 auto; display: block; }
.disposition .icon-tile { margin-left: auto; margin-right: auto; }

section#call-flow { padding-top: 20px; }
.callflow { display: flex; flex-direction: column; align-items: stretch; }
.callflow-lead {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 520px; margin: 0 auto;
}
.callflow-step {
  width: 100%; padding: 18px 20px; text-align: center; position: relative;
}
.callflow-step h3 { margin: 8px 0 6px; font-size: 17px; }
.callflow-step p { color: var(--text-dim); font-size: 14px; margin: 0; }
.callflow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 700; font-size: 16px;
}
.callflow-arrow { color: #8B9EF6; font-size: 22px; line-height: 1; }
.callflow-fan { margin-bottom: 4px; }
.callflow-label {
  text-align: center; color: var(--text); font-weight: 600;
  margin: 22px 0 16px; font-size: 16px;
}
.dispositions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.disposition { text-align: center; padding: 22px 18px; }
.disposition h3 { margin: 0 0 6px; font-size: 16px; }
.disposition p { color: var(--text-dim); font-size: 13px; margin: 0; }
/* Two-up on tablets, single column on phones — never a squished 4-across. */
@media (max-width: 860px) { .dispositions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dispositions { grid-template-columns: 1fr; } }

/* Plan emphasis tags (Essential "Most popular", Nomad Home "Concierge",
   walk-in "Credited if you join"). */
.plan-featured, .plan-concierge { position: relative; }
.plan-tag {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--grad-primary); color: #fff;
}
.plan-tag-alt { background: var(--glass-fill-strong); color: var(--text); border: 1px solid var(--glass-border); }
.subhead { font-size: 20px; margin: 30px 0 6px; }

/* welcome.html — signup flow */
.narrow { max-width: 560px; margin: 0 auto; }
form.signup { padding: 26px; }
form.signup label { color: var(--text-dim); font-size: 13px; display: block; margin: 12px 0 4px; }
form.signup input, form.signup select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: rgba(0,0,0,0.25);
  color: var(--text); font: 400 15px inherit; font-family: inherit;
}
form.signup input:focus, form.signup select:focus { outline: 2px solid #3B82F6; }
form.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { form.signup .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; top: -9999px; }
.error-box { color: #ffb4b4; background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.4); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin-top: 14px; }
.creds { padding: 26px; }
.creds dt { color: var(--text-dim); font-size: 13px; margin-top: 12px; }
.creds dd { margin: 2px 0 0; font-family: 'Fira Code', ui-monospace, monospace; font-size: 17px; word-break: break-all; }
.notice { color: var(--warn); font-size: 13px; margin-top: 14px; }

/* Round 12 — Our Staff (About section). Initials avatars in the brand
   gradient until real headshots exist. */
.staff-heading { font-size: 20px; margin: 26px 0 14px; }
.staff-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.staff-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff;
  font-size: 26px; font-weight: 600; letter-spacing: 1px;
  margin-bottom: 14px; box-shadow: 0 4px 18px rgba(91, 124, 250, .4);
}
.staff-card .staff-role { color: #8B9EF6; font-size: 13px; font-weight: 600; margin: 2px 0 10px; }

/* Round 12 — intake slot picker (marketing modal + welcome inline). */
.slot-modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 6, 16, .72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.slot-modal[hidden] { display: none; }
.slot-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: 86vh;
  overflow-y: auto; padding: 24px;
}
.slot-dialog h3 { margin: 0 0 6px; padding-right: 34px; }
.slot-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--text-dim);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.slot-close:hover { color: var(--text); }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.slot-day {
  flex: 0 0 auto; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: var(--glass-fill);
  color: var(--text-dim); font: 600 13px inherit; font-family: inherit; cursor: pointer;
  white-space: nowrap;
}
.slot-day.active { background: var(--grad-primary); color: #fff; border-color: transparent; }
.slot-times {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px; margin-top: 10px;
}
.slot-time {
  padding: 10px 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: var(--glass-fill);
  color: var(--text); font: 600 13px inherit; font-family: inherit; cursor: pointer;
}
.slot-time:hover { background: var(--glass-fill-strong); }
.slot-empty { color: var(--text-dim); font-size: 14px; }
.slot-confirm {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--glass-border); font-size: 14px;
}
.slot-confirm[hidden] { display: none; }

/* welcome.html slot box */
.slot-box { padding: 16px 18px; margin-bottom: 16px; }
.slot-box .slot-label { display: block; color: var(--text-dim); font-size: 13px; margin-bottom: 6px; }
.slot-box #slot-summary { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.slot-box #slot-summary[hidden], .slot-box #slot-inline[hidden] { display: none; }
.slot-box #slot-summary .slot-label { margin-bottom: 0; }
.btn-slim { padding: 7px 14px; font-size: 13px; }
