/* FlightDesk Theory Lab waitlist page: the sign-up card, the feature grid, what is
   included and the questions. Colours and type come from home.css. */
.wl-hero .hero-grid { align-items: start; }
.wl-card {
  min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px);
}
.wl-card h2 { font-size: clamp(24px, 2.6vw, 30px); }
.wl-sub { color: var(--ink-soft); margin: 10px 0 20px; }
.wl-field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 600; }
.wl-field input, .wl-field select {
  font: 400 17px/1.3 var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: 10px; min-height: 48px; padding: 0 14px; width: 100%;
}
.wl-field input:focus, .wl-field select:focus { border-color: var(--ink); outline: none; }
.wl-field input[aria-invalid="true"] { border-color: var(--magenta); }
.wl-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; line-height: 1.4; cursor: pointer; }
.wl-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.wl-card .btn { width: 100%; cursor: pointer; }
.wl-card .btn[disabled] { opacity: 0.6; cursor: progress; }
.wl-small { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }
.wl-msg { margin: 14px 0 0; font-weight: 600; }
.wl-msg.err { color: var(--magenta); }
.wl-done p { color: var(--ink-soft); margin: 12px 0 0; font-size: 18px; }

.wl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wl-feat { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; }
.wl-feat svg { width: 36px; height: 36px; color: var(--ink); margin-bottom: 12px; }
.wl-feat h3 { font-size: 19px; }
.wl-feat p { color: var(--ink-soft); margin: 10px 0 0; }

.wl-inc { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin: 0; }
.wl-inc div { border-top: 3px solid var(--ink); padding-top: 12px; }
.wl-inc dt { font: 800 20px/1.2 var(--display); }
.wl-inc dd { margin: 6px 0 0; color: var(--ink-soft); }
.wl-note { max-width: 46em; color: var(--ink-soft); margin: 28px 0 0; font-size: 15px; }

.wl-faq details, .wl-faq h2 { max-width: 820px; }
.wl-faq h2 { margin-bottom: 20px; }
.wl-faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.wl-faq summary { font: 700 18px/1.3 var(--display); cursor: pointer; }
.wl-faq details p { color: var(--ink-soft); margin: 10px 0 0; max-width: 42em; }
.wl-faq .cta { margin-top: 28px; }

@media (max-width: 960px) {
  .wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-inc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wl-grid, .wl-inc { grid-template-columns: 1fr; }
  /* Phones: icon beside the title and tighter cards, so the reasons and the plans read in fewer screens. */
  .wl-grid { gap: 12px; }
  .wl-feat { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 16px; }
  .wl-feat svg { width: 28px; height: 28px; margin: 0; }
  .wl-feat h3 { font-size: 17px; margin: 0; }
  .wl-feat p { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; }
  .wl-inc { gap: 14px; }
}

/* What it looks like: real screens. */
.wl-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.wl-shot { margin: 0; min-width: 0; }
.wl-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); background: var(--card); }
.wl-shot figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.wl-shot-hub { grid-row: span 2; }
@media (max-width: 760px) { .wl-shots { grid-template-columns: 1fr; } .wl-shot-hub { grid-row: auto; } }

/* Plans and prices (written by scripts/legal/build.py from scripts/legal/legal.json) */
.pricing { scroll-margin-top: 80px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; }
.price-card h3 { margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.2; }
.price-amount { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1.1; }
.price-amount span { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.price-desc { margin: 0; }
.price-term { margin: 0; color: var(--ink-soft); font-size: 15px; }
.price-subject { display: flex; flex-direction: column; gap: 4px; margin-top: auto; font-size: 15px; color: var(--ink-soft); }
.price-subject select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; min-height: 44px; width: 100%; }
.price-card .price-subject + .btn { margin-top: 4px; }
.price-msg { margin: 0; font-size: 15px; color: var(--magenta); font-weight: 600; }
.price-card .btn[disabled] { opacity: .6; cursor: progress; }
.price-card .btn { margin-top: auto; text-align: center; white-space: normal; }
.price-note { margin: 18px 0 0; font-weight: 600; }
.price-foot { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 60em; }

/* Phones: tighter screenshots and plans. Kept last so it wins over the base rules above. */
@media (max-width: 600px) {
  .price-grid { gap: 12px; }
  .price-card { padding: 18px; gap: 8px; }
  .price-amount { font-size: 34px; }
  .price-desc { font-size: 15px; }
  .wl-shots { gap: 16px; }
  .wl-shot figcaption { font-size: 14px; margin-top: 6px; }
}

/* "Notify me when it opens" once the visitor is on the list (or has the link to confirm). */
.price-card .btn.is-on { background: #2f8f5b; border-color: #2f8f5b; color: #fff; cursor: default; }
.price-card .btn[aria-busy="true"] { opacity: 0.7; }
