:root {
  color-scheme: light;
  --ink: #101418;
  --muted: #59636c;
  --paper: #f7f8f4;
  --band: #e9eef0;
  --line: #c6ccd0;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --panel-soft: #f1f4f1;
  --control-line: #9fa8ae;
  --blue: #155f9c;
  --blue-dark: #0d395f;
  --safety: #d75d2a;
  --inverse-bg: #11181d;
  --inverse-ink: #f5f7f2;
  --inverse-muted: rgba(255, 255, 255, 0.74);
  --inverse-line: rgba(255, 255, 255, 0.18);
  --lcd: #c3cdae;
  --lcd-dark: #1f2522;
  --black: #0c0f12;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --card-shadow: 0 18px 46px rgba(23, 33, 40, 0.12);
  --hero-shade: linear-gradient(90deg, rgba(5, 8, 11, 0.78) 0%, rgba(5, 8, 11, 0.42) 43%, rgba(5, 8, 11, 0.08) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf3f2;
    --muted: #a9b5b9;
    --paper: #0e1315;
    --band: #151b1e;
    --line: #303a40;
    --panel: rgba(23, 30, 33, 0.86);
    --panel-solid: #171e21;
    --panel-soft: #20282c;
    --control-line: #46545c;
    --blue: #8fc7df;
    --blue-dark: #224b60;
    --safety: #e86a35;
    --inverse-bg: #080b0d;
    --inverse-ink: #f6f8f4;
    --inverse-muted: rgba(255, 255, 255, 0.7);
    --inverse-line: rgba(255, 255, 255, 0.16);
    --white: #ffffff;
    --card-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
    --hero-shade: linear-gradient(90deg, rgba(3, 5, 7, 0.84) 0%, rgba(3, 5, 7, 0.5) 45%, rgba(3, 5, 7, 0.18) 100%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 7vw;
  color: var(--white);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 7px;
  font-weight: 900;
}

.nav-links {
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.92;
}

.nav-links a:focus-visible,
.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  min-height: 86svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-image: url("assets/hero-aglora.png");
  background-color: #707a80;
  background-size: cover;
  background-position: 58% center;
  background-repeat: no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(560px, 86vw);
  margin-left: 7vw;
  padding-top: 88px;
  padding-bottom: 54px;
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  color: #d8eef7;
}

.hero h1 {
  margin: 12px 0 18px;
  font-size: 4.6rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 500px;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--safety);
  color: var(--white);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.22);
}

.button:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #f6b44b;
  outline-offset: 3px;
}

.section-inner {
  width: min(1180px, 88vw);
  margin: 0 auto;
}

.demo-section,
.product-section,
.brand-section {
  padding: 72px 0;
}

.demo-section {
  background: var(--band);
}

.product-section {
  background: var(--paper);
}

.brand-section {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}

.section-kicker {
  color: var(--blue);
}

.brand-section .section-kicker {
  color: #89d8ff;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: end;
  margin-top: 10px;
  margin-bottom: 34px;
}

.section-heading-row h2,
.brand-layout h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading-row p,
.brand-layout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.brand-layout p {
  color: var(--inverse-muted);
  margin-top: 16px;
  max-width: 620px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.52fr);
  gap: 28px;
  align-items: stretch;
}

.demo-stage,
.telemetry,
.brand-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.demo-stage {
  padding: 28px;
  overflow: hidden;
}

.altimeter-device {
  position: relative;
  z-index: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.device-body {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 52px), 455px);
  aspect-ratio: 1.76 / 1;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.22));
}

.altimeter-device.flip-to-inverted .device-body {
  animation: flip-to-inverted 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center;
  will-change: transform;
}

.altimeter-device.flip-to-normal .device-body {
  animation: flip-to-normal 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center;
  will-change: transform;
}

@keyframes flip-to-inverted {
  from { transform: rotate(-180deg); }
  to { transform: rotate(0deg); }
}

@keyframes flip-to-normal {
  from { transform: rotate(180deg); }
  to { transform: rotate(0deg); }
}

.device-body::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -12px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(14px);
  opacity: 0.42;
}

.device-top {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    #0e1216;
  border: 1px solid #020405;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -10px 28px rgba(0, 0, 0, 0.38);
  border-radius: 30px;
  overflow: visible;
}

.device-top::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 34%),
    #080b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.device-strap {
  position: absolute;
  z-index: 0;
  left: 50%;
  width: 32%;
  height: clamp(42px, 18%, 54px);
  transform: translateX(-50%);
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 4px, rgba(0, 0, 0, 0.22) 4px 8px),
    linear-gradient(180deg, #3a4147, #242a30);
  border: 1px solid #1b2025;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.34);
}

.strap-top {
  top: -44px;
}

.strap-bottom {
  bottom: -44px;
}

.lcd {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 7.5%;
  aspect-ratio: 16 / 10;
  width: 73.2%;
  padding: 8px;
  border-radius: 8px;
  background: #1f2528;
  box-shadow:
    inset 0 0 0 3px #050607,
    inset 0 0 26px rgba(0, 0, 0, 0.72),
    0 2px 12px rgba(255, 255, 255, 0.08);
}

.altimeter-device.inverted .lcd {
  left: 19.3%;
}

.lcd-grid {
  height: 100%;
  display: grid;
  grid-template-rows: 22px 20px minmax(70px, 1fr) 24px;
  padding: 8px 10px 7px;
  border: 2px solid rgba(26, 31, 28, 0.88);
  background:
    linear-gradient(transparent 0, transparent 95%, rgba(0, 0, 0, 0.08) 95%),
    var(--lcd);
  background-size: 100% 5px, auto;
  color: var(--lcd-dark);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.lcd-top,
.lcd-status,
.lcd-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.lcd-top {
  font-size: 0.94rem;
  font-weight: 900;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
}

.lcd-status {
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.lcd-status span {
  min-width: 28px;
  text-align: center;
}

.lcd-altitude {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  font-size: 4.15rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
}

.lcd-altitude.compact {
  font-size: 3.55rem;
}

.lcd-altitude.tight {
  font-size: 3rem;
}

.lcd-bottom {
  border-top: 2px solid currentColor;
  padding-top: 4px;
  font-size: 0.82rem;
  font-weight: 900;
}

.lcd-grid.clean {
  grid-template-rows: 1fr;
  place-items: center;
}

.lcd-grid.clean .lcd-top,
.lcd-grid.clean .lcd-status,
.lcd-grid.clean .lcd-bottom {
  display: none;
}

.lcd-grid.clean .lcd-altitude {
  font-size: 5.35rem;
}

.lcd-grid.menu,
.lcd-grid.editor,
.lcd-grid.status,
.lcd-grid.logbook {
  grid-template-rows: 21px minmax(0, 1fr) 17px;
  gap: 3px;
  padding: 7px 8px 6px;
}

.menu-title,
.editor-title,
.status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid currentColor;
  font-size: 0.82rem;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
}

.menu-list,
.editor-body,
.status-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  overflow: hidden;
}

.menu-list {
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-content: stretch;
  gap: 1px;
}

.menu-row {
  min-height: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 0 3px;
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 900;
}

.menu-row strong,
.menu-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row.is-selected {
  background: var(--lcd-dark);
  color: var(--lcd);
}

.menu-footer,
.editor-footer,
.status-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid currentColor;
  padding-top: 1px;
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.editor-body {
  justify-content: stretch;
  font-size: 0.86rem;
  font-weight: 900;
}

.editor-value {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  font-size: 2rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  align-self: center;
}

.editor-field {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 4px 2px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.72rem;
}

.editor-field.is-selected {
  background: var(--lcd-dark);
  color: var(--lcd);
}

.status-body {
  align-content: center;
  justify-items: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 900;
}

.status-body small {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 900;
}

.lcd-grid.logbook {
  display: block;
  padding: 4px 6px;
}

.logbook-frame {
  position: relative;
  height: 100%;
  border: 2px solid currentColor;
  font-size: 0.69rem;
  font-weight: 900;
  overflow: hidden;
}

.logbook-header {
  height: 16px;
  display: flex;
  align-items: center;
  padding: 0 3px;
  border-bottom: 2px solid currentColor;
  overflow: hidden;
  white-space: nowrap;
}

.logbook-row {
  height: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  padding: 0 4px;
}

.logbook-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logbook-index {
  position: absolute;
  right: 3px;
  bottom: 0;
  background: inherit;
  padding-left: 4px;
}

.lcd-grid.backlight-on {
  background:
    linear-gradient(transparent 0, transparent 95%, rgba(0, 0, 0, 0.055) 95%),
    #f4f7ef;
  color: #151b18;
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.74),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 0 18px rgba(255, 255, 255, 0.42);
}

.lcd-grid.backlight-off {
  filter: brightness(0.72) saturate(0.8);
}

.lcd-grid.sleeping {
  background: var(--lcd);
  border-color: rgba(26, 31, 28, 0.88);
  color: transparent;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.08);
  filter: brightness(0.72) saturate(0.8);
}

.lcd-grid.no-hud-border {
  border-color: transparent;
}

.lcd-grid.no-hud-border .lcd-top,
.lcd-grid.no-hud-border .lcd-bottom {
  border-color: transparent;
}

.device-buttons {
  position: absolute;
  z-index: 4;
  right: 17px;
  left: auto;
  top: 17%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.altimeter-device.inverted .device-buttons {
  left: 17px;
  right: auto;
  flex-direction: column-reverse;
}

.altimeter-device.inverted .device-buttons button {
  transform: rotate(180deg);
}

.device-buttons button {
  display: block;
  width: 52px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid #050607;
  background: linear-gradient(180deg, #2b333a, #14191e 78%);
  color: #c7d1d7;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.1), inset 0 -11px 16px rgba(0, 0, 0, 0.36);
}

.device-buttons button:active,
.device-buttons button.is-pressed {
  transform: translateY(1px);
  background: #26313a;
}

.altimeter-device.inverted .device-buttons button:active,
.altimeter-device.inverted .device-buttons button.is-pressed {
  transform: rotate(180deg) translateY(-1px);
}

.controls {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.control-row,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.icon-button,
.segmented button,
.toggle-button {
  min-height: 42px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.icon-button {
  width: 46px;
  padding: 0;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--control-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-solid);
}

.segmented button {
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button[aria-selected="true"],
.toggle-button[aria-pressed="true"],
.icon-button.is-active {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.range-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.range-control input {
  width: 100%;
  accent-color: var(--safety);
}

.toggle-button {
  padding: 0 13px;
}

.telemetry {
  padding: 26px;
}

.telemetry h3 {
  margin: 0 0 18px;
  font-size: 1.28rem;
}

.metric-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel-solid);
}

.metric-list dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-list dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.logbook-preview {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.logbook-preview > div {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.mini-label {
  color: var(--muted);
}

.logbook-preview ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.logbook-preview li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.logbook-preview strong {
  color: var(--ink);
}

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

.feature-card {
  min-height: 166px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: var(--card-shadow);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.brand-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.55fr);
  gap: 42px;
  align-items: center;
}

.brand-panel {
  display: grid;
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border-color: var(--inverse-line);
  background: rgba(255, 255, 255, 0.1);
}

.brand-panel div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-panel span {
  color: var(--inverse-muted);
}

.brand-panel strong {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 7vw;
  color: #d8e0e6;
  background: #0c1116;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    padding: 18px 6vw;
  }

  .hero {
    min-height: 84svh;
    background-position: 42% center;
  }

  .hero-content {
    margin-left: 6vw;
    width: min(620px, 88vw);
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .section-heading-row,
  .demo-layout,
  .brand-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .altimeter-device {
    min-height: 340px;
  }

}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 82svh;
    background-position: 36% center;
  }

  .hero-content {
    padding-top: 98px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .demo-section,
  .product-section,
  .brand-section {
    padding: 54px 0;
  }

  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .section-heading-row h2,
  .brand-layout h2 {
    font-size: 1.85rem;
  }

  .demo-stage,
  .telemetry {
    padding: 16px;
  }

  .altimeter-device {
    min-height: 260px;
  }

  .device-body {
    width: min(100%, 300px);
  }

  .device-strap {
    width: 32%;
    height: 44px;
  }

  .strap-top {
    top: -36px;
  }

  .strap-bottom {
    bottom: -36px;
  }

  .device-top {
    border-radius: 18px;
  }

  .device-buttons {
    right: 9px;
    left: auto;
    top: 17%;
    gap: 6px;
  }

  .altimeter-device.inverted .device-buttons {
    left: 9px;
    right: auto;
    flex-direction: column-reverse;
  }

  .device-buttons button {
    width: 32px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.54rem;
  }

  .lcd {
    left: 7.5%;
    width: 73%;
    padding: 7px;
  }

  .altimeter-device.inverted .lcd {
    left: 19.5%;
  }

  .lcd-grid {
    grid-template-rows: 18px 16px minmax(56px, 1fr) 20px;
    padding: 6px 7px;
  }

  .lcd-top,
  .lcd-bottom {
    font-size: 0.66rem;
  }

  .lcd-status {
    font-size: 0.62rem;
  }

  .lcd-status span {
    min-width: 21px;
  }

  .lcd-altitude {
    font-size: 2.6rem;
  }

  .lcd-altitude.compact {
    font-size: 2.25rem;
  }

  .lcd-altitude.tight {
    font-size: 1.96rem;
  }

  .lcd-grid.clean .lcd-altitude {
    font-size: 3.3rem;
  }

  .lcd-grid.menu,
  .lcd-grid.editor,
  .lcd-grid.status,
  .lcd-grid.logbook {
    grid-template-rows: 18px minmax(0, 1fr) 16px;
    padding: 5px 6px;
  }

  .menu-title,
  .editor-title,
  .status-title {
    font-size: 0.64rem;
  }

  .menu-row {
    min-height: 0;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 3px;
    font-size: 0.6rem;
  }

  .menu-footer,
  .editor-footer,
  .status-footer {
    font-size: 0.55rem;
  }

  .editor-value {
    font-size: 1.35rem;
  }

  .editor-field {
    font-size: 0.54rem;
    padding: 3px 1px;
  }

  .status-body {
    font-size: 0.68rem;
  }

  .lcd-grid.logbook {
    padding: 3px 4px;
  }

  .logbook-frame {
    font-size: 0.48rem;
  }

  .logbook-header {
    height: 13px;
  }

  .logbook-row {
    height: 13px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 2px;
    padding: 0 2px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--line);
  }

  .segmented button:nth-child(2n) {
    border-right: 0;
  }

  .segmented button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .metric-list div,
  .brand-panel div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .metric-list dd {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    padding: 20px 6vw;
  }
}
