/* Shared shell for every guided Unfussed job page. The listing door keeps its own
   bespoke page; these four are rendered from the play manifest, so they share one
   stylesheet rather than four near-copies. */
:root {
  color-scheme: light dark;
  --ink: #162019;
  --muted: #667064;
  --paper: #f7f3ea;
  --card: #fffdf8;
  --line: #d8d5c9;
  --acid: #d9ff57;
  --green: #163d29;
  --orange: #ff7657;
  --orange-ink: #b03d20;
  --shadow: 0 24px 70px rgba(32, 38, 28, .12);
  --on-lime: var(--ink);
  --text: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 255, 87, .3), transparent 24rem),
    radial-gradient(circle at 90% 28%, rgba(255, 118, 87, .14), transparent 26rem),
    var(--paper);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--acid);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}
/* The full knot needs 32px to resolve its weave; below that the sibling mark
   is used instead. See design/logo/RULES.md. */
.brand-mark img { display: block; width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
.credit-pill { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: rgba(255, 253, 248, .65); color: var(--ink); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--green); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 3px; border-radius: 99px; background: var(--orange); }

h1 { max-width: 720px; margin: 0; font-size: clamp(46px, 6.2vw, 78px); line-height: .93; letter-spacing: -.07em; font-weight: 900; }
h1 .marker { position: relative; z-index: 0; white-space: nowrap; }
h1 .marker::after { content: ""; position: absolute; left: -.02em; right: -.06em; bottom: .03em; height: .24em; z-index: -1; background: var(--acid); transform: rotate(-1deg); }
.lead { max-width: 620px; margin: 24px 0 0; color: #505b50; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; letter-spacing: -.02em; }

.intake-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr); gap: clamp(40px, 6vw, 84px); padding: 60px 0 90px; align-items: start; }

.job-form { margin-top: 30px; padding: 18px; display: grid; gap: 16px; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: 7px 7px 0 var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.field .optional { color: var(--muted); font-weight: 650; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fffefb; color: var(--text); font-size: 16px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217, 255, 87, .75); }
.input-tabs { display: flex; gap: 6px; }
.input-tab { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; }
.input-tab.is-active { border-color: var(--ink); background: var(--acid); color: var(--ink); }
.input-panel .field { margin: 0; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 4px; border-radius: 10px; cursor: pointer; font-size: 16px; line-height: 1.5; }
.consent-row:hover { background: rgba(217, 255, 87, .18); }
.consent-row input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.consent-row span { font-weight: 600; }
.field input::placeholder, .field textarea::placeholder { color: #899087; }
.field .counter { justify-self: end; color: var(--muted); font-size: 12px; font-weight: 700; }
.field .counter.short { color: #a22616; }
/* The character count and the .txt loader share one row under the textarea. */
.paste-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.paste-tools .counter { justify-self: auto; }
.file-pick { cursor: pointer; text-decoration: underline; color: var(--muted); font-size: 12px; font-weight: 700; }
.file-pick input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel-note { margin: 9px 2px 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.5; }

/* The upload intake. Only the photo jobs draw it, and they draw it first,
   because on those jobs the photographs are the job and the typed fields only
   describe them. */
.photo-field input[type="file"] { width: 100%; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: #fffefb; color: var(--muted); font-size: 14px; }
.photo-field input[type="file"]::file-selector-button { margin-right: 12px; min-height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 9px; background: var(--acid); color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.photo-field .panel-note { margin-top: 2px; }
.photo-list { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.photo-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 253, 248, .72); font-size: 14px; }
.photo-list .photo-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.photo-list .photo-size { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.photo-list .photo-remove { flex: 0 0 auto; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.photo-list .photo-remove:hover { border-color: var(--ink); color: var(--text); }
.field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fffefb; color: var(--text); font-size: 16px; }
.field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217, 255, 87, .75); }

/* A job whose provider key this deployment does not hold. Distinct from
   :disabled's wait cursor, which means "in flight" — this one is not coming
   back on this click, so it must not look like something that is loading. */
.primary-button.is-unavailable:disabled { cursor: not-allowed; }
.unavailable { display: none; margin: 18px auto 0; padding: 14px 18px; border: 1px solid #ddbf75; border-radius: 12px; background: #fff5cf; color: #674c09; font-size: 14px; font-weight: 700; line-height: 1.55; }
.unavailable.show { display: block; }

.primary-button { min-height: 56px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 850; letter-spacing: -.015em; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--green); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-error { min-height: 22px; margin: 12px 0 0; color: #a22616; font-size: 14px; font-weight: 750; }
.form-note { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 650; }
/* Direct children only — the cost note carries a nested span, and a descendant
   selector put a second tick in the middle of the sentence. */
.form-note > span::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }

.side-card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 253, 248, .72); box-shadow: var(--shadow); }
.side-card h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.03em; }
.side-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.side-card li { margin: 9px 0; line-height: 1.5; font-size: 14px; }
.price-lock { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.price-lock strong { font-size: 34px; letter-spacing: -.06em; }
.price-lock span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.notice { display: none; margin: 18px auto 0; padding: 13px 17px; border: 1px solid #ddbf75; border-radius: 12px; background: #fff5cf; color: #674c09; font-size: 14px; font-weight: 700; }
.notice.show { display: block; }
.test-banner { display: none; margin: 18px auto 0; padding: 14px 18px; border: 3px dashed #b4400f; border-radius: 14px; background: #fff2ec; color: #b4400f; font-size: 14px; font-weight: 800; line-height: 1.5; }
.test-banner.show { display: block; }

.result-view { display: none; padding: 54px 0 100px; }
body.result-mode .intake { display: none; }
body.result-mode .result-view { display: block; }
.result-kicker { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.result-title { max-width: 850px; margin: 14px 0 10px; font-size: clamp(38px, 5.4vw, 66px); line-height: .99; letter-spacing: -.06em; }

.loading-card { max-width: 700px; margin-top: 40px; padding: 28px; border: 2px solid var(--ink); border-radius: 22px; background: var(--card); box-shadow: 7px 7px 0 var(--ink); }
.loading-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e4e1d6; }
.loading-track::before { content: ""; display: block; width: 44%; height: 100%; border-radius: inherit; background: var(--acid); animation: scan 1.25s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateX(-10%); } to { transform: translateX(140%); } }
.loading-card h2 { margin: 22px 0 7px; font-size: 21px; }
.loading-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.result-error { display: none; max-width: 700px; margin-top: 36px; padding: 22px; border: 1px solid #d48a79; border-radius: 18px; background: #fff1ed; color: #842d1d; font-weight: 700; }

.result-panel { display: none; margin-top: 38px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); overflow: hidden; }
.result-section { padding: 28px; }
.result-section + .result-section { border-top: 1px solid var(--line); }
.result-section h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.03em; }
.copy-box { padding: 20px; border-radius: 15px; background: #f1eee4; }
.copy-box p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.copy-button { margin-top: 12px; min-height: 42px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 10px; background: var(--card); font-size: 13px; font-weight: 800; }
.plain-text { margin: 0; white-space: pre-wrap; line-height: 1.6; color: #3d463d; }
.item-list { margin: 0; padding-left: 22px; }
.item-list li { margin: 9px 0; line-height: 1.5; }
.clip { margin: 0 0 18px; }
.clip:last-of-type { margin-bottom: 0; }
.clip video { display: block; width: 100%; max-width: 720px; border: 1px solid var(--line); border-radius: 15px; background: #0f150c; }
.clip figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.record { padding: 16px 0; border-top: 1px solid var(--line); }
.record:first-of-type { border-top: 0; padding-top: 0; }
.record h3 { margin: 0 0 6px; font-size: 16px; }
.record p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.record .record-extra { color: var(--green); font-size: 13px; font-weight: 750; }

/* The included revisions. Deliberately quieter than the primary button: the
   buyer has their result, and this is an offer, not the next thing to do. */
.result-section.revision { background: #faf8f1; }
.result-section.revision textarea { width: 100%; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fffefb; color: var(--text); font-size: 16px; line-height: 1.5; resize: vertical; }
.result-section.revision textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217, 255, 87, .75); }
.result-section.revision textarea::placeholder { color: #899087; }
.result-section.revision textarea:disabled { opacity: .6; }
.revision-button { margin-top: 12px; min-height: 46px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 10px; background: var(--card); font-size: 14px; font-weight: 800; }
.revision-button:hover { background: var(--acid); }
.revision-button:disabled { cursor: wait; opacity: .65; }
.result-section.revision .form-error { min-height: 0; }

/* The receipt line and the keep-this-link line, built by unfussed-job.js after a
   delivery. Deliberately quiet and deliberately outside .result-panel: this is
   what the job cost and how to return to it, not part of the thing bought. */
.job-ledger { margin-top: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 248, .72); }
.job-ledger p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.job-ledger .ledger-spend { margin-bottom: 7px; color: var(--text); font-weight: 750; }

.next-jobs { display: none; margin-top: 34px; padding: 26px; border-radius: 22px; background: var(--green); color: #fff; box-shadow: var(--shadow); }
.next-jobs.show { display: block; }
.next-jobs h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.04em; }
.next-jobs p { margin: 0 0 18px; color: #bed0c1; line-height: 1.55; }
.next-jobs ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.next-jobs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.09); text-decoration: none; font-size: 14px; font-weight: 800; }
.next-jobs a:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.next-jobs a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.next-jobs .cost { font-weight: 650; opacity: .8; }

/* The static cross-links every job page carries, in the marketing view rather
   than the result view: .next-jobs above is built by JavaScript after a delivery
   and is filtered by the balance left, so it is invisible to a crawler and to a
   visitor who has not paid. Until this existed, these pages linked only to
   /fix-my-listing and never to each other, which left three of the four things
   Unfussed sells with no on-page route between them. */
.more-jobs { padding: 44px 0 90px; border-top: 1px solid var(--line); }
.more-jobs h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.04em; }
.more-jobs > p { max-width: 620px; margin: 0 0 26px; color: var(--muted); line-height: 1.6; }
.more-jobs ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.more-jobs li a { display: grid; align-content: start; gap: 7px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 248, .72); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.more-jobs li a:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--card); }
.more-jobs li strong { font-size: 17px; letter-spacing: -.025em; }
.more-jobs li span { color: var(--muted); font-size: 14px; line-height: 1.5; }

footer { display: flex; justify-content: space-between; gap: 28px; padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .intake-layout { grid-template-columns: 1fr; padding-top: 40px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 70px; }
  .nav a:not(.credit-pill) { display: none; }
  .job-form { padding: 14px; box-shadow: 5px 5px 0 var(--ink); }
  .primary-button { width: 100%; }
  .result-section { padding: 22px 18px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12180f;
    --card: #1b2717;
    --line: rgba(243, 240, 230, .16);
    --muted: #a6b0a3;
    --text: #f3f0e6;
    --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  }
  body {
    background:
      radial-gradient(circle at 12% 8%, rgba(217, 255, 87, .1), transparent 24rem),
      radial-gradient(circle at 90% 28%, rgba(255, 118, 87, .08), transparent 26rem),
      var(--paper);
  }
  :focus-visible { outline-color: var(--text); }
  .field input, .field textarea, .field select, .result-section.revision textarea { background: #0f150c; }
  .field select:focus { border-color: var(--text); }
  .photo-field input[type="file"] { background: #0f150c; }
  .photo-list li { background: var(--card); }
  .unavailable { border-color: rgba(243, 240, 230, .28); background: #2a2410; color: #f0dda4; }
  .field input::placeholder, .field textarea::placeholder, .result-section.revision textarea::placeholder { color: #7c887a; }
  .field input:focus, .field textarea:focus, .result-section.revision textarea:focus { border-color: var(--text); }
  .input-tab.is-active { color: var(--ink); }
  .consent-row input { accent-color: var(--acid); }
  .consent-row:hover { background: rgba(217, 255, 87, .1); }
  .primary-button { background: var(--acid); color: var(--on-lime); }
  .primary-button:hover { background: #eaffa0; }
  .job-form, .loading-card { border-color: rgba(243, 240, 230, .22); }
  .side-card, .more-jobs li a, .job-ledger { background: var(--card); }
  .copy-box { background: #0f150c; }
  .plain-text { color: var(--muted); }
  .record .record-extra { color: #8fe0af; }
  .eyebrow, .form-note > span::before, .result-kicker { color: #8fe0af; }
  .result-section.revision { background: var(--paper); }
}
