/*
 * /register: built from the approved design "04 LMS/Register page mockup.html".
 * The mockup's CSS is kept as it is; the additions are marked "added".
 * Fonts: Montserrat and Source Serif 4, self-hosted (@fontsource-variable files),
 * in place of the mockup's Google Fonts link. Never Gotham or Plantin.
 */

/* ---------- fonts (added: self-hosted, same families and axes as the mockup's Google Fonts) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-ext-opsz-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-opsz-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

  :root {
    --ink: #0d300c;
    --deep: #082507;
    --leaf: #43863e;
    --mint: #c8e0b5;
    --sand: #f2f0eb;
    --sand-deep: #e4e0d6;
    --body: #39393a;
    --muted: #5d5d5e;
    --wrong: #8a2e1d;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.22,.8,.24,1);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; }
  body {
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
  }

  /* ---------- page frame: exactly one screen on desktop ---------- */
  .page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: clip;
    isolation: isolate;
  }
  .arcs {
    position: absolute; z-index: -1; pointer-events: none;
    right: -22vh; top: 50%; transform: translateY(-50%);
    width: 110vh; height: 110vh;
  }
  .arcs circle { fill: none; stroke-linecap: round; }
  .arcs .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards; }
  .arcs .d2 { animation-delay: .25s; } .arcs .d3 { animation-delay: .5s; } .arcs .d4 { animation-delay: .75s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  header, footer, main { padding-inline: clamp(24px, 5vw, 88px); }
  header {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: clamp(20px, 4vh, 40px) 0;
  }
  .logo { width: clamp(150px, 13vw, 190px); height: auto; display: block; }
  .soon {
    white-space: nowrap; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mint);
    border: 1px solid rgba(200,224,181,.35); border-radius: 999px; padding: 8px 14px 8px 12px;
  }
  .soon i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

  main {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: clamp(40px, 6vw, 112px);
    align-items: center;
    padding-block: clamp(16px, 3vh, 40px);
  }

  /* ---------- left: the story ---------- */
  .eyebrow {
    margin: 0 0 clamp(14px, 2.4vh, 24px);
    font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mint);
  }
  h1 {
    margin: 0;
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(44px, min(8.4vh, 5.6vw), 96px);
    line-height: 1.02; letter-spacing: -.015em;
  }
  h1 em { font-style: italic; color: var(--mint); font-weight: 500; }
  .lede {
    margin: clamp(16px, 3vh, 28px) 0 0;
    max-width: 34em;
    font-size: clamp(15px, 2vh, 18px); line-height: 1.6; color: rgba(255,255,255,.82);
  }

  /* the curriculum rail: the series' tracker, as in the films */
  .rail { margin-top: clamp(26px, 5.4vh, 56px); max-width: 640px; }
  .rail-now {
    height: 1.5em; margin: 0 0 14px;
    font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.9);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rail-now b { font-weight: 600; color: var(--mint); letter-spacing: .08em; margin-right: 8px; }
  .nodes {
    position: relative;
    display: grid; grid-template-columns: repeat(13, 1fr);
    align-items: center;
  }
  .nodes::before {
    content: ""; position: absolute; left: calc(100% / 26); right: calc(100% / 26); top: 50%;
    height: 1px; background: rgba(200,224,181,.35);
  }
  .node {
    position: relative; justify-self: center;
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    border: 0; padding: 0; cursor: default;
    background: var(--ink); color: rgba(255,255,255,.7);
    font: 600 10px/1 var(--sans); letter-spacing: .04em;
    box-shadow: inset 0 0 0 1px rgba(200,224,181,.45);
    transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
  }
  .node.intro { width: 12px; height: 12px; font-size: 0; background: var(--mint); box-shadow: none; }
  .node.on { background: var(--mint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mint); transform: scale(1.12); }
  .node.intro.on { transform: scale(1.4); }
  .node:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .parts {
    display: grid; grid-template-columns: repeat(13, 1fr);
    margin-top: 14px;
  }
  .part {
    border-top: 1px solid rgba(200,224,181,.35); padding-top: 8px; margin-inline: 6px;
    font-size: 10.5px; line-height: 1.35; letter-spacing: .06em; color: rgba(255,255,255,.62);
    transition: color .35s var(--ease), border-color .35s var(--ease);
  }
  .part b { display: block; font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--mint); margin-bottom: 2px; }
  .part.on { color: #fff; border-color: var(--mint); }
  .p1 { grid-column: 2 / span 3; } .p2 { grid-column: 5 / span 2; } .p3 { grid-column: 7 / span 3; } .p4 { grid-column: 10 / span 4; }

  /* ---------- right: the form card ---------- */
  .card {
    background: var(--sand); color: var(--body);
    border-radius: 18px;
    padding: clamp(24px, 4.2vh, 44px) clamp(24px, 3vw, 44px);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.45);
    max-width: 520px; width: 100%; justify-self: end;
  }
  .card .kicker { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
  .card h2 { text-wrap: balance; margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vh, 30px); line-height: 1.2; color: var(--ink); }
  .card .sub { margin: 8px 0 clamp(16px, 2.8vh, 26px); font-size: 14.5px; line-height: 1.55; color: var(--muted); }

  form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vh, 16px) 14px; }
  .field { display: grid; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
  input {
    height: clamp(44px, 5.6vh, 50px); width: 100%;
    border: 1px solid var(--sand-deep); border-radius: 10px; background: #fff;
    padding: 0 14px; font: 500 15px var(--sans); color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
  }
  input::placeholder { color: #9a9a96; font-weight: 400; }
  input:hover { border-color: #cfcabe; }
  input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,48,12,.16); }
  .field.bad input { border-color: var(--wrong); }
  .err { min-height: 0; font-size: 12px; color: var(--wrong); display: none; }
  .field.bad .err { display: block; }
  .hp { position: absolute; left: -9999px; }

  .submit {
    grid-column: 1 / -1; margin-top: 6px;
    height: 52px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--ink); color: #fff;
    font: 600 15px var(--sans); letter-spacing: .01em;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: background .2s, transform .2s var(--ease);
  }
  .submit:hover { background: var(--deep); }
  .submit:active { transform: translateY(1px); }
  .submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .submit svg { transition: transform .25s var(--ease); }
  .submit:hover svg { transform: translateX(3px); }
  .fine { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
  .fine a { color: var(--ink); }

  .thanks { display: none; text-align: left; }
  .card.done .thanks { display: block; animation: rise .6s var(--ease) both; }
  .card.done .ask { display: none; }
  .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
  .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .6s .2s var(--ease) forwards; }
  @keyframes tick { to { stroke-dashoffset: 0; } }
  .card.arrive { animation: settle .7s var(--ease); }
  @keyframes settle { 0% { transform: translateY(10px); } 100% { transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }

  footer {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-block: 0 clamp(18px, 3.4vh, 32px);
    font-size: 12px; color: rgba(255,255,255,.6);
  }
  footer a { color: rgba(255,255,255,.82); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
  footer a:hover { color: #fff; }

  /* entrance */
  .in { animation: rise .8s var(--ease) both; }
  .in.d1 { animation-delay: .08s; } .in.d2 { animation-delay: .16s; } .in.d3 { animation-delay: .24s; } .in.d4 { animation-delay: .32s; }

/* ---------- added: what the live form needs beyond the mockup ---------- */
.skip { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--mint); color: var(--ink); font: 600 13px var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
.field { align-content: start; } /* keeps side-by-side inputs level when one error wraps to two lines */
.form-err { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; color: var(--wrong); }
.form-err[hidden] { display: none; }
.form-err a { color: var(--wrong); }
.submit[disabled] { opacity: .7; cursor: progress; }
.thanks .sub.last { margin-bottom: 0; }
.thanks .sent { color: var(--ink); }
.thanks h2:focus { outline: none; }
footer a:focus-visible, .fine a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Short desktop screens: while errors are showing, tighten the card a little so the page still fits.
   Without errors the mockup's spacing is untouched. */
@media (min-width: 981px) and (max-height: 800px) {
  .card:has(.field.bad) .sub { margin-bottom: 10px; }
  .card:has(.field.bad) form { row-gap: 8px; }
  .card:has(.field.bad) .field { gap: 4px; }
}
/* safe areas when a phone or tablet is held sideways (viewport-fit=cover) */
header, footer, main {
  padding-left: max(clamp(24px, 5vw, 88px), env(safe-area-inset-left));
  padding-right: max(clamp(24px, 5vw, 88px), env(safe-area-inset-right));
}

  /* ---------- tablet ---------- */
  .m-cta, .m-parts { display: none; }
  @media (max-width: 980px) and (min-width: 761px) {
    main { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 48px; }
    .card { justify-self: stretch; max-width: none; }
    .arcs { right: -40vw; top: -20vw; transform: none; width: 90vw; height: 90vw; }
  }

  /* ---------- phone: its own design, not the desktop squeezed ---------- */
  @media (max-width: 760px) {
    .page { min-height: 0; display: block; overflow: clip; }
    header { padding: max(20px, env(safe-area-inset-top)) 22px 0; }
    .logo { width: 142px; }
    .soon { font-size: 10px; letter-spacing: .18em; padding: 7px 11px 7px 10px; gap: 8px; }
    .arcs { right: -62vw; top: -34vw; transform: none; width: 104vw; height: 104vw; opacity: .75; }

    main { display: block; padding: 0; }
    .story { padding: 44px 22px 40px; }
    .eyebrow { font-size: 11px; letter-spacing: .16em; margin-bottom: 14px; }
    h1 { font-size: clamp(40px, 12.2vw, 52px); line-height: 1.02; }
    .lede { font-size: 16px; line-height: 1.6; margin-top: 18px; color: rgba(255,255,255,.84); }

    .m-cta {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 28px; height: 56px; padding: 0 20px 0 22px; border-radius: 14px;
      background: var(--mint); color: var(--ink); text-decoration: none;
      font: 600 16px var(--sans); letter-spacing: .01em;
      -webkit-tap-highlight-color: transparent;
    }
    .m-cta:active { transform: scale(.99); }
    .m-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

    .rail { display: none; }
    .m-parts { display: block; list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid rgba(200,224,181,.25); }
    .m-parts li {
      display: grid; grid-template-columns: 38px 1fr auto; align-items: baseline; gap: 4px 10px;
      padding: 14px 0; border-bottom: 1px solid rgba(200,224,181,.25);
    }
    .m-parts b { font: 500 18px var(--serif); color: var(--mint); }
    .m-parts span { font-size: 15px; line-height: 1.4; color: #fff; }
    .m-parts em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; }

    /* the form becomes a full-width sheet rising out of the green */
    .card {
      max-width: none; width: auto; margin: 0; border-radius: 28px 28px 0 0;
      padding: 34px 22px 28px; box-shadow: 0 -18px 40px -24px rgba(0,0,0,.5);
      scroll-margin-top: 0;
    }
    .card h2 { font-size: 30px; }
    .card .sub { font-size: 15px; margin-bottom: 24px; }
    form { grid-template-columns: 1fr; gap: 16px; }
    label { font-size: 13px; }
    input { height: 54px; font-size: 16px; border-radius: 12px; }   /* 16px stops iOS zooming in */
    .submit { height: 58px; font-size: 16px; border-radius: 14px; margin-top: 8px; }
    .fine { font-size: 12.5px; }
    .card.done { padding-block: 44px 40px; }

    footer {
      display: grid; gap: 8px; background: var(--sand); color: var(--muted);
      padding: 4px 22px max(28px, env(safe-area-inset-bottom));
      border-top: 1px solid var(--sand-deep);
      padding-top: 20px;
    }
    footer a { color: var(--ink); border-bottom-color: rgba(13,48,12,.3); }
    /* added: the phone header and footer keep the mockup's 22px sides, plus any side safe area */
    header { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
    footer { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
    main { padding-left: 0; padding-right: 0; }
    /* added: the sheet is at least one screen tall, so the jump button and the thank-you can
       always bring it to the very top of the screen, even on tall phones */
    .card { min-height: 100vh; }
  }
  @media (max-width: 380px) {
    .logo { width: 124px; }
    .soon { font-size: 9.5px; letter-spacing: .14em; padding: 6px 10px 6px 9px; }
    .eyebrow { font-size: 10px; letter-spacing: .12em; }
    h1 { font-size: 40px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .arcs .draw { stroke-dashoffset: 0; }
    .tick path { stroke-dashoffset: 0; }
  }
