/* MedScanner download site. Plain CSS, mobile first. Dark navy with a mint -> cyan accent. */
:root {
  --bg: #0a0f1a;
  --bg-alt: #0d1422;
  --card: #111a2b;
  --card-hover: #16213a;
  --line: #1f2a3d;
  --line-strong: #2c3a52;
  --text: #e6edf7;
  --text-soft: #c3cede;
  --muted: #8b98ad;
  --accent: #10d9a0;   /* mint */
  --accent-2: #22d3ee; /* cyan */
  --accent-text: #04261f;
  --accent-soft: rgba(16, 217, 160, .12);
  --radius: 18px;
  --wrap: 1120px;
  --gutter: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--accent-text); font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 20px rgba(34, 211, 238, .25);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 28px rgba(34, 211, 238, .4); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .shots:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-ghost { background: var(--card); border: 1px solid var(--line-strong); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--card-hover); border-color: var(--accent); filter: none; box-shadow: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 15, 26, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--accent); letter-spacing: -.02em; }
.brand-by { font-size: .66rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 520px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero {
  padding: 44px 0 60px;
  background:
    radial-gradient(620px 420px at 85% 10%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(520px 420px at 0% 90%, rgba(16, 217, 160, .10), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em;
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(16, 217, 160, .3);
}
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.8rem); }
.lead { font-size: 1.1rem; color: var(--text-soft); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 999px; font-size: .85rem;
  background: var(--card); border: 1px solid var(--line); color: var(--text-soft);
}
.chips li::before { content: "●"; color: var(--accent); font-size: .6rem; margin-right: 8px; vertical-align: 2px; }
.hero-visual { position: relative; height: 420px; max-width: 360px; margin: 0 auto; width: 100%; }
.phone {
  position: absolute; width: 52%; border-radius: 22px;
  border: 4px solid #1a2436; box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(34, 211, 238, .08);
}
.phone-back { left: 4%; top: 30px; transform: rotate(-6deg); opacity: .85; }
.phone-front { right: 4%; top: 0; transform: rotate(4deg); }
@media (min-width: 880px) {
  .hero { padding: 76px 0 92px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-visual { height: 500px; max-width: 420px; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s; }
.steps li:hover { border-color: var(--line-strong); }
.steps h3 { font-size: 1.15rem; margin-top: 14px; }
.steps p { color: var(--muted); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(16, 217, 160, .35); color: var(--accent); font-weight: 800;
}

/* App sections */
.app { display: grid; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.app > *, .hero-grid > * { min-width: 0; } /* let the screenshot strips scroll instead of widening the column */
.app:first-of-type { border-top: 0; }
.app h3 { font-size: clamp(1.6rem, 4vw, 2rem); }
.app-copy > p { color: var(--text-soft); }
.tag { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6em; }
.features { padding: 0; margin: 0 0 22px; list-style: none; }
.features li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--text-soft); }
.features li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
@media (min-width: 880px) {
  .app { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; }
  .app:nth-of-type(even) .app-copy { order: 2; }
}

/* Horizontally scrolling screenshot strips */
.shots {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.shots a { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { border-radius: 14px; border: 1px solid var(--line); background: var(--card); height: auto; }
.shots-phone a { width: 46%; max-width: 200px; }
.shots-desktop a { width: 88%; max-width: 560px; }
@media (min-width: 880px) { .shots { margin: 0; padding-left: 4px; padding-right: 4px; } }

/* Centered section header (Downloads) */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.section-head .lead { margin: 0 auto; color: var(--muted); }

/* Downloads: one card per product */
.dl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.dl-card {
  position: relative; overflow: hidden; flex: 1 1 100%;
  background: linear-gradient(180deg, #111a2b, #0e1626);
  border: 1px solid var(--line); border-radius: 22px; padding: 26px 20px 22px;
}
.dl-card::before { /* coloured strip along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.dl-windows::before { background: linear-gradient(90deg, #3b82f6, var(--accent-2)); }
@media (min-width: 880px) { .dl-card { flex: 0 1 calc(50% - 12px); padding: 30px 32px 28px; } }

.dl-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; border: 1px solid;
}
.pill-platform { color: var(--accent); background: var(--accent-soft); border-color: rgba(16, 217, 160, .35); }
.dl-windows .pill-platform { color: #60a5fa; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .4); }
.pill-platform::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-release { color: var(--accent-2); background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .35); }
.dl-size { margin-left: auto; font: 600 .9rem ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-soft); }

.dl-card h3 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); margin-bottom: .45em; }
.dl-text { color: var(--muted); }
.dl-empty { color: var(--muted); margin: 0; }

.dl-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px;
  margin: 20px 0 22px; padding: 18px 20px; border-radius: 16px;
  background: rgba(10, 15, 26, .6); border: 1px solid var(--line);
}
.dl-info-wide { grid-column: 1 / -1; }
.dl-info-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dl-info-value { font-weight: 700; line-height: 1.35; word-break: break-word; }
.dl-info-wide .dl-info-value { font: 600 .92rem ui-monospace, "Cascadia Mono", Consolas, monospace; word-break: break-all; }
@media (max-width: 420px) { .dl-info { grid-template-columns: 1fr 1fr; } }

.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 16px; flex: 1 1 auto; }

/* Notice box with an accent edge */
.notice {
  margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .9rem; color: var(--text-soft);
  background: rgba(10, 15, 26, .6); border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.dl-windows .notice { border-left-color: var(--accent-2); }
.notice strong { color: var(--text); }

.dl-others-title { margin: 20px 0 8px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-others li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .9rem; }
.dl-others-name { font-weight: 600; word-break: break-all; }
.dl-others-meta { color: var(--muted); }
.dl-others-link { color: var(--accent); font-weight: 600; margin-left: auto; }

.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; transition: border-color .15s; }
.faq details[open] { border-color: var(--line-strong); }
.faq p { margin: 10px 0 0; color: var(--text-soft); }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
