/* ============================================================
   Modern Therapy Group, Patient app
   Visually similar to the marketing site (same color tokens,
   serif/sans/mono pairing) but with a clear "secure patient app"
   visual signal so visitors know they crossed a boundary.
   ============================================================ */

:root {
  --cream:    #F5EEDF;
  --cream-2:  #EBE2CE;
  --sand:     #D9CBAE;
  --ink:      #1B1714;
  --ink-2:    #4A3F36;
  --ink-3:    #786757;
  --butter:   #F4D26A;
  --butter-2: #FAE9B3;
  --moss:     #5A6A4E;
  --moss-2:   #8FA084;
  /* Brand-consistent accents (replaced an off-brand blue). These "secure"
     tokens now map to the site's moss + butter so this page matches the
     marketing site exactly. */
  --secure:   #5A6A4E; /* moss */
  --secure-2: #FAE9B3; /* butter-2 */

  --font-serif: "Newsreader", "Times New Roman", serif;
  --font-sans:  "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap-px: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body { font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Demo banner (only on the temp Netlify deploy) ----------
   Loudly identifies this as a non-production demo so no real visitor
   confuses the placeholder with the HIPAA-covered Render-hosted app.
   Remove the banner element from each page once Render BAA is signed
   and the app is moved to app.moderntherapygroup.com. */
.demo-banner {
  background: var(--ink);
  color: var(--butter);
  border-bottom: 2px solid var(--butter);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px var(--wrap-px);
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 100;
}
.demo-banner strong { letter-spacing: .14em; }
.demo-banner em { font-style: normal; opacity: .85; display: inline-block; margin-left: 8px; }
main { flex: 1; }
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 var(--wrap-px); }
.wrap-tight { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--wrap-px); }

/* ---------- Top nav (minimal, secure-themed) ---------- */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--wrap-px);
  background: var(--secure);
  color: var(--cream);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
.app-nav .logo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -.01em;
}
.app-nav .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--butter);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Page typography ---------- */
.page { padding: 80px 0 120px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secure);
  margin-bottom: 16px;
}
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-primary { background: var(--butter); color: var(--ink); }
.pill-ghost { background: transparent; color: var(--ink); border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent); }
.arrow { display: inline-block; transition: transform .2s ease; }
.pill:hover .arrow { transform: translate(3px, 0); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

/* ---------- HIPAA notice block ---------- */
.hipaa-notice {
  background: var(--secure-2);
  border-left: 4px solid var(--secure);
  border-radius: 10px;
  padding: 24px 28px;
}
.hipaa-notice h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--secure);
}
.hipaa-notice p, .hipaa-notice ul { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.hipaa-notice ul { padding-left: 22px; }
.hipaa-notice li { margin-bottom: 6px; }

/* ---------- Form shell (JotForm wrapper) ---------- */
.form-shell {
  background: var(--cream-2);
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
}

/* ---------- Results card ---------- */
.results-card {
  background: var(--cream-2);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 32px;
  border-top: 6px solid var(--moss-2);
}
.results-card .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent); }
.results-card .row:last-child { border-bottom: 0; }
.results-card .row-label { color: var(--ink-2); font-size: 14px; }
.results-card .row-value { font-weight: 500; }

/* ---------- Footer ---------- */
.app-foot {
  padding: 32px var(--wrap-px);
  border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  text-align: center;
}
.micro {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Verification form (verify/) ---------- */
.vform { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.vform .field { display: flex; flex-direction: column; gap: 6px; }
.vform label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.vform input, .vform select {
  font: inherit; font-size: 16px; padding: 14px 16px; background: var(--cream);
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  border-radius: 10px; color: var(--ink); outline: none;
}
.vform input:focus, .vform select:focus { border-color: var(--secure); box-shadow: 0 0 0 3px var(--secure-2); }
.vform .row-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .vform .row-2 { grid-template-columns: 1fr 1fr; } }
.vform .check { flex-direction: row; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 15px; color: var(--ink-2); }
.vform .check input { width: auto; }

/* ---------- Result card ---------- */
.result-card { margin-top: 32px; padding: 28px; border-radius: 18px; background: var(--cream-2); border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
.result-card--ok { border-color: var(--moss); background: color-mix(in oklab, var(--moss-2) 22%, var(--cream)); }
.result-card--soft { border-color: var(--secure); }
.result-card h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px; }
.result-card p { color: var(--ink-2); line-height: 1.6; }
.result-cost { font-family: var(--font-mono); font-size: 18px; color: var(--ink); margin-bottom: 8px; }
