/* Shared styles for the rebuilt app screens.
   Best Health (patient booking and sign-up) is Material-based: Roboto, navy.
   The clinic-side products (appointment book, clinical product) use Open Sans.
   Frames (.browser, .phone, .window) wrap a screen for its screenshot; the
   screenshot tool captures the element with class "shot". */

@font-face { font-family: Roboto; font-weight: 300; src: url(fonts/roboto-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 400; src: url(fonts/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 500; src: url(fonts/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 700; src: url(fonts/roboto-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 400; src: url(fonts/open-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 600; src: url(fonts/open-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; src: url(fonts/open-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #134063;
  --navy-2: #365c79;
  --ink: #212121;
  --ink-2: #4f4f4f;
  --muted: #757575;
  --line: #c4c4c4;
  --line-2: #e0e0e0;
  --link: #134063;
  --page-top: #f2f5fd;
  --page-bottom: #e4f0f3;
  --panel: #e3f0f3;
  --panel-line: #7492a6;
  --ok-bg: #ebf2eb;
  --ok: #2e7d4f;
  --danger: #c0392b;
  --emergency: #c4471d;
  --warn-bg: #fdd9cf;
  --live-bg: #e6f4ea;
  --live: #2e7d32;
  --blue: #2468c9;
  --disabled-bg: #e0e0e0;
  --disabled: #9e9e9e;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: #d9dce3;
  padding: 40px;
  -webkit-font-smoothing: antialiased;
}
/* Pages hold one or more shots, laid out side by side when shown together */
.shots { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
[hidden] { display: none !important; }
/* Embedded in a case study (?embed): no backdrop, one screen at a time */
.embed body { background: transparent; padding: 12px; overflow: hidden; }
.embed .shots { display: block; width: max-content; }
.embed [data-goto] { cursor: pointer; }

i[data-icon] { display: inline-flex; width: 1em; height: 1em; flex: none; font-style: normal; }
i[data-icon] svg { width: 100%; height: 100%; fill: currentColor; }

a { color: var(--link); }
.choice, .btn, .btn-link, .bh-top a { text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Frames ---------- */

/* A narrow browser window (the booking flow screenshots) */
.window {
  width: 360px; height: 780px;
  background: #fff;
  border: 1px solid #d0d0d0;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.window::after { /* resize grip */
  content: ''; position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px;
  background: linear-gradient(135deg, transparent 45%, #bbb 45% 52%, transparent 52% 70%, #bbb 70% 77%, transparent 77%);
}

/* Desktop Chrome */
.browser {
  width: 1240px;
  border-radius: 10px; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 8px 30px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
}
.browser .tabs { height: 38px; background: #dfe1e5; display: flex; align-items: flex-end; padding: 0 10px; gap: 10px; }
.browser .lights { display: flex; gap: 8px; align-self: center; margin: 0 8px 0 6px; }
.browser .lights span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.browser .lights span:nth-child(2) { background: #febc2e; }
.browser .lights span:nth-child(3) { background: #28c840; }
.browser .tab {
  width: 200px; height: 32px; background: #fff; border-radius: 9px 9px 0 0;
  display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; color: #202124;
}
.browser .tab .fav { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 22%, #e84393 24%); }
.browser .tab .x { margin-left: auto; font-size: 14px; }
.browser .tabs > i { align-self: center; font-size: 18px; color: #444; }
.browser .tabs > i:last-child { margin-left: auto; }
.browser .bar { height: 40px; background: #fff; display: flex; align-items: center; gap: 14px; padding: 0 14px; color: #5f6368; font-size: 19px; border-bottom: 1px solid #e3e3e3; }
.browser .omni { flex: 1; height: 30px; border-radius: 15px; background: #f1f3f4; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 14px; color: #202124; }
.browser .omni i { font-size: 16px; color: #5f6368; }
.browser .omni .star { margin-left: auto; }
.browser .avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #f06bd9, #8a5cf6); }
.browser .page { position: relative; }

/* Phone (iPhone with Safari's bottom bar) */
.phone {
  width: 418px; padding: 14px; border-radius: 68px;
  background: #1c1c1e;
  box-shadow: inset 0 0 0 2px #8e8e93, inset 0 0 0 5px #2c2c2e, 0 10px 40px rgba(0,0,0,.25);
}
.phone .screen {
  width: 390px; height: 844px; border-radius: 54px; overflow: hidden;
  position: relative; background: #fff;
  display: flex; flex-direction: column;
}
.phone .status {
  height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 34px 0 50px; font: 600 17px -apple-system, system-ui, sans-serif; color: #000;
  position: relative; z-index: 3;
}
.phone .status.light { color: #fff; }
.phone .island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; z-index: 4; }
.phone .status .sys { display: flex; gap: 6px; align-items: center; }
.phone .status .sys svg { height: 12px; fill: currentColor; }
.phone .viewport { flex: 1; overflow: hidden; position: relative; }
.phone .safari {
  position: absolute; left: 0; right: 0; bottom: 0; height: 104px; z-index: 5;
  background: linear-gradient(to bottom, rgba(242,245,250,.75), rgba(232,240,243,.97));
  backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 0;
}
.phone .safari .round { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: 22px; color: #222; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.phone .safari .url { flex: 1; height: 48px; border-radius: 24px; background: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 17px; color: #8a8a8e; white-space: nowrap; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.phone .safari .url i { font-size: 24px; color: #222; }
.phone .safari .url .mic { margin-left: auto; font-size: 20px; color: #555; }
.phone .home { position: absolute; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #111; z-index: 6; }

/* ---------- Best Health booking ---------- */

.bh { flex: 1; display: flex; flex-direction: column; background: #fff; position: relative; }
.bh.tinted { background: linear-gradient(to bottom, var(--page-top), var(--page-bottom)); }

.bh-top { height: 56px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 18px 0 16px; border-bottom: 1px solid var(--line-2); background: #fff; color: var(--muted); }
.bh-top .back { font-size: 22px; color: var(--ink); }
.bh-top .help { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 14px; }
.bh-top .help i { font-size: 20px; }
.bh-top .me { display: flex; align-items: center; color: var(--ink-2); }
.bh-top .me span { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.bh-top .me i { font-size: 22px; }
.bh-top.navy { background: var(--navy); color: #fff; border: 0; }
.bh-top.navy .back { color: #fff; font-size: 26px; }
.bh-top.navy .me { color: #fff; }
.bh-top.navy .me span { background: #fff; color: var(--navy); }

.progress { height: 4px; margin: 14px 8px 0; background: #b7c4cf; border-radius: 2px; position: relative; }
.progress b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--navy); }
.progress.segments { display: flex; gap: 4px; background: none; height: 6px; margin: 0 14px; }
.progress.segments span { flex: 1; border-radius: 3px; background: var(--navy); }
.progress.segments span.todo { background: #8aa3b5; }

.clinic { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 22px; font-size: 16.5px; font-weight: 500; color: #222; letter-spacing: -.005em; }
.clinic .mark { width: 36px; height: 36px; border-radius: 6px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 26px; }
.clinic .fave { color: #f08b6a; font-size: 14px; }
.band { background: #fafafa; }
.clinic.new { padding: 12px 0; font-size: 19px; font-weight: 400; color: var(--navy); background: #fff; }
.clinic.new .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: #8aa3b5; }
.clinic.new .mark { width: 36px; height: 36px; font-size: 20px; }

.ask { text-align: center; font-size: 17.5px; line-height: 1.2; color: #222; margin: 34px 24px 22px; }
.ask.light { font-weight: 300; font-size: 23px; color: var(--navy); margin: 38px 24px 36px; }

.choice { display: block; margin: 0 22px 8px; height: 53px; border: 1px solid #e3e3e3; border-radius: 4px; background: #fff; font-size: 14.5px; font-weight: 500; color: #555; text-align: center; line-height: 51px; letter-spacing: .01em; }
.choice.strong { border: 1.5px solid var(--navy); color: var(--navy); font-size: 15px; height: 48px; line-height: 45px; margin: 0 15px 14px; }

.emergency { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--emergency); font-size: 13.5px; margin-top: 70px; }
.emergency i { font-size: 18px; color: #c62828; }
.emergency.pill { width: max-content; margin: 50px auto 0; border: 1px solid var(--emergency); border-radius: 18px; padding: 7px 14px; background: #fff; font-size: 14px; }

.btn { display: block; border: 0; border-radius: 4px; background: var(--navy); color: #fff; font-weight: 500; font-size: 13.5px; text-align: center; height: 33px; line-height: 33px; letter-spacing: .01em; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.btn.wide { width: 100%; }
.btn.outline { background: #fff; color: var(--navy); border: 1px solid var(--navy); box-shadow: none; }
.btn.disabled { background: var(--disabled-bg); color: var(--disabled); box-shadow: none; }
.btn-link { display: block; text-align: center; color: var(--navy); font-weight: 500; font-size: 14px; text-decoration: none; }

.powered { margin-top: auto; padding: 14px 0 18px; display: flex; justify-content: center; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 11.5px; }
.powered .bp { display: flex; align-items: flex-end; color: #3f6584; font-size: 14px; font-weight: 300; }
.powered .bp img { width: 34px; margin: 0 -4px 3px 0; }

/* Material outlined text field */
.field { position: relative; border: 1px solid #bdbdbd; border-radius: 4px; height: 48px; display: flex; align-items: center; padding: 0 10px; font-size: 14.5px; color: var(--ink); background: #fff; }
.field > label { position: absolute; top: -8px; left: 9px; padding: 0 4px; background: #fff; font-size: 11px; color: #666; line-height: 14px; }
.field.empty { color: #757575; }
.field .end { margin-left: auto; font-size: 20px; color: #666; }
.field .start { font-size: 18px; color: #666; margin-right: 8px; }
.field.grow { height: auto; min-height: 48px; padding: 8px 10px; }

/* ---------- Best Health sign-up ---------- */

.signup { background: linear-gradient(to bottom, var(--page-top), var(--page-bottom)); }
.brand { display: flex; align-items: flex-end; justify-content: center; gap: 0; color: var(--navy); }
.brand img { width: 84px; margin-right: -6px; }
.brand .words { display: flex; flex-direction: column; align-items: center; margin-bottom: -2px; }
.brand .words small { font-size: 14px; color: #5f6f7c; }
.brand .words span { font-size: 21px; }

.su-card { background: #fff; border-radius: 6px; }
.su-h { font-size: 20.5px; color: var(--navy); font-weight: 400; margin: 0; }
.su-h.off { color: #a0a0a0; }
.info { border: 1px solid #aab9c6; background: #f4f6ff; border-radius: 2px; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 36px; font-size: 12px; line-height: 1.45; color: #222; }
.info i { font-size: 38px; color: var(--navy); }
.info b { font-weight: 700; }
.verified { background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; border-radius: 2px; }
.verified i { font-size: 19px; }
.rules { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: #333; }
.rules li { display: flex; align-items: center; gap: 8px; height: 27.5px; }
.rules i { color: var(--ok); font-size: 17px; }
.tick { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.5; color: #222; }
.tick i { font-size: 22px; color: var(--navy); margin-top: -2px; }
.tick a { color: var(--navy); }
.code { display: flex; gap: 10px; }
.code span { flex: 1; height: 54px; border: 1px solid #bdbdbd; border-radius: 3px; background: #fff; }
.code.ready span { border-color: #5b8fd6; border-width: 1.5px; }
.send { height: 34px; border: 1px solid #e0e0e0; border-radius: 3px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #9e9e9e; background: #fff; }
.send.ready { border: 1.5px solid var(--navy); color: var(--navy); font-weight: 500; }
.send i { font-size: 17px; }

/* ---------- Clinic-side products (Open Sans) ---------- */
.os { font-family: 'Open Sans', system-ui, sans-serif; }
