/* Aspire — aspiredoctor.com
   Typeface note: the app itself is set in Noto Serif, so headings here match it. */

:root {
  color-scheme: light;

  --ink:        #15161a;
  --ink-soft:   #4c5058;
  --ink-faint:  #7c828c;
  --rule:       #e3e3df;
  --rule-soft:  #eeeeea;
  --paper:      #ffffff;
  --paper-warm: #f7f7f4;
  --accent:     #0b57d0;
  --accent-ink: #0842a0;

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1060px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: var(--gutter); top: 12px; }

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

.site-head {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mark:hover { text-decoration: none; }
.mark img { width: 28px; height: 28px; border-radius: 6px; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav .hide-sm { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; }

.btn-secondary {
  background: var(--paper);
  border-color: var(--rule);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--ink-faint); background: var(--paper-warm); }

.btn-sm { padding: 9px 15px; font-size: 15px; }
.btn svg { flex: none; }

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

.hero { padding: clamp(60px, 11vw, 116px) 0 clamp(44px, 7vw, 72px); }

.hero h1 {
  font-size: clamp(34px, 6.2vw, 58px);
  max-width: 17ch;
}
.hero .lede {
  margin-top: 24px;
  max-width: var(--measure);
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink-soft);
}
.hero .actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .fine {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--ink-faint);
}
.hero .fine span { white-space: nowrap; }

/* ---------- screenshots ---------- */

.shots {
  border-top: 1px solid var(--rule-soft);
  background: var(--paper-warm);
  padding: clamp(44px, 7vw, 72px) 0;
  overflow: hidden;
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}
@media (max-width: 860px) {
  .shot-row {
    grid-template-columns: repeat(4, 62vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .shot { scroll-snap-align: start; }
}
.shot figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.shot img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20,22,26,.07), 0 10px 26px -12px rgba(20,22,26,.22);
}

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

section { border-top: 1px solid var(--rule-soft); }
.shots + section { border-top: 0; }

.band { padding: clamp(56px, 9vw, 96px) 0; }

.band-head { max-width: var(--measure); }
.band-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
}
.band-head p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

/* ---------- feature list ---------- */

.features {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 64px);
}
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

.feature { border-top: 1px solid var(--rule); padding-top: 20px; }
.feature h3 { font-size: 20px; }
.feature p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }

/* ---------- categories ---------- */

.cats { background: var(--paper-warm); }

.cat-table {
  margin-top: clamp(32px, 4vw, 44px);
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.cat-table caption { text-align: left; caption-side: bottom; padding-top: 16px; font-size: 14.5px; color: var(--ink-faint); }
.cat-table th, .cat-table td {
  text-align: left;
  padding: 13px 8px 13px 0;
  border-bottom: 1px solid var(--rule);
}
.cat-table thead th {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0;
}
.cat-table tbody th { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.cat-table td { color: var(--ink-soft); }
.cat-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- platforms ---------- */

.cols {
  margin-top: clamp(36px, 5vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 44px);
}
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { font-size: 19px; }
.cols p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }

/* ---------- closing CTA ---------- */

.closer {
  background: var(--ink);
  color: #fff;
  border-top: 0;
}
.closer h2 { font-size: clamp(26px, 3.8vw, 38px); max-width: 20ch; }
.closer p { margin-top: 16px; color: #b9bcc4; max-width: 54ch; }
.closer .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.closer .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.closer .btn-primary:hover { background: #e9e9e6; }
.closer .btn-secondary { background: transparent; border-color: #4a4d55; color: #fff; }
.closer .btn-secondary:hover { background: #22242a; border-color: #6b6f78; }
.closer a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */

/* colour comes from .closer p and .closer a:not(.btn) above */
.contact-line {
  margin-top: 28px;
  font-size: 15px;
}

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

.site-foot {
  border-top: 1px solid var(--rule-soft);
  padding: 40px 0 56px;
  font-size: 14.5px;
  color: var(--ink-faint);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--ink); }

/* ---------- long-form prose (privacy policy) ---------- */

.prose .wrap { max-width: 720px; }

.prose h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 50px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.prose .stamp {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: 15px;
}

.prose .standfirst {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin: 52px 0 0;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 32px 0 0;
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose p { margin: 14px 0 0; }

.prose ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.prose li { margin-top: 9px; }

.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--accent-ink); }

.prose .callout {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
