/* EvenHire landing. Tokens come from tokens.css (generated from design/tokens.draft.json).
   One spacing scale, one radius family, one button pair, one link look. */

@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/epilogue-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/epilogue-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 var(--t-body)/1.6 "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 80px; }
@media (max-width: 899px) { .wrap { padding-inline: 40px; } }
@media (max-width: 639px) { .wrap { padding-inline: 24px; } }

/* Type */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.02em; }
p { max-width: 62ch; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-text); max-width: 52ch; }
.muted { color: var(--c-text-muted); }

/* Links, focus */
a { color: var(--c-accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-o); border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 30; padding: 12px 16px; min-height: 44px;
  background: var(--c-accent); color: var(--c-on-accent); border-radius: var(--r-btn); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* Buttons: one pair */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px;
  border-radius: var(--r-btn); border: 1.5px solid var(--c-accent); font: 500 1rem/1 "Epilogue", system-ui, sans-serif;
  text-decoration: none; cursor: pointer; transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: color-mix(in oklab, var(--c-accent) 86%, var(--c-text)); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--c-accent); }
.btn--secondary:hover { background: var(--c-accent-subtle); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 639px) { .btn-row .btn { width: 100%; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 36px; width: auto; }
.nav-links { display: none; gap: var(--s-5); }
.nav-links a, .lang a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text); text-decoration: none; font-weight: 500; font-size: var(--t-small);
  text-decoration: none; text-underline-offset: 0.5em; text-decoration-thickness: 1.5px;
}
.nav-links a:hover, .lang a:hover { text-decoration: underline; }
.lang { display: flex; gap: var(--s-1); }
.lang a { padding-inline: 10px; }
.lang a[aria-current="page"] { color: var(--c-accent); text-decoration: underline; }
@media (min-width: 1100px) { .nav-links { display: flex; } }

/* Sections: one idea each */
.sec { padding-block: 96px 88px; }
.sec--alt { background: var(--c-surface); }
.sec > .wrap > h2 { max-width: 20ch; }
.sec-intro { margin-top: var(--s-4); color: var(--c-text); font-size: var(--t-lead); line-height: 1.5; max-width: 54ch; }
.sec-body { margin-top: 48px; }
@media (max-width: 639px) { .sec { padding-block: 64px 56px; } .sec-body { margin-top: 32px; } }

/* Hero */
.hero { padding-block: 64px 96px; overflow-x: clip; }
.hero-copy { max-width: 880px; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: var(--s-4); }
.hero-copy h1 { max-width: 36ch; font-size: clamp(2.25rem, 1.2rem + 3.2vw, 4rem); }
.hero-copy .lead { max-width: 54ch; }
.tagline { margin: 0; font-weight: 600; font-size: var(--t-lead); letter-spacing: -0.01em; color: var(--c-accent); }
.descriptor { display: block; margin-top: 2px; font-weight: 500; font-size: var(--t-small); letter-spacing: 0.01em; color: var(--c-text-muted); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 14px; border-radius: 999px;
  background: var(--c-accent-subtle); color: var(--c-accent); font-size: var(--t-label); font-weight: 500;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero .btn-row { justify-content: center; margin-top: var(--s-2); }
.hero-stage { margin-top: 40px; padding-inline: 0; position: relative; }
@media (max-width: 639px) { .hero { padding-block: 40px 64px; } .hero-stage { margin-top: 40px; } }

/* Hero entrance: runs once, CSS only, content is visible without script */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  [data-enter] .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  [data-enter] .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  [data-enter] .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-stage { animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Product mock: live HTML with fictional data */
.app { background: var(--c-surface-raised); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px -40px color-mix(in oklab, var(--c-accent) 50%, transparent); text-align: left; }
.app-bar { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-4); background: var(--c-surface); border-bottom: 1px solid var(--c-border); color: var(--c-text-muted); font-size: var(--t-label); font-weight: 500; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong); opacity: 0.55; }
.app-bar span { margin-left: var(--s-2); }
.app-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; }
.app-job { padding: 32px; display: grid; gap: var(--s-4); align-content: start; }
.app-job .job-title { font-size: 1.5rem; letter-spacing: -0.03em; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; background: var(--c-accent-subtle); color: var(--c-accent); font-size: var(--t-label); font-weight: 500; }
.app-fee { padding: 32px; background: var(--c-surface); border-left: 1px solid var(--c-border); display: grid; gap: var(--s-4); align-content: start; }
.app-fee .fee-title { margin: 0; font-size: var(--t-small); font-weight: 500; color: var(--c-text-muted); }
.fee-rows { display: grid; gap: 0; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-raised); }
.fee-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--c-border); font-size: var(--t-small); }
.fee-row:last-child { border-bottom: 0; }
.fee-row b { font-weight: 500; }
.fee-row small { display: block; font-size: var(--t-label); color: var(--c-text-muted); }
.fee-row .val { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 6px; font-size: var(--t-label); font-weight: 500; }
.val--in { background: var(--c-accent-subtle); color: var(--c-money-positive); }
.val--shown { background: var(--c-accent-subtle); color: var(--c-accent); }
.app-action { display: flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-btn); background: var(--c-accent); color: var(--c-on-accent); font-weight: 500; width: fit-content; }
@media (max-width: 859px) {
  .app-main { grid-template-columns: 1fr; }
  .app-fee { border-left: 0; border-top: 1px solid var(--c-border); }
  .app-job, .app-fee { padding: 20px; }
  .app-job .job-title { font-size: 1.25rem; }
}
.icon-ok { width: 20px; height: 20px; flex: none; }

/* Audiences */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.aud-list { display: grid; gap: var(--s-5); }
.aud { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); }
.aud-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-accent-subtle); display: grid; place-items: center; }
.aud-icon svg { width: 24px; height: 24px; }
.aud p { margin-top: 6px; color: var(--c-text-muted); }
.triangle { width: 100%; max-width: 560px; height: auto; margin-inline: auto; }
@media (max-width: 999px) { .split { grid-template-columns: 1fr; gap: 48px; } }

/* SVG painting uses tokens, so dark mode follows */
.s-accent { stroke: var(--c-accent); }
.s-strong { stroke: var(--c-border-strong); }
.f-accent { fill: var(--c-accent); }
.f-raised { fill: var(--c-surface-raised); }
.f-on { fill: var(--c-on-accent); }
.f-text { fill: var(--c-text); }
.f-muted { fill: var(--c-text-muted); }
.svg-label { font: 500 24px "Epilogue", system-ui, sans-serif; letter-spacing: -0.01em; }
.svg-sub { font: 400 20px "Epilogue", system-ui, sans-serif; }

/* Money flow */
.flow { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; gap: 0; }
.flow-card { background: var(--c-surface-raised); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 28px; display: grid; gap: var(--s-3); align-content: start; }
.flow-card h3 { display: flex; align-items: center; gap: var(--s-3); }
.flow-card .step { font-size: var(--t-label); font-weight: 500; color: var(--c-text-muted); }
.flow-card--key { border-color: var(--c-accent); border-width: 2px; }
.flow-card ul { display: grid; gap: var(--s-3); }
.flow-card li { padding-left: 16px; position: relative; }
.flow-card li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; background: var(--c-accent); }
.flow-card li b { font-weight: 500; }
.flow-link { display: grid; place-items: center; }
.flow-link svg { width: 40px; height: 24px; overflow: visible; }
.flow-link path { fill: none; stroke: var(--c-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.never-pay { margin-top: var(--s-5); display: flex; align-items: center; gap: var(--s-3); padding: 16px 20px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-surface-raised); max-width: 720px; }
.never-pay svg { width: 32px; height: 32px; flex: none; }
.never-pay p { max-width: none; font-weight: 500; }
@media (max-width: 999px) {
  .flow { grid-template-columns: 1fr; }
  .flow-link { min-height: 40px; }
  .flow-link svg { transform: rotate(90deg); }
}

/* The one dealt moment: connectors draw in once when the money flow scrolls into view */
.js .flow:not(.is-in) .flow-link path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow.is-in .flow-link path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s ease 0.15s; }
.flow.is-in .flow-link:nth-of-type(4) path { transition-delay: 0.5s; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.step-list { display: grid; gap: 0; counter-reset: s; }
.step-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); padding-block: 20px; border-bottom: 1px solid var(--c-border); counter-increment: s; }
.step-list li:first-child { padding-top: 0; }
.step-list li:last-child { border-bottom: 0; }
.step-list li::before { content: counter(s, decimal-leading-zero); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--t-small); color: var(--c-accent); font-weight: 500; padding-top: 4px; }
.step-list p { margin-top: 4px; color: var(--c-text-muted); }
.app--narrow { max-width: 520px; margin-inline: 0; }
.contract { padding: 24px; display: grid; gap: var(--s-4); }
.contract .contract-title { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s-3); align-items: center; padding-block: 10px; border-bottom: 1px solid var(--c-border); font-size: var(--t-small); }
.timeline li:last-child { border-bottom: 0; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-accent); display: grid; place-items: center; }
.dot--done { background: var(--c-accent); }
.dot--done::after { content: ""; width: 6px; height: 10px; border: solid var(--c-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.invoice { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.invoice .fee-row { background: transparent; }
@media (max-width: 999px) { .steps { grid-template-columns: 1fr; gap: 48px; } .app--narrow { max-width: none; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 699px) { .principles { grid-template-columns: 1fr; } }
.principle { min-height: 260px; background: var(--c-surface-raised); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 24px; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); align-content: start; }
.principle svg { width: 32px; height: 32px; }
.principle p { color: var(--c-text); max-width: none; font-weight: 500; line-height: 1.35; font-size: 1.375rem; letter-spacing: -0.02em; }
.principle { grid-template-columns: 1fr; align-content: start; min-height: 0; }

/* FAQ */
.faq { max-width: none; border-top: 1px solid var(--c-border-strong); }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding-block: 12px; cursor: pointer; font-weight: 500; font-size: 1.125rem; list-style: none; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: 4px; border-radius: 6px; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border: solid var(--c-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--c-text-muted); max-width: 62ch; }

/* Close */
.contact-card { background: var(--c-accent-subtle); border-radius: var(--r-lg); padding: 40px; display: grid; gap: var(--s-4); align-content: start; }
.contact-card p { color: var(--c-text); font-size: var(--t-lead); line-height: 1.5; }
.contact-card h3 { font-size: var(--t-h3); }

/* Footer */
.site-footer { padding-block: 48px; border-top: 1px solid var(--c-border); font-size: var(--t-small); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); }
.site-footer h3 { font-size: var(--t-small); letter-spacing: 0; font-weight: 500; margin-bottom: var(--s-3); color: var(--c-text-muted); }
.site-footer p, .site-footer dd { color: var(--c-text); max-width: 46ch; }
.site-footer dl { display: grid; gap: var(--s-2); }
.site-footer dt { color: var(--c-text-muted); font-size: var(--t-label); }
.site-footer .brand img { height: 30px; }
.site-footer .footer-desc { margin: var(--s-2) 0 var(--s-2); font-weight: 500; color: var(--c-text-muted); }
.footer-note { margin-top: 40px; padding-top: var(--s-4); border-top: 1px solid var(--c-border); color: var(--c-text-muted); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-color-scheme: dark) {
  .app { box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .flow:not(.is-in) .flow-link path { stroke-dashoffset: 0; }
}
