/* ==========================================================================
   Future Trainer Collective — register page styles
   ==========================================================================
   Page-local rules, extracted verbatim.
   ========================================================================== */

:root{ --ink-soft:#3c4551; --muted-on-paper: rgba(27,32,25,0.66); }
:focus-visible{ outline:2px solid var(--yellow); outline-offset:3px; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:0.16em; text-transform:uppercase; color:var(--teal); font-weight:600; }
.eyebrow::before{ content:""; width:15px; height:9px; background-image:var(--chevron-img); background-size:contain; background-repeat:no-repeat; background-position:left center; }
/* header */
  header{ background:var(--ink); border-bottom:1px solid var(--ink-line); }
.navbar{ display:flex; align-items:center; justify-content:space-between; padding:16px 28px; max-width:var(--maxw); margin:0 auto; color:var(--text-on-ink); gap:16px; }
.logo-img{ height:30px; width:auto; }
.back{ font-family:'IBM Plex Mono'; font-size:12.5px; text-transform:uppercase; letter-spacing:0.08em; text-decoration:none; color:var(--muted-on-ink); transition:color .15s ease; }
.back:hover{ color:var(--text-on-ink); }
/* hero */
  .hero{ background:var(--ink); color:var(--text-on-ink); padding:72px 0 64px; }
.hero h1{ font-size:clamp(40px,6vw,72px); line-height:0.98; margin:16px 0 22px; }
.hero p{ font-size:18px; max-width:56ch; color:var(--muted-on-ink); margin:0; }
.badge-private{ display:inline-flex; align-items:center; gap:8px; margin-top:28px; padding:9px 14px; border:1px solid rgba(243,239,228,0.3); border-radius:var(--radius); font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-on-ink); }
.badge-private svg{ width:14px; height:14px; }
/* layout */
  /* Horizontal padding is 28px to match .wrap, not 0.
     <main> carries BOTH classes — class="wrap layout" — and .layout's `padding`
     shorthand previously reset the sides to 0. Because register.css is linked
     after common.css, that shorthand beat .wrap's `padding:0 28px`, so the whole
     page sat flush against the viewport edge: main.wrap.layout measured
     padding-left/right 0px at 360, 390, 414, 436, 480, 560 and 768px, and the
     .note's only inset came from its own 18px. The original HTML has the same
     conflict, so this restores the 28px gutter .wrap was written to provide.

     NOTE FOR MAINTAINERS: this is an intentional divergence from
     _baseline/cssdiff/rules-register.json, which build-css.js re-emits verbatim.
     Re-running `node _baseline/build-css.js` would REVERT this fix and the
     matching one in the max-width:960px block below. build-css.js is a
     migration-time script, not a build step, so it should not be re-run; the
     live check is `node _baseline/diff-computed.js computed computed-p11/computed`. */
  .layout{ display:grid; grid-template-columns:0.8fr 1.5fr; gap:56px; align-items:start; padding:64px 28px 90px; }
.aside{ position:sticky; top:28px; }
.aside h2{ font-size:30px; line-height:1.02; margin:12px 0 22px; }
.steps{ list-style:none; margin:0; padding:0; counter-reset:s; }
.steps li{ counter-increment:s; display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--paper-line); }
.steps li::before{ content:"0" counter(s); font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--teal); font-weight:600; padding-top:3px; }
.steps b{ display:block; font-size:15.5px; margin-bottom:2px; }
.steps span{ font-size:14px; color:var(--muted-on-paper); }
.note{ margin-top:26px; padding:18px; border:1px dashed var(--paper-line); background:var(--paper-card); font-size:13.5px; color:var(--muted-on-paper); }
.note b{ color:var(--text-on-paper); }

/*
 * What Batch 2 asks of you — the callout at the top of the commitment section.
 *
 * These five rules were in the REFERENCE page's inline <style> block and never reached this file.
 * transcode.php extracts that block into register.css, and the deployed page loads zero <style>
 * blocks, so nothing was left to fall back on: the markup shipped, the class was used, and the
 * box rendered as bare text with no background, border or padding.
 *
 * It went unnoticed because an unstyled element does not look broken — it looks like a paragraph.
 * The audit that found it (_baseline/audit-inline-css.php) compares the reference's selector set
 * against this file's, because a missing rule is invisible in the file that is missing it.
 *
 * Copied verbatim rather than re-invented: the values are the designer's, and the vars they use
 * are all defined — --paper, --paper-line, --yellow and --radius in common.css, and
 * --muted-on-paper at the top of this file.
 */
.expect{ padding:18px 20px; background:var(--paper); border:1px solid var(--paper-line); border-left:4px solid var(--yellow); border-radius:var(--radius); font-size:14.5px; }
.expect b{ display:block; margin-bottom:8px; font-size:15px; }
.expect ul{ margin:0 0 8px; padding-left:18px; color:var(--muted-on-paper); }
.expect li{ margin:4px 0; }
.expect span{ font-size:12.5px; color:var(--muted-on-paper); }
/* form */
  .form-card{ background:var(--paper-card); border:1px solid var(--paper-line); padding:0; box-shadow:0 10px 24px rgba(0,0,0,0.07); }
/*
 * The "applications closed" notice. It reuses .form-card, whose own padding is 0 because the
 * form's fieldsets supply the real padding — so without this the notice's text sits flush
 * against the card border. Same padding as fieldset, and the same mobile override below.
 */
.form-card.form-card--notice{ padding:34px 36px; }
.preview-banner{ display:none; background:var(--ink); color:var(--yellow); font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.04em; padding:12px 28px; }
.preview-banner.show{ display:block; }
fieldset{ border:none; margin:0; padding:34px 36px; border-bottom:1px solid var(--paper-line); }
fieldset:last-of-type{ border-bottom:none; }
legend{ padding:0; float:left; width:100%; margin-bottom:22px; }
legend .num{ display:block; font-family:'IBM Plex Mono'; font-size:12px; color:var(--teal); font-weight:600; letter-spacing:0.12em; margin-bottom:6px; }
legend .ttl{ display:block; font-family:'Big Shoulders Display'; font-weight:800; font-size:28px; text-transform:uppercase; line-height:1; }
legend .sub{ display:block; font-size:14px; color:var(--muted-on-paper); margin-top:8px; font-family:'IBM Plex Sans'; font-weight:400; text-transform:none; }
.fields{ clear:both; display:grid; grid-template-columns:1fr 1fr; gap:20px 18px; }
.full{ grid-column:1 / -1; }
label.lbl, .lbl{ display:block; font-size:13.5px; font-weight:600; margin-bottom:7px; }
.req{ color:var(--red); margin-left:2px; }
.opt{ font-weight:400; color:var(--muted-on-paper); font-size:12.5px; }
.hint{ font-size:12.5px; color:var(--muted-on-paper); margin-top:6px; }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea{
    width:100%; font:inherit; font-size:15.5px; color:var(--text-on-paper);
    background:#fffdf6; border:1.5px solid var(--paper-line); border-radius:var(--radius);
    padding:13px 14px; transition:border-color .15s ease, box-shadow .15s ease;
  }
textarea{ min-height:112px; resize:vertical; }
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(42,107,99,0.18); }
input.invalid, select.invalid, textarea.invalid{ border-color:var(--red); }
.err{ display:none; color:var(--red); font-size:12.5px; margin-top:6px; }
.err.show{ display:block; }
.code-input{ font-family:'IBM Plex Mono',monospace; letter-spacing:0.12em; text-transform:uppercase; }
/* chips */
  .chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip input{ position:absolute; opacity:0; pointer-events:none; }
.chip span{ display:inline-block; padding:10px 15px; border:1.5px solid var(--paper-line); border-radius:var(--radius); background:#fffdf6; font-size:14px; cursor:pointer; transition:all .15s ease; }
.chip span:hover{ border-color:var(--teal); }
.chip input:checked + span{ background:var(--ink); color:var(--text-on-ink); border-color:var(--ink); }
.chip input:focus-visible + span{ outline:2px solid var(--yellow); outline-offset:2px; }
/* fee box */
  .fee{ grid-column:1 / -1; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:18px 20px; background:var(--ink); color:var(--text-on-ink); border-radius:var(--radius); }
.fee .k{ font-family:'IBM Plex Mono'; font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted-on-ink); }
.fee .v{ font-family:'Big Shoulders Display'; font-weight:800; font-size:30px; color:var(--yellow); }
.fee small{ display:block; font-size:12.5px; color:var(--muted-on-ink); font-family:'IBM Plex Sans'; font-weight:400; }
/* checks */
  .check{ display:flex; gap:12px; align-items:flex-start; font-size:14.5px; padding:6px 0; cursor:pointer; }
.check input{ width:19px; height:19px; margin-top:2px; accent-color:var(--teal); flex:0 0 auto; }
.submit-row{ padding:30px 36px 36px; background:var(--paper); border-top:1px solid var(--paper-line); display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; gap:10px; font-family:'IBM Plex Mono',monospace; font-size:13.5px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; padding:17px 28px; border-radius:var(--radius); border:2px solid transparent; cursor:pointer; text-decoration:none; transition:transform .18s ease, background .18s ease; }
.btn-solid:hover{ transform:translateY(-2px); background:#ffae5c; }
.btn[disabled]{ opacity:0.6; cursor:wait; transform:none; }
.submit-row p{ margin:0; font-size:13px; color:var(--muted-on-paper); max-width:42ch; }
.form-error{ display:none; margin:0 36px 24px; padding:14px 16px; border:1.5px solid var(--red); color:var(--red); background:#fff3ef; font-size:14px; border-radius:var(--radius); }
.form-error.show{ display:block; }
/* success */
  .success{ display:none; padding:64px 40px; text-align:center; }
.success.show{ display:block; }
.success .mark{ width:64px; height:42px; margin:0 auto 22px; background-image:var(--chevron-img); background-size:contain; background-repeat:no-repeat; background-position:center; }
.success h2{ font-size:clamp(32px,5vw,48px); line-height:1; margin-bottom:14px; }
.success p{ max-width:48ch; margin:0 auto 12px; color:var(--muted-on-paper); font-size:16px; }
footer{ background:#0e1112; color:var(--muted-on-ink); padding:40px 0 30px; font-size:13.5px; }
.foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; }
footer .logo-img{ height:34px; }
footer a{ color:var(--yellow); text-underline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ transition-duration:0.001ms !important; animation-duration:0.001ms !important; scroll-behavior:auto !important; }
}

@media (max-width:960px){
  /* 28px horizontal again, for the same reason as the rule above: the shorthand
     would otherwise drop the gutter once the layout stacks, which is exactly
     where the phone view needs it most. */
  .layout{ grid-template-columns:1fr; gap:40px; padding:44px 28px 70px; }
  .aside{ position:static; }
}

@media (max-width:560px){
  fieldset{ padding:28px 20px; }
  .form-card.form-card--notice{ padding:28px 20px; }
  .fields{ grid-template-columns:1fr; }
  .submit-row{ padding:26px 20px 30px; }
}
