/* Jetvitals public website. Same palette and typeface as the app (Client/src/styles.css):
   night blue, one blue accent, and the flight-deck convention for status colours
   (red = warning, amber = caution, green = normal). Spacing follows a 4px scale. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --border: #d8dfe8;
  --text: #0f1b2d;
  --text-muted: #51607a;
  --primary: #1b56d6;
  --primary-hover: #1546b3;
  --primary-soft: #e7efff;
  --on-primary: #ffffff;

  --night: #0c1a2e;
  --night-2: #132543;
  --night-line: #23375a;
  --on-night: #e6edf6;
  --on-night-muted: #a9b9d0;
  --accent: #5b9bff;

  --chart-1: #1b56d6;
  --chart-2: #c2600a;
  --chart-3: #0c7a4d;
  --ok: #0c7a4d;
  --ok-soft: #e2f5ec;
  --caution: #8a5100;
  --caution-soft: #fff1d9;
  --danger: #b42121;
  --danger-soft: #fde8e8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 8%);
  --shadow-lg: 0 2px 4px rgb(3 10 22 / 20%), 0 24px 60px rgb(3 10 22 / 35%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors land below the sticky header. */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 820px;
}

.muted {
  color: var(--text-muted);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.btn-lg {
  min-height: 52px;
  padding: 12px 24px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* On the night background. */
.btn-ghost {
  border-color: var(--night-line);
  color: var(--on-night);
}

.btn-ghost:hover {
  border-color: var(--on-night-muted);
  background: rgb(255 255 255 / 6%);
}

.btn-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text-muted);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--night-line);
  color: var(--on-night);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--on-night-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease-out;
}

.nav-links a:hover {
  color: #ffffff;
}

/* In the menu of small screens only, where the header has no room for them. */
.nav-links .nav-signin-mobile,
.nav-links .nav-trial-mobile {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  position: relative;
}

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--on-night-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary:hover {
  color: #ffffff;
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.lang li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.lang li a:hover,
.lang li a[aria-current] {
  background: var(--primary-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--on-night);
}

/* ---------- Hero ---------- */

.hero,
.page-head,
.cta,
.section-dark {
  background: var(--night);
  color: var(--on-night);
}

.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgb(91 155 255 / 16%), transparent 70%),
    var(--night);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: #ffffff;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

.lead {
  margin-top: 20px;
  color: var(--on-night-muted);
  font-size: 19px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--on-night-muted);
  font-size: 15px;
}

.hero-note .icon {
  color: #4ecb94;
}

.hero-visual .shot {
  box-shadow: var(--shadow-lg);
  border-color: var(--night-line);
}

.page-head {
  padding: 64px 0 72px;
  text-align: center;
}

.page-head h1 {
  color: #ffffff;
  font-size: clamp(32px, 4.4vw, 46px);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-lead {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--text-muted);
  text-align: center;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-more {
  margin-top: 32px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.badge .icon {
  width: 22px;
  height: 22px;
  vertical-align: 0;
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.facts,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.fact h3,
.card h3 {
  margin: 16px 0 8px;
}

.fact p,
.card p {
  color: var(--text-muted);
  font-size: 16px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Five cards: three on the first row, two on the second, with no hole at the end. */
.cards-dark {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cards-dark .card {
  grid-column: span 2;
}

.cards-dark .card:nth-child(n + 4) {
  grid-column: span 3;
}

.cards-dark .card {
  background: var(--night-2);
  border-color: var(--night-line);
}

.cards-dark .card h3 {
  color: #ffffff;
}

.cards-dark .card p {
  color: var(--on-night-muted);
}

.cards-dark .badge {
  background: rgb(91 155 255 / 16%);
  color: var(--accent);
}

/* Text on one side, a picture of the app on the other. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.split-reverse .split-text {
  order: 2;
}

.split-text > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-muted);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.ticks li {
  display: flex;
  gap: 10px;
}

.ticks .icon {
  margin-top: 0.2em;
  color: var(--ok);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.steps li {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps h3 {
  margin: 16px 0 8px;
}

.steps p {
  color: var(--text-muted);
  font-size: 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--night);
  color: #ffffff;
  font-weight: 700;
}

.types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.types li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.4;
}

.types .muted {
  font-size: 14px;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  max-width: 900px;
  margin: 48px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pricing > div {
  padding: 32px;
}

.pricing-plan .muted {
  margin-top: 24px;
  font-size: 15px;
}

.pricing-trial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--night);
  color: var(--on-night-muted);
}

.pricing-trial h3 {
  color: #ffffff;
  font-size: 22px;
}

.pricing-trial .btn {
  margin-top: auto;
}

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--text-muted);
  transition: transform 0.2s ease-out;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 40px 20px 0;
  color: var(--text-muted);
}

.cta {
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  max-width: 560px;
  margin: 16px auto 28px;
  color: var(--on-night-muted);
}

.cta .hero-note {
  justify-content: center;
  margin: 16px auto 0;
}

/* ---------- Pictures of the app ---------- */

.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  container-type: inline-size;
}

/* Only the open tab when the four of them do not fit. */
@container (max-width: 500px) {
  .shot-tabs span:not(.on) {
    display: none;
  }
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--night);
  color: #ffffff;
}

.shot-title {
  font-weight: 650;
  white-space: nowrap;
}

.shot-tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  font-size: 13px;
}

.shot-tabs span {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--on-night-muted);
  white-space: nowrap;
}

.shot-tabs .on {
  background: #1d3358;
  color: #ffffff;
}

.shot-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.shot figcaption {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.shot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}

.pill-caution {
  background: var(--caution-soft);
  color: var(--caution);
}

.pill-warning {
  background: var(--danger-soft);
  color: var(--danger);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tiles > div {
  padding: 10px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.tiles span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.tiles b {
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.phases {
  display: flex;
  gap: 2px;
  font-size: 12px;
}

.phases span {
  flex-basis: 0;
  min-width: 0;
  height: 20px;
  border-radius: 3px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  line-height: 20px;
  text-align: center;
  overflow: hidden;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.legend {
  color: var(--text-muted);
  font-weight: 500;
}

.legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin: 0 4px 0 10px;
  border-radius: 2px;
  vertical-align: middle;
}

.chart svg {
  display: block;
  width: 100%;
  height: 84px;
}

.chart svg path,
.trend svg path {
  vector-effect: non-scaling-stroke;
}

.grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.c1 {
  stroke: var(--chart-1);
  background: var(--chart-1);
}

.c2 {
  stroke: var(--chart-2);
  background: var(--chart-2);
}

.c3 {
  stroke: var(--chart-3);
  background: var(--chart-3);
}

.area {
  fill: var(--primary-soft);
}

.cursor {
  stroke: var(--text-muted);
  stroke-width: 1;
}

.segments {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-alt);
  border-radius: 7px;
  font-weight: 500;
}

.segments span {
  padding: 3px 10px;
  border-radius: 5px;
  color: var(--text-muted);
}

.segments .on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(15 27 45 / 12%);
}

.trend {
  position: relative;
}

.trend svg {
  display: block;
  width: 100%;
  height: auto;
}

.trend text {
  fill: var(--text-muted);
  font-size: 15px;
  text-anchor: end;
}

.band {
  fill: var(--ok-soft);
}

.zero {
  stroke: var(--text-muted);
  stroke-width: 1;
}

.dot {
  fill: var(--chart-1);
  opacity: 0.55;
}

.dot-drift {
  fill: var(--chart-2);
  opacity: 0.9;
}

.trend-flag {
  position: absolute;
  top: 6%;
  right: 20%;
}

.shot table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.shot th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.shot td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--bg-alt);
}

.shot tr:last-child td {
  border-bottom: 0;
}

/* Dates and pills stay on one line; the wide column in between takes the wrapping. */
.shot td:first-child,
.shot td:last-child {
  white-space: nowrap;
}

.shot .num {
  text-align: right;
}

.shot code {
  font-family: var(--font-mono);
  font-size: 13px;
}

.shot tr.normal td {
  color: var(--text-muted);
}

.shot td .muted {
  display: block;
  font-size: 12px;
}

.upload-done {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-alt);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--ok);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  background: var(--night);
  border-top: 1px solid var(--night-line);
  color: var(--on-night-muted);
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--on-night-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 13px;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--night);
    border-bottom: 1px solid var(--night-line);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 48px;
    padding: 0;
    font-size: 16px;
  }

  .nav-links .nav-signin-mobile {
    display: inline-flex;
  }

  .nav {
    gap: 12px;
  }

  .nav-right {
    margin-left: auto;
  }

  .nav-signin {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .split-reverse .split-text {
    order: 0;
  }

  .hero {
    padding: 48px 0 64px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 64px 0;
  }

  .facts,
  .cards,
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 32px;
  }

  .cards-dark .card,
  .cards-dark .card:nth-child(n + 4) {
    grid-column: auto;
  }

  .pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .types {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-body {
    padding: 12px;
  }

  .shot th,
  .shot td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .tiles b {
    font-size: 15px;
  }

  .nav-right .btn-primary {
    display: none;
  }

  .nav-links .nav-trial-mobile {
    display: inline-flex;
    margin-top: 8px;
    padding: 0 18px;
    color: var(--on-primary);
  }

  .faq details p {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- Pricing page ---------- */

.notice {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.notice p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.region-hint {
  color: var(--text-muted);
  text-align: center;
}

.region-switch {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 16px auto 40px;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: 10px;
}

.region-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.region-switch label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.region-switch input:checked + label {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(15 27 45 / 12%);
}

.region-switch input:focus-visible + label {
  outline: 3px solid var(--accent);
}

/* The panel of the chosen region. Without a switch (one region), the only panel shows. */
.region-panel {
  display: none;
}

.regions:has(#region-europe:checked) .region-panel[data-region="europe"],
.regions:has(#region-world:checked) .region-panel[data-region="world"],
.regions:not(:has(input)) .region-panel {
  display: block;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plan h2 {
  font-size: 22px;
}

.plan-aircraft {
  margin-top: 4px;
  color: var(--text-muted);
}

.plan-price {
  margin-top: 20px;
  line-height: 1.2;
}

.plan-price strong {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  color: var(--text-muted);
}

.plan-vat {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.plan .btn {
  margin-top: auto;
}

.trial-note {
  display: flex;
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 24px;
  background: var(--ok-soft);
  border-radius: var(--radius);
}

.trial-note h2 {
  font-size: 18px;
}

.trial-note p {
  margin-top: 4px;
  color: var(--text-muted);
}

/* The types of one make, under its name. */
.types li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.types .type {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.types .type .muted {
  flex: none;
  font-size: 13px;
}

/* A line of plans (Turbine, Piston) above its row of cards. */
.plans-line {
  margin: 40px 0 16px;
  font-size: 22px;
}

.plans-line:first-child {
  margin-top: 0;
}
