/* /app, the home (29 Oct 2026 design). Reuses check.css for the dots, verdict, ⓘ buttons and spinner. */

.home-page { background: var(--tint); }
.home { flex: 1 0 auto; padding-block: 40px 64px; }
.home__inner { max-width: 1120px; display: flex; flex-direction: column; gap: 24px; }
.home__view { display: flex; flex-direction: column; gap: 24px; }
.home__view h1, .home__view h2 { margin: 0; }
.home__view h1:focus { outline: none; }
.home__loading { padding-top: 8px; }
.skel-home { display: flex; flex-direction: column; gap: 16px; }
.skel-home--first { align-items: center; max-width: 820px; margin: 0 auto; padding-top: clamp(8px, 4vw, 40px); }
.skel-home--first .skel--title { max-width: 560px; }
.skel-drop {
  display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; box-sizing: border-box; margin-top: 16px;
  padding: clamp(28px, 6vw, 52px) 24px; border-radius: 28px; border: 2px dashed #ddd5f5; background: var(--white);
}
.skel--up { height: 240px; border-radius: 28px; margin-top: 8px; background: var(--white); }
.skel-list { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--white); }
.skel-list__row { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.skel-list__row + .skel-list__row { border-top: 1px solid var(--line); }
.home .info-note { margin: 0; }
.spinner--sm { display: inline-block; width: 16px; height: 16px; border-width: 2.5px; }

/* Coming back */
.home-hello h1 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.home-hello p { margin-top: 10px; font-size: 19px; color: var(--body); }

/* Coming back (11 Nov 2026 design A): one next step, the jobs as a list, a way to a new job. */
.home-page .app-nav__new { display: none; }
.home-up {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px 40px; padding: clamp(24px, 4vw, 40px);
  border-radius: 28px; background: var(--white); box-shadow: 0 1px 2px rgba(25, 25, 28, 0.05), 0 12px 32px rgba(25, 25, 28, 0.06);
}
.home-up[hidden] { display: none; }
.home-up__words { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-up__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.home-up h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.home-up__text { font-size: 17px; line-height: 1.5; color: var(--body); overflow-wrap: anywhere; }
.home-up__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 4px; }
.home-up__note { font-size: 15px; color: var(--body); }
/* The next step pulses like the results page's Start here (13 Nov 2026): it's the one bright button on the
   page. It stops on hover or focus, and for anyone who asks for less motion. */
.home-up__go .btn--cta { position: relative; }
.home-up__go .btn--cta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 var(--cta); animation: start-pulse 2.4s ease-out infinite;
}
.home-up__go .btn--cta:hover::after, .home-up__go .btn--cta:focus-visible::after { animation: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .home-up__go .btn--cta::after { animation: none; box-shadow: none; } }
@media (max-width: 520px) { .home-up__go .btn { width: 100%; } }
.home-ring { flex: 1 1 200px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.home-ring[hidden] { display: none; }
.home-ring__dial { position: relative; width: 168px; height: 168px; }
.home-ring__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.home-ring__track, .home-ring__fill { fill: none; stroke-width: 16; }
.home-ring__track { stroke: var(--tint); }
.home-ring__fill { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 0 440; transition: stroke-dasharray .6s ease; }
@media (prefers-reduced-motion: reduce) { .home-ring__fill { transition: none; } }
.home-ring__n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home-ring__n strong { font-size: 40px; font-weight: 800; line-height: 1; color: var(--ink); }
.home-ring__n span { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--body); }
.home-ring figcaption { max-width: 200px; font-size: 15px; line-height: 1.4; color: var(--body); }
.home-ring__dial, .home-job__state--todo, .home-job__state--done { cursor: help; }
/* On a phone (13 Nov 2026): the whole card on the first screen of an iPhone SE (375 by 667). The ring
   was 168px under the button and fell across the bottom of the screen, so it looked cut off. It becomes a
   small ring with its words beside it, and the space around the card tightens. */
@media (max-width: 599px) {
  .home { padding-block: 24px 48px; }
  .home__view { gap: 18px; }
  .home-hello p { margin-top: 6px; font-size: 17px; }
  .home-up { gap: 20px; padding: 22px 20px; border-radius: 24px; }
  .home-up__words { gap: 12px; }
  .home-up h2 { font-size: 24px; }
  .home-up__text { font-size: 16px; }
  .home-up__note { font-size: 14px; }
  .home-ring { flex: 1 1 100%; flex-direction: row; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; }
  .home-ring__dial { flex: none; width: 64px; height: 64px; }
  .home-ring__track, .home-ring__fill { stroke-width: 18; }
  .home-ring__n strong { font-size: 20px; }
  .home-ring__n span { margin-top: 0; font-size: 11px; }
  .home-ring figcaption { max-width: none; font-size: 15px; }
}

.home-jobs { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.home-jobs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.home-jobs__head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.home-jobs__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--white); overflow: hidden; }
.home-jobs__list li + li { border-top: 1px solid var(--line); }
.home-job { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 18px 24px; color: var(--ink); text-decoration: none; }
.home-job:hover { background: var(--soft); }
.home-job:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.home-job__mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; }
.home-job__mark--0 { background: var(--tint); color: var(--accent); }
.home-job__mark--1 { background: var(--green-bg); color: var(--green-text); }
.home-job__mark--2 { background: var(--orange-bg); color: var(--orange); }
.home-job__words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-job__name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.home-job__meta { font-size: 14px; color: var(--body); overflow-wrap: anywhere; }
.home-job__state { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--body); white-space: nowrap; }
.home-job__state--todo { color: var(--orange); }
.home-job__state--done { color: var(--green-text); }
.home-job__chevron { flex: none; width: 18px; height: 18px; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) {
  .home-job { flex-wrap: wrap; padding: 16px; gap: 6px 12px; }
  .home-job__words { flex-basis: calc(100% - 92px); }
  .home-job__state { margin-left: 56px; white-space: normal; }
  .home-job__chevron { display: none; }
}

.home-new {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px; margin-top: 8px;
  padding: clamp(24px, 4vw, 32px); border-radius: 20px; background: var(--brand); color: var(--white);
}
.home-new[hidden] { display: none; }
.home-new__words { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.home-new h2 { font-size: 22px; font-weight: 800; color: var(--white); }
.home-new p { font-size: 16px; line-height: 1.5; color: #dbd6cb; }
.btn.home-new__go { background: transparent; border: 1.5px solid var(--white); color: var(--white); }
.btn.home-new__go:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 520px) { .btn.home-new__go { width: 100%; } }
.home-cvs { font-size: 15px; color: var(--body); }
.home-cvs[hidden] { display: none; }

.home-chip { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--body); font-size: 13px; font-weight: 700; white-space: nowrap; }
.home-chip--good { background: var(--green-bg); color: var(--green-text); }
.home-chip--near { background: var(--orange-bg); color: var(--orange); }
.home-chip--far { background: var(--tint); color: var(--accent); }

.home-recent__error { font-size: 15px; color: var(--orange); }
.home-check__dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 220px; }
.home-check__dots .dot { width: 14px; height: 14px; }
.home-check__dots .dot__mark { display: none; }

.home-faq h2 { font-size: 22px; font-weight: 800; }

/* First visit (8 Nov 2026 design B): one promise, and the first step as the page. Calm on purpose: no
   cards in cards, one bright button, the next steps as a quiet line. */
.home-first { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 820px; margin: 0 auto; padding-top: clamp(8px, 4vw, 40px); text-align: center; }
.home-first__words { display: flex; flex-direction: column; align-items: center; }
.home-first h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.home-first__words p { max-width: 34em; margin-top: 16px; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--body); }

.home-drop { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: 12px; }
.home-drop__zone {
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  padding: clamp(28px, 6vw, 52px) clamp(18px, 4vw, 32px); border-radius: 28px; background: var(--white);
  border: 2px dashed #c9bdf2; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.home-drop__zone:hover, .home-drop__zone.is-dragover { background: var(--orange-soft); border-color: var(--cta); border-style: solid; }
.home-drop__zone:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.home-drop__zone.is-sending { pointer-events: none; opacity: .6; }
.home-drop__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--tint); color: var(--accent); }
.home-drop__icon svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-drop__title { font-size: clamp(20px, 3vw, 24px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.home-drop__tap { display: none; }
@media (hover: none) and (pointer: coarse) {
  .home-drop__drag { display: none; }
  .home-drop__tap { display: inline; }
}
.home-drop__hint { font-size: 15px; line-height: 1.5; color: var(--body); }
.home-drop__cta { margin-top: 4px; }
.home-drop__zone:hover .home-drop__cta { background: var(--cta-hover); }
@media (max-width: 520px) { .home-drop__cta { width: 100%; } }
.home-drop__sending { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.home-drop__error { display: flex; flex-direction: column; gap: 4px; width: 100%; box-sizing: border-box; padding: 14px 18px; border-radius: 14px; background: var(--orange-bg); text-align: left; font-size: 15px; line-height: 1.5; color: var(--ink); }

/* A CV saved, nothing checked yet. Rewritten 14 Nov 2026 for the paste surface: this used to be a
   white card holding two lines, and the paste form is itself a card, so the old padding, radius and
   background made a card inside a card. align-items: center is gone with them -- it shrank every
   child to its content, so the form came out narrower than the chip above it, and it stopped the
   chip's own 100% width applying, which is what let a long CV name run past both edges of a phone
   instead of ellipsising. Replaced rather than overridden, so there is one rule per selector. */
.home-have { display: flex; flex-direction: column; gap: 16px; width: min(640px, 100%); margin-inline: auto; text-align: left; }
.home-have__cv { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 15px; color: var(--ink); }
.home-have__cv svg { flex: none; width: 20px; height: 20px; stroke: var(--green-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.home-have__cv > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-have__change { flex: none; margin-left: auto; font-size: 14px; white-space: nowrap; }

.home-first__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.home-first__trust > span { display: inline-flex; align-items: center; gap: 8px; }
.home-first__trust svg { flex: none; width: 16px; height: 16px; stroke: var(--green-text); stroke-width: 2.2; stroke-linejoin: round; }
.home-first__dot { color: var(--muted); }
@media (max-width: 520px) { .home-first__trust { flex-direction: column; align-items: center; } .home-first__dot { display: none; } }

.home-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.home-next li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--body); }
.home-next__n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); font-size: 13.5px; font-weight: 800; color: var(--brand); }
@media (max-width: 520px) { .home-next { flex-direction: column; align-items: flex-start; padding-inline: 8px; } }

.home-faq { display: flex; flex-direction: column; width: 100%; max-width: 820px; margin: 16px auto 0; }
.home-faq h2 { margin-bottom: 8px; font-size: 21px; font-weight: 800; }
.home-faq__item { border-top: 1px solid var(--line-strong); }
.home-faq__item:last-child { border-bottom: 1px solid var(--line-strong); }
.home-faq__item summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none;
}
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__item summary::after {
  content: ""; width: 9px; height: 9px; margin-left: auto; margin-right: 6px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-3px) rotate(45deg); transition: transform .15s;
}
.home-faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.home-faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.home-faq__item p { padding-bottom: 18px; font-size: 15px; line-height: 1.5; color: var(--body); }

/* Where a job stands, in a popup (13 Nov 2026, statustip.ts): on the home and on My jobs, which both load this sheet. */
.status-tip {
  position: fixed; z-index: 60; width: min(300px, calc(100vw - 16px)); padding: 16px 18px; border-radius: 14px;
  background: var(--brand); color: var(--white); box-shadow: 0 12px 32px rgba(25, 25, 28, 0.24); pointer-events: none;
}
.status-tip__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.status-tip__lead { margin: 4px 0 0; font-size: 14px; color: var(--brand-muted); }
.status-tip__piles { margin: 12px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px solid var(--brand-line); display: grid; gap: 6px; }
.status-tip__pile { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.status-tip__pile::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 999px; background: currentColor; }
.status-tip__name { flex: 1; color: var(--white); font-weight: 600; }
.status-tip__n { font-variant-numeric: tabular-nums; color: var(--white); }
.status-tip__pile--shown { color: #8fd6ae; }
.status-tip__pile--todo { color: var(--cta); }
.status-tip__pile--check { color: #b8a6f5; }
.status-tip__pile--extra { color: #dbd6ca; }
.status-tip__pile.is-empty .status-tip__n { color: var(--brand-muted); }
.status-tip__foot { margin: 12px 0 0; font-size: 13px; color: var(--brand-muted); }

/* The job goes in on the home page (14 Nov 2026, design B). Only when a CV is saved and nothing has
   been checked yet: the page is step 2, so it carries step 2's surface instead of a link to it. */
.home-page--paste .home-first__words { margin-bottom: 20px; }

.home-paste { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-float); }
.home-paste__label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.home-paste__label label { font-size: 17px; font-weight: 700; }
.home-paste__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.home-paste__area { min-height: 200px; max-width: 100%; resize: vertical; }
.home-paste__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.home-paste__cost { margin: 0; font-size: 14px; line-height: 1.45; color: var(--body); }
/* Not enough credits: the line stops being a note and becomes the next thing to do. */
/* Not enough credits (design A): an orange panel with one button, Add credits. */
.home-paste__short { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--orange-bg); }
.home-paste__short-say { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.home-paste__short-say strong { display: block; color: var(--ink); }
.home-paste__short-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.home-paste__short-go .btn { gap: 10px; }
.home-paste__from { font-size: 14px; color: var(--body); }

@media (max-width: 599px) {
  .home-paste { padding: 14px; }
  .home-paste__area { min-height: 168px; }
  .home-paste__go .btn, .home-paste__short-go .btn { width: 100%; white-space: normal; height: auto; min-height: 52px; padding-block: 10px; }
  .home-paste__short { padding: 14px; }
  .home-paste__from { width: 100%; text-align: center; }
}
