/* The signup pages: the free first week's levels page, its popup and each
   level's page (October 27, 2026), and the check-email, confirm and
   unsubscribe pages. */
.signup-form{display:grid;gap:12px;margin:26px 0 16px;position:relative}.signup-form>label:first-of-type{color:var(--ink);font-size:14px;font-weight:600}
.signup-form input[type=email]{width:100%;min-width:0;min-height:52px;font-size:17px;background:white;border:1px solid #aab4bd;border-radius:8px;padding:12px 14px}
.signup-form .signup-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:400;line-height:1.6;margin:4px 0 8px}
.signup-consent input{flex-shrink:0;width:19px;height:19px;margin:2px 0 0;accent-color:var(--ink)}
.signup-form .btn{width:100%;justify-content:space-between;font-size:16px;min-height:54px}
.signup-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.signup-privacy{font-size:12px;color:var(--muted);line-height:1.65}.signup-privacy a{text-decoration:underline;text-underline-offset:3px}
.signup-pilot{border-top:1px solid var(--rule);margin-top:24px;padding-top:20px;font-size:13px}.signup-pilot p{margin:0 0 6px}.signup-pilot a{display:inline-flex;align-items:center;gap:8px}
.signup-error{padding:12px 14px;border:1px solid #bf786a;background:#fff5ef;color:#71372b;border-radius:8px;font-size:14px;line-height:1.5}
.signup-error[hidden]{display:none}
.signup-thanks{max-width:660px;margin:48px auto;padding:48px;text-align:center}.signup-thanks h1{font-size:46px;line-height:1.15;margin:18px 0}.signup-thanks>p{line-height:1.7}.signup-thanks>.btn{margin:20px auto;display:flex;justify-content:center;gap:20px}.signup-thanks>.text-link{display:inline-block}
.signup-check{display:inline-flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:50%;background:var(--green-bg);color:var(--green);margin-bottom:18px}.signup-check .icon{width:30px;height:30px}
.signup-confirm-form{margin:24px 0 12px}.signup-confirm-form .btn{margin:0 auto;display:inline-flex;gap:16px}
@media(max-width:700px){.signup-thanks{padding:28px 22px;margin:24px auto}.signup-thanks h1{font-size:36px}}

/* The levels page: a short heading and one row per level. */
.first-week{max-width:760px;margin:0 auto;padding:40px 0 56px}
.first-week-head h1{font-size:clamp(34px,4vw,52px);line-height:1.1;letter-spacing:-1.2px;margin:0 0 14px}
.first-week-lead{font-size:18px;line-height:1.6;max-width:56ch;margin:0 0 26px}
.first-week-alert{margin:0 0 18px}
.first-week-levels{list-style:none;margin:0 0 18px;padding:4px 26px}
.first-week-level{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--rule)}
.first-week-level:first-child{border-top:0}
.first-week-level-text{min-width:0}
.first-week-level h2{font-size:21px;letter-spacing:-.2px;margin:0 0 3px}
.first-week-level p{margin:0;font-size:13.5px;color:var(--muted)}
/* Three classes: app.css's .btn.small{min-height:38px} has two. */
.btn.small.first-week-download{flex:0 0 auto;min-width:112px;min-height:44px}
.first-week-privacy{margin:0 0 6px}

/* The popup: a modal <dialog> (first-week.js). Its shadow and backdrop are
   --ink (#23364b) at low opacity, written out because ::backdrop cannot read
   the page's variables in every browser. */
.first-week-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--rule);border-radius:var(--radius);background:var(--white);color:var(--body);padding:20px 26px 24px;box-shadow:0 24px 70px rgba(35,54,75,.18)}
.first-week-dialog::backdrop{background:rgba(35,54,75,.4)}
.first-week-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 4px}
.first-week-dialog-bar .eyebrow{margin:0}
.first-week-close{border:0;background:transparent;color:var(--muted);font-size:28px;line-height:1;min-width:44px;min-height:44px;margin:-8px -14px -8px 0;border-radius:8px}
.first-week-close:hover{color:var(--ink);background:var(--paper)}
.first-week-dialog h2{font-size:28px;margin:0 0 8px}
.first-week-dialog-lead{font-size:15px;line-height:1.6;margin:0}
.first-week-dialog .signup-form{margin:18px 0 0}
.first-week-dialog .signup-privacy{margin:0}
.first-week-form[aria-busy="true"] .btn{opacity:.7;cursor:progress}
.first-week-done{text-align:center;padding:4px 0}
.first-week-done h2:focus{outline:none}
.first-week-done>p{line-height:1.65}
.first-week-done .btn{margin-top:8px;min-width:140px}

/* One level's page (without JavaScript, or after joining or confirming). */
.first-week-page .signup-form{text-align:left;margin:22px 0 18px}
.first-week-page>.first-week-ready{display:inline-flex;margin:20px auto}

@media(max-width:620px){
  .first-week{padding:20px 0 36px}
  .first-week-lead{font-size:16px}
  .first-week-levels{padding:2px 16px}
  .first-week-level{gap:12px;padding:14px 0}
  .first-week-level h2{font-size:19px}
  .btn.small.first-week-download{min-width:0}
  .first-week-dialog{padding:16px 18px 20px}
  .first-week-dialog h2{font-size:24px}
}
