/* First-run setup, v2 (FIRST_RUN_V2). Ported from the product wing's mockup
   "PUZL first-run home" (2026-11-01): every value below is the mockup's own,
   read from its rendered markup, and the colours are tokens-portal.css's
   (they are the same: paper, ink, cobalt, sage, line). Scoped under
   .fr-page so nothing here reaches another portal page.

   Shared pieces only: the page shell, the step bar, the step heading, the
   choice cards, the "Next step" bar, buttons, badges and notices. Each
   screen's own pieces live in a section of their own below, prefixed by
   screen (fr-su- sign-up, fr-ai- connect your AI, fr-tl- tools, fr-pc-
   pieces, fr-tm- team, fr-done- you're set, fr-home- home checklist). */

.fr-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}
.fr-page *, .fr-page *::before, .fr-page *::after { box-sizing: border-box; }
/* components.css makes every h1/h2 uppercase, letter-spaced and var(--text):
   the mockup has none of that. :where() keeps this at the same weight as
   those element rules (it wins only by coming later), so each screen's own
   heading classes (.fr-h1, ...) still set their sizes and spacing. */
:where(.fr-page, .fr-home) :is(h1, h2, h3) {
  text-transform: none; letter-spacing: normal; color: inherit; font-family: var(--font-hd);
}

/* ── Header: logo, "Save and exit", the person ─────────────────────────── */
/* var(--surface), not a literal #fff: every element inside (.fr-top__logo,
   __exit, __who, __ai-k/-v) already used var(--ink)/var(--ink-soft), which
   flip light in dark mode -- against a background that stayed literal
   white, so the whole header read as near-invisible light-gray-on-white in
   a dark shot (found 2026-11-26, Brief 5 G2a pass 2; affects every
   first-run screen, this header is shared via _first_run_base.html). */
.fr-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.fr-top__in {
  max-width: 1180px; margin: 0 auto; padding: 14px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.fr-top__logo {
  display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 900; font-size: 24px; letter-spacing: -0.02em;
}
.fr-top__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fr-top__exit {
  font-size: 15px; font-weight: 700; color: var(--ink-soft); text-decoration: none; padding: 10px 6px;
}
.fr-top__exit:hover { color: var(--ink); text-decoration: underline; }
.fr-top__who {
  font-size: 15px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
}

/* "Your AI: Claude · Connected · Switch" (mockup D2 to D5). */
.fr-top__ai {
  display: flex; align-items: center; gap: 4px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px;
}
.fr-top__ai-k { font-size: 14px; color: var(--ink-soft); }
.fr-top__ai-v { font-size: 15px; margin-right: 6px; }
.fr-top__ai-s {
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px;
  background: var(--sage); color: var(--ink);
}
.fr-top__ai-s--no { background: #EEF0EA; color: var(--ink-soft); }
.fr-top__ai-switch {
  font-size: 14px; font-weight: 700; color: var(--cobalt); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 36px;
  margin-left: 4px; text-decoration: none; display: inline-flex; align-items: center;
}

.fr-main { max-width: 1180px; margin: 0 auto; padding: 28px 28px 64px; }

/* ── Step bar ─────────────────────────────────────────────────────────── */
.fr-steps {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.fr-steps li { display: flex; align-items: center; gap: 8px; }
.fr-step {
  font-family: inherit; display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; border-radius: 999px; padding: 6px 14px 6px 8px;
  min-height: 36px; text-decoration: none;
  background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line);
}
.fr-step__n {
  width: 22px; height: 22px; border-radius: 999px; background: #EEF0EA;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.fr-step--current { background: var(--cobalt); color: #fff; border: 0; }
.fr-step--current .fr-step__n { background: #fff; color: var(--cobalt); }
.fr-step--done { background: var(--sage); color: var(--ink); border: 0; }
.fr-step--done .fr-step__n { background: #2F7D4E; color: #fff; font-size: 12px; }
.fr-step--todo { cursor: not-allowed; }
a.fr-step:hover { text-decoration: underline; }
.fr-steps__line { width: 20px; height: 2px; background: var(--line); }
.fr-steps__line--done { background: #2F7D4E; }

/* ── Step heading ─────────────────────────────────────────────────────── */
.fr-eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cobalt);
}
.fr-h1 { margin: 0; font-size: 52px; line-height: 1; letter-spacing: -0.035em; font-weight: 900; text-transform: none; font-family: var(--font-hd); }
.fr-lede { margin: 18px 0 0; font-size: 21px; color: var(--ink-soft); max-width: 54ch; }
/* 700/-0.01em -- Joe's own flat onboarding H2 (measured on "About you",
 * "What do you do?", "Start the Team plan", "Your Business Profile": all
 * 22px/700/-0.22px = -0.01em). This carried 800/normal before (typography
 * audit 2026-11-29, §2 "H2 (onboarding pages)"). */
.fr-h2 { margin: 0; font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: -0.01em; }
.fr-note { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }
.fr-foot { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* ── Notices ──────────────────────────────────────────────────────────── */
.fr-ok {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--sage); border-radius: 14px; padding: 14px 18px; margin-bottom: 28px;
}
.fr-ok__icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: #2F7D4E;
  display: flex; align-items: center; justify-content: center;
}
.fr-ok__text { flex: 1 1 300px; font-size: 17px; }

.fr-warn {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 28px;
}
.fr-warn__text { flex: 1 1 300px; font-size: 17px; color: var(--ink); }
.fr-warn__text a { color: var(--cobalt); font-weight: 700; }

/* ── Choice cards (Claude / ChatGPT) ──────────────────────────────────── */
.fr-choices {
  /* Joe's fixed 3-up grid (03-setup-1-connect-your-ai.html
     `grid-template-columns:repeat(3,1fr)`), not a responsive auto-fit —
     the mobile override below (max-width:900px) still collapses to 1fr. */
  margin-top: 32px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.fr-choice__plan-note { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.fr-choice {
  font-family: inherit; text-align: left; display: block; width: 100%; color: var(--ink);
  background: var(--surface); border-radius: 22px; padding: 24px 26px; cursor: pointer;
  border: 1.5px solid #9AA3B5;
}
.fr-choice:hover { border-color: var(--cobalt); }
.fr-choice__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.fr-choice__id { display: flex; align-items: center; gap: 14px; }
.fr-choice__radio {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
  background: #fff; border: 2px solid #9AA3B5;
}
.fr-choice__name { display: block; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.fr-choice__by { display: block; font-size: 16px; color: var(--ink-soft); }
.fr-choice__desc { display: block; margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
/* Chosen: the mockup draws only the unchosen state; this follows its
   current-step colours (cobalt ring, filled radio). */
.fr-choice[aria-checked="true"] { border: 2px solid var(--cobalt); padding: 23.5px 25.5px; }
.fr-choice[aria-checked="true"] .fr-choice__radio { border: 7px solid var(--cobalt); }

/* ── Badges ───────────────────────────────────────────────────────────── */
.fr-badge {
  display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px;
  padding: 4px 12px; white-space: nowrap; background: var(--paper); color: var(--ink);
}
.fr-badge--accent { background: rgba(43,69,240,0.12); color: var(--cobalt); }
.fr-badge--ok { background: var(--sage); color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.fr-btn {
  font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 19px; font-weight: 800; border: 0; border-radius: 999px; padding: 16px 30px;
  min-height: 56px; background: var(--cobalt); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 var(--cobalt-deep);
}
.fr-btn:hover { background: var(--cobalt-deep); }
.fr-btn[disabled], .fr-btn--off {
  background: #EEF0EA; color: var(--ink-soft); cursor: not-allowed; box-shadow: none;
}
.fr-btn--ghost {
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); box-shadow: none;
  font-size: 16px; padding: 10px 20px; min-height: 44px;
}
.fr-btn--ghost:hover { background: var(--paper); }
.fr-btn--sm { font-size: 15px; padding: 8px 18px; min-height: 40px; box-shadow: none; }
.fr-link { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: underline; }

/* ── "Next step" bar ──────────────────────────────────────────────────── */
/* Joe's `.next`/.nbtns (04-setup-2-how-you-work.html:39-45), read literally:
   solid cobalt fill (not an outlined white bar — his bar carries ALL the
   contrast, nothing else needs its own border), 18px radius, his padding
   and shadow opacity, marigold uppercase label, white title/sub. Dark mode
   isn't a Joe concern (his onboarding files declare no dark-mode block at
   all — tokens.md) but stays correct here for free: --cobalt has its own
   dark-mode value (#5F75FF, tokens-portal.css), so the bar stays "cobalt"
   in both themes by construction, which is what "his bar stays cobalt"
   means for us. */
.fr-next {
  margin-top: 32px; background: var(--cobalt); color: #fff; border-radius: 18px;
  padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; box-shadow: rgba(20,33,58,0.18) 0 10px 30px;
}
.fr-next__text { flex: 1 1 280px; min-width: 0; }
.fr-next__label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marigold);
}
.fr-next__title { font-size: 24px; font-weight: 800; line-height: 1.2; color: #fff; }
.fr-next__sub { font-size: 15px; color: #DDE3FF; }
.fr-next__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fr-next__acts form { margin: 0; }
/* The three actions, restyled for the now-solid-cobalt bar. Scoped under
   .fr-next so .fr-link/.fr-btn/.fr-btn--ghost keep their plain-page look
   everywhere else (e.g. first_run_team.html's in-card "Skip this
   step"/"Ask about a team plan" buttons, which sit on a white card, not
   this bar). This also covers first_run_how.html's and first_run_done.html's
   own next-bar actions (same classes, raw markup there) without editing
   either template. */
.fr-next .fr-link { color: #fff; }
.fr-next .fr-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.fr-next .fr-btn--ghost:hover { background: rgba(255,255,255,0.12); }
.fr-next .fr-btn:not(.fr-btn--ghost) {
  background: var(--marigold); color: var(--ink);
  /* Joe's `.go` shadow colour (rgb(201,148,16)) — literal, same as the
     other marigold-adjacent literals in this file; no --marigold-deep
     token exists in tokens-portal.css. */
  box-shadow: rgb(201,148,16) 0 6px 0;
}
.fr-next .fr-btn:not(.fr-btn--ghost):hover { background: #F0B52E; }

/* ── Cards ────────────────────────────────────────────────────────────── */
/* 18px radius / 22px 24px padding -- Joe's own .card (typography audit
 * 2026-11-29: measured on "What do you do?" and "Your Business Profile"),
 * not this rule's old 22px/24px 28px. */
.fr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }

@media (max-width: 640px) {
  .fr-top__in { padding: 12px 16px; }
  .fr-main { padding: 20px 16px 48px; }
  /* Joe's onboarding files measure 40px at 390 (typography audit
     2026-11-29, Finding 2), not the 38px this carried before. */
  .fr-h1 { font-size: 40px; }
  .fr-lede { font-size: 18px; }
  .fr-choices { grid-template-columns: 1fr; }
  .fr-next__acts { width: 100%; }
  .fr-next__acts .fr-btn { width: 100%; }
}

/* ── Step 3 "Add your pieces" (fr-pc-*) ──────────────────────────────── */
a.fr-pc-source { color: inherit; text-decoration: none; }
a.fr-pc-source:hover { border-color: var(--cobalt); }
.fr-pc-sources { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.fr-pc-source {
  font-family: inherit; text-align: left; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-height: 44px;
  display: block; text-decoration: none;
}
.fr-pc-source__name { display: block; font-size: 17px; font-weight: 800; }
.fr-pc-source__desc { display: block; font-size: 15px; color: var(--ink-soft); overflow-wrap: anywhere; }
.fr-pc-brand {
  margin-top: 28px; background: var(--surface); border: 2px solid var(--cobalt); border-radius: 22px; padding: 24px 28px;
}
.fr-pc-brand__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.fr-pc-brand__count { font-size: 16px; font-weight: 700; }
.fr-pc-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.fr-pc-piece {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: var(--paper); border: 1.5px dashed #9AA3B5;
}
.fr-pc-piece--done { background: var(--sage); border: 1.5px solid #2F7D4E; }
.fr-pc-piece__text { flex: 1 1 0; min-width: 0; }
.fr-pc-piece__name { display: block; font-size: 17px; font-weight: 700; }
.fr-pc-piece__desc { display: block; font-size: 15px; color: var(--ink-soft); }
/* Joe's per-item "Answers: '...'" line (06-setup-4-add-your-pieces.html:
   font-size:13px, font-weight:700, color:#2b45f0 = var(--cobalt)), same on
   every tile including the ones inside his solid-cobalt hero (his own hero
   tiles are plain white, border:0 — see .fr-pc-piece--hero below), so no
   per-variant override is needed here. */
.fr-pc-piece__answers { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--cobalt); }
.fr-pc-piece__btn {
  font-family: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 9px 16px;
  min-height: 40px; cursor: pointer; white-space: nowrap; border: 0; background: var(--cobalt); color: #fff;
}
.fr-pc-piece__btn:hover { background: var(--cobalt-deep); }
.fr-pc-piece__ok { font-size: 14px; font-weight: 700; color: #2F7D4E; white-space: nowrap; }
.fr-pc-other-h { margin: 40px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; text-transform: none; }
.fr-pc-other-p { margin: 6px 0 16px; font-size: 16px; color: var(--ink-soft); }
.fr-pc-other-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.fr-pc-other-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.fr-pc-other-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fr-pc-other-card__name { font-size: 17px; font-weight: 700; }
.fr-pc-other-card__desc { font-size: 15px; color: var(--ink-soft); }
.fr-pc-other-card__list { margin: 6px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink-soft); }
.fr-pc-other-card__list li { margin: 2px 0; }

/* Joe's solid-cobalt "Start here" hero (06-setup-4-add-your-pieces.html's
   `background:#2b45f0` section) wraps the SAME .fr-pc-brand/.fr-pc-grid/
   .fr-pc-piece pieces every other section uses — only the wrapper and its
   count badge change color; his own tiles inside it are plain white
   (`.tile{background:#fff}`, `border:0` inline), same as every other tile
   on the page. A prior pass instead gave `.fr-pc-piece--hero` a solid
   var(--cobalt-deep) fill (dark navy, close in value to the hero itself —
   low-contrast, confirmed in the final audit) with white text; that was
   wrong in both themes, not width-specific. Fixed to var(--surface)/var(--ink)
   so the hero's child tiles match Joe's white cards exactly, light and dark. */
.fr-pc-hero { margin-top: 28px; background: var(--cobalt); border-radius: 18px; padding: 24px 28px; }
.fr-pc-hero__h { color: #fff; }
.fr-pc-hero__count { background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 12px; }
.fr-pc-piece--hero { background: var(--surface); border: 0; color: var(--ink); }
.fr-pc-piece--hero .fr-pc-piece__desc { color: var(--ink-soft); }
.fr-pc-piece--hero.fr-pc-piece--done { background: var(--sage); color: var(--ink); border: 0; }
.fr-pc-piece--hero.fr-pc-piece--done .fr-pc-piece__desc { color: var(--ink-soft); }

/* ── Step 4 "Invite your team" (fr-tm-*) ─────────────────────────────── */
/* Fixed light marigold fill + fixed dark text/border, same convention as
   .fr-su__plan-trial/.fr-su__note above: var(--ink)/var(--ink-soft) flip
   light in dark mode and went invisible against this always-light box
   (found in a dark shot, Brief 5 G2a pass 2). */
.fr-tm-limit {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start;
  background: #FFF1C7; color: #14213A; border: 2px solid #14213A; border-radius: 22px; padding: 24px 28px;
}
.fr-tm-limit__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: #FFC53D;
  display: flex; align-items: center; justify-content: center;
}
.fr-tm-limit__body { flex: 1 1 420px; min-width: 0; }
.fr-tm-limit__h { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -0.01em; text-transform: none; }
.fr-tm-limit__p { margin: 6px 0 0; font-size: 17px; }
.fr-tm-limit__note { margin: 10px 0 0; font-size: 16px; color: #4A5670; }
.fr-tm-choices { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fr-tm-choice { background: var(--surface); border-radius: 22px; padding: 24px; }
.fr-tm-choice--primary { border: 2px solid var(--cobalt); }
.fr-tm-choice--default { border: 1px solid var(--line); }
.fr-tm-choice__h { margin: 0; font-size: 22px; font-weight: 800; }
.fr-tm-choice__p { margin: 6px 0 16px; font-size: 16px; color: var(--ink-soft); }
.fr-tm-locked { margin: 20px 0 0; border: 1.5px dashed var(--line); border-radius: 22px; padding: 22px 24px; font-size: 16px; color: var(--ink-soft); }

/* ── Finish: "Build your Business Profile" (fr-done-*) ───────────────────
   Joe's 08-finish-build-your-business-profile.html — regions/08-finish-
   business-profile.md. The old 4-tile grid (AI/Tools/Files/Plan) is gone;
   Joe's screen replaces it with the progress bar + two checklists (region
   2-4) and the grounded chat preview (region 5), below. */
.fr-done-mark { display: inline-block; background: #FFC53D; padding: 0 0.14em; border-radius: 0.12em; transform: rotate(-1.5deg); }
/* The green "Setup steps done" banner (Joe's screen 08, region 1) — same
   sage/dark-green pairing as .fr-ok above, but page-scoped since this box
   sits above the eyebrow rather than at the top of a card. */
.fr-done-banner { background: var(--sage); border-radius: 14px; padding: 14px 18px; font-size: 17px; margin-top: 28px; }
.fr-done-ok__sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.fr-done-cols { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .fr-done-cols { grid-template-columns: 1fr; } }
.fr-done-profile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fr-done-profile__count { font-size: 15px; font-weight: 800; }
.fr-done-bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin-top: 8px; }
.fr-done-bar span { display: block; height: 100%; background: var(--cobalt); }
.fr-done-profile__h { margin-top: 16px; font-weight: 800; font-size: 15px; }
.fr-done-profile__h--ok { color: #2F7D4E; }
.fr-done-profile__h--ask { color: var(--ink-soft); }
.fr-done-ok { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 16px; }
.fr-done-ok i {
  flex: none; width: 22px; height: 22px; border-radius: 999px; background: #2F7D4E; color: #fff;
  font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.fr-done-ok--ask i { background: var(--track); color: var(--ink-soft); }
.fr-done-preview { padding: 0; overflow: hidden; }
.fr-done-preview__head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.fr-done-preview__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.fr-done-bubble { background: var(--track); border-radius: 14px; padding: 10px 14px; }
.fr-done-bubble--you { align-self: flex-end; }
.fr-done-preview__foot { padding: 12px 20px; background: var(--paper); font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); }
/* Joe's screen 08 has no "Try one of these" prompt grid (Nick, G2b pass 2:
   remove it — his screen wins). .fr-done-prompt__copied survives: it's the
   "Copied" flash on the primary "Open Claude and start" button too. */
.fr-done-prompt__copied { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #B9E6C6; }
.fr-done-prompt__copied[hidden] { display: none; }
/* Joe's second chat turn ("Yes, that's right" / goal chips) is static
   display, not a real <input> chip — no :has(input:checked) state needed. */
.fr-chip--display { cursor: default; }

/* ── First-run home checklist (/portal/welcome, FIRST_RUN_V2) ───────────
   Mockup "PUZL first-run home", screen 01-home-choose-ai. Unlike the step
   screens, this page lives inside the normal portal chrome (base.html's
   .pg content area), so it does not restate .fr-page / .fr-top here — it
   only adds the checklist's own layout and cards, all under fr-home-. ──── */

.fr-home { max-width: 1180px; margin: 0 auto; }
/* The portal's main.pg is 1080px with 2rem padding (components.css), about
   1016px of content; the mockup's column is 1180px. Widen it on this page
   only. */
main.pg:has(.fr-home) { max-width: calc(1180px + 4rem); }
/* .pg h2 (portal-shell.css) sets 1.05rem and outranks a single class; the
   mockup's step titles are 24px / 700. */
.fr-home h2.fr-home-row-title--lg { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }

.fr-home-top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: 40px;
}
.fr-home-intro { flex: 999 1 520px; min-width: 0; }
.fr-home-eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cobalt);
}
.fr-home-h1 {
  margin: 0; font-size: 52px; line-height: 1; letter-spacing: -0.035em;
  font-weight: 900; font-family: var(--font-hd); max-width: 16ch;
}
.fr-home-mark {
  display: inline-block; background: var(--marigold); padding: 0 0.14em;
  border-radius: 0.12em; transform: rotate(-1.5deg);
}
.fr-home-lede { margin: 20px 0 0; font-size: 21px; color: var(--ink-soft); max-width: 46ch; }

.fr-home-setup-card {
  flex: 1 1 280px; max-width: 340px; background: var(--surface, #fff);
  border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px;
}
.fr-home-setup-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fr-home-setup-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.fr-home-setup-count { font-size: 16px; font-weight: 700; }
.fr-home-bar {
  margin-top: 12px; height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden;
}
.fr-home-bar-fill { height: 100%; background: var(--cobalt); border-radius: 999px; }
.fr-home-trial { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }

.fr-home-body { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }

.fr-home-steps { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.fr-home-row {
  display: flex; align-items: center; gap: 16px; background: var(--surface, #fff);
  border: 1px solid var(--line); border-radius: 22px; padding: 18px 24px;
  color: var(--ink); text-decoration: none;
}
a.fr-home-row:hover { border-color: var(--cobalt); }
.fr-home-row--current { align-items: flex-start; flex-direction: column; border: 2px solid var(--cobalt); padding: 22px 24px 24px; }
.fr-home-row-top { display: flex; align-items: center; gap: 16px; width: 100%; }
.fr-home-mark-done {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; background: #2F7D4E;
  display: flex; align-items: center; justify-content: center;
}
.fr-home-n {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: flex;
  align-items: center; justify-content: center; font-size: 18px; font-weight: 900;
  background: var(--cobalt-tint, #DDE3FF); color: var(--cobalt-deep, #1B2DB0);
}
.fr-home-n--on { background: var(--cobalt); color: #fff; }
.fr-home-row-text { flex: 1 1 0%; min-width: 0; }
.fr-home-row-title { display: block; font-size: 19px; font-weight: 700; }
.fr-home-row-title--lg { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
.fr-home-row-sub { display: block; margin: 0; font-size: 16px; color: var(--ink-soft); }

.fr-home-ai-choices {
  margin: 18px 0 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
/* The current row is a flex column with align-items:flex-start, which sizes
   the grid to its content (one column). Stretch it to the row's width. */
.fr-home-row--current > .fr-home-ai-choices { align-self: stretch; }
.fr-home-ai-form { margin: 0; }
.fr-home-ai-choice {
  font-family: inherit; width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; background: var(--surface, #fff); border: 1.5px solid var(--line);
  border-radius: 12px; color: var(--ink); cursor: pointer; text-align: left;
}
.fr-home-ai-choice:hover { border-color: var(--cobalt); }
.fr-home-ai-name { display: block; font-size: 19px; font-weight: 700; }
.fr-home-ai-by { display: block; font-size: 15px; color: var(--ink-soft); }
.fr-home-ai-connect { font-size: 16px; font-weight: 700; color: var(--cobalt); }
.fr-home-note { margin: 14px 0 0 56px; font-size: 15px; color: var(--ink-soft); }
/* The right column reuses the note style without the checklist's 56px indent. */
.fr-home-aside .fr-home-note { margin-left: 0; }
.fr-home-row--current > .fr-home-note:last-child { margin-left: 56px; }
.fr-home-go {
  margin: 16px 0 0 56px; font-size: 16px; font-weight: 700; color: var(--cobalt); text-decoration: underline;
}

.fr-home-watch {
  margin-top: 28px; border: 1.5px dashed var(--ink-soft); border-radius: 22px; padding: 24px;
}
.fr-home-watch-title { margin: 0; font-size: 19px; font-weight: 700; }
.fr-home-watch-grid {
  margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px;
}
.fr-home-watch-tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface, #fff); }
.fr-home-watch-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.fr-home-watch-value { font-size: 28px; font-weight: 900; color: var(--ink-soft); }

.fr-home-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fr-home-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.fr-home-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fr-home-card-title { font-size: 19px; font-weight: 700; }
.fr-home-inbox-addr {
  /* The real inbound address (account slug plus a 10-char token) is much
     longer than the mockup's; at 22px it breaks across three lines. */
  margin-top: 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3;
  overflow-wrap: anywhere; color: var(--cobalt);
}
.fr-home-inbox-acts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fr-home-copy-btn {
  font-family: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--cobalt);
  border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer;
}
.fr-home-copy-btn:hover { background: var(--cobalt-deep, #1B2DB0); }
.fr-home-link { font-size: 15px; font-weight: 700; color: var(--cobalt); text-decoration: underline; }

.fr-home-samples { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fr-home-samples-tag { font-size: 13px; color: var(--ink-soft); }
.fr-home-sample { border-radius: 12px; background: var(--paper); padding: 14px 16px; }
.fr-home-sample-q { font-size: 17px; font-weight: 700; line-height: 1.35; }
.fr-home-sample-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fr-home-sample-unlock { font-size: 13px; color: var(--ink-soft); }

.fr-home-card--dark { background: var(--night-800, #14213A); color: #fff; }
.fr-home-card--dark .fr-home-card-title { color: #fff; }
.fr-home-dark-sub { margin: 6px 0 16px; font-size: 15px; color: var(--on-night-muted, #AEB8D0); }
.fr-home-dark-btn {
  display: inline-block; font-size: 15px; font-weight: 700; color: #fff; background: var(--cobalt);
  text-decoration: none; border-radius: 999px; padding: 12px 20px;
}
.fr-home-dark-btn:hover { background: var(--cobalt-deep, #1B2DB0); }

@media (max-width: 640px) {
  /* Same correction as .fr-h1 above -- kept in step with it even though
     this page wasn't in the 21-page measured set (typography audit
     2026-11-29's onb-10 resolves to the dashboard template, not this one). */
  .fr-home-h1 { font-size: 40px; }
  .fr-home-lede { font-size: 18px; }
  .fr-home-ai-choices { grid-template-columns: 1fr; margin-left: 0; }
  .fr-home-note { margin-left: 0; }
  .fr-home-go { margin-left: 0; }
  .fr-home-setup-card { max-width: none; }
}

/* ── fr-tl- Connect your tools (step 2) ──────────────────────────────────── */

.fr-tl-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 40px; }
.fr-tl-legend__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.fr-tl-legend__item p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.fr-tl-badge--outline {
  background: var(--surface); border: 1.5px dashed var(--ink-soft); color: var(--ink);
}
.fr-tl-badge--sm { font-size: 12px; padding: 3px 10px; }

.fr-tl-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 8px;
}
.fr-tl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.fr-tl-card__icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--cobalt-tint); color: var(--cobalt-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.fr-tl-card__name { font-size: 17px; font-weight: 800; }
.fr-tl-card__desc { margin: 0; flex: 1; font-size: 14px; color: var(--ink-soft); }
.fr-tl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fr-tl-card__foot form { margin: 0; }

.fr-tl-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: 44px;
}
.fr-tl-search { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.fr-tl-search__label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.fr-tl-search input[type="search"] {
  font-family: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; min-width: 240px; background: var(--surface); color: var(--ink);
}
.fr-tl-search input[type="search"]:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; }

.fr-tl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.fr-tl-chip {
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
/* var(--cobalt)/#fff, not var(--ink)/#fff: --ink flips LIGHT in dark mode
   (tokens-portal.css), which turned the "active" filter chip into a light
   pill with white text -- invisible (found in a dark shot, Brief 5 G2a
   pass 2). --cobalt has its own dark-mode value, so this stays a readable
   blue pill in both themes, same fix as the chip's own filter-active
   convention elsewhere in this file. */
.fr-tl-chip.is-active { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }

.fr-tl-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fr-tl-cat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
/* 16px/700/uppercase/0.06em, var(--ink-soft) -- Joe's own category heading
 * (typography audit 2026-11-29: measured "Files and documents" at
 * 16px/700/uppercase/0.96px = 0.06em, color #4A5670 = var(--ink-soft)),
 * not this rule's old 17px/800/mixed-case/normal-tracking/var(--ink). */
.fr-tl-cat__h {
  margin: 0 0 14px; font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
}
.fr-tl-list { display: flex; flex-direction: column; gap: 14px; }
.fr-tl-row { display: flex; align-items: center; gap: 12px; }
.fr-tl-row__icon {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.fr-tl-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fr-tl-row__name { font-size: 15px; font-weight: 700; }
.fr-tl-row form { margin: 0; flex: 0 0 auto; }

@media (max-width: 900px) {
  .fr-tl-grid { grid-template-columns: repeat(2, 1fr); }
  .fr-tl-cats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fr-tl-legend { grid-template-columns: 1fr; }
  .fr-tl-grid { grid-template-columns: 1fr; }
  .fr-tl-head { align-items: flex-start; }
  .fr-tl-search { align-items: flex-start; width: 100%; }
  .fr-tl-search input[type="search"] { width: 100%; min-width: 0; }
}

/* fr-tl- fixes against the mockup (D2): section headings 30px, legend badge
   beside its text, card icon and name on one row, badges sized to their
   words (the flex column was stretching them), buttons on one line. */
/* 27px/700/normal -- Joe's own "For every business" section heading
 * (typography audit 2026-11-29: measured 27px/700/normal/40.5px
 * line-height on his connect-your-tools file), not this rule's old
 * 30px/800/-0.02em guess. */
.fr-tl-h2 { margin: 44px 0 0; font-size: 27px; font-weight: 700; letter-spacing: normal; }
.fr-tl-legend__item { flex-direction: row; align-items: flex-start; gap: 14px; border-radius: 12px; padding: 16px 18px; }
.fr-tl-legend__item > .fr-badge { flex: 0 0 auto; }
.fr-tl-card { border-radius: 22px; gap: 12px; }
.fr-tl-card__head { display: flex; align-items: center; gap: 12px; }
.fr-tl-card__icon { flex: 0 0 auto; width: 40px; height: 40px; font-size: 17px; background: #DDE3FF; color: #1B2DB0; }
.fr-tl-card__name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.fr-tl-row__body > .fr-badge, .fr-tl-card__foot > .fr-badge { align-self: flex-start; }
.fr-tl-row form button, .fr-tl-row > a, .fr-tl-card__foot button, .fr-tl-card__foot > a { white-space: nowrap; }
/* A tool's optional second badge (Joe's "Needs Housecall Pro MAX" — a
   plan-gated connector, Tool.plan_badge): wraps rather than stretching the
   row/card, same idea as the single-badge fix above. */
.fr-tl-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
/* #FFF1C7 (marigold tint) is a literal here, same as .fr-su__plan-trial
   above -- no --mari-tint token exists in tokens-portal.css yet. Text is
   pinned to a fixed dark ink for the same reason as that fix: var(--ink)
   flips light in dark mode and went invisible against this always-light
   fill (found in a dark shot, Brief 5 G2a pass 2). */
.fr-tl-badge--plan { background: #FFF1C7; color: #14213A; }

/* Joe's cobalt industry hero (05-setup-3-connect-your-tools.html's
   `background:#2b45f0` section): solid fill, white heading, a white badge
   with cobalt text. Token-routed (--cobalt, not his literal #2b45f0). */
.fr-tl-hero {
  background: var(--cobalt); border-radius: 18px; padding: 22px 24px;
  margin-top: 24px; color: #fff;
}
.fr-tl-hero__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.fr-tl-hero__title { font-size: 24px; }
/* Fixed white pill + dark text, not var(--ink): this hero stays solid
   cobalt in both themes (same convention as .fr-next), so its badge's text
   must be pinned too -- var(--ink) flipped light in dark mode and went
   invisible against the pill's own fixed white fill (found in a dark shot,
   Brief 5 G2a pass 2). */
.fr-tl-hero__badge { background: #fff; color: #14213A; align-self: center; }
.fr-tl-hero__blurb { margin: 4px 0 0; color: var(--tint); font-size: 15px; }
.fr-tl-hero__grid { color: var(--ink); }

/* ── fr-su-: sign-up (A-start-trial-details, C-verify-email) ─────────────
   portal_signup.html and login_email_sent.html load this file directly
   (they render before a portal session exists, so they do not extend
   _first_run_base.html) and add a .fr-su wrapper around their own .fr-page.
   No password and no payment step (Nick's decisions, core/first_run.py):
   sign-in stays by email link, and a card is asked for later, before the
   trial ends. Role and website (both optional) are on the form, from Joe's
   screens of 2026-11-14. Phone stays off the v2 form (Nick, 2026-11-15). */
.fr-su .fr-top__in { max-width: 1180px; }
.fr-su__signin { margin: 0; font-size: 15px; color: var(--ink-soft); }
.fr-su__signin a { font-weight: 700; color: var(--ink); }

/* The sign-up pages render inside the portal's main.pg (1080px, padded);
   the mockup's page is full width with its own header bar. */
main.pg:has(> .fr-su) { max-width: none; padding: 0; margin: 0; }
/* .pg h2 (portal-shell.css, 0-1-1) outranks .fr-h2 alone. */
.fr-su h2.fr-h2 { font-size: 22px; }
.fr-su__cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.fr-su__main { flex: 999 1 560px; min-width: 0; }
.fr-su__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.fr-su__card { margin-top: 20px; }
.fr-su__card:first-of-type { margin-top: 32px; }
.fr-su__grid {
  margin-top: 18px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.fr-su__identity { grid-column: 1 / -1; }
/* Joe's 01c-sign-up-other.html "What does your business do?" field: spans
   the grid like .fr-su__identity, and carries its own amber-note-shaped
   message beneath the input (Joe's .warn, overridden to his tint background
   for this one message — see .fr-su__note--tint below). */
.fr-su__field--wide { grid-column: 1 / -1; }
.fr-su__hint { font-size: 14px; color: var(--ink-soft); }
.fr-su__optional { font-weight: 400; color: var(--ink-soft); }
.fr-su__card .field { display: flex; flex-direction: column; gap: 6px; }
/* Same specificity fight as .fr-su__note[hidden] below: the rule above
   (0,2,0) beats the UA's [hidden]{display:none} (0,1,0), so without this
   override #su-other-field showed regardless of the Industry select's
   value (confirmed: server-side `hidden` attribute rendered correctly,
   this CSS rule alone hid the effect). */
.fr-su__card .field[hidden] { display: none; }
.fr-su__card .field label {
  /* components.css's .field label is mono, uppercase and letter-spaced; the
     mockup's labels are plain bold text. */
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink);
  text-transform: none; letter-spacing: normal;
}
.fr-su__card .field input, .fr-su__card .field select {
  font-family: inherit; font-size: 17px; padding: 12px 14px;
  border: 1.5px solid #9AA3B5; border-radius: 8px; color: var(--ink); background: var(--surface);
}
.fr-su__card .field input:focus, .fr-su__card .field select:focus {
  outline: none; border-color: var(--cobalt);
}

.fr-su__locations { margin: 18px 0 0; padding: 0; border: 0; }
.fr-su__locations legend { font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.fr-su__loc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-su__loc-btn {
  font-family: inherit; font-size: 16px; font-weight: 700; border-radius: 999px;
  padding: 10px 20px; min-height: 44px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1.5px solid #9AA3B5;
}
/* Fixed navy, as .fr-chip's checked pill: var(--ink) goes near-white in dark
   mode, which put white text on a white pill. Cobalt in dark mode, where navy
   would read as unselected against the page. */
.fr-su__loc-btn--on { background: #14213a; color: #fff; border-color: #14213a; }
:root[data-theme="dark"] .fr-su__loc-btn--on { background: var(--cobalt); border-color: var(--cobalt); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fr-su__loc-btn--on { background: var(--cobalt); border-color: var(--cobalt); }
}
/* White fills above are var(--surface), never a literal #fff: their text is
   var(--ink), which goes near-white in dark mode (sign-up dark audit 2026-11-28). */
/* Same always-light-fill/fixed-dark-text fix as .fr-su__plan-trial above:
   its text used to inherit var(--ink), invisible against this box's fixed
   light marigold tint once dark mode flipped --ink light. */
.fr-su__note {
  margin-top: 16px; display: flex; gap: 12px; align-items: flex-start;
  background: #FFF1C7; color: #14213A; border-radius: 12px; padding: 14px 16px; font-size: 16px;
}
/* The HTML `hidden` attribute is UA-origin display:none; this author rule's
   own `display: flex` above would otherwise win and show both notes at
   once (measured: it did, before this rule existed). */
.fr-su__note[hidden] { display: none; }
/* Joe's 01c-sign-up-other.html specialist-review message: the same .warn
   box as every other .fr-su__note, but HIS inline override for this one
   message swaps the marigold for the light-blue tint
   (01c-sign-up-other.html: `style="background:#dde3ff;margin-top:12px"`).
   Same fixed-light-regardless-of-theme choice as .fr-su__note above, for
   the same measured reason (--ink flips light in dark mode). */
.fr-su__note--tint { background: #DDE3FF; color: #14213A; }

/* Joe's "No credit card" pill (01-sign-up.html .okpill): sage fill with a
   solid check badge, 16px bold text. Token-routed (--sage/--success/--ink),
   not his literal #d3e6d8/#2f7d4e — the same pairing this file already
   uses for .fr-badge--ok and .fr-step--done. */
.fr-su__nocard {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sage); border: 2px solid var(--success);
  border-radius: 12px; padding: 8px 14px; margin: 20px 0 0;
  font-weight: 800; font-size: 16px; color: var(--ink);
}
.fr-su__nocard-check {
  width: 26px; height: 26px; border-radius: 999px; flex: 0 0 auto;
  background: var(--success); color: var(--on-success);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

.fr-su__agree {
  margin-top: 22px; display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--ink-soft); cursor: pointer;
}
.fr-su__agree input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cobalt); flex: 0 0 auto; }

.fr-su__submit-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.fr-su__submit-note { font-size: 15px; color: var(--ink-soft); }

.fr-su__plan { border: 2px solid var(--cobalt); }
.fr-su__plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fr-su__plan-k { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.fr-su__plan-name { margin-top: 6px; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.fr-su__plan-sub { margin: 2px 0 16px; font-size: 15px; color: var(--ink-soft); }
/* Fixed light marigold-tint fill in both themes (same convention as
   .fr-su__nocard's sage fill, just not token-routed since Joe has no
   --marigold-tint token equivalent) -- so its text must be pinned to a
   fixed dark ink too, not var(--ink)/var(--ink-soft), which flip light in
   dark mode and went invisible against this always-light box (found in a
   dark-mode shot, Brief 5 G2a pass 2). */
.fr-su__plan-trial { background: #FFF1C7; border-radius: 12px; padding: 14px 16px; }
.fr-su__plan-trial-amount { font-size: 17px; font-weight: 800; color: #14213A; }
.fr-su__plan-trial-note { font-size: 15px; color: #4A5670; }

.fr-su__next-h { font-size: 19px; font-weight: 700; }
.fr-su__next-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fr-su__next-list li { display: flex; gap: 12px; align-items: flex-start; }
.fr-su__next-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px;
  background: rgba(43,69,240,0.12); color: var(--cobalt); font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.fr-su__next-s { display: block; color: var(--ink-soft); font-size: 15px; }

/* Same var(--ink)/var(--paper) pairing fix as .fr-done-prompts above —
   the literal #fff this carried went invisible in dark mode. */
/* Fixed navy and white, as .fr-how-why: var(--ink)/var(--paper) swap in dark
   mode and left #AEB8D0 body text on a near-white card. */
.fr-su__dark { background: #14213a; color: #fff; border-radius: 22px; padding: 24px; }
.fr-su__dark p { margin: 6px 0 0; font-size: 15px; color: #AEB8D0; }

.fr-su__addr-box { background: var(--paper); border-radius: 12px; padding: 14px 16px; }
.fr-su__addr-k { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.fr-su__addr-v { margin-top: 4px; font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.fr-su__mail-links { display: flex; flex-wrap: wrap; gap: 12px; }
.fr-su__arrive { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }
.fr-su__tips { margin: 12px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-soft); }
/* The ".con" typo alert (02b) and the auto-advance "verified" line (the
   poll in _signup_bounce_poll.html). Both sit inside .fr-su__card, above
   the resend/change-it row. */
.fr-su__typo {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: #FFF1C7; border-radius: 12px; padding: 16px 18px; font-size: 16px;
}
.fr-su__verified {
  margin: 14px 0 0; display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #2F7D4E;
}
.fr-su__verified[hidden] { display: none; }

@media (max-width: 640px) {
  .fr-su__submit-row .fr-btn { width: 100%; }
}

/* Screen 01b, the paid sign-up form: the bar above the header. */
.fr-su__paid-banner {
  margin: 0; background: #FFC53D; color: var(--ink); text-align: center;
  font-size: 15px; font-weight: 700; padding: 10px 20px;
}

/* Joe's top-of-page trial strip (screens 01/01c/02): a fixed light-marigold
   fill, same convention as .fr-su__plan-trial above — pinned to the literal
   dark ink (#14213A), not var(--ink), which flips light in dark mode and
   would collapse the contrast against this always-light bar. Shown only on
   the free-trial path; the paid sign-up/verify path has its own banner
   (.fr-su__paid-banner) since it is not a free trial. */
.fr-trial-strip {
  margin: 0; background: #FFC53D; color: #14213A; text-align: center;
  font-weight: 800; font-size: 15px; padding: 8px;
}

/* Step 2, "How you work" (fr-how, used via plain .fr-card above) — a
   multi-select chip and a plain text field, shared with nothing else yet. */
.fr-lede--sm { font-size: 16px; max-width: none; }
.fr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* var(--surface), not a literal #fff: an unselected chip's text already
   follows var(--ink) (light in dark mode), so a hardcoded white fill left
   it near-invisible in dark mode — Brief 5 G2b pass 3 fix 2, confirmed via
   mutation below. */
.fr-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; min-height: 44px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
/* Fixed navy, not var(--ink): --ink turns near-white in dark mode, which
   put white text on a white pill. Joe's dark pill (.btn.dark) is #14213a in
   both themes. */
.fr-chip:has(input:checked) { background: #14213a; color: #fff; border-color: #14213a; }
/* In dark mode the page itself is near-navy, so a navy pill would read as
   unselected; use the theme's cobalt there so the choice stays visible. */
:root[data-theme="dark"] .fr-chip:has(input:checked) { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fr-chip:has(input:checked) { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
}
/* Joe's trade pills show no checkbox at all — just the pill going dark
   (04-setup-2-how-you-work.html's `.chip`, a plain <button>). The real
   <input type=checkbox> stays in the DOM (keyboard/AT still reach it,
   :has(input:checked) above still drives the dark-pill state) but is
   visually hidden rather than removed — an invisible-but-present input,
   same technique as a styled native checkbox/radio anywhere else. */
.fr-chip input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fr-field { margin-top: 14px; }
.fr-field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.fr-input {
  width: 100%; max-width: 360px; font-family: inherit; font-size: 17px;
  border: 1px solid #9AA3B5; border-radius: 10px; padding: 10px 12px;
  background: var(--surface); color: var(--ink); min-height: 46px;
}
.fr-card + .fr-card { margin-top: 14px; }
#fr-how-preview-list { margin: 10px 0 0; padding-left: 20px; }
#fr-how-preview-list li { margin: 6px 0; font-size: 15px; color: var(--ink-soft); }

/* "How do you mostly get paid?" — Joe's radio-style option cards
   (04-setup-2-how-you-work.html's `.opt`), title + one-line description,
   selected = cobalt tint/border. Same hidden-input technique as .fr-chip
   above: a real checkbox drives :has(input:checked), never shown. */
.fr-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
/* var(--surface)/var(--line), not Joe's literal #fff/#9AA3B5: 04 has no
   dark variant to copy, so an unselected card used the same dark-mode fix
   as .fr-chip above, through tokens-portal.css's existing dark overrides
   rather than inventing new ones. */
.fr-opt {
  font-family: inherit; display: flex; gap: 12px; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; color: var(--ink);
}
.fr-opt input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fr-opt__r { flex: none; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--line); margin-top: 3px; }
.fr-opt:has(input:checked) { border: 2px solid var(--cobalt); background: var(--tint); padding: 13px 15px; }
.fr-opt:has(input:checked) .fr-opt__r { border: 6px solid var(--cobalt); }
.fr-opt b { display: block; font-size: 17px; }
.fr-opt__e { display: block; font-size: 14px; color: var(--ink-soft); }

/* Step 2's two-column layout: the form left, a sticky "Your Playbook" +
   "Why we ask" rail right (Joe's 04-setup-2-how-you-work.html, .cols /
   .side / .sc / .dark — region table regions/04-how-you-work.md, regions
   4-5). Collapses to one column at 900px, matching Joe's own
   @media(max-width:900px){.grid2{grid-template-columns:1fr!important}}. */
.fr-how-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 28px; }
.fr-how-main { display: flex; flex-direction: column; gap: 14px; }
.fr-how-main .fr-card { margin-top: 0; }
.fr-how-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
@media (max-width: 900px) {
  .fr-how-grid { grid-template-columns: 1fr; }
  .fr-how-rail { position: static; }
}

/* The business/location chip, "Edit" toggle and "+ Add a state" (region 3:
   Joe's static chip + dashed "+Add a state" button; "Edit" here reveals
   the real <select> that already posts Rooftop.state — no behaviour
   change, just progressive disclosure to match Joe's chip-not-dropdown
   look). */
.fr-how-where { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
/* var(--surface), not a literal #fff — same dark-mode fix as .fr-chip
   above: the location chip's text follows var(--ink) and went invisible
   on a hardcoded white fill in dark mode. */
.fr-how-chip {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 16px; background: var(--surface);
  color: var(--ink);
}
.fr-how-chip__muted { font-weight: 500; color: var(--ink-soft); }
.fr-how-chip__edit {
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--cobalt);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
}
a.fr-how-chip--dashed { border-style: dashed; text-decoration: none; min-height: 44px; }
.fr-how-price { margin-top: 10px; }

/* "Your Playbook" card (Joe's .sc, cobalt 2px border) and "Why we ask"
   (Joe's .dark). Lists render real data only (first_run.py::first_run_how
   — tracked numbers from core/playbook_numbers, sample questions from
   recipes/catalog.py, rules from the resolved Playbook's own guidance);
   the ``fr-how-pb__empty`` paragraphs are what render instead of an
   invented item when a list is honestly empty. */
.fr-how-pb { background: var(--surface); border: 2px solid var(--cobalt); border-radius: 18px; padding: 22px; }
.fr-how-pb__eyebrow { margin-bottom: 6px; }
.fr-how-pb__name { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.fr-how-pb__model { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.fr-how-pb__h { margin-top: 16px; font-weight: 800; font-size: 15px; }
.fr-how-pb__list { margin: 6px 0 0; padding-left: 18px; font-size: 15px; }
.fr-how-pb__list li { margin: 4px 0; }
.fr-how-pb__empty { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); font-style: italic; }
.fr-how-pb__vertical { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.fr-how-pb__warn { margin-top: 16px; background: var(--marigold); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #14213a; }
/* var(--ink)/var(--paper) pairing, same fix as .fr-su__dark above: a
   literal #fff/#C9D0E0 here inverted to near-invisible in dark mode, since
   --ink itself goes light there. */
.fr-how-why { background: #14213a; color: #fff; border-radius: 18px; padding: 20px 22px; }
.fr-how-why__body { font-size: 14px; color: #AEB8D0; margin-top: 4px; }
