/* commercial.customer.training.falconlab.app: the private preview's training withdrawal form.
   Falcon's paper and bronze (falcon-docs/static/falcon.css) in light; the dark palette is the approved set. */
:root {
  --bg: #f6f3ed; --surface: #fbf9f5; --sunken: #f0ece4; --bar: rgba(246, 243, 237, .82);
  --ink: #14110d; --text: #2b2721; --muted: #5e5749; --faint: #6f685c;
  --line: rgba(20, 17, 12, .10); --line-strong: rgba(20, 17, 12, .20);
  --accent: #7a6136; --accent-ink: #fbf8f2; --accent-soft: rgba(122, 97, 54, .10);
  --ok: #3b7d45; --ok-soft: rgba(59, 125, 69, .10); --bad: #a3301f; --bad-soft: rgba(163, 48, 31, .08);
  --h1-from: #000000; --h1-to: #666666;
  --shadow: 0 1px 2px rgba(20, 17, 12, .05), 0 12px 32px rgba(20, 17, 12, .06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131209; --surface: #1f1f1f; --sunken: #181818; --bar: rgba(31, 31, 31, .82);
    --ink: #f3f1ec; --text: #dcd9d2; --muted: #a8a59d; --faint: #8d8a83;
    --line: rgba(255, 255, 255, .10); --line-strong: rgba(255, 255, 255, .20);
    --accent: #d4c4a8; --accent-ink: #131209; --accent-soft: rgba(212, 196, 168, .12);
    --ok: #7cc68d; --ok-soft: rgba(124, 198, 141, .12); --bad: #f08a7a; --bad-soft: rgba(240, 138, 122, .12);
    --h1-from: #ffffff; --h1-to: #9b9b9b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, dl { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s var(--ease); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ic { width: 16px; height: 16px; flex: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 20px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform .3s var(--ease); }
.skip:focus { transform: translateY(80px); }

/* ---- the floating bar ---- */
.bar { position: sticky; top: 16px; z-index: 20; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); margin: 16px auto 0; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 9999px; background: var(--bar); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.brand img { border-radius: 6px; }
.bar-tag { padding: 2px 8px; border-radius: 9999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.bar-links { display: flex; gap: 4px; }
.bar-links a { padding: 8px 12px; border-radius: 9999px; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.bar-links a:hover { background: var(--sunken); color: var(--ink); }

/* ---- layout ---- */
main { width: min(1040px, 100% - 32px); margin: 0 auto; display: grid; gap: 96px; padding: 80px 0 96px; }

.hero { display: grid; gap: 24px; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 600; }
.hero h1 { max-width: 680px; font-size: 60px; line-height: 1; letter-spacing: -.02em; background: linear-gradient(90deg, var(--h1-from), var(--h1-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.proof { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9999px; font: inherit; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease); }
.btn.primary { padding: 8px 16px; background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn.primary:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; background: var(--ink); color: var(--bg); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---- facts ---- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fact .ic { width: 24px; height: 24px; color: var(--accent); margin-bottom: 8px; }
.fact h2 { font-size: 18px; line-height: 28px; }
.fact p { color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---- today / adds ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.split > div { display: grid; gap: 16px; align-content: start; }
.split h2 { font-size: 24px; line-height: 32px; }
.split a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* ---- the form ---- */
.form-card { display: grid; gap: 32px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 96px; }
.form-card:focus { outline: none; }
.form-head { display: grid; gap: 8px; }
.form-head h2 { font-size: 30px; line-height: 36px; }
.form-head p { color: var(--muted); }
.form { display: grid; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; }
.opt { margin-left: 4px; color: var(--faint); font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.help { color: var(--muted); font-size: 14px; line-height: 20px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color .3s var(--ease); }
.check:hover { border-color: var(--line-strong); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check:has([aria-invalid="true"]) { border-color: var(--bad); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.status { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.status.is-busy { background: var(--sunken); color: var(--muted); }
.status.is-error { background: var(--bad-soft); color: var(--bad); }
.done { display: grid; gap: 12px; justify-items: start; padding: 32px; border-radius: 16px; background: var(--ok-soft); }
.done:focus { outline: none; }
.done .ic { width: 32px; height: 32px; color: var(--ok); }
.done h3 { font-size: 24px; line-height: 32px; }
.ref { color: var(--muted); font-size: 14px; line-height: 20px; }
.ref code { color: var(--ink); }

/* ---- steps ---- */
.steps { display: grid; gap: 32px; }
.steps h2, .faq h2 { font-size: 30px; line-height: 36px; }
.steps ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: grid; gap: 16px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.steps h3 { font-size: 18px; line-height: 28px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---- questions ---- */
.faq { display: grid; gap: 24px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .3s var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; border-radius: 12px; transition: background-color .3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--sunken); }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

/* ---- closing ---- */
.closing { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 64px 24px; border-radius: 24px; background: var(--sunken); }
.closing h2 { font-size: 36px; line-height: 40px; }
.closing p { color: var(--muted); font-size: 18px; line-height: 28px; margin-bottom: 8px; }

.foot { width: min(1040px, 100% - 32px); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 20px; }
.foot strong { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---- the 404 ---- */
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: start; gap: 16px; width: min(680px, 100% - 32px); margin: 0 auto; }
.lost h1 { font-size: 48px; line-height: 1; }
.lost p { color: var(--muted); font-size: 18px; line-height: 28px; }

/* ---- reveal on scroll: once, rising 32 px (opacity only with reduced motion) ---- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .7s linear; }
  *, *::before, *::after { transition-duration: .2s !important; }
}

/* ---- phones ---- */
@media (max-width: 820px) {
  main { gap: 64px; padding: 48px 0 64px; }
  .hero h1 { font-size: 48px; }
  .facts, .split, .steps ol { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .form-card { padding: 24px; gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bar { gap: 8px; padding-left: 8px; }
  .bar-tag { display: none; }
  .bar-links a { padding: 8px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero h1 br { display: none; }
  .closing h2 { font-size: 30px; line-height: 36px; }
}
