/* CloudHire Careers landing pages. Light theme only, mobile first. */
:root {
  color-scheme: light only;
  --bg: #ffffff;
  --bg-soft: #fff7f0;
  --bg-alt: #f7f8fa;
  --ink: #1b1f27;
  --muted: #5b6472;
  --line: #e7e9ee;
  --orange: #d54a00;
  --orange-dark: #b93c08;
  --orange-tint: #ffeadb;
  --h1: 30px; --h2: 24px; --h3: 18px;
  --green: #12805c;
  --green-tint: #e3f5ed;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(27, 31, 39, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  padding-bottom: 84px; /* room for sticky CTA on mobile */
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
section { padding: 44px 0; }
.alt { background: var(--bg-alt); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin: 0 0 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); font-weight: 800; margin-bottom: 10px; }
h3 { font-size: var(--h3); font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 18px; text-decoration: none; }
.logo span { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 2px solid transparent;
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(213,74,0,.28); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 28px 0 40px; }
.tag { display: inline-block; background: var(--orange-tint); color: var(--orange-dark); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.subhead { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 14px 0 20px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.role-line { font-size: 14px; font-weight: 600; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.hero-card { margin-top: 28px; }
.card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.live { font-size: 11px; letter-spacing: .08em; color: var(--green); background: var(--green-tint); padding: 3px 8px; border-radius: 999px; }
.amount { font-size: 44px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.status { font-weight: 700; white-space: nowrap; }
.status.paid { color: var(--green); }
.status.pending { color: var(--orange-dark); }
.status.review { color: var(--muted); }
.split-bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; font-weight: 800; margin: 6px 0 16px; }
.split-bar .a { flex: 85; background: var(--orange); color: #fff; display: flex; align-items: center; padding-left: 14px; }
.split-bar .b { flex: 15; background: var(--orange-tint); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; }
.rate-pill { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.rate-pill strong { color: var(--orange); font-size: 22px; }

/* Highlights */
.highlights { display: grid; gap: 12px; }
.hl { background: var(--bg-soft); border: 1px solid var(--orange-tint); border-radius: var(--radius); padding: 18px 20px; }
.hl .big { font-size: 28px; font-weight: 800; color: var(--orange-dark); line-height: 1.15; }
.hl .sup { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 17px; margin-bottom: 2px; }
.steps span { color: var(--muted); }
.steps.day li::before { content: none; }
.steps.day li { padding-left: 20px; }
.steps.day .when { display: inline-block; font-size: 12px; font-weight: 800; color: var(--orange-dark); background: var(--orange-tint); padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }

/* Earning table / potential */
.potential { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 10px; }
.potential div { flex: 1; }
.potential .k { font-size: 13px; color: var(--muted); }
.potential .v { font-size: 26px; font-weight: 800; }
.potential .v.o { color: var(--orange); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td:last-child { font-weight: 800; color: var(--orange-dark); }
.boost { margin-top: 18px; background: var(--orange-tint); border: 1px solid #ffd2b3; border-radius: var(--radius); padding: 20px; }

/* Lists */
.two-col { display: grid; gap: 16px; }
.list { list-style: none; padding: 0; margin: 12px 0 0; }
.list li { position: relative; padding: 8px 0 8px 30px; }
.list li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.path { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.path .node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.path .node.start { border-color: var(--orange); background: var(--orange-tint); }
.path .node small { display: block; font-weight: 500; color: var(--orange-dark); }
.path .arrow { text-align: center; color: var(--orange); font-weight: 800; line-height: 1; }
.basics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.basics > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.basics > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.basics .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.basics .v { font-weight: 700; margin-top: 2px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
summary { cursor: pointer; padding: 16px 44px 16px 16px; font-weight: 700; list-style: none; position: relative; min-height: 52px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 22px; color: var(--orange); }
details[open] summary::after { content: "–"; }
details p { padding: 0 16px 16px; margin: 0; color: var(--muted); }

/* Apply */
.apply { background: var(--bg-soft); }
.apply .card { margin-top: 18px; }
.apply-links { text-align: center; margin-top: 18px; font-size: 15px; }
.apply-links a { color: var(--orange-dark); font-weight: 700; }

/* Footer */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 28px 0; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(27,31,39,.08); }

/* Apply (form host) page */
.form-page { padding-bottom: 0; }
.form-host { min-height: 100vh; min-height: 100dvh; }
.form-host iframe { display: block; width: 100%; height: 100vh; height: 100dvh; border: 0; }
.placeholder { max-width: 520px; margin: 48px auto; text-align: center; padding: 0 20px; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  section { padding: 64px 0; }
  :root { --h1: 48px; --h2: 34px; --h3: 20px; }
  .hero { padding: 56px 0 64px; }
  .hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
  .hero-card { margin-top: 0; }
  .cta-row { flex-direction: row; }
  .highlights { grid-template-columns: repeat(3, 1fr); }
  .steps.cols { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 32px; }
  .path { flex-direction: row; align-items: center; }
  .path .node { flex: 1; }
  .path .arrow { transform: rotate(-90deg); }
  .basics { grid-template-columns: repeat(3, 1fr); }
  .basics > div:last-child:nth-child(odd) { grid-column: auto; }
}

/* Logo + per-section CTAs */
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { height: 24px; width: auto; display: block; }
.logo-sub { font-size: 13px; font-weight: 700; color: var(--muted); padding-left: 8px; border-left: 1px solid var(--line); }
.section-cta { margin-top: 28px; }
.section-cta .btn { width: 100%; }
@media (min-width: 768px) {
  .logo img { height: 28px; }
  .section-cta .btn { width: auto; min-width: 300px; }
}

/* Thank-you pages */
.ty { padding: 28px 0 56px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 60%); }
.ty .wrap { max-width: 640px; }
.ty-card { text-align: center; padding: 28px 20px; }
.ty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ty-card .btn { margin-top: 8px; }
.ty-block { margin-top: 24px; }
.ty-block h3 { font-size: 20px; margin-bottom: 8px; }
.ty-back { text-align: center; margin-top: 24px; }
.ty-back a { color: var(--orange-dark); font-weight: 700; }

/* Fixes: long ledger statuses wrap instead of overflowing; logo white box blends into tinted bg */
.ledger-row > span:first-child { flex: 1; min-width: 0; }
.ledger-row .status { white-space: normal; text-align: right; max-width: 52%; }
.logo img { mix-blend-mode: multiply; }

/* ---- Polish pass: hierarchy, consistency, accessibility ---- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.lead { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.tight { padding-top: 8px; }
.narrow { max-width: 640px; }
.center { text-align: center; }
.hl { padding: 16px 18px; }
.hl .big { font-size: 24px; }
.card .label { margin-bottom: 6px; }
td.band { color: inherit; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.sticky-cta { transition: transform .2s ease; }
.sticky-cta.hide { transform: translateY(110%); }
@media (min-width: 768px) { .subhead { font-size: 19px; } .hl .big { font-size: 28px; } }

/* How it works + what you can earn */
.glance { display: grid; gap: 14px; margin-top: 16px; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-steps li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mini-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mini-steps b { display: block; line-height: 1.25; }
.mini-steps span.t { color: var(--muted); font-size: 14px; }
.earn-card { background: var(--bg-soft); border-color: var(--orange-tint); text-align: center; }
.earn-card .amount { font-size: 40px; }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { background: #fff; border: 1px solid var(--orange-tint); color: var(--orange-dark); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
@media (min-width: 768px) { .glance { grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; } .earn-card { display: flex; flex-direction: column; justify-content: center; } }

/* Success animation (thank-you page) */
.success { position: relative; width: 96px; height: 96px; margin: 8px auto 18px; }
.success svg { display: block; animation: pop-in .45s cubic-bezier(.2,1.4,.4,1) both; }
.success .ring { fill: var(--green-tint); stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s .1s ease-out forwards; }
.success .tick { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .6s ease-out forwards; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: var(--c); opacity: 0; animation: burst .9s var(--t) .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.5) rotate(180deg); } }
@media (prefers-reduced-motion: reduce) {
  .success svg, .success .ring, .success .tick { animation: none; stroke-dashoffset: 0; }
  .confetti { display: none; }
}
