/* MedView product page.
 *
 * Structure and voice follow the Zi Lele page (apps/cc/styles.css), which is the
 * in-house standard: an eyebrow, a two-column hero with a framed screenshot, a
 * numbered workflow, captioned shots and a footer. The palette is MedView's own
 * — a light box rather than a playground: deep navy, scan cyan, one blue for
 * actions, and surfaces that stay out of the way of the images.
 *
 * Tokens first, then layout, then components. No framework, no build step: this
 * file is uploaded as it is.
 */

:root {
  /* Layers, lightest to darkest */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-sunken: #eef2f7;
  --line: #dde4ee;
  --line-strong: #c6d1e0;

  /* Ink */
  --ink: #0e1a2b;
  --ink-soft: #34435a;
  --muted: #5b6b83;

  /* Act */
  --brand: #0b5fff;
  --brand-dark: #0043c4;
  --brand-wash: #e9f0ff;

  /* Scan: the accent that says "image" rather than "form" */
  --scan: #17b8c9;
  --scan-wash: #e4f7f9;

  /* Dark surfaces */
  --night: #0a1524;
  --night-2: #0f2438;
  --night-line: rgba(255, 255, 255, 0.12);

  /* Status */
  --live: #0f8a4d;
  --live-wash: #e6f6ee;
  --review: #8a6100;
  --review-wash: #fdf3dc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06), 0 8px 24px rgba(14, 26, 43, 0.06);
  --shadow-lg: 0 24px 60px rgba(8, 20, 36, 0.24);
  --wrap: 1120px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Avenir Next", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 20;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 21, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--night-line);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--scan), var(--brand));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.brand-sub {
  font-weight: 500;
  color: #9fb3cc;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}

.nav a {
  color: #c8d6e6;
  font-size: 15px;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--surface-sunken);
}

.button.small {
  padding: 9px 16px;
  font-size: 14px;
}

.hero .button.ghost {
  border-color: var(--night-line);
  color: #dbe8f6;
}

.hero .button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(23, 184, 201, 0.18), transparent 70%),
    radial-gradient(700px 420px at 92% 8%, rgba(11, 95, 255, 0.22), transparent 72%),
    linear-gradient(168deg, var(--night) 0%, var(--night-2) 58%, #122c44 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.hero::after {
  /* A single hairline where the picture would end: the light box's edge. */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 184, 201, 0.55), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fdce8;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0 0 var(--space-4);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--scan);
}

.hero-lede {
  margin: 0 0 var(--space-6);
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: #b9cadc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-note {
  margin: var(--space-5) 0 0;
  font-size: 13.5px;
  color: #8ea6bf;
}

/* The framed screenshot: a window, not a poster. */
.hero-visual {
  position: relative;
}

.frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b1a2b;
  box-shadow: var(--shadow-lg);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frame-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.frame-title {
  margin-left: 10px;
  font-size: 12px;
  color: #8ea6bf;
}

.frame img {
  width: 100%;
}

.phone-inset {
  position: absolute;
  right: -8px;
  bottom: -40px;
  width: 120px;
  border-radius: 18px;
  border: 3px solid #0b1a2b;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #0b1a2b;
}

.version-chip {
  position: absolute;
  left: 16px;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 21, 36, 0.9);
  border: 1px solid rgba(23, 184, 201, 0.45);
  color: #d9f6fa;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.version-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--scan);
  box-shadow: 0 0 0 3px rgba(23, 184, 201, 0.2);
}

/* --------------------------------------------------------------- release */

.release {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0;
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.release h2 {
  margin: 0 0 var(--space-2);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.release .version {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.release .version strong {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.release .released {
  color: var(--muted);
  font-size: 14px;
}

.highlights {
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.highlights li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  /* A filled dot, not an outlined square: at 10px an empty box reads as an
     unchecked checkbox next to each line. */
  background: var(--scan);
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  font-size: 13px;
  color: var(--ink-soft);
}

.chip b {
  font-weight: 700;
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--live-wash);
  color: var(--live);
}

.status-pill[data-status="in-review"] {
  background: var(--review-wash);
  color: var(--review);
}

.status-pill[data-status="beta"] {
  background: var(--brand-wash);
  color: var(--brand-dark);
}

/* ---------------------------------------------------------------- section */

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section.sunken {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading .eyebrow {
  color: var(--scan);
  margin-bottom: var(--space-3);
}

/* ------------------------------------------------------------------ steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding-top: var(--space-4);
  border-top: 2px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--scan);
}

.step h3 {
  margin: 0 0 var(--space-2);
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.feature {
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature h3 {
  margin: 0 0 var(--space-2);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.feature > p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 15.5px;
}

.feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.feature li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.feature li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.85;
}

/* ---------------------------------------------------------------- gallery */

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--space-5);
  background: var(--surface-sunken);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.shots {
  display: grid;
  gap: var(--space-5);
}

.shots.phones {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shots.desktops {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.shots.desktops .shot img {
  box-shadow: var(--shadow-sm);
}

.shot figcaption {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.shot figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

[role="tabpanel"][hidden] {
  display: none;
}

/* --------------------------------------------------------------- download */

.download-list {
  display: grid;
  gap: var(--space-3);
}

.platform-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.platform-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: var(--ink);
}

.platform-name {
  font-weight: 700;
  font-size: 16px;
}

.platform-note {
  color: var(--muted);
  font-size: 14px;
}

.platform-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--muted);
  /* Pushed right so the versions line up down the column rather than trailing
   * each platform name by a different amount. */
  margin-left: auto;
}

.platform-actions {
  margin-left: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.platform-alt {
  flex-basis: 100%;
  margin: 0;
  padding-left: calc(26px + var(--space-4));
  font-size: 13px;
  color: var(--muted);
}

.platform-alt a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.plan {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.plan.paid {
  border-color: rgba(11, 95, 255, 0.28);
  background: linear-gradient(180deg, var(--brand-wash), var(--surface) 60%);
}

.plan h3 {
  margin: 0 0 var(--space-1);
  font-size: 18px;
}

.plan .price {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 14px;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.plan li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
}

.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--live);
  font-weight: 700;
}

/* ----------------------------------------------------------------- notice */

.notice {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--ink-soft);
  font-size: 15px;
}

.notice strong {
  color: var(--ink);
}

.requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
}

.requirements li {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
}

.requirements b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

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

.site-footer {
  background: var(--night);
  color: #9fb3cc;
  padding: var(--space-8) 0 var(--space-6);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--night-line);
}

.site-footer h4 {
  margin: 0 0 var(--space-3);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f97b3;
}

.site-footer a {
  color: #cbdaea;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  color: #7f97b3;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero-grid,
  .release-grid,
  .section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The headline stays first at every width: on a tablet the picture is the
   * proof, not the introduction. */
  .hero-visual {
    margin-top: var(--space-4);
  }

  .phone-inset {
    width: 92px;
    right: 4px;
    bottom: -28px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shots.phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav {
    display: none;
  }

  .features,
  .plans,
  .shots.desktops {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .shots.phones {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-3);
  }

  .shots.phones .shot {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .platform-row {
    gap: var(--space-3);
  }

  .platform-meta {
    margin-left: 0;
  }

  .platform-actions {
    margin-left: 0;
    width: 100%;
  }

  .platform-actions .button {
    width: 100%;
  }

  .platform-alt {
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
