/* MedBridge public landing + sign-in. Reading-room navy, indigo actions, amber calipers. */
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #0c1428; --night-2: #121d38; --ink: #14213d; --text: #2a3550; --muted: #5d6882;
  --paper: #f4f6f9; --line: #dde2ec; --brand: #3b3fd8; --brand-d: #2c30b8;
  --amber: #f2b233; --amber-d: #c98a0c; --white: #fff;
  --r: 14px; --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 "Atkinson", system-ui, sans-serif; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent; font: 700 16px/1 "Atkinson", sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.amber { background: var(--amber); color: var(--night); }
.btn.amber:hover { background: #ffc451; }
.btn.ghost-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn.ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(12,20,40,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup img { height: 30px; width: auto; }
.lockup .product { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.01em; padding-left: 14px; border-left: 1.5px solid rgba(255,255,255,.3); line-height: 28px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: #c9d1e4; text-decoration: none; font-size: 15.5px; }
.nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--night); color: #c9d1e4; position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 0%, rgba(59,63,216,.35), transparent 70%), radial-gradient(40% 50% at 0% 30%, rgba(242,178,51,.07), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 64px; align-items: start; }
.kicker { color: var(--amber); font-weight: 700; font-size: 15.5px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; margin-bottom: 24px; }
.lede { font-size: 19px; line-height: 1.6; max-width: 58ch; color: #c9d1e4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.cta-row.center { justify-content: center; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: #9fabc6; }
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts li::before { content: ""; width: 11px; height: 11px; flex: none;
  background: linear-gradient(var(--amber), var(--amber)) center/11px 1.5px no-repeat, linear-gradient(var(--amber), var(--amber)) center/1.5px 11px no-repeat; }

/* Sign-in card */
.signin { background: #fff; color: var(--text); border-radius: 18px; padding: 30px 30px 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); scroll-margin-top: 100px; }
.signin h2 { font-size: 26px; margin-bottom: 4px; }
.signin .muted { font-size: 15px; margin-bottom: 18px; }
.signin label { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); margin: 12px 0 6px; }
.signin input[type=email], .signin input[type=password] { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 16px "Atkinson", sans-serif; color: var(--ink); background: #fff; }
.signin input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59,63,216,.15); }
.signin .check { display: flex; align-items: center; gap: 9px; font-weight: 400; color: var(--text); margin: 14px 0 18px; }
.signin .check input { width: 18px; height: 18px; accent-color: var(--brand); }
.signin-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14.5px; }
.note { border-radius: 10px; padding: 10px 14px; font-size: 15px; margin-bottom: 8px; }
.note.bad { background: #fdecec; color: #a32025; }
.note.ok { background: #e7f6ee; color: #17663e; }

/* Stage with caliper annotations */
.stage { position: relative; margin-top: 72px; padding-bottom: 0; }
.stage::after { content: ""; position: absolute; left: -50vw; right: -50vw; bottom: 0; height: 38%; background: var(--white); z-index: 0; }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; }
.frame-dark { background: #0a0f1d; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(5,10,25,.7); }
.frame-light { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(20,33,61,.35); }
.measured { z-index: 1; overflow: visible; }
.measured img { border-radius: var(--r); }
.caliper { position: absolute; display: flex; align-items: center; gap: 0; pointer-events: none; }
.caliper i { position: relative; display: block; height: 0; border-top: 2px dashed var(--amber); }
.caliper i::before, .caliper i::after { content: "+"; position: absolute; top: -15px; color: var(--amber); font: 700 22px/1 "Atkinson", sans-serif; }
.caliper i::before { left: -7px; } .caliper i::after { right: -7px; }
.caliper b { background: var(--night); color: #fff; border: 1.5px solid var(--amber); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.c1 { left: 41%; top: 46%; flex-direction: row-reverse; } .c1 i { width: 70px; }
.c1 { transform: translateX(-100%); }
.c2 { left: 74%; top: 33%; } .c2 i { width: 54px; }
.c3 { right: 3%; bottom: 6.5%; flex-direction: column-reverse; align-items: flex-end; } .c3 i { width: 0; height: 46px; border-top: 0; border-left: 2px dashed var(--amber); margin-right: 60px; }
.c3 i::before, .c3 i::after { left: -8px; right: auto; } .c3 i::before { top: -11px; } .c3 i::after { top: auto; bottom: -13px; }
.caliper-list { display: none; }

/* Bands */
.band { padding: 104px 0; }
.band.alt { background: var(--paper); }
.sec { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.02em; max-width: 22ch; margin-bottom: 18px; }
.sec.light { color: #fff; }
.sec-lede { font-size: 18.5px; max-width: 62ch; margin-bottom: 40px; }
.sub { font-size: 24px; margin-bottom: 12px; }

.who { padding: 64px 0 24px; position: relative; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.who-grid > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.who h3 { font-size: 21px; margin-bottom: 8px; }
.who p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 2px dashed var(--amber); }
.steps li { position: relative; }
.steps .n { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--night); color: var(--amber); font-weight: 700; font-size: 18px; margin-bottom: 20px; box-shadow: 0 0 0 6px #fff; }
.band.alt .steps .n { box-shadow: 0 0 0 6px var(--paper); }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split.reverse .split-copy { order: 2; }
.split.tight { margin-top: 40px; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.split-copy > p { font-size: 18px; }

.facts { margin: 28px 0; display: grid; gap: 18px; }
.facts.two { grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 0; }
.facts div { padding-left: 18px; border-left: 2px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--muted); font-size: 16px; }

.safety-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* Voice: the dark reading-room band */
.voice { background: var(--night); color: #c9d1e4; }
.voice-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.voice-head p { font-size: 18.5px; margin: 0; }
.voice-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: start; }
.voice-shots { display: grid; gap: 20px; }
.voice-points { position: sticky; top: 110px; }
.voice-points { display: grid; gap: 26px; }
.voice-points div { padding-left: 18px; border-left: 2px dashed var(--amber); }
.voice-points h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.voice-points p { margin: 0; font-size: 16px; color: #aab4cc; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18.5px; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-right: 40px; }

/* End + footer */
.end { background: var(--night); text-align: center; }
.end h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.02em; max-width: 20ch; margin: 0 auto 14px; }
.end p { color: #aab4cc; font-size: 18.5px; }
.foot { background: #080e1e; color: #8d98b3; padding: 64px 0 28px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-logo { height: 28px; width: auto; margin-bottom: 16px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot a { display: block; color: #b6c0d6; text-decoration: none; margin-bottom: 8px; }
.foot a:hover { color: #fff; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; font-size: 13.5px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .signin { max-width: 480px; }
  .caliper { display: none; }
  .caliper-list { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 18px 0 0; position: relative; z-index: 1; color: var(--muted); font-size: 15px; }
  .caliper-list li::before { content: "+ "; color: var(--amber-d); font-weight: 700; }
  .split, .split.reverse, .split.tight, .safety-grid, .voice-head, .voice-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-copy { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top-in { height: 64px; gap: 12px; }
  .lockup img { height: 22px; }
  .lockup .product { font-size: 17px; padding-left: 10px; }
  .top .btn { margin-left: auto; }
  .hero { padding-top: 44px; }
  .lede { font-size: 17.5px; }
  .signin { padding: 24px 20px 20px; }
  .band { padding: 72px 0; }
  .who-grid, .steps, .facts.two { grid-template-columns: 1fr; gap: 28px; }
  .stage { margin-top: 48px; }
  .foot-in { grid-template-columns: 1fr; }
}
