/* My Job Book — the marketing site. One stylesheet, no framework, no web fonts, no JavaScript.
 *
 * Site yellow #F9B101 with ink, the same as the app (worker/assets/style.css). The rule is the
 * app's: yellow is a FILL carrying ink text (9:1), never text on a light background (white on it
 * is 1.9:1). In dark mode yellow may be text, on near-black it is over 9:1.
 *
 * Built phone-first: most visitors arrive from a trade Facebook group or a search on a phone.
 */

:root {
  --yellow: #f9b101;
  --yellow-hover: #e6a200;
  --yellow-soft: #fff4d1;
  --ink: #15191e;
  --paper: #fbfaf6;
  --card: #ffffff;
  --text: #1d232a;
  --muted: #58616b;
  --line: #e7e3d7;
  --shadow: 0 1px 2px rgba(21, 25, 30, 0.06), 0 8px 24px rgba(21, 25, 30, 0.07);
  --radius: 14px;
  --wrap: 72rem;
  --pad: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1216;
    --card: #171c22;
    --text: #e6e9ec;
    --muted: #9aa4ae;
    --line: #262d35;
    --yellow-soft: rgba(249, 177, 1, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 5rem; } /* a jump link lands below the sticky header, not under it */
a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--text); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6.2vw, 3.9rem); font-weight: 850; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--yellow); color: var(--ink); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* A highlighter stroke under a phrase — yellow behind ink, so it reads in both modes. */
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%); color: inherit; padding: 0 0.08em; }
@media (prefers-color-scheme: dark) { .mark { background: none; color: var(--yellow); } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 2px 0 rgba(21, 25, 30, 0.18); }
.btn-primary:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--text); }
.btn-big { min-height: 3.5rem; font-size: 1.1rem; padding-inline: 1.7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 850; font-size: 1.12rem; letter-spacing: -0.02em; text-decoration: none; color: var(--text); white-space: nowrap; }
.logo img { width: 2rem; height: 2rem; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.site-nav a { text-decoration: none; padding: 0.5rem 0.7rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.site-nav a:hover { background: var(--yellow-soft); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.site-nav .btn { margin-left: 0.4rem; min-height: 2.6rem; padding: 0.45rem 1rem; }
.site-nav .btn:hover { background: var(--yellow-hover); }
@media (max-width: 760px) {
  .site-nav .nav-link { display: none; }
  .site-nav .nav-signin { display: inline-block; }
}
@media (max-width: 340px) { .logo span { display: none; } }
@media (max-width: 400px) { .site-nav a.nav-signin { padding-inline: 0.45rem; } .site-nav .btn { margin-left: 0.2rem; padding-inline: 0.8rem; } }

/* ---- hero ---- */
/* overflow-x: clip, not hidden: the rotated yellow slab behind the phone pokes past the edge and
   made every page scroll sideways on a phone, and clip (unlike hidden) is not a scroll container,
   so the sticky phone on the trade pages still sticks. */
.hero, .section { overflow-x: clip; }
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 6vw, 4rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--text); background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent); padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1.2rem; }
.lede { font-size: clamp(1.1rem, 2.3vw, 1.3rem); color: var(--muted); max-width: 38rem; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; margin: 1.4rem 0 1.6rem; }
.price-line strong { font-size: 1.6rem; font-weight: 850; letter-spacing: -0.02em; }
.price-line span { color: var(--muted); }
.fine-print { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }

/* A phone, drawn in CSS, around a real screenshot of the demo. */
.phone {
  position: relative; width: min(100%, 22rem); margin-inline: auto; aspect-ratio: 390 / 844;
  border-radius: 2.6rem; padding: 0.7rem; background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(21, 25, 30, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 2rem; }
.phone::after { content: ""; position: absolute; top: 0.95rem; left: 50%; width: 3.6rem; height: 1rem; transform: translateX(-50%); background: var(--ink); border-radius: 999px; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 12% -4% 6% 10%; background: var(--yellow); border-radius: 2.5rem; transform: rotate(-4deg); z-index: -1; }

/* ---- facts strip ---- */
.facts { border-block: 1px solid var(--line); background: var(--card); }
.facts ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; gap: 0.8rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.facts li { display: flex; align-items: center; gap: 0.6rem; font-weight: 650; font-size: 0.98rem; }
.tick { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.tick svg { width: 0.85rem; height: 0.85rem; }

/* ---- sections ---- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.kicker { display: block; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.6rem; }

/* One job, start to paid. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 6vw, 4rem); counter-reset: step; }
.step { display: grid; gap: 1.5rem 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .step { grid-template-columns: 1fr 1fr; }
  .step:nth-child(even) .step-art { order: -1; }
}
.step-num { counter-increment: step; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 850; margin-bottom: 0.9rem; }
.step-num::before { content: counter(step); }
@media (prefers-color-scheme: dark) { .step-num { background: var(--yellow); color: var(--ink); } }
.step p { color: var(--muted); font-size: 1.08rem; }
.step ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.step li { margin-bottom: 0.35rem; }
.step-art .phone { width: min(100%, 19rem); }

/* Feature grid. */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 0.6rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.icon { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: var(--yellow-soft); display: grid; place-items: center; }
.icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--text); }

/* The "ink" band: dark in both modes, where yellow is allowed to be text. */
.band { background: var(--ink); color: #e9ecef; }
.band h2, .band h3 { color: #fff; }
.band .muted, .band p { color: #b9c1c9; }
.band .mark { background: none; color: var(--yellow); }
.band .card { background: #1c2229; border-color: #2a323b; box-shadow: none; }
.band .card p { color: #b9c1c9; }
.band .icon { background: rgba(249, 177, 1, 0.14); }
.band .icon svg { stroke: var(--yellow); }
.band .btn-ghost { background: transparent; color: #fff; border-color: #3a434d; }
.band .btn-ghost:hover { border-color: #fff; }

/* Pricing. */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 50rem; }
.plan { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 1.7rem; box-shadow: var(--shadow); }
.plan.best { border-color: var(--yellow); }
.plan .badge { position: absolute; top: -0.8rem; left: 1.4rem; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 0.8rem; padding: 0.2rem 0.65rem; border-radius: 999px; }
.plan .amount { font-size: 2.6rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; margin: 0.4rem 0 0.2rem; color: var(--text); }
.plan .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; }
.plan li { display: flex; gap: 0.55rem; margin-bottom: 0.5rem; font-size: 0.98rem; }
.plan li::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2315191e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.plan .btn { width: 100%; }
.keep-days { margin-top: 1.4rem; max-width: 50rem; display: flex; gap: 0.9rem; align-items: flex-start; background: var(--yellow-soft); border-radius: var(--radius); padding: 1rem 1.2rem; border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent); }
.keep-days p { margin: 0; }

/* FAQ — details/summary, so it works with no JavaScript. */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--yellow-soft); display: grid; place-items: center; font-weight: 800; }
.faq details[open] summary::after { content: "−"; background: var(--yellow); color: var(--ink); }
.faq details > div { padding: 0 0 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Final call to action. */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }
.cta h2 { max-width: 34rem; margin-inline: auto; }

/* Trade pages. */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.split { display: grid; gap: 2.5rem; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.3fr 0.7fr; } .split .sticky { position: sticky; top: 6rem; } }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; font-size: 0.95rem; }
.foot-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: 1.8rem; }
.foot-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.6rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 0.35rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.fine { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Small spacing helpers — the CSP forbids inline style attributes. */
.band .kicker { color: #9aa4ae; }
.tight-top { padding-top: 0; }
.cta-sub { margin-bottom: 1.6rem; }
.foot-tag { margin-top: 0.7rem; }
.plan-name { font-size: 1.3rem; margin: 0; }
.btn-row.spaced { margin-bottom: 2rem; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.lost .btn-row { justify-content: center; }
.lost .lede { margin-inline: auto; }
