/* The home page and /jobs (built by scripts/build-site.tsx). Same tokens as cf.css and blog.css. */

.cfh { padding: 0 0 40px; }
.cfh section { scroll-margin-top: 96px; }
.cfh h1, .cfh h2, .cfh h3 { color: var(--cf-ink); font-weight: 500; }
.cfh p { margin: 0; }

/* ------------------------------------------------------------------ hero */
.cfh-hero { padding: 40px 0 72px; }
.cfh-hero .cf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.cfh-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--cf-soft); font-size: 14px; color: var(--cf-ink);
}
.cfh-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: cfh-pulse 2s infinite; flex: none; }
@keyframes cfh-pulse { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.cfh-hero h1 { margin: 18px 0 0; font-size: 56px; line-height: 1.04; letter-spacing: -2px; }
.cfh-hero .cfh-sub { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--cf-muted); max-width: 540px; }
.cfh-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cfh .cf-btn { padding: 14px 24px; font-size: 17px; }
.cfh-note { font-size: 14px; color: var(--cf-muted); }

.cfh-two { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.cfh-two li { display: flex; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--cf-muted); }
.cfh-two b { color: var(--cf-ink); font-weight: 600; }
.cfh-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%; background: var(--cf-accent); color: #fff; font-size: 14px; font-weight: 600;
}

/* ------------------------------------------------------------------ why it works */
.cfh-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cfh-why-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 18px; background: var(--cf-soft); }
.cfh-why-label { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; color: var(--cf-ink); }
.cfh-why-big { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -2px; color: var(--cf-ink); }
.cfh-why-card > p { font-size: 16px; line-height: 1.55; color: var(--cf-muted); }
.cfh-why-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--cf-line); display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cf-muted); }
.cfh-why-foot b { color: var(--cf-ink); }
.cfh-ba { display: flex; flex-direction: column; gap: 8px; }
.cfh-ba-row { padding: 12px 14px; border-radius: 12px; background: #fff; }
.cfh-ba-row span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--cf-muted); }
.cfh-ba-row p { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--cf-ink); }
.cfh-ba-row.before p { color: var(--cf-muted); text-decoration: line-through; text-decoration-color: rgba(192, 53, 43, .5); }
.cfh-ba-row.after { box-shadow: inset 0 0 0 1.5px #b9e3c8; }
.cfh-ba-row.after span { color: #0f7a3d; }
.cfh-ba-row mark { background: #e7f6ec; color: #0f5f31; padding: 0 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ live job cards */
/* A short gradient streak that travels around the card's border; the rest of the border stays a plain line.
   No glow or shadow: only the border moves. */
@property --cfj-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cfj-ring {
  position: relative; min-width: 0; padding: 1.5px; border-radius: 19.5px;
  background: conic-gradient(
    from var(--cfj-turn),
    var(--cf-line) 0deg 260deg,
    #ffb347 290deg,
    #ff531f 310deg,
    #f43f8e 330deg,
    #8b5cf6 348deg,
    var(--cf-line) 360deg
  );
  animation: cfj-turn 4s linear infinite;
}
@keyframes cfj-turn { to { --cfj-turn: 360deg; } }
.cfj { border-radius: 18px; background: #fff; overflow: hidden; }
.cfj-in { animation: cfj-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cfj-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cfj-roles button { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.cfj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--cf-line); font-size: 14px; }
.cfj-head b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cfj-head span { color: var(--cf-muted); }
.cfj-roles { display: flex; gap: 6px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.cfj-roles::-webkit-scrollbar { display: none; }
.cfj-roles button {
  flex: none; padding: 6px 12px; border: 1px solid var(--cf-line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 13px; color: var(--cf-ink); cursor: pointer; white-space: nowrap;
}
.cfj-roles button[aria-pressed="true"] { background: var(--cf-ink); border-color: var(--cf-ink); color: #fff; }
.cfj-roles button small { display: inline-block; min-width: 3ch; margin-left: 4px; opacity: .6; font-size: 12px; text-align: left; }
.cfj-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; height: 300px; box-sizing: border-box; overflow: hidden; }
.cfj-job {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--cf-line); border-radius: 12px;
  height: 86px; box-sizing: border-box; flex: none; overflow: hidden;
  color: var(--cf-ink) !important; text-decoration: none; transition: border-color .15s ease, background .15s ease;
}
.cfj-job:hover { border-color: #cfcbc6; background: #fcfbfa; }
.cfj-logo { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; background: var(--cf-soft); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; }
.cfj-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfj-initials { font-size: 13px; font-weight: 600; color: var(--cf-muted); }
.cfj-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cfj-title { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfj-sub { font-size: 13px; color: var(--cf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfj-facts { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 4px; overflow: hidden; }
.cfj-chip { flex: none; padding: 1px 6px; border-radius: 6px; background: var(--cf-soft); font-size: 12px; font-weight: 500; white-space: nowrap; }
.cfj-chip.pay { background: #e7f6ec; color: #0f5f31; }
.cfj-chip.good { background: #e6f2fb; color: #0b5585; }
.cfj-chip.warn { background: #fff1e8; color: #9a3d0b; }
.cfj-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cfj-ago { font-size: 12px; color: var(--cf-muted); white-space: nowrap; }
.cfj-ago.is-fresh { color: #0f7a3d; font-weight: 600; }
.cfj-tailor { padding: 4px 10px; border-radius: 999px; background: var(--cf-ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cfj-skel { height: 86px; flex: none; border-radius: 12px; background: linear-gradient(90deg, var(--cf-soft), #fbfaf9, var(--cf-soft)); background-size: 200% 100%; animation: cfj-shine 1.4s infinite linear; }
@keyframes cfj-shine { to { background-position: -200% 0; } }
.cfj-empty { padding: 24px 8px; font-size: 14px; color: var(--cf-muted); text-align: center; }
.cfj-more {
  white-space: nowrap; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 16px 16px; padding: 12px; border-radius: 12px;
  background: var(--cf-soft); color: var(--cf-ink) !important; font-size: 14px; font-weight: 500; text-decoration: none;
}
.cfj-more:hover { background: #efece9; }
.cfj-more span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cfj-more svg { flex: none; }

/* ------------------------------------------------------------------ proof strip */
.cfh-proof { padding: 8px 0 72px; }
.cfh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cfh-stat { padding: 22px 24px; border-radius: 16px; background: var(--cf-soft); }
.cfh-stat b { display: block; font-size: 36px; line-height: 1; font-weight: 500; letter-spacing: -1px; color: var(--cf-ink); }
.cfh-stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--cf-muted); }
.cfh-logos { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 48px; }
.cfh-logos p { width: 100%; text-align: center; font-size: 14px; color: var(--cf-muted); }
.cfh-logos img { height: 28px; width: auto; filter: grayscale(1); opacity: .75; }

/* ------------------------------------------------------------------ section heads */
.cfh-block { padding: 72px 0; }
.cfh-block.soft { background: var(--cf-soft); }
.cfh-head { max-width: 680px; margin-bottom: 40px; }
.cfh-head h2 { margin: 10px 0 0; font-size: 44px; line-height: 1.08; letter-spacing: -1.4px; }
.cfh-head p { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--cf-muted); }

/* ------------------------------------------------------------------ how it works */
.cfh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.cfh-step { padding: 26px; border-radius: 16px; background: #fff; border: 1px solid var(--cf-line); }
.cfh-step::before {
  counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--cf-accent); color: #fff; font-weight: 600; font-size: 15px;
}
.cfh-step h3 { margin: 18px 0 0; font-size: 22px; letter-spacing: -.4px; }
.cfh-step p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--cf-muted); }

/* ------------------------------------------------------------------ features */
.cfh-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cfh-feature { padding: 28px; border-radius: 16px; border: 1px solid var(--cf-line); background: #fff; }
.cfh-feature .cfh-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #fff1e8; color: #b23a0a; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cfh-feature h3 { margin: 12px 0 0; font-size: 24px; letter-spacing: -.5px; }
.cfh-feature p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--cf-muted); }
.cfh-feature a { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--cf-ink); text-underline-offset: 3px; }
.cfh-also { margin-top: 20px; font-size: 15px; color: var(--cf-muted); text-align: center; }

/* ------------------------------------------------------------------ pricing */
.cfh-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 36px; border-radius: 20px; border: 1px solid var(--cf-line); background: #fff; }
.cfh-price h3 { margin: 0; font-size: 22px; }
.cfh-amount { margin-top: 10px; font-size: 48px; font-weight: 500; letter-spacing: -1.6px; color: var(--cf-ink); }
.cfh-amount small { font-size: 18px; color: var(--cf-muted); letter-spacing: 0; }
.cfh-price .cfh-or { margin-top: 4px; font-size: 15px; color: var(--cf-muted); }
.cfh-price .cf-btn { margin-top: 22px; }
.cfh-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cfh-timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 16px; line-height: 1.45; }
.cfh-timeline b { color: var(--cf-ink); font-weight: 600; }
.cfh-timeline span { color: var(--cf-muted); }

/* ------------------------------------------------------------------ faq + final */
.cfh-faq { max-width: 760px; }
.cfh-faq details { border-bottom: 1px solid var(--cf-line); padding: 18px 0; }
.cfh-faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; color: var(--cf-ink); display: flex; justify-content: space-between; gap: 16px; }
.cfh-faq summary::-webkit-details-marker { display: none; }
.cfh-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--cf-muted); }
.cfh-faq details[open] summary::after { content: "–"; }
.cfh-faq details p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--cf-muted); }
.cfh-final { margin-top: 24px; padding: 56px 32px; border-radius: 24px; background: var(--cf-ink); color: #fff; text-align: center; }
.cfh-final h2 { margin: 0 auto; max-width: 640px; color: #fff; font-size: 40px; line-height: 1.1; letter-spacing: -1.2px; }
.cfh-final p { margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: 16px; }
.cfh-final .cf-btn { margin-top: 24px; background: #fff; color: var(--cf-ink) !important; }
.cfh-final .cf-btn:hover { background: #f1f0ee; }

/* ------------------------------------------------------------------ /jobs */
.cfjp-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cfjp-role { padding: 18px; border-radius: 14px; border: 1px solid var(--cf-line); background: #fff; }
.cfjp-role b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.8px; color: var(--cf-ink); }
.cfjp-role span { display: block; margin-top: 4px; font-size: 14px; color: var(--cf-muted); }

[hidden] { display: none !important; }

/* ------------------------------------------------------------------ smaller screens */
@media screen and (max-width: 991px) {
  .cfh-hero .cf-wrap { grid-template-columns: 1fr; gap: 36px; }
  .cfh-hero h1 { font-size: 48px; letter-spacing: -1.6px; }
  .cfh-head h2 { font-size: 34px; }
  .cfh-steps, .cfh-stats { grid-template-columns: 1fr; }
  .cfh-features, .cfh-why { grid-template-columns: 1fr; }
  .cfh-price { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .cfjp-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .cfh-hero { padding: 16px 0 48px; }
  .cfh-hero h1 { font-size: 40px; letter-spacing: -1.2px; }
  .cfh-hero .cfh-sub, .cfh-two li { font-size: 16px; }
  .cfh-why-big { font-size: 44px; }
  .cfh-why-card { padding: 22px; }
  .cfh .cf-btn { width: 100%; justify-content: center; }
  .cfh-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .cfh-block { padding: 52px 0; }
  .cfh-head { margin-bottom: 28px; }
  .cfh-head h2 { font-size: 30px; letter-spacing: -.8px; }
  .cfh-stat b { font-size: 30px; }
  .cfj-list { padding: 10px 12px; height: 292px; }
  .cfj-roles { padding: 10px 12px 2px; }
  .cfj-more { margin: 0 12px 12px; }
  .cfj-tailor { display: none; }
  .cfj-facts .cfj-chip:nth-child(n+2) { display: none; }
  .cfh-final { padding: 40px 20px; }
  .cfh-final h2 { font-size: 30px; }
  .cfh-logos { gap: 14px 28px; }
  .cfh-logos img { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfh-dot, .cfj-skel, .cfj-ring, .cfj-in { animation: none; }
}
