/* Copyright (c) 2026 Jabek LLC. All rights reserved. */

:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5f6f7c;
  --line: #d7e1e6;
  --paper: #f6f8f3;
  --surface: #ffffff;
  --surface-strong: #eef4ef;
  --sky: #356d91;
  --sky-dark: #183d5a;
  --sun: #c96c35;
  --mint: #4d8b73;
  --charcoal: #111820;
  --shadow: 0 22px 80px rgba(17, 24, 32, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(20px, 5vw, 72px);
  background: rgba(246, 248, 243, 0.92);
  border-bottom: 1px solid rgba(215, 225, 230, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
}

.brand img {
  width: min(360px, 58vw);
  max-width: none;
  max-height: 74px;
  height: auto;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-weight: 700;
}

nav a:hover {
  color: var(--sky-dark);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-7px);
}

.nav-toggle-bars::after {
  transform: translateY(7px);
}

.site-header.nav-open .nav-toggle-bars {
  background: transparent;
}

.site-header.nav-open .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 40px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.download-hero {
  position: relative;
  min-height: min(680px, calc(100vh - 40px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.comparison-hero {
  position: relative;
  min-height: min(620px, calc(100vh - 40px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.support-hero {
  position: relative;
  min-height: min(520px, calc(100vh - 40px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 32, 0.88), rgba(17, 24, 32, 0.38) 54%, rgba(17, 24, 32, 0.12)),
    url("/assets/airport-tower-background.jpg");
  background-size: cover;
  transform: scale(1.01);
}

.download-hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 32, 0.9), rgba(17, 24, 32, 0.52) 58%, rgba(17, 24, 32, 0.18)),
    url("/assets/app-mission-map-screenshot.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.comparison-hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 32, 0.91), rgba(17, 24, 32, 0.56) 58%, rgba(17, 24, 32, 0.2)),
    url("/assets/app-mission-map-screenshot.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.support-hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 32, 0.92), rgba(17, 24, 32, 0.58) 58%, rgba(17, 24, 32, 0.22)),
    url("/assets/app-mission-map-screenshot.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(940px, 100%);
  padding: clamp(86px, 14vw, 160px) clamp(20px, 7vw, 92px) clamp(54px, 8vw, 96px);
  color: #ffffff;
}

.download-hero-content {
  position: relative;
  width: min(880px, 100%);
  padding: clamp(86px, 14vw, 150px) clamp(20px, 7vw, 92px) clamp(54px, 8vw, 94px);
  color: #ffffff;
}

.support-hero-content {
  position: relative;
  width: min(880px, 100%);
  padding: clamp(86px, 14vw, 150px) clamp(20px, 7vw, 92px) clamp(54px, 8vw, 94px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.download-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.support-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-logo-panel {
  display: inline-flex;
  width: min(760px, 86vw);
  margin: 0 0 30px;
  padding: clamp(14px, 2vw, 22px) clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero-logo-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2.4vw, 1.48rem);
}

.download-hero-content p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2.2vw, 1.34rem);
}

.support-hero-content p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2.2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-primary {
  background: var(--sun);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

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

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-stats div {
  min-height: 136px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-size: 1.15rem;
}

.quick-stats span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.app-preview-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.app-screenshot {
  margin: 0;
}

.app-screenshot-grid {
  display: grid;
  gap: 34px;
}

.app-screenshot img {
  display: block;
  width: 100%;
  max-width: 1440px;
  height: auto;
  border: 1px solid rgba(53, 109, 145, 0.32);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.app-screenshot figcaption {
  max-width: 860px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.plan,
.workflow li,
.roadmap,
.tier-note,
.download-card,
.download-notes article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(17, 24, 32, 0.08);
}

.feature-grid article {
  min-height: 210px;
  padding: 26px;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

p {
  margin: 0;
}

.feature-grid p,
.plan li,
.workflow p,
.roadmap p,
.tier-note span {
  color: var(--muted);
}

.plan-section {
  background: var(--surface-strong);
}

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

.plan {
  padding: clamp(26px, 4vw, 38px);
}

.plan-pro {
  border-color: rgba(77, 139, 115, 0.66);
  box-shadow: 0 22px 70px rgba(77, 139, 115, 0.20);
}

.plan-title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.plan-title p {
  color: var(--sky-dark);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 850;
}

.plan-title span {
  color: var(--muted);
  font-weight: 700;
}

ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 28px;
  margin-top: 14px;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--mint);
}

.tier-note,
.pricing-grid article,
.open-beta-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.pricing-grid article {
  display: block;
  margin-top: 0;
}

.pricing-grid strong,
.pricing-grid span {
  display: block;
}

.pricing-grid span {
  margin-top: 8px;
}

.tier-note strong {
  min-width: max-content;
  color: var(--sky-dark);
}

.beta-note {
  align-items: flex-start;
}

.workflow-section {
  background: var(--charcoal);
  color: #ffffff;
}

.workflow-section .section-heading h2 {
  color: #ffffff;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  min-height: 238px;
  padding: 24px;
  background: #182330;
  border-color: rgba(255, 255, 255, 0.12);
}

.workflow li::before {
  display: none;
}

.workflow span {
  display: block;
  color: var(--sun);
  font-weight: 850;
}

.workflow strong {
  display: block;
  margin-top: 30px;
  font-size: 1.2rem;
}

.workflow p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.roadmap {
  max-width: 980px;
  padding: clamp(26px, 4vw, 42px);
  font-size: 1.12rem;
}

.download-section {
  background: var(--surface-strong);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  padding: clamp(22px, 3vw, 30px);
}

.download-card-primary {
  grid-column: span 3;
}

.download-card strong,
.download-card span,
.download-card a {
  display: block;
}

.download-card strong {
  color: var(--sky-dark);
  font-size: 1.18rem;
}

.download-card span,
.download-notes p {
  margin-top: 10px;
  color: var(--muted);
}

.download-card a {
  margin-top: 14px;
  overflow-wrap: anywhere;
  color: var(--sky-dark);
  font-weight: 800;
}

.support-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.support-section .section-heading p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

.support-form {
  width: min(960px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(17, 24, 32, 0.08);
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-form label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-weight: 800;
}

.support-form-grid label {
  margin-top: 0;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.support-form textarea {
  min-height: 180px;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: 3px solid rgba(53, 109, 145, 0.22);
  border-color: var(--sky);
}

.support-hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-captcha {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.support-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.support-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

.support-status[data-status-kind="success"] {
  color: var(--mint);
}

.support-status[data-status-kind="error"],
.support-status[data-status-kind="warning"] {
  color: var(--sun);
}

.download-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-notes article {
  min-height: 190px;
  padding: 26px;
}

.beta-section {
  background: var(--surface-strong);
}

.comparison-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.faq-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 1040px;
}

.faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(17, 24, 32, 0.08);
  padding: clamp(22px, 3vw, 30px);
}

.faq-list p {
  color: var(--muted);
}

.release-notes-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  padding-top: 48px;
}

.release-notes-section .section-heading {
  margin-bottom: 18px;
}

.release-notes-section .section-heading h2 {
  font-size: 2rem;
  line-height: 1.12;
}

.release-updated {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.release-notes-list {
  display: grid;
  gap: 10px;
}

.release-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 24, 32, 0.05);
  padding: 16px 18px;
}

.release-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.release-card-header h3 {
  margin-bottom: 0;
  color: var(--sky-dark);
  font-size: 1.15rem;
  line-height: 1.15;
}

.release-meta {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
  text-align: right;
}

.release-section-block {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.release-section-block h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.release-section-block ul {
  margin: 0;
  padding-left: 18px;
}

.release-section-block li {
  color: var(--muted);
  margin-top: 4px;
}

.comparison-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(17, 24, 32, 0.08);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(180px, 0.7fr) minmax(220px, 0.85fr);
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row > div {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.comparison-row > div:first-child {
  border-left: 0;
}

.comparison-head {
  background: var(--charcoal);
  color: #ffffff;
  font-weight: 850;
}

.comparison-row strong,
.comparison-row span {
  display: block;
}

.comparison-row strong {
  color: var(--sky-dark);
}

.comparison-head strong {
  color: #ffffff;
}

.comparison-row span {
  margin-top: 6px;
  color: var(--muted);
}

.open-beta-panel {
  display: grid;
  max-width: 920px;
  align-items: stretch;
  gap: 18px;
  margin-top: 0;
  padding: clamp(24px, 4vw, 38px);
}

.section > .open-beta-panel {
  margin-top: 34px;
}

.open-beta-panel .hero-actions {
  margin-top: 0;
}

.small-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1.4fr);
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--charcoal);
}

footer span {
  display: block;
}

footer span:first-child {
  color: #ffffff;
  font-weight: 800;
}

footer span + span {
  margin-top: 6px;
}

footer p {
  max-width: 980px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 10px clamp(16px, 5vw, 32px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(320px, calc(100vw - 96px));
    max-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 38px rgba(17, 24, 32, 0.12);
  }

  .site-header.nav-open nav {
    display: flex;
  }

  .site-header nav a {
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--ink);
  }

  .site-header nav a:hover {
    background: var(--surface-strong);
  }

  .quick-stats,
  .feature-grid,
  .plans,
  .pricing-grid,
  .workflow,
  .download-grid,
  .download-notes,
  .support-form-grid,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .comparison-row > div:first-child {
    border-top: 0;
  }

  .comparison-table {
    display: grid;
    gap: 14px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .comparison-head {
    display: none;
  }

  .comparison-row:not(.comparison-head) {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(17, 24, 32, 0.07);
  }

  .comparison-row:not(.comparison-head) > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .comparison-row:not(.comparison-head) > div:first-child {
    border-top: 0;
    background: var(--surface-strong);
  }

  .comparison-row:not(.comparison-head) > div:nth-child(2)::before,
  .comparison-row:not(.comparison-head) > div:nth-child(3)::before {
    display: block;
    margin-bottom: 6px;
    color: var(--sun);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .comparison-row:not(.comparison-head) > div:nth-child(2)::before {
    content: "Free";
  }

  .comparison-row:not(.comparison-head) > div:nth-child(3)::before {
    content: "Pro subscription";
  }

  .download-card-primary {
    grid-column: auto;
  }

  .workflow li {
    min-height: auto;
  }

  .tier-note {
    display: block;
  }

  .tier-note span {
    display: block;
    margin-top: 6px;
  }

  .release-card-header {
    display: block;
  }

  .release-section-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .release-meta {
    margin-top: 6px;
    text-align: left;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand img {
    width: min(280px, calc(100vw - 92px));
    max-height: 58px;
  }

  .hero-logo-panel {
    width: 100%;
    padding: 12px 14px;
  }

  .hero {
    min-height: 680px;
  }

  .download-hero {
    min-height: 620px;
  }

  .support-hero {
    min-height: 600px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero h1,
  .download-hero h1,
  .support-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .button {
    width: 100%;
  }

  footer span {
    display: block;
  }
}
