/* TaskBlink Data, the onboarding pages (DESIGN-BRIEF 2.18, 5.2; artboards Onb1Website, OnbQ2Size, OnbQ3GHL,
   OnbQ4Heard, Onb2Website, OnbQ5Name, OnbQ5Sell, Onb3Search; package A6). Tokens and shared components are
   tb.css's (A1); this file only lays out the question page, the learned card and the first search.
   Every control is a 44 px target (letter choices are 52 tall; the pencils, up and down are 44 x 44). */

/* The onboarding top bar A6 draws when tb-main has no chrome('onboarding') (2.1): the email, 6 apart from a
   ghost Sign out padded 0 14, ending at the container's right edge (x 1344). */
.tb-onb-bar .tb-topbar__end { gap: 6px; }
.tb-onb-bar .tb-btn--ghost { padding: 0 14px; }

/* ------------------------------------------------------------------ *
 * The page frame: progress under the top bar, one 640 column, the foot
 * ------------------------------------------------------------------ */
.tb-onb {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; flex-direction: column;
  background: var(--glow-top), var(--bg);
  color: var(--ink);
}
.tb-onb__progress {
  position: sticky; top: var(--topbar-h); z-index: 40;
  width: 100%; height: 4px; flex: none; border-radius: 0;
}
.tb-onb__progress .tb-progress__fill { border-radius: 0; }

/* The question block starts near y 220 (152 under the 68 of top bar and progress); with the kept-search chip
   the chip sits 24 above the number (y 164); the learned card's page starts at y 150. */
.tb-onb__main { flex: 1 0 auto; padding: 152px var(--gutter) 0; }
.tb-onb__main--chip { padding-top: 96px; }
.tb-onb__main--card { padding-top: 82px; }
.tb-onb__col { width: 640px; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; }
.tb-onb__glide { animation: tb-glide-in var(--t-glide) var(--ease) both; }
.tb-onb--still .tb-onb__glide { animation-name: tb-fade-in; }

.tb-onb__kept {
  margin: 0 0 24px; height: 32px; box-sizing: border-box; padding: 0 14px; border-radius: var(--pill);
  background: var(--good-tint); color: var(--good);
  display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font); max-width: 100%;
}
.tb-onb__kept span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-onb__kept .tb-icon { width: 16px; height: 16px; color: var(--good); }

.tb-onb__num {
  margin: 0; height: 24px; display: flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-mono); color: var(--brand-text);
}
.tb-onb__num .tb-icon { width: 14px; height: 14px; stroke-width: 2; }
.tb-onb__q { margin: 8px 0 0; max-width: 640px; }
.tb-onb__q:focus, .tb-onb__q:focus-visible, .tb-onb-first__h:focus, .tb-onb-first__h:focus-visible { outline: none; }
.tb-onb__q label { font: inherit; color: inherit; cursor: text; }
.tb-onb__sub { margin: 12px 0 0; max-width: 640px; font: 400 17px/1.5 var(--font); color: var(--ink-2); }

.tb-onb__cases { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tb-onb__cases li { display: flex; align-items: center; gap: 8px; font: 400 13px/1.45 var(--font); color: var(--ink-3); }
.tb-onb__cases .tb-icon { width: 14px; height: 14px; color: var(--ink-3); }

/* ------------------------------------------------------------------ *
 * Answers: the text answer, lettered choices, the optional line
 * ------------------------------------------------------------------ */
.tb-onb__answer { margin-top: 32px; width: 640px; max-width: 100%; }
.tb-onb__field {
  width: 100%; box-sizing: border-box; padding: 4px 0 9px;
  border-bottom: 2px solid var(--line-strong);
  display: flex; align-items: center; gap: 12px;
  transition: border-color var(--t-hover) var(--ease);
}
.tb-onb__field:hover, .tb-onb__field:focus-within { border-bottom-color: var(--brand); }
.tb-onb__field > .tb-icon { width: 20px; height: 20px; color: var(--ink-3); }
.tb-onb__input {
  flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none;
  background: transparent; box-shadow: none;
  font: 500 28px/1.3 var(--font); letter-spacing: -0.01em; color: var(--ink);
}
.tb-onb__input::placeholder { color: var(--ink-3); opacity: 1; }
.tb-onb__input:focus-visible { outline: none; }
.tb-onb__help { margin: 10px 0 0; font: 400 13px/1.45 var(--font); color: var(--ink-3); }

.tb-onb__choices { margin-top: 32px; width: 360px; min-width: 300px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.tb-onb__choice {
  position: relative; width: 100%; min-height: 52px; height: 52px; box-sizing: border-box; margin: 0;
  padding: 0 14px 0 10px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  font: 500 17px/1.3 var(--font);
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.tb-onb__choice:hover { background: var(--brand-tint); border-color: var(--brand-line); }
.tb-onb__choice:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-onb__choice[aria-checked="true"] { background: var(--brand-tint); border-color: var(--brand-line); box-shadow: var(--ring-brand); }
.tb-onb__key {
  width: 26px; height: 26px; flex: none; box-sizing: border-box; border-radius: var(--r-xs);
  background: var(--surface); border: 1px solid var(--brand-line);
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--font-mono); color: var(--brand-ink);
}
.tb-onb__choice[aria-checked="true"] .tb-onb__key { background: var(--brand-strong); border-color: var(--brand-strong); color: #FFFFFF; }
.tb-onb__label { flex: none; min-width: 0; }
.tb-onb__choice .tb-onb__from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12.5px/1.3 var(--font); color: var(--ink-3); }
.tb-onb__tick { margin-left: auto; display: none; color: var(--brand-strong); }
.tb-onb__tick .tb-icon { width: 18px; height: 18px; stroke-width: 2; }
.tb-onb__choice[aria-checked="true"] .tb-onb__tick { display: inline-flex; }
/* A chosen letter blinks its brand tint twice (2 x 120 ms), then the page moves on 350 ms after the choice */
.tb-onb__choice.is-blink { animation: tb-onb-blink calc(var(--t-blink) * 2) linear 1; }
@keyframes tb-onb-blink {
  0%, 50%, 100% { background-color: var(--brand-tint); }
  25%, 75% { background-color: var(--surface); }
}
.tb-onb__keys { margin: 14px 0 0; font: 400 12.5px/22px var(--font); color: var(--ink-3); }

.tb-onb__other { margin-top: 12px; width: 480px; max-width: 100%; }
.tb-onb__other[hidden] { display: none; }
.tb-onb__otherin {
  width: 100%; height: 44px; box-sizing: border-box; padding: 0; border: 0; border-bottom: 2px solid var(--line-strong);
  border-radius: 0; background: transparent; outline: none; font: 500 17px/1.3 var(--font); color: var(--ink);
}
.tb-onb__otherin::placeholder { color: var(--ink-3); opacity: 1; }
.tb-onb__otherin:focus { border-bottom-color: var(--brand); }

.tb-onb__error { margin: 12px 0 0; font: 500 13px/1.45 var(--font); color: var(--bad); }
.tb-onb__error[hidden] { display: none; }

/* A suggestion under a field (the fallback name page; a read that lands late): secondary 36 in a 44 hit area */
.tb-onb__suggest { margin-top: 12px; display: flex; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; }
.tb-onb__suggest:empty { display: none; }
.tb-onb__use { max-width: 100%; }
.tb-onb__use span { overflow: hidden; text-overflow: ellipsis; }
.tb-onb__suggest .tb-onb__from { font: 400 12.5px/1.4 var(--font); color: var(--ink-3); }

/* Typed with live sorting (the fallback sell page) */
.tb-onb__sorted { margin-top: 6px; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.tb-onb__sorted:empty { min-height: 0; margin-top: 0; }
.tb-onb__sorted > .tb-icon { width: 14px; height: 14px; color: var(--brand); stroke-width: 2; }
.tb-onb__sortedtext { font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.tb-onb__change {
  height: 44px; padding: 0 4px; border: 0; background: transparent; cursor: pointer;
  font: 500 13px/1 var(--font); color: var(--brand-text);
}
.tb-onb__change:hover { color: var(--brand-ink); text-decoration: underline; }

/* ------------------------------------------------------------------ *
 * The OK row, the cost line, quiet links
 * ------------------------------------------------------------------ */
.tb-onb__okrow { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-onb__okrow .tb-btn--ok .tb-icon { stroke-width: 2; }
.tb-onb__press { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1 var(--font); color: var(--ink-3); }
.tb-onb__press .tb-kbd { line-height: 1.3; }
.tb-onb__press .tb-kbd .tb-icon { width: 12px; height: 12px; stroke-width: 2; }
.tb-onb__cost { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.tb-onb__cost .tb-icon { width: 16px; height: 16px; color: var(--good); }
.tb-onb__quiet {
  margin-top: 12px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; font: 500 14px/1 var(--font); color: var(--brand-text); text-decoration: none;
}
.tb-onb__quiet:hover { color: var(--brand-ink); text-decoration: underline; }
.tb-onb__quiet--tight { margin-top: 4px; }

/* ------------------------------------------------------------------ *
 * The foot: the reading status at the left (x 96), up and down at the right (ending x 1344), y 812
 * ------------------------------------------------------------------ */
.tb-onb__foot { flex: none; margin-top: auto; padding-top: 0; padding-bottom: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; }
.tb-onb__status { margin: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; font: 400 13px/1.3 var(--font); color: var(--ink-3); }
.tb-onb__status .tb-spinner { width: 14px; height: 14px; }
.tb-onb__status--read { color: var(--good); font-weight: 500; }
.tb-onb__status--read .tb-icon { width: 14px; height: 14px; color: var(--good); stroke-width: 2; }
.tb-onb__status--retry .tb-icon { width: 14px; height: 14px; color: var(--ink-3); }
.tb-onb__nav { display: flex; margin-left: auto; }
.tb-onb__navbtn {
  width: 44px; height: 44px; box-sizing: border-box; padding: 0; margin: 0; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.tb-onb__navbtn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.tb-onb__navbtn + .tb-onb__navbtn { margin-left: -1px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.tb-onb__navbtn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.tb-onb__navbtn:focus-visible { outline: none; box-shadow: var(--ring-brand); position: relative; z-index: 1; }
.tb-onb__navbtn:disabled { cursor: default; }
.tb-onb__navbtn:disabled .tb-icon { color: var(--ink-4); }
.tb-onb__navbtn .tb-icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ *
 * The learned card (question 5)
 * ------------------------------------------------------------------ */
.tb-onb-card {
  margin-top: 32px; width: 640px; max-width: 100%; box-sizing: border-box; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(14,18,48,.06), 0 14px 36px -24px rgba(14,18,48,.20);
}
.tb-onb-card__head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tb-onb-card__logo { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tb-onb-card__tile {
  width: 56px; height: 56px; box-sizing: border-box; border-radius: var(--r-lg); overflow: hidden;
  background: var(--brand-tint); border: 1px solid var(--brand-line);
  display: flex; align-items: center; justify-content: center;
  font: 700 18px/1 var(--font); letter-spacing: 0.02em; color: var(--brand-ink);
}
.tb-onb-card__who { flex: 1; min-width: 0; padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.tb-onb-card__name { overflow-wrap: anywhere; }
.tb-onb-card__site {
  display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%;
  font: 500 13px/1.4 var(--font); color: var(--ink-2); overflow-wrap: anywhere;
}
.tb-onb-card__site .tb-icon { width: 14px; height: 14px; color: var(--ink-3); }
.tb-onb-card__rows { margin: 0; }
.tb-onb-row { min-height: 56px; box-sizing: border-box; padding: 6px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
/* With no writing line under them (the read is done), the last row needs no divider of its own */
.tb-onb-card__rows:last-child .tb-onb-row:last-child { border-bottom: 0; padding-bottom: 0; }
.tb-onb-row__label { width: 120px; flex: none; font: 600 11px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tb-onb-row__dd { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.tb-onb-row__value { flex: 1; min-width: 0; font: 500 17px/1.3 var(--font); color: var(--ink); overflow-wrap: anywhere; }
.tb-onb-row__edit {
  flex: none; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.tb-onb-row__edit:hover { background: var(--surface-2); color: var(--ink); }
.tb-onb-row__edit:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-onb-row__edit .tb-icon { width: 18px; height: 18px; }
.tb-onb-row__input {
  flex: 1; min-width: 0; height: 44px; box-sizing: border-box; padding: 0; border: 0; border-bottom: 2px solid var(--brand);
  border-radius: 0; background: transparent; outline: none; font: 500 17px/1.3 var(--font); color: var(--ink);
}
.tb-onb-chip {
  flex: none; height: 24px; box-sizing: border-box; padding: 0 10px 0 8px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font: 500 12px/1 var(--font); color: var(--ink-2);
}
.tb-onb-chip .tb-icon { width: 12px; height: 12px; color: var(--ink-3); stroke-width: 2; }
.tb-onb-chip__page { color: var(--brand-text); }
.tb-onb-chip--search { background: var(--bg-soft); }
.tb-onb-pill { flex: none; height: 22px; padding: 0 9px; gap: 5px; white-space: nowrap; display: inline-flex; align-items: center; font: 600 11.5px/1 var(--font); }
.tb-onb-pill .tb-icon { width: 12px; height: 12px; color: var(--brand); stroke-width: 2; }
.tb-onb-card__reading { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; font: 400 13px/1.45 var(--font); color: var(--ink-3); }

/* The kinds picker (the KIND OF BUSINESS pencil, "Change" on the sell page) */
.tb-onb-kinds { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; padding: 4px; }
.tb-onb-kinds__opt {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
  font: 500 14px/1.3 var(--font); color: var(--ink);
}
.tb-onb-kinds__opt:hover { background: var(--surface-2); }
.tb-onb-kinds__opt[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.tb-onb-kinds__opt .tb-icon { width: 16px; height: 16px; color: var(--brand-strong); }
.tb-onb-searchpop { padding: 16px; }

/* ------------------------------------------------------------------ *
 * The direct path's first search (Onb3Search)
 * ------------------------------------------------------------------ */
.tb-onb--first {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(239,6,192,.08), transparent 60%),
    radial-gradient(800px 400px at 80% 110%, rgba(239,6,192,.04), transparent 60%), var(--bg);
}
/* A 900 column (the sentence is 900 wide, as Search's) with the gutters outside it; at least 480 tall, so the
   skeletons start at y 600 as Onb3Search draws them, with or without the "Also good for you" row. */
.tb-onb-first {
  position: relative; z-index: 2; width: 100%; max-width: calc(900px + 2 * var(--gutter)); min-height: 480px;
  box-sizing: border-box; margin: 0 auto;
  padding: 129px var(--gutter) 0; display: flex; flex-direction: column; align-items: center;
}
.tb-onb-first__h { margin: 0; font: 600 48px/1.05 var(--font); letter-spacing: -0.03em; color: var(--ink); text-align: center; }
.tb-onb-first__h .tb-em { font-style: normal; color: var(--brand); }
.tb-onb-first__sub { margin: 16px 0 0; font: 400 16px/1.55 var(--font); color: var(--ink-2); text-align: center; }
.tb-onb-first__sentence { margin-top: 36px; width: 900px; max-width: 100%; }
.tb-onb-first__cost { margin: 18px 0 0; display: flex; align-items: center; gap: 8px; font: 400 13px/1.45 var(--font); color: var(--ink-2); text-align: center; }
.tb-onb-first__cost .tb-icon { width: 16px; height: 16px; color: var(--good); }
.tb-onb-first__note { margin: 12px 0 0; font: 500 13px/1.45 var(--font); color: var(--warn); text-align: center; }
.tb-onb-first__note[hidden] { display: none; }
.tb-onb-first__also { margin-top: 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 8px; }
.tb-onb-first__also[hidden] { display: none; }
.tb-onb-first__alsolabel { margin-right: 4px; font: 500 12px/1.4 var(--font); color: var(--ink-3); }
.tb-onb-first__chip { height: 44px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; cursor: pointer; }
.tb-onb-first__chip span {
  height: 32px; box-sizing: border-box; padding: 0 14px; border-radius: var(--pill);
  background: var(--bg-soft); border: 1px solid var(--line);
  display: inline-flex; align-items: center; font: 500 13px/1 var(--font); color: var(--ink-2);
}
.tb-onb-first__chip:hover span { background: var(--surface-2); color: var(--ink); }
.tb-onb-first__chip:focus-visible { outline: none; }
.tb-onb-first__chip:focus-visible span { box-shadow: var(--ring-brand); }
/* Three captionless skeleton cards behind the fold (decorative) */
.tb-onb-first__skels {
  position: relative; z-index: 1; width: 1248px; max-width: calc(100% - 2 * var(--gutter)); margin: 56px auto 0;
  display: flex; gap: 24px; opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
}
.tb-onb-first__skel {
  flex: 1 1 400px; max-width: 400px; height: 420px; box-sizing: border-box; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-card);
}
.tb-onb-first__photo { height: 168px; }
.tb-onb-first__lines { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.tb-onb-first__pills { display: flex; gap: 6px; }
.tb-onb-first__pills span { display: block; width: 64px; height: 24px; border-radius: var(--pill); background: var(--surface-2); }
.tb-onb-first__pills span + span { width: 136px; }
.tb-onb-first__lines > span { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); }
.tb-onb-first__lines > span:nth-child(2) { width: 58%; height: 18px; background: var(--surface-3); }
.tb-onb-first__lines > span:nth-child(3) { width: 86%; }
.tb-onb-first__lines > span:nth-child(4) { width: 64%; }
.tb-onb-first__lines > span:nth-child(5) { width: 72%; }

/* ------------------------------------------------------------------ *
 * Phone (one column, 16 px gutter, no horizontal scroll)
 * ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .tb-onb__main, .tb-onb__main--chip, .tb-onb__main--card { padding-top: 32px; }
  .tb-onb__sub { font-size: 16px; }
  .tb-onb__input { font-size: 22px; }
  .tb-onb__choices { width: 100%; min-width: 0; }
  .tb-onb__main { padding-bottom: 24px; }
  .tb-onb__foot { padding-bottom: 16px; }
  .tb-onb-card { padding: 16px; }
  .tb-onb-row { flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; }
  .tb-onb-row__label { width: 100%; }
  .tb-onb-row__dd { flex-wrap: wrap; }
  .tb-onb-row__value { flex-basis: 60%; }
  .tb-onb-row__edit { margin-left: auto; }   /* the pencil keeps the card's right edge when the chip wraps */
  .tb-onb-first { padding-top: 40px; min-height: 0; }
  .tb-onb-first__h { font-size: 34px; }
  .tb-onb-first__cost { align-items: flex-start; text-align: left; }
  .tb-onb-first__cost .tb-icon { margin-top: 2px; }
  .tb-onb-first__skels { display: none; }
}

/* A touch screen with no keyboard: the key hints ("press Enter", "Press A, B, C, D or E") would name keys it
   does not have, so they step aside; the buttons say the same thing. */
@media (hover: none) and (pointer: coarse) {
  .tb-onb__press, .tb-onb__keys { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-onb__choice.is-blink { animation: none; }
  .tb-onb__glide { animation-name: tb-fade-in; }
}
