/*
 * LogMeds — professionals page. A plainer, more formal look than the consumer
 * site: flat surfaces, hairline borders, a navy accent, no glass.
 */

:root {
  color-scheme: light dark;

  --navy: #13294b;
  --accent: #1f5fae;
  --accent-ink: #ffffff;
  --ink: #16202e;
  --ink-soft: #4a5566;
  --line: #d9dee6;
  --ground: #ffffff;
  --band: #f4f6f9;
  --panel: #ffffff;
  --radius: 8px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0c1626;
    --accent: #5b9be6;
    --accent-ink: #0b1220;
    --ink: #e8edf4;
    --ink-soft: #a4afbf;
    --line: #2a3446;
    --ground: #0f1622;
    --band: #141d2c;
    --panel: #172133;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

/* Content stays hidden until the visitor confirms (see pro-gate.js). */
html.pro-gated main, html.pro-gated .bar-links { visibility: hidden; }

a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* ------------------------------------------------------------------ header */

.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.bar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 7px; }
.brand em { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.bar-links { display: flex; gap: 22px; margin-left: auto; }
.bar-links a, .link-quiet { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.bar-links a:hover, .link-quiet:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 16px; }

@media (max-width: 820px) {
  .bar-links { display: none; }
  .bar-actions { margin-left: auto; }
}
@media (max-width: 420px) { .link-quiet { display: none; } }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 0.95rem var(--font); text-decoration: none; cursor: pointer;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-soft); }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------- hero */

.hero { background: var(--navy); color: #fff; padding: 72px 0; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: #9fc0ea; margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.lede { font-size: 1.1rem; color: #cdd7e5; margin: 18px 0 28px; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts { margin: 0; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); }
.facts div { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9fc0ea; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

@media (max-width: 820px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------------------------------------------------------- sections */

.section, .band { padding: 64px 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.section-title { font-size: 1.6rem; margin-bottom: 24px; }
.section-lede { color: var(--ink-soft); margin: -12px 0 28px; max-width: 70ch; }

.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience li { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.audience strong { display: block; }
.audience span { color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { font-size: 1.05rem; margin-bottom: 8px; }
.panel p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------------------------------------------------------------- security */

.controls { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.controls th, .controls td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); }
.controls thead th { border-top: 0; background: var(--band); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.controls tbody th { width: 30%; font-weight: 600; }
.controls td { color: var(--ink-soft); }
@media (max-width: 640px) {
  .controls thead { display: none; }
  .controls tr, .controls th, .controls td { display: block; width: auto; }
  .controls tbody td { border-top: 0; padding-top: 0; }
}

/* --------------------------------------------------------------- licensing */

.licensing { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.licensing > div > p { color: var(--ink-soft); max-width: 60ch; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.callout p { margin-bottom: 18px; }
.callout .fine { margin: 14px 0 0; font-size: 0.85rem; }
@media (max-width: 820px) { .licensing { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------------------- faq */

.qa { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { font-weight: 600; cursor: pointer; }
.qa p { color: var(--ink-soft); margin: 10px 0 0; }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--ink-soft); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--ink-soft); }

/* -------------------------------------------------------------------- gate */

.gate {
  width: min(440px, 100% - 32px);
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink);
  padding: 28px;
}
.gate::backdrop { background: rgba(10, 18, 32, 0.72); }
.gate h2 { font-size: 1.3rem; }
.gate p { color: var(--ink-soft); margin: 10px 0 22px; }
.gate-actions { display: flex; flex-wrap: wrap-reverse; gap: 10px; justify-content: flex-end; }
@media (max-width: 420px) { .gate-actions .btn { flex: 1 1 100%; } }

/* --------------------------------------------------------------- language */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang {
  min-height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ground); color: var(--ink);
  font: 600 0.85rem var(--font);
}
