/* Phlux developer portal — shared styles.
   Light theme: white-dominant, teal accents, generous whitespace.
   Plus Jakarta Sans (headings/nav) · Inter (body) · JetBrains Mono (code). */
:root {
  --white: #ffffff;
  --surface: #f4f8fa;
  --surface-2: #eef4f7;
  --border: #dde8ee;
  --teal: #0b8a9e;
  --teal-bright: #0abdd0;
  --teal-light: #e5f5f8;
  --navy: #1a2332;
  --slate: #4a5b6e;
  --muted: #7a8e9e;
  --green: #059669;
  --green-light: #ecfdf5;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --red-light: #fef2f2;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;

  /* Compatibility aliases for existing inline markup. */
  --text: #1a2332;
  --success: #059669;
  --danger: #dc2626;
  --panel: #ffffff;
  --navy-2: #ffffff;
  --panel-2: #f4f8fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  min-height: 100vh;
  color: var(--slate);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
}
h1 {
  font-size: 32px;
  font-weight: 700;
}
h2 {
  font-size: 20px;
}

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

code,
pre,
.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Top navigation */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--slate);
}
.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
}

/* Layout */
main {
  padding: 40px 0 80px;
}
.hero {
  text-align: center;
  padding: 72px 0 44px;
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 44px;
  margin: 0 0 14px;
  color: var(--navy);
}
.hero p {
  color: var(--slate);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards / panels */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.04);
}
.card h2 {
  margin-top: 0;
  font-size: 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
}

/* Forms */
label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 14px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--navy);
  font-size: 15px;
  font-family: inherit;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
textarea {
  min-height: 120px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 138, 158, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.btn:hover {
  background: var(--teal-bright);
  text-decoration: none;
}
.btn.secondary {
  background: var(--white);
  border-color: var(--border);
  color: var(--navy);
}
.btn.secondary:hover {
  background: var(--surface);
  border-color: var(--teal);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.block {
  width: 100%;
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Code blocks */
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.55;
}
pre .tok-key {
  color: var(--teal);
}
.keybox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--navy);
  word-break: break-all;
}

/* Badges / pills */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(11, 138, 158, 0.2);
  color: var(--teal);
  background: var(--teal-light);
}
.badge.plan {
  color: var(--teal);
  border-color: rgba(11, 138, 158, 0.2);
  background: var(--teal-light);
}
.badge.get {
  color: var(--teal);
  border-color: rgba(11, 138, 158, 0.2);
  background: var(--teal-light);
}
.badge.post {
  color: var(--amber);
  border-color: rgba(217, 119, 6, 0.25);
  background: var(--amber-light);
}
/* GoHighLevel — distinct violet badge to set the CRM apart from the EMRs. */
.badge.ghl {
  color: var(--purple);
  border-color: rgba(124, 58, 237, 0.25);
  background: var(--purple-light);
}

/* Status pills (status page) */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  border: 1px solid var(--border);
}
.pill.live {
  color: var(--green);
  border-color: rgba(5, 150, 105, 0.2);
  background: var(--green-light);
}
.pill.partner_pending {
  color: var(--amber);
  border-color: rgba(217, 119, 6, 0.2);
  background: var(--amber-light);
}
.pill.stub {
  color: var(--muted);
  border-color: var(--border);
  background: var(--surface);
}
.pill.parked {
  color: var(--slate);
  border-color: var(--border);
  background: var(--surface);
}

/* Practice list */
.practice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.practice:last-child {
  border-bottom: none;
}
.practice strong {
  color: var(--navy);
  font-weight: 600;
}
.practice .meta {
  font-size: 13px;
  color: var(--muted);
}

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.alert.show {
  display: block;
}
.alert.error {
  background: var(--red-light);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--red);
}
.alert.success {
  background: var(--green-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--green);
}

.hidden {
  display: none !important;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.4);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
}
.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(26, 35, 50, 0.18);
}
.modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

/* Warning / status banners */
.banner {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.banner.warn {
  background: var(--amber-light);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--amber);
}
.banner.warn .btn {
  background: var(--amber);
  color: #ffffff;
}
.banner.warn .btn:hover {
  background: #b45309;
}
.status-line {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}
.stack > * + * {
  margin-top: 14px;
}
.small {
  font-size: 13px;
}
.copy-btn {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}
