/* ---- Final call to action ---- */
/* A dark glow panel with film grain and a Dutopilot watermark in both themes, over a side-profile ILS approach to runway 27.
   The plane's landing runs from home-final.js; the runway lights chase only under html.motion. */
html.da-home .final {
  padding-block: 72px 104px;
}
html.da-home .final-panel {
  --i-text: #e9eef6;
  --i-muted: #a3aec0;
  --i-line-2: rgba(255, 255, 255, 0.24);
  --i-blue: #5b8cff;
  --i-green: #3dc48b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(70% 55% at 50% 112%, rgba(31, 111, 209, 0.55), transparent 70%),
    radial-gradient(40% 40% at 100% 0%, rgba(0, 197, 232, 0.18), transparent 70%),
    linear-gradient(180deg, #0a1226 0%, #050913 100%);
  box-shadow: 0 40px 90px -40px rgba(5, 12, 30, 0.7);
  color: #fff;
}
html.da-home .final-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.055;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.da-home .final-panel > *:not(.final-wm) {
  position: relative;
  z-index: 1;
}
html.da-home .final-copy {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 12px 48px;
  align-items: end;
  padding: 0 24px;
}
html.da-home .final-copy h2 {
  grid-row: span 2;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, calc(20px + 26 * (100vw - 320px) / 880), 46px);
  font-weight: 500;
  letter-spacing: -0.022em;
}
html.da-home .final-copy p {
  margin: 0;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17.5px;
}
html.da-home .final-copy .final-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
html.da-home .final-btns .btn {
  border-radius: 999px;
}
html.da-home .final-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
}
html.da-home .final-wm {
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  bottom: -0.16em;
  font: 600 clamp(96px, 21vw, 290px) / 1 var(--display);
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
}

/* the approach chart */
html.da-home .approach {
  display: block;
  width: 100%;
  height: auto;
  margin-block-start: 28px;
}
html.da-home .approach text {
  font-family: var(--body);
  font-size: 11px;
  fill: var(--i-muted);
}
html.da-home .approach .dl {
  font-size: 12px;
}
html.da-home .approach .sub {
  font-size: 12px;
  opacity: 0.8;
}
html.da-home .approach .gs {
  stroke: var(--i-blue);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.5;
}
html.da-home .approach .gnd {
  stroke: var(--i-line-2);
  stroke-width: 1.2;
}
html.da-home .approach .dt {
  stroke: var(--i-line-2);
}
html.da-home .approach .rw {
  fill: #1a2134;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1;
}
html.da-home .approach .thr {
  stroke: var(--i-text);
  stroke-width: 1.5;
}
html.da-home .approach .pk-th rect {
  fill: #fff;
  opacity: 0.9;
}
html.da-home .approach text.rwn {
  font: 700 5.6px/1 var(--mono, ui-monospace, Menlo, monospace);
  fill: #fff;
  opacity: 0.92;
}
html.da-home .approach .rlights circle {
  fill: #f3b443;
  opacity: 0.3;
}
html.da-home .approach .alights circle {
  fill: #f3b443;
  opacity: 0.35;
}
html.da-home.motion .approach .rlights circle,
html.da-home.motion .approach .alights circle {
  animation: da-rabbit 1.6s linear infinite;
  animation-delay: var(--d);
}
@keyframes da-rabbit {
  0%,
  8% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #f3b443);
  }
  20%,
  100% {
    opacity: 0.25;
    filter: none;
  }
}
html.da-home .approach .pl {
  fill: var(--i-blue);
}
html.da-home .approach .wh {
  fill: var(--i-text);
}
html.da-home .approach .plane {
  transition: opacity 0.2s;
}
html.da-home .approach .puff circle {
  fill: var(--i-muted);
  opacity: 0.6;
}
html.da-home .approach .landed {
  fill: var(--i-green);
  font-size: 16px;
  font-weight: 500;
}
html.da-home .approach .tid {
  fill: var(--i-text);
  font-size: 13px;
}
html.da-home[data-theme="dark"] .approach .rw {
  fill: #1e1e24;
  stroke: rgba(255, 255, 255, 0.28);
}
html.da-home[data-theme="dark"] .approach .alights circle {
  opacity: 0.5;
}

@media (max-width: 1080px) {
  html.da-home .final-copy {
    grid-template-columns: minmax(0, 1fr);
  }
  html.da-home .final-copy h2 {
    grid-row: auto;
  }
}
/* phones: the chart draws at about a third of its size, so its labels are set three times larger in chart units */
@media (max-width: 640px) {
  html.da-home .final-panel {
    padding: 32px 16px 16px;
  }
  html.da-home .final-copy {
    padding: 0 6px;
  }
  html.da-home .approach text,
  html.da-home .approach .dl {
    font-size: 34px;
  }
  html.da-home .approach .landed {
    font-size: 46px;
    transform: translate(-50px, -34px);
  }
  html.da-home .approach .tid {
    font-size: 32px;
    transform: translateX(-50px);
  }
  html.da-home .approach .sub {
    display: none;
  }
}
/* phones: home-final.js gives the chart a taller view (0 -200 1000 456) and a steeper glide slope. The result lines sit
   in the sky above the runway, their end at its far end (x 985), clear of the plane, and in the old view without JS too */
@media (max-width: 600px) {
  html.da-home .final {
    padding-block: 32px 56px;
  }
  html.da-home .approach {
    margin-block-start: 20px;
  }
  html.da-home .approach .gs {
    stroke-width: 3;
    stroke-dasharray: 9 12;
    opacity: 0.7;
  }
  html.da-home .approach .gnd,
  html.da-home .approach .dt {
    stroke-width: 3;
  }
  html.da-home .approach .rw {
    y: 197px;
    height: 13px;
    stroke-width: 2.5;
  }
  html.da-home .approach .thr {
    stroke-width: 3.5;
  }
  html.da-home .approach .pk-th rect {
    y: 199px;
    height: 9px;
  }
  html.da-home .approach text.rwn {
    font-size: 9px;
    transform: translateY(3px);
  }
  html.da-home .approach .rlights circle {
    cy: 203.5px;
    r: 2.4px;
  }
  html.da-home .approach .alights circle {
    r: 4.5px;
  }
  html.da-home .approach text,
  html.da-home .approach .dl {
    font-size: 36px;
  }
  html.da-home .approach .dl {
    transform: translateY(14px);
  }
  html.da-home .approach .landed,
  html.da-home .approach .tid {
    text-anchor: end;
  }
  html.da-home[dir="rtl"] .approach .landed,
  html.da-home[dir="rtl"] .approach .tid {
    text-anchor: start;
  }
  html.da-home .approach .landed {
    font-size: 44px;
    transform: translate(175px, -84px);
  }
  html.da-home .approach .tid {
    font-size: 32px;
    transform: translate(175px, -52px);
  }
  html.da-home .final-wm {
    bottom: -0.14em;
    font-size: 19vw;
  }
}
