/* Generated by scripts/build-blog.mjs from site/index.html — edit it there. */
:root { --surface: #ffffff; --accent-hover: #c8a662; --hl: rgba(212, 181, 114, .55); --serif: "Instrument Serif", Georgia, serif; }
[hidden] { display: none !important; }
/* Undo the article styles (legal.css) inside the popup, so it looks like it does on the homepage */
.pilot { line-height: 1.6; }
.pilot h2, .pilot h3, .pilot p, .pilot ul, .pilot li { margin: 0; }
.pilot h2, .pilot h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.pilot em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.pilot h2 em { background: linear-gradient(transparent 80%, var(--hl) 80%, var(--hl) 93%, transparent 93%); padding-inline: 0.05em; }
.pilot .eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.pilot .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.pilot .btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.pilot .btn-primary { background: var(--accent); color: var(--ink); }
.pilot .btn-primary:hover { transform: translateY(-2px); background: var(--accent-hover); }
.pilot .btn svg { width: 18px; height: 18px; }
  .perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
  .perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
  .perks svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--ink); margin-top: 1px; }

  .lead-form {
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 20px; padding: 36px;
    display: grid; gap: 18px;
    box-shadow: 0 24px 48px -32px rgba(23, 20, 15, .2);
    position: relative; overflow: hidden;
  }
  .lead-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
  .lead-form h3 { font-size: 1.15rem; }
  .form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .form-count { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: -6px; }
  .progress span { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: inherit; transition: width .35s ease; }

  .fstep { display: grid; gap: 10px; padding-top: 6px; animation: stepIn .35s ease; }
  .fstep.from-left { animation-name: stepInLeft; }
  @keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  @keyframes stepInLeft { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  .q { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
  .hint { font-size: 0.88rem; color: var(--muted); }
  .lead-form input:not([type="checkbox"]):not([type="hidden"]) {
    font: inherit; font-size: 1.05rem; color: var(--ink);
    padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
  }
  .lead-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
  .lead-form input[aria-invalid="true"] { border-color: #b42318; }
  .field-error { font-size: 0.88rem; color: #b42318; }
  .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); line-height: 1.45; margin-top: 4px; cursor: pointer; }
  .consent input { margin-top: 2px; accent-color: #c4a35e; width: 18px; height: 18px; flex: none; cursor: pointer; }

  .form-nav { display: flex; gap: 10px; align-items: stretch; }
  .lead-form .btn { justify-content: center; border: 0; cursor: pointer; font-family: inherit; flex: 1; }
  .lead-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
  .back-btn {
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    border-radius: 999px; padding: 0 20px; cursor: pointer;
    font: 600 1rem var(--sans);
  }
  .back-btn:hover { border-color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .fstep { animation: none; } .progress span { transition: none; } }
  .form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }
  .form-error { font-size: 0.9rem; color: #b42318; text-align: center; }
  .hp { position: absolute; left: -9999px; }
  .form-success { text-align: center; padding: 24px 8px; display: grid; gap: 12px; justify-items: center; }
  .form-success .check { width: 56px; height: 56px; border-radius: 50%; background: #e7f7ec; color: #17803d; display: grid; place-items: center; }
  .form-success .check svg { width: 28px; height: 28px; }
  .form-success p { color: var(--muted); }
  .form-success .ok-title { margin: 0; color: inherit; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }

  /* Popup: a short pitch, then the same step-by-step form as the contact section */
  html:has(.pilot[open]) { overflow: hidden; }
  .pilot {
    width: min(480px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
    padding: 0; border: 1px solid var(--line); border-radius: 22px; overflow: auto;
    background: var(--surface); color: var(--ink);
    box-shadow: 0 32px 64px -24px rgba(23, 20, 15, .35);
  }
  .pilot:focus { outline: none; } /* the popup takes focus itself on open, so no button looks pre-selected */
  .pilot::backdrop { background: rgba(23, 20, 15, .45); backdrop-filter: blur(3px); }
  .pilot[open] { animation: pilotIn .35s ease; }
  .pilot[open]::backdrop { animation: pilotFade .35s ease; }
  @keyframes pilotIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes pilotFade { from { opacity: 0; } }
  .pilot-card { position: relative; padding: 40px 36px 30px; }
  .pilot-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
  .pilot h2 { font-size: clamp(1.8rem, 5vw, 2.3rem); margin-bottom: 14px; }
  .pilot-text { color: var(--muted); margin-bottom: 22px; }
  .pilot .perks { margin-bottom: 28px; font-size: 0.97rem; }
  .pilot-cta { width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
  .pilot-skip {
    display: block; margin: 6px auto 0; padding: 12px; border: 0; background: none; cursor: pointer;
    font: 500 0.9rem var(--sans); color: var(--muted);
    text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
  }
  .pilot-skip:hover { color: var(--ink); }
  .pilot .lead-form { border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; background: none; }
  .pilot .lead-form::before { display: none; }
  @media (prefers-reduced-motion: reduce) { .pilot[open], .pilot[open]::backdrop { animation: none; } }
  /* On-screen keyboard open (set from script): sit right above it and drop the small print */
  .pilot.kb-open {
    margin-top: auto; margin-bottom: var(--kb); max-height: calc(var(--vvh) - 8px);
    border-radius: 22px 22px 0 0;
  }
  .pilot.kb-open .pilot-card { padding-top: 22px; padding-bottom: 16px; }
  .pilot.kb-open .form-note, .pilot.kb-open .hint:not(.save-note) { display: none; }
  /* Phones: slide up from the bottom as a sheet */
  @media (max-width: 480px) {
    .pilot { width: 100%; margin: auto 0 0; max-height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; border-bottom: 0; }
    .pilot-card { padding: 34px 20px calc(22px + env(safe-area-inset-bottom)); }
  }
  /* Phones, once they start typing: the sheet sits at the top of the screen and gets compact, so the
     question, the field and the Next button are always above the keyboard, however the browser reports
     the keyboard (new iOS Safari doesn't report it in a way the kb-open lift can use). */
  .pilot.typing { width: min(480px, calc(100% - 16px)) !important; margin: calc(env(safe-area-inset-top) + 8px) auto auto !important;
    max-height: 64svh !important; border-radius: 20px !important; border-bottom: 1px solid var(--line) !important; animation: none; }
  .pilot.typing .pilot-card { padding: 14px 16px 6px; }
  .pilot.typing .lead-form { gap: 10px; }
  .pilot.typing .form-head h3 { font-size: 1rem; }
  .pilot.typing .progress, .pilot.typing .form-note, .pilot.typing .hint:not(.save-note) { display: none; }
  .pilot.typing .fstep { gap: 8px; padding-top: 0; }
  .pilot.typing .q { font-size: 1.05rem; }
  .pilot.typing .lead-form input:not([type="checkbox"]):not([type="hidden"]) { padding: 11px 14px; }
  .pilot.typing .save-note, .pilot.typing .consent { font-size: .76rem; line-height: 1.4; }
  .pilot.typing .form-nav .btn { padding-top: 12px; padding-bottom: 12px; }
  .pilot.typing .pilot-skip { margin-top: 0; padding: 10px; }
  /* popup headline accent: same font, gold gradient (the homepage avoids italics) */
  .pilot .serif { background: linear-gradient(180deg, #c9a04f, #94701f); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 480px) { .q { font-size: 1.2rem; } }
