:root {
  color-scheme: dark;
  --night: #06182b;
  --navy: #0b2744;
  --navy-soft: #123554;
  --cloud: #f8fbff;
  --paper: #f4ead8;
  --sky: #69b8f4;
  --mint: #55e6ad;
  --violet: #8a5cff;
  --gold: #f3c96b;
  --ink: #06121f;
  --muted: rgba(248, 251, 255, 0.72);
  --border: rgba(248, 251, 255, 0.2);
  --focus: #f3c96b;
  --rule: rgba(248, 251, 255, 0.14);
  --radius-control: 6px;
  --perf-size: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --page-gutter: clamp(20px, 4vw, 64px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--cloud);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100svh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 16px var(--page-gutter);
  pointer-events: none;
}

.brand-lockup,
.auth-shell {
  pointer-events: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.brand-lockup img {
  display: block;
  width: clamp(144px, 16vw, 220px);
  height: auto;
  filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.28));
}

.auth-shell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-button,
.logout-button,
.icon-button,
.primary-button,
.secondary-button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid rgba(248, 251, 255, 0.28);
  color: var(--cloud);
  background: transparent;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(248, 251, 255, 0.22);
  border-radius: 6px;
  color: var(--cloud);
  background: var(--night);
  font-weight: 700;
}

.x-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 8px;
  border: 1px solid rgba(248, 251, 255, 0.22);
  border-radius: 6px;
  background: var(--night);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  color: var(--ink);
  background-color: var(--mint);
  background-position: center;
  background-size: cover;
  font-size: 14px;
  font-weight: 900;
}

.account-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  max-width: 180px;
}

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

.account-copy strong {
  font-size: 13px;
}

.account-copy span {
  color: var(--muted);
  font-size: 12px;
}

.logout-button {
  min-width: 64px;
  padding: 0 12px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--cloud);
  font-size: 12px;
  font-weight: 800;
}

.auth-message {
  position: absolute;
  top: 70px;
  right: var(--page-gutter);
  max-width: min(320px, calc(100vw - 40px));
  margin: 0;
  color: var(--cloud);
  font-size: 12px;
  text-align: right;
}

.auth-message.has-error {
  padding: 9px 12px;
  border-radius: 4px;
  color: #2a1300;
  background: var(--gold);
}

.view {
  min-height: 100svh;
}

.landing-content h1,
.cabin-heading h1,
.loading-stage h1,
.result-heading h1 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.cabin-heading h1,
.loading-stage h1,
.result-heading h1 {
  font-size: clamp(38px, 4.4vw, 60px);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 700;
}

.primary-button {
  color: var(--ink);
  background: var(--gold);
}

.primary-button:hover:not(:disabled) {
  background: #f6d383;
}

.primary-button:active:not(:disabled) {
  background: #e9bd5a;
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.secondary-button:hover:not(:disabled) {
  border-color: rgba(248, 251, 255, 0.6);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(248, 251, 255, 0.28);
  border-radius: var(--radius-control);
  color: var(--cloud);
  background: transparent;
  font-size: 26px;
  line-height: 1;
}

.icon-button:hover {
  border-color: rgba(248, 251, 255, 0.6);
}

/* ---------------------------------------------------------------------
   Cabin: the photograph is the memorable thing. Hard frame, a printed
   corner tag for the rows, flat seat dots. Mint = available, ink = taken.
   ------------------------------------------------------------------ */

.cabin-view {
  padding: 120px var(--page-gutter) 56px;
  background: var(--night);
}

.cabin-heading,
.result-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: min(1240px, 100%);
  margin: 0 auto 16px;
  gap: 24px;
}

.availability-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.availability-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--night);
  border-radius: 50%;
}

.legend-dot.available {
  background: var(--mint);
}

.legend-dot.claimed {
  border-color: rgba(248, 251, 255, 0.7);
  background: var(--night);
}

.cabin-instruction,
.seat-status,
.result-summary {
  color: var(--muted);
  line-height: 1.5;
}

.cabin-instruction {
  width: min(1240px, 100%);
  margin: 0 auto 18px;
  font-size: 16px;
}

.cabin-map-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.cabin-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  border: 1px solid var(--rule);
  background: var(--navy);
}

.cabin-image,
.cabin-vignette,
.seat-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cabin-image {
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.cabin-image.is-active {
  opacity: 1;
}

.cabin-vignette {
  pointer-events: none;
}

.seat-layer {
  z-index: 4;
  opacity: 1;
}

.cabin-map.is-transitioning .seat-layer {
  opacity: 0;
}

.seat-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.seat-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: calc(100% * var(--seat-scale));
  height: calc(100% * var(--seat-scale));
  overflow: hidden;
  border: 1.5px solid var(--night);
  border-radius: 50%;
  background-color: var(--mint);
  background-position: center;
  background-size: cover;
}

.seat-code {
  position: relative;
  z-index: 2;
  opacity: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(12px, 1.45vw, 18px);
  font-weight: 700;
}

.seat-button.is-claimed {
  color: var(--cloud);
  cursor: not-allowed;
}

.seat-button.is-claimed .seat-marker {
  border-color: rgba(248, 251, 255, 0.7);
  background-color: var(--night);
}

.seat-button.is-claimed .seat-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(6, 24, 43, 0.3);
}

.seat-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 8;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--cloud);
  background: var(--night);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
}

.seat-button:hover .seat-code,
.seat-button:focus-visible .seat-code,
.seat-button:hover .seat-tooltip,
.seat-button:focus-visible .seat-tooltip {
  opacity: 1;
}

.seat-button:hover:not(.is-claimed) {
  transform: translate(-50%, -50%) scale(1.08);
}

.seat-button:disabled {
  cursor: wait;
  filter: saturate(0.35);
  opacity: 0.62;
  transform: translate(-50%, -50%);
}

.cabin-map-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  padding: 9px 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--cloud);
  background: var(--night);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cabin-nav-button {
  position: absolute;
  top: 39%;
  left: 50%;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 64px;
  min-width: 64px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border: 0;
  color: rgba(248, 251, 255, 0.92);
  background: transparent;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.cabin-map[data-section="rear"] .cabin-nav-button {
  top: 68%;
}

.cabin-nav-icon,
.cabin-nav-icon svg {
  display: block;
  width: 52px;
  height: 34px;
}

.cabin-nav-icon svg {
  overflow: visible;
}

.cabin-nav-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 8;
}

.cabin-nav-label {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  width: max-content;
  padding: 6px 9px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--cloud);
  background: var(--night);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
}

.cabin-nav-button:hover .cabin-nav-label,
.cabin-nav-button:focus-visible .cabin-nav-label {
  opacity: 1;
}

.cabin-nav-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.cabin-pan-hint {
  display: none;
  width: min(1240px, 100%);
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.seat-status {
  width: min(1240px, 100%);
  min-height: 24px;
  margin: 16px auto 0;
  text-align: center;
}

/* ---------------------------------------------------------------------
   Loading: a pass printing out of a slot. One motion, then the status
   line does the talking.
   ------------------------------------------------------------------ */

.loading-view {
  padding: 120px var(--page-gutter) 56px;
  background: var(--night);
}

.loading-stage {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.print-slot {
  width: min(400px, 100%);
  margin: 32px 0 0;
  overflow: hidden;
  border-top: 2px solid var(--cloud);
}

.printing-pass {
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
  aspect-ratio: 1200 / 675;
  padding: 28px calc(28px + var(--perf-size)) 28px 28px;
  background: var(--paper);
  -webkit-mask:
    linear-gradient(#000, #000) 0 0 / calc(100% - var(--perf-size)) 100% no-repeat,
    radial-gradient(circle at center, transparent 0 3.5px, #000 4px) right 0 top 0 / var(--perf-size) 18px repeat-y;
  mask:
    linear-gradient(#000, #000) 0 0 / calc(100% - var(--perf-size)) 100% no-repeat,
    radial-gradient(circle at center, transparent 0 3.5px, #000 4px) right 0 top 0 / var(--perf-size) 18px repeat-y;
}

.skeleton-line {
  display: block;
  height: 12px;
  background: rgba(6, 24, 43, 0.14);
}

.skeleton-line.short { width: 28%; }
.skeleton-line.medium { width: 52%; }
.skeleton-line.long { width: 72%; }

.loading-message {
  min-height: 26px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* ---------------------------------------------------------------------
   Result: the pass itself, hard-framed. The discount is a paper coupon
   torn off along a punched edge, the same device as the landing.
   ------------------------------------------------------------------ */

.result-view {
  padding: 120px var(--page-gutter) 56px;
  background: var(--night);
}

.result-view.is-preparing {
  position: fixed;
  top: 0;
  left: -200vw;
  width: 1280px;
  min-height: 800px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.result-heading {
  align-items: flex-start;
}

.result-summary {
  margin: 14px 0 0;
  font-size: 17px;
}

.boarding-pass-preview {
  width: min(1200px, 100%);
  margin: 28px auto;
  overflow: hidden;
  aspect-ratio: 1200 / 675;
  border: 1px solid var(--rule);
  background: var(--night);
}

.boarding-pass-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.share-button {
  flex: 0 1 360px;
  min-width: min(360px, 100%);
}

.discount-button:disabled {
  cursor: default;
  border-color: rgba(85, 230, 173, 0.5);
  color: var(--mint);
  opacity: 1;
}

.discount-reveal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  width: min(1200px, 100%);
  margin: 20px auto 0;
  padding: 24px clamp(24px, 3vw, 40px) 24px calc(var(--perf-size) + clamp(24px, 3vw, 40px));
  color: var(--night);
  background: var(--paper);
  -webkit-mask:
    linear-gradient(#000, #000) var(--perf-size) 0 / calc(100% - var(--perf-size)) 100% no-repeat,
    radial-gradient(circle at center, transparent 0 3.5px, #000 4px) 0 0 / var(--perf-size) 18px repeat-y;
  mask:
    linear-gradient(#000, #000) var(--perf-size) 0 / calc(100% - var(--perf-size)) 100% no-repeat,
    radial-gradient(circle at center, transparent 0 3.5px, #000 4px) 0 0 / var(--perf-size) 18px repeat-y;
  opacity: 0;
}

.discount-reveal.is-visible {
  opacity: 1;
}

.discount-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 0.8;
}

.discount-value strong {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.discount-value span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.discount-copy {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-width: 0;
}

.discount-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.discount-copy code {
  display: block;
  max-width: 100%;
  padding: 10px 14px;
  overflow-wrap: anywhere;
  color: var(--cloud);
  background: var(--night);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  user-select: all;
}

.share-note {
  width: min(1200px, 100%);
  min-height: 24px;
  margin: 14px auto 0;
  color: var(--muted);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .auth-button,
  .logout-button,
  .primary-button,
  .secondary-button,
  .icon-button,
  .seat-button,
  .seat-code,
  .seat-tooltip,
  .cabin-nav-label {
    transition:
      transform 150ms var(--ease-out),
      opacity 100ms var(--ease-out),
      background-color 100ms var(--ease-out),
      border-color 100ms var(--ease-out);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .discount-reveal.is-visible {
    animation: coupon-in 300ms var(--ease-out) both;
  }

  .printing-pass {
    animation: pass-print 700ms 120ms var(--ease-out) both;
  }

  .cabin-image {
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .seat-layer {
    transition: opacity 150ms cubic-bezier(0.4, 0, 1, 1);
  }

  .hero-plane {
    animation:
      plane-arrive 480ms var(--ease-out) both,
      plane-float 7s 480ms cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  }

  .cloud-one { animation: cloud-pass-one 22s linear infinite; }
  .cloud-two { animation: cloud-pass-two 28s linear infinite; }
  .cloud-three { animation: cloud-pass-three 34s linear infinite; }
}

@keyframes plane-arrive {
  from { transform: translate3d(5%, 1.5%, 0) rotate(-0.7deg); }
  to { transform: translate3d(0, 0, 0) rotate(-0.25deg); }
}

@keyframes plane-float {
  from { transform: translate3d(0, 0, 0) rotate(-0.25deg); }
  to { transform: translate3d(5px, 5px, 0) rotate(0.2deg); }
}

@keyframes cloud-pass-one {
  from { transform: translate3d(-10vw, 0, 0); }
  to { transform: translate3d(130vw, 3vh, 0); }
}

@keyframes cloud-pass-two {
  from { transform: translate3d(18vw, 0, 0); }
  to { transform: translate3d(-130vw, -2vh, 0); }
}

@keyframes cloud-pass-three {
  from { transform: translate3d(-85vw, 0, 0); }
  to { transform: translate3d(90vw, 2vh, 0); }
}

@keyframes pass-print {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes coupon-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 840px) {
  .site-header {
    min-height: 76px;
    align-items: flex-start;
  }

  .brand-lockup img {
    width: 132px;
  }

  .account-copy,
  .auth-message {
    display: none;
  }

  .cabin-view,
  .result-view {
    padding-top: 100px;
  }

  .cabin-heading,
  .result-heading {
    align-items: flex-start;
  }

  .availability-key {
    display: none;
  }

  .cabin-map {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .cabin-map-shell {
    width: calc(100% + (var(--page-gutter) * 2));
    margin-left: calc(var(--page-gutter) * -1);
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions > button {
    flex: none;
  }

  .share-button,
  .secondary-button {
    width: 100%;
  }

  .discount-reveal {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (pointer: coarse) {
  .seat-code {
    opacity: 1;
  }

  .seat-tooltip {
    display: none;
  }

  .cabin-nav-label {
    opacity: 1;
  }
}

@media (max-width: 540px) {
  :root {
    --page-gutter: 18px;
  }

  .site-header {
    padding-top: 12px;
  }

  .brand-lockup img {
    width: 116px;
  }

  .account-chip {
    gap: 4px;
  }

  .logout-button {
    min-width: 52px;
    padding: 0 9px;
  }

  .primary-button {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
  }

  .cabin-heading h1,
  .result-heading h1,
  .loading-stage h1 {
    font-size: 40px;
  }

  .cabin-instruction {
    font-size: 14px;
  }

  .cabin-map-shell {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sky) rgba(248, 251, 255, 0.08);
  }

  .cabin-map {
    width: 680px;
  }

  .cabin-pan-hint {
    display: block;
  }

  .cabin-map-label {
    padding: 7px 10px;
    font-size: 10px;
  }

  .boarding-pass-preview {
    width: calc(100% + (var(--page-gutter) * 2));
    margin-left: calc(var(--page-gutter) * -1);
    border-radius: 0;
  }
}

/* ---------------------------------------------------------------------
   Landing: printed-ephemera split. Ink stub panel with a punched
   perforation beside the live sky. One accent (gold) for the action;
   mint is reserved for live status.
   ------------------------------------------------------------------ */

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

.landing-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(400px, 46%) minmax(0, 1fr);
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #4fa9e9;
}

.hero-sky {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-plane {
  position: absolute;
  top: 31%;
  left: 36%;
  z-index: 2;
  width: 62%;
  transform: translate3d(0, 0, 0) rotate(-0.25deg);
  transform-origin: 58% 52%;
  filter: drop-shadow(0 22px 18px rgba(10, 38, 68, 0.16));
  will-change: transform;
}

.hero-plane-image {
  display: block;
  width: 100%;
  height: auto;
}

.cloud {
  position: absolute;
  display: block;
  width: 42vw;
  min-width: 360px;
  aspect-ratio: 4 / 1;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(30px);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), transparent 68%);
  will-change: transform;
}

.cloud-one {
  top: 12%;
  left: 20%;
  z-index: 1;
}

.cloud-two {
  right: -16%;
  bottom: 18%;
  z-index: 1;
  opacity: 0.1;
}

.cloud-three {
  top: 58%;
  left: 10%;
  z-index: 3;
  opacity: 0.12;
}

.landing-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 124px clamp(32px, 4.2vw, 72px) 64px var(--page-gutter);
  background: var(--night);
  -webkit-mask:
    linear-gradient(#000, #000) 0 0 / calc(100% - var(--perf-size)) 100% no-repeat,
    radial-gradient(circle at center, transparent 0 3.5px, #000 4px) right 0 top 0 / var(--perf-size) 18px repeat-y;
  mask:
    linear-gradient(#000, #000) 0 0 / calc(100% - var(--perf-size)) 100% no-repeat,
    radial-gradient(circle at center, transparent 0 3.5px, #000 4px) right 0 top 0 / var(--perf-size) 18px repeat-y;
}

.landing-content {
  width: 100%;
  max-width: 520px;
}

.landing-content h1 {
  max-width: 11ch;
  font-size: clamp(46px, 5.4vw, 84px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.landing-lede {
  max-width: 44ch;
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

.manifest {
  display: grid;
  gap: 8px;
  margin: 0 0 34px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.manifest > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
}

.manifest dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.manifest dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.manifest abbr {
  text-decoration: none;
}

.manifest-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(85, 230, 173, 0.16);
}

.landing-view .primary-button {
  width: 100%;
  max-width: 420px;
  justify-content: flex-start;
  min-height: 56px;
  padding: 0 20px;
}

.landing-view .primary-button .x-mark {
  margin-right: 2px;
}

.landing-auth-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--cloud);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 840px) {
  .landing-view {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 46svh) auto;
  }

  .hero-media {
    position: relative;
    inset: auto;
    grid-row: 1;
    height: 100%;
  }

  .hero-sky {
    object-position: 60% center;
  }

  .hero-plane {
    top: 34%;
    left: -6%;
    width: 112%;
  }

  .cloud-one {
    left: -10%;
  }

  .landing-panel {
    grid-row: 2;
    margin-top: calc(var(--perf-size) * -1);
    padding: 44px var(--page-gutter) calc(40px + env(safe-area-inset-bottom));
    -webkit-mask:
      linear-gradient(#000, #000) 0 var(--perf-size) / 100% calc(100% - var(--perf-size)) no-repeat,
      radial-gradient(circle at center, transparent 0 3.5px, #000 4px) 0 0 / 18px var(--perf-size) repeat-x;
    mask:
      linear-gradient(#000, #000) 0 var(--perf-size) / 100% calc(100% - var(--perf-size)) no-repeat,
      radial-gradient(circle at center, transparent 0 3.5px, #000 4px) 0 0 / 18px var(--perf-size) repeat-x;
  }

  .landing-content {
    max-width: 560px;
  }

  .landing-content h1 {
    font-size: clamp(40px, 11vw, 60px);
  }

  .landing-lede {
    margin: 18px 0 26px;
    font-size: 16px;
  }

  .manifest {
    margin-bottom: 26px;
  }

  .landing-view .primary-button {
    max-width: none;
    justify-content: center;
  }
}
