/* hipaaform.ai — shared tokens and primitives (every page) */
:root {
  --ink: #0C1B2A;
  --ink-2: #33455A;
  --muted: #5B6B7F;            /* 4.9:1 or better on every panel background (WCAG AA) */
  --faint: #94A3B8;
  --line: #E3E8F0;
  --line-2: #EEF1F6;
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --primary: #2F5BEA;
  --primary-600: #2449C7;
  --primary-50: #EEF3FF;
  --primary-100: #DCE6FF;
  --mint: #3FE0B5;             /* the logo's green, and the only green. Never for text on light backgrounds (1.6:1): use Ink text with a mint icon or fill */
  --mint-50: #E8FBF6;
  --mint-200: #BCF4E5;
  --danger: #D92D20;
  --danger-50: #FEF3F2;
  --warn: #B54708;
  --warn-50: #FFFAEB;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(12, 27, 42, .06);
  --shadow: 0 1px 2px rgba(12, 27, 42, .05), 0 8px 24px -12px rgba(12, 27, 42, .14);
  --shadow-lg: 0 24px 60px -24px rgba(12, 27, 42, .28);
  --font: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Type. One family (Inter) everywhere, with the same letter shapes.
   Sizes: 11 · 12 · 13 · 14 (body) · 15 · 16 · 18 · 20 · 24 · 28 · 32, then the display sizes on the public site.
   Weights: 400 text · 500 emphasis · 600 labels and buttons · 700 headings · 800 the HIPAA badge only.
   Keep to these: no half-pixel sizes and no in-between weights. */
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
kbd { font-family: var(--mono); font-size: 11px; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 4px; }
.icon { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.cap { text-transform: capitalize; }
.wrap { overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.warn-text { color: var(--warn); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.logo-word { font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.logo-word span { color: var(--mint); }
.logo-dark { color: #fff; }
.logo-dark .logo-word span { color: #3FE0B5; }
a:has(> .logo):hover { text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(47, 91, 234, .4), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-primary:hover { background: var(--primary-600); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #CBD5E1; background: #FAFBFD; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(12, 27, 42, .06); }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .24); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B42318; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-50); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.is-disabled, .btn:disabled { opacity: .5; pointer-events: none; }
.btn.is-copied { color: var(--ink); border-color: var(--mint); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(12, 27, 42, .06); color: var(--ink); }

/* inputs */
.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #D5DCE6; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.5; min-height: 38px; }
select.input { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:hover { border-color: #B8C2D0; }
.input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 91, 234, .16); }
.input::placeholder { color: var(--faint); }
.input-sm { height: 30px; font-size: 13px; padding-left: 9px; border-radius: 8px; }
.input.mono { font-family: var(--mono); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field > span a { font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { width: 38px; height: 22px; border-radius: 99px; background: #CBD5E1; transition: background .18s; position: relative; display: block; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 27, 42, .3); transition: transform .18s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }

/* HIPAA-ready mark */
.hipaa-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); border: 1.5px solid currentColor; border-radius: 10px; padding: 6px 12px 6px 8px; line-height: 1.1; }
.hipaa-badge span { display: flex; flex-direction: column; }
.hipaa-badge b { font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.hipaa-badge i { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; opacity: .75; margin-top: 2px; }
.hipaa-badge-dark { color: #fff; }

/* Sign-up: a pointer for agencies to the partner programme */
.signup-hint { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--primary-50); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.signup-hint .icon { flex: none; margin-top: 2px; color: var(--primary); }
.signup-hint strong { color: var(--ink); }
.signup-hint a { font-weight: 600; white-space: nowrap; }

/* Utilities. The Content Security Policy allows no inline style="" attributes, so one-off spacing and sizing
   live here. !important keeps the precedence an inline style had over component rules. */
.text-center { text-align: center !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-18 { margin-top: 18px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-n12 { margin-top: -12px !important; }
.mb-12 { margin-bottom: 12px !important; }
.m-0 { margin: 0 !important; }
.my-24 { margin-top: 24px !important; margin-bottom: 24px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mr-auto { margin-right: auto !important; }
.ml-0 { margin-left: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pad-page { padding: 56px 24px 88px !important; }
.w-full { width: 100% !important; }
.w-110 { width: 110px !important; }
.flex-1 { flex: 1 !important; }
.col-full { grid-column: 1 / -1 !important; }
.maxw-720 { max-width: 720px !important; }
.maxw-820 { max-width: 820px !important; }
.maxw-880 { max-width: 880px !important; }
.maxw-900 { max-width: 900px !important; }
.maxh-none { max-height: none !important; }
.overflow-x { overflow-x: auto !important; }
.justify-start { justify-content: flex-start !important; }
.bt-line { border-top: 1px solid var(--line-2) !important; }
.cols-230 { grid-template-columns: 230px 1fr !important; }
.offscreen { position: absolute !important; left: -9999px !important; }
.btn-row-center { display: flex !important; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pin-row { display: inline-flex !important; align-items: center; gap: 8px; white-space: nowrap; }
.pin-digits { min-width: 3.2em; letter-spacing: 2px; font-weight: 600; }
