/* Wingtip Whisperer. Checklist cadence, cockpit restraint, one red streamer.
   --red is for exactly three things: the streamer, the alarm arcs, the primary button. */
:root {
  --bg: #f3f4f5;      /* aluminum */
  --card: #ffffff;
  --ink: #1b1f24;
  --navy: #15304b;    /* headings */
  --muted: #59636e;
  --rule: #cfd5db;
  --red: #c8102e;     /* remove-before-flight streamer red */
  --gutter: 16px;
  --measure: 36rem;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d;
    --card: #1c2229;
    --ink: #e4e7ea;
    --navy: #a9c2db;
    --muted: #9aa4ae;
    --rule: #2f3841;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--body);
  overflow-wrap: break-word;
}
svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--head); font-stretch: condensed; color: var(--navy);
  line-height: 1.12; margin: 0;
}
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
p { margin: 0 0 1rem; }

/* checklist headers */
.label {
  font: 700 0.8rem/1.2 var(--head); font-stretch: condensed;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
  margin: 0 0 1.5rem;
}

/* top bar */
.bar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 68rem; margin: 0 auto; padding: 14px var(--gutter);
}
.mark { font-family: var(--head); font-stretch: condensed; font-weight: 800; text-decoration: none; letter-spacing: 0.01em; color: var(--navy); }
.bar-link { font-weight: 600; font-size: 0.95rem; }

main { max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }

/* hero */
.hero { display: grid; gap: 1.75rem; padding: 1.25rem 0 3rem; grid-template-areas: "head" "fig" "form"; }
.hero-head { grid-area: head; }
.planform { grid-area: fig; margin: 0; }
.hero-form { grid-area: form; }
.hero .label { margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2.9rem, 13vw, 5.25rem); font-weight: 800; letter-spacing: -0.01em; line-height: 0.92; }
.line { font-family: var(--head); font-stretch: condensed; color: var(--navy); font-size: clamp(1.35rem, 5vw, 1.8rem); font-weight: 700; line-height: 1.2; margin: 0.9rem 0 1rem; max-width: 22ch; }
.pitch { color: var(--muted); max-width: var(--measure); margin: 0; }
.price span { white-space: nowrap; }
.price { font-family: var(--head); font-stretch: condensed; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0 1.25rem; }

/* the planform drawing */
.planform svg { width: 100%; max-width: 34rem; margin: 0 auto; }
.pf-body { fill: var(--card); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.pf-line { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.55; }
.pf-hidden { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 5 4; opacity: 0.6; }
.pf-unit { fill: var(--ink); }
.arc path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; animation: listen 2.4s ease-out infinite; }
.arc path:nth-child(2) { animation-delay: 0.25s; }
.arc path:nth-child(3) { animation-delay: 0.5s; }
.arc:nth-of-type(2) path { animation-delay: 0.6s; }
.arc:nth-of-type(2) path:nth-child(2) { animation-delay: 0.85s; }
.arc:nth-of-type(2) path:nth-child(3) { animation-delay: 1.1s; }
@keyframes listen { 0%, 100% { opacity: 0.18; } 30% { opacity: 1; } }
.planform figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* form */
.notify { max-width: 28rem; }
.field { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.notify input[type="email"] {
  width: 100%; font: inherit; padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--muted); border-radius: 6px; background: var(--card); color: var(--ink);
}
.notify input[type="email"]:focus-visible { outline-offset: 1px; }
.want { border: 0; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.want legend { font-weight: 650; padding: 0; margin-bottom: 0.35rem; }
.want label {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--rule); border-radius: 6px; background: var(--card);
}
.want label:has(input:checked) { border-color: var(--ink); }
.want input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--ink); }
.want span { flex: 1; display: flex; justify-content: space-between; gap: 1rem; }
.want b { font-variant-numeric: tabular-nums; }
.notify button {
  width: 100%; font: inherit; font-weight: 700; letter-spacing: 0.02em; padding: 0.9rem 1rem; cursor: pointer;
  border: 0; border-radius: 6px; background: var(--red); color: #fff;
}
.notify button:hover { filter: brightness(0.9); }
.notify button[disabled] { opacity: 0.6; cursor: progress; }
.status { min-height: 1.55em; margin: 0.75rem 0 0.25rem; font-weight: 600; }
.status.is-error { text-decoration: underline wavy; text-underline-offset: 0.25em; }
.fine { color: var(--muted); font-size: 0.875rem; }
.pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* sections, divided by a horizon line with a center tick */
.band { position: relative; padding: 3.25rem 0 2.75rem; }
.band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }
.band::after { content: ""; position: absolute; top: -6px; left: 50%; width: 1px; height: 13px; background: var(--ink); }

.how-grid { display: grid; gap: 2rem; }
.diagram { margin: 0; max-width: 26rem; }
.diagram .wing { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.diagram .unit { fill: var(--ink); }
.diagram .cone { fill: var(--rule); }
.diagram text { font: 600 13px var(--body); fill: var(--ink); }
.diagram text.muted { font-weight: 400; fill: var(--muted); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.points p { color: var(--muted); margin: 0; max-width: var(--measure); }

.placeholder {
  margin: 2.5rem 0 0; padding: 3rem 1rem; text-align: center;
  border: 1.5px dashed var(--muted); border-radius: 6px; color: var(--muted);
}
.placeholder p { font-weight: 700; margin: 0 0 0.25rem; color: var(--ink); }
.placeholder figcaption { font-size: 0.875rem; }

/* who this is for */
.who-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.who-card { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 4px; padding: 1.1rem 1.1rem 0.4rem; }
.who-card p { color: var(--muted); }
.why { margin-top: 2rem; max-width: 40rem; }
.why h3 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.why p { margin-top: 0.4rem; }

/* what it costs */
.price-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.price-card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.1rem 0.5rem; }
.price-card h3 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.amount { font-family: var(--head); font-stretch: condensed; font-size: 2.75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: 0.35rem 0 0.6rem; }
.tag { display: inline-block; font: 700 0.72rem/1.2 var(--head); font-stretch: condensed; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--navy); border-radius: 3px; padding: 0.2rem 0.45rem; margin-bottom: 0.6rem; }
.sub { color: var(--muted); font-size: 0.95rem; }

/* after shutdown: the streamer and the checklist */
.safety {
  margin: 1rem 0 3rem; padding: 2rem 1.25rem 1.5rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px;
}
.streamer {
  position: relative; display: inline-block; margin: 0 0 1.5rem;
  padding: 0.5rem 1.1rem 0.5rem 2.2rem;
  background: var(--red); color: #fff;
  font: 800 clamp(0.75rem, 3.4vw, 0.95rem)/1.2 var(--head); font-stretch: condensed;
  letter-spacing: 0.08em; white-space: nowrap;
  border-radius: 2px; transform: rotate(-2deg);
}
.streamer::before { /* the grommet */
  content: ""; position: absolute; left: 0.75rem; top: 50%; width: 0.75rem; height: 0.75rem; margin-top: -0.375rem;
  border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
}
.safety .label { margin-bottom: 1rem; }
.checklist { margin: 0 0 1.25rem; max-width: 30rem; font-family: var(--head); font-stretch: condensed; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; text-transform: uppercase; }
.checklist div { display: flex; align-items: baseline; padding: 0.3rem 0; }
.checklist dt { order: 1; }
.checklist div::after { content: ""; order: 2; flex: 1 1 1.5rem; margin: 0 0.5rem; border-bottom: 2px dotted var(--muted); transform: translateY(-0.3em); }
.checklist dd { order: 3; margin: 0; text-align: right; }
.plain { max-width: var(--measure); margin: 0; }

.specs { width: 100%; max-width: 40rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.specs th { font-weight: 650; width: 40%; padding-right: 1rem; }

details { border-bottom: 1px solid var(--rule); max-width: 40rem; }
summary { cursor: pointer; font-weight: 650; padding: 0.9rem 0; }
details p { color: var(--muted); max-width: var(--measure); }

.foot {
  max-width: 68rem; margin: 0 auto; padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem;
}
.foot p { margin: 0 0 0.4rem; }
.foot a { color: var(--muted); margin-right: 1.25rem; }

/* privacy and 404 pages */
.prose { max-width: 40rem; padding-bottom: 3rem; }
.prose h1 { font-size: 2.25rem; font-weight: 800; margin: 1.5rem 0 0.5rem; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.prose ul { padding-left: 1.2rem; }

@media (min-width: 720px) {
  .how-grid { grid-template-columns: minmax(0, 24rem) 1fr; align-items: start; }
  .points { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .who-cards { grid-template-columns: 1fr 1fr; }
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .safety { padding: 2.25rem 2.5rem 2rem; }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 3rem; row-gap: 1.5rem;
    grid-template-areas: "head fig" "form fig"; align-items: start; padding-top: 2rem;
  }
  .planform { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .arc path { animation: none; opacity: 1; }
  .streamer { transform: none; }
}
