/* Kinsy site extras. Uses tokens.css + app-site.css (--app-accent). */
.app-hero__bg--kinsy {
  background:
    radial-gradient(ellipse at 78% 38%, rgba(232, 97, 60, 0.26), transparent 55%),
    radial-gradient(ellipse at 62% 70%, rgba(30, 111, 224, 0.16), transparent 50%),
    #071633;
}

/* Download card at the top of the page */
.download-card {
  margin-top: var(--s-6);
  display: grid; gap: var(--s-4);
  padding: var(--s-6);
  border-radius: var(--r-lg, 18px);
  border: 1px solid color-mix(in oklab, var(--app-accent) 45%, var(--c1-line));
  background: linear-gradient(160deg, color-mix(in oklab, var(--app-accent) 12%, transparent), transparent 70%), var(--c1-graphite);
  max-width: 560px;
}
.download-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.download-card__title { font-family: var(--font-display); font-weight: 700; color: var(--c1-snow); font-size: var(--text-lg); margin: 0; }
.download-card__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--c1-fog); letter-spacing: 0.03em; margin: 0; overflow-wrap: anywhere; }
.download-card__note { font-size: var(--text-sm); color: var(--c1-fog); margin: 0; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--app-accent); color: #04121a;
  font-weight: 700; text-decoration: none; font-size: var(--text-base);
  box-shadow: 0 12px 30px -10px color-mix(in oklab, var(--app-accent) 70%, transparent);
}
.btn-download:hover { color: #04121a; filter: brightness(1.06); }
.btn-download svg { width: 18px; height: 18px; }
.btn-download[aria-disabled="true"] { background: transparent; color: var(--c1-snow); border: 1px dashed color-mix(in oklab, var(--app-accent) 70%, transparent); box-shadow: none; cursor: default; }
.status-pill { font-family: var(--font-mono); font-size: var(--text-2xs, 0.6875rem); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--c1-line-strong); color: var(--c1-snow); }

/* Status dots used in copy */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--green { background: #2fd27a; box-shadow: 0 0 8px #2fd27a; }
.dot--amber { background: #ffb020; box-shadow: 0 0 8px #ffb020; }
.dot--red { background: #ff4a4a; box-shadow: 0 0 8px #ff4a4a; }
.status-legend { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 8px; color: var(--c1-fog); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-6); }
.shots--mac { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.shots figure { margin: 0; }
.shots .gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06); }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { margin-top: var(--s-3); color: var(--c1-fog); font-size: var(--text-sm); }
.shots figcaption strong { display: block; color: var(--c1-snow); }
@media (max-width: 520px) { .shots--mac { grid-template-columns: 1fr; } }

.menubar-glyph { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #f2f4f7; display: inline-block; vertical-align: middle; }
.req-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
.req-list li { border: 1px solid var(--c1-line); border-radius: var(--r-md, 12px); padding: var(--s-5); background: var(--c1-graphite); color: var(--c1-fog); }
.req-list strong { display: block; color: var(--c1-snow); font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: 4px; }
.shots-note { margin-top: var(--s-6); color: var(--c1-mute); font-size: var(--text-sm); }
@media (min-width: 1100px) { .shots { grid-template-columns: repeat(3, 1fr); max-width: 980px; } }
/* Hero: real screenshot + icon, download card kept above the fold */
.medevac-title { font-size: clamp(2.3rem, 3.6vw + 1rem, 4rem); }
.app-hero:has(.hero-shot) { padding-top: clamp(96px, 9vw, 128px); }
.hero-shot { position: relative; }
.hero-shot__phone { width: min(300px, 70vw); height: auto; border-radius: 34px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08), 0 0 60px -10px rgba(46,197,255,0.25); }
.hero-shot__icon { position: absolute; left: calc(50% - 290px); bottom: 24px; width: 120px !important; height: 120px !important; border-radius: 28px !important; }
.download-card { margin-top: var(--s-5); }
@media (max-width: 900px) { .hero-shot__icon { display: none; } .hero-shot { margin-top: var(--s-8); } }
.shots-subhead { font-family: var(--font-display); font-size: var(--text-lg); color: var(--c1-snow); margin: var(--s-10) 0 var(--s-5); }
.shots-subhead:first-of-type { margin-top: 0; }
.shots--mac { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; max-width: none; }
.shots--mac .gallery__open { background: none; box-shadow: none; border-radius: 12px; overflow: visible; }
.shots--mac img { filter: drop-shadow(0 22px 36px rgba(0,0,0,0.6)); border-radius: 12px; }
@media (min-width: 1100px) { .shots--mac { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.download-card__sha { font-size: 0.75rem; opacity: 0.8; }
.download-card__sha code { overflow-wrap: anywhere; word-break: break-all; }
/* Download pair: Mac direct download and iPhone App Store badge */
.dl-pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4) var(--s-5); }
.dl-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dl-slot__label { font-family: var(--font-mono); font-size: var(--text-2xs, 0.6875rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c1-fog); padding-left: 2px; }
.dl-pair .btn-download { height: 54px; padding: 0 22px; border-radius: 10px; box-sizing: border-box; white-space: nowrap; }
.dl-pair .appstore-badge { border-radius: 10px; }
.dl-pair .appstore-badge img { height: 54px; width: auto; }
.app-cta__actions .dl-pair { margin-right: var(--s-2); }
@media (max-width: 420px) {
  .download-card .dl-pair { gap: var(--s-4) var(--s-4); }
  .download-card .dl-pair .btn-download { padding: 0 18px; }
}
.app-cta__actions { align-items: flex-end; }
.app-cta__actions > .btn, .app-cta__actions > .js-email { height: 54px; display: inline-flex; align-items: center; box-sizing: border-box; }
/* New-in-next-update section: four across, two on tablets, one on phones */
.new-quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .new-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots.new-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } .features-grid.new-quad { grid-template-columns: 1fr; } }
.shots.new-quad { max-width: none; }

/* Clinilog CPD additions */
.cl-note { border: 1px solid color-mix(in oklab, var(--app-accent) 40%, var(--c1-line)); border-radius: var(--r-md, 12px); padding: var(--s-5); background: var(--c1-graphite); color: var(--c1-fog); max-width: 70ch; }
.cl-note strong { color: var(--c1-snow); }
.shortcut-list { list-style: none; padding: 0; margin: var(--s-4) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.shortcut-list li { border: 1px solid var(--c1-line); border-radius: 10px; padding: 10px 14px; background: var(--c1-graphite); color: var(--c1-fog); }
.shortcut-list kbd { font-family: var(--font-mono); color: var(--c1-snow); background: rgba(255,255,255,0.06); border: 1px solid var(--c1-line-strong); border-radius: 6px; padding: 2px 7px; margin-right: 8px; }
.shots--ipad { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.shots-pending { border: 1px dashed var(--c1-line-strong); border-radius: 14px; padding: var(--s-8); color: var(--c1-fog); text-align: center; }
.shots--macpanels { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (min-width: 1100px) { .shots.shots--macpanels { grid-template-columns: repeat(2, 1fr); max-width: 980px; } }
@media (max-width: 520px) { .shots--macpanels { grid-template-columns: 1fr; } }

/* Watch screenshots */
.shots--watch { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (min-width: 1100px) { .shots.shots--watch { grid-template-columns: repeat(3, 1fr); max-width: 760px; } }
.shots--watch .gallery__open { border-radius: 26px; background: #000; }
/* Clinical-use note */
.kn-note { border: 1px solid color-mix(in oklab, var(--app-accent) 55%, var(--c1-line)); border-left: 4px solid var(--app-accent); border-radius: var(--r-md, 12px); background: color-mix(in oklab, var(--app-accent) 8%, var(--c1-graphite)); padding: var(--s-5) var(--s-6); color: var(--c1-fog); max-width: 80ch; margin: 0 0 var(--s-8); }
.kn-note strong { color: var(--c1-snow); }

/* Kinsy gallery: even rows for 8 iPhone and 6 iPad panels (Nov 2026) */
@media (min-width: 901px) {
  #gallery .gallery__grid--iphone { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #gallery .gallery__grid--ipad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
