:root {
  --bg-deep: #0a0f1e;
  --bg-dark: #0f172a;
  --bg-mid: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --accent: #f97316;
  --accent-hi: #fb923c;
  --radius: 10px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg-deep);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
@media (min-width: 640px) {
  .wrap {
    padding: 2rem 2rem 4rem;
  }
}
header.site {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
header.site h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  flex: 1 1 12rem;
  min-width: 0;
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.back:hover {
  color: var(--accent-hi);
  border-color: rgba(255, 255, 255, 0.15);
}
h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.01em;
}
h2:first-of-type {
  margin-top: 0.5rem;
}
p,
ul {
  margin: 0 0 1rem;
  color: var(--text-2);
}
ul {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.35rem;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hi);
}
.contact {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.5rem;
}
.contact strong {
  color: var(--text-1);
}
.disclaimer {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.disclaimer p {
  margin: 0;
  color: var(--text-1);
  font-size: 0.95rem;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--bg-mid);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--text-1);
}
.note {
  font-size: 0.9rem;
  color: var(--text-3);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-field > span:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text-1);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}
.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}
.contact-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-submit {
  align-self: flex-start;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--bg-deep);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1.15rem;
}
.contact-submit:hover {
  background: var(--accent-hi);
}
.contact-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.contact-status {
  margin: 0;
  min-height: 1.25em;
}
.about-index {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.about-index li {
  margin: 0;
}
.about-index a {
  display: block;
  padding: 0.65rem 0.85rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  color: var(--text-1);
}
.about-index a:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--accent-hi);
}
.about-index .about-index__group {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 1.25rem 0 0.35rem;
  padding: 0 0.15rem;
}
.about-index .about-index__group:first-child {
  margin-top: 0;
}
.about-index--features a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.about-index--features .about-index__title {
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
}
.about-index--features a:hover .about-index__title {
  color: var(--accent-hi);
}
.about-index--features .about-index__desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1.45;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 1.35rem 0 0.5rem;
  letter-spacing: -0.01em;
}
figure.about-figure {
  margin: 0.75rem 0 1.25rem;
}
figure.about-figure img,
figure.about-figure svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-dark);
}
figure.about-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* Mobile airspace vertical profile demo (matches index.html panel on phone) */
.about-airspace-profile-demo {
  --airspace-profile-chart-h: min(50vh, 400px);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.15);
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  width: min(390px, 100%);
  margin: 0 auto;
}
.about-airspace-profile-demo__panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: rgba(10, 15, 30, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.about-airspace-profile-demo .airspace-profile-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.about-airspace-profile-demo .airspace-profile-panel__title-area {
  min-width: 0;
  flex: 1 1 auto;
}
.about-airspace-profile-demo .airspace-profile-panel__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}
.about-airspace-profile-demo .airspace-profile-panel__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.35;
}
.about-airspace-profile-demo .airspace-profile-panel__close {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}
.about-airspace-profile-demo .airspace-profile-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
}
.about-airspace-profile-demo .pg-airspace-profile-popup {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__chart-wrap {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--border);
}
.about-airspace-profile-demo .pg-airspace-profile-popup__y-axis {
  flex: 0 0 66px;
  position: relative;
  height: var(--airspace-profile-chart-h);
  padding-top: 14px;
  box-sizing: border-box;
  font-size: 10px;
  color: var(--text-3);
}
.about-airspace-profile-demo .pg-airspace-profile-popup__y-unit {
  position: absolute;
  top: 0;
  left: 0;
  height: 14px;
  line-height: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 1;
  white-space: nowrap;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__y-tick {
  position: absolute;
  right: 0;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.12;
  white-space: nowrap;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__y-tick--top {
  transform: translateY(calc(100% - 1px));
}
.about-airspace-profile-demo .pg-airspace-profile-popup__y-tick-m {
  font-size: 10px;
  color: #94a3b8;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__y-tick-ft {
  font-size: 9px;
  color: #64748b;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  pointer-events: none;
  z-index: 0;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__chart {
  flex: 1 1 auto;
  position: relative;
  height: var(--airspace-profile-chart-h);
  min-width: 120px;
  border-radius: 6px;
  border: 1px solid var(--border-hi);
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__ground {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #b45309;
  box-shadow: 0 0 6px rgba(180, 83, 9, 0.45);
  z-index: 2;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__sealevel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(103, 232, 249, 0.85);
  z-index: 1;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__ground-label {
  position: absolute;
  left: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 600;
  color: #fdba74;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__band {
  position: absolute;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  min-height: 2px;
  min-width: 6px;
  opacity: 0.92;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.about-airspace-profile-demo .pg-airspace-profile-popup__band-label {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 3px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  overflow: hidden;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__band-class {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__band-name {
  display: block;
  font-weight: 500;
  font-size: 8px;
  opacity: 0.92;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__list {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.about-airspace-profile-demo .pg-airspace-profile-popup__swatch {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-top: 3px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.about-airspace-profile-demo .pg-airspace-profile-popup__item-body {
  min-width: 0;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__item-name {
  font-weight: 600;
  color: #f8fafc;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__item-class {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-1);
}
.about-airspace-profile-demo .pg-airspace-profile-popup__item-limits {
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
}
.about-airspace-profile-demo .pg-airspace-profile-popup__note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-3);
  flex-shrink: 0;
}
figure.about-figure--airspace-profile {
  max-width: 390px;
}
figure.about-figure--airspace-profile .about-airspace-profile-demo__panel {
  border-radius: var(--radius);
  overflow: hidden;
}
