/* ============================================================
   WORK — joinwork.ai platform landing (static)
   Ported VERBATIM from the Claude-Design project's
   `Work Main Landing.html` <style> block. Held rules removed with
   their sections (fake live feed, stats band, testimonials) — see
   index.html header comment for the full truth-boundary list.
   ============================================================ */

/* Self-hosted Inter variable (latin) — CSP font-src 'self' */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #F4F2EC; --surface: #FFFFFF; --surface-2: #FAF8F3; --surface-inset: #F0EDE4;
    --ink: #191D1B; --ink-2: #575E5A; --ink-3: #6E7370;
    --line: #E7E3D9; --line-2: #EFEBE1;
    --green: #15643F; --green-hover: #124F33; --green-soft: #E4EEE7; --green-ink: #0E3B26; --green-lite: #8FE9BE;
    --blue: #2456B8; --blue-hover: #1E4AA2; --blue-soft: #E5EAF8; --blue-ink: #16367A; --blue-lite: #9CC9F2;
    --gold: #9C6B22;
    --dark-a: #151816; --dark-b: #101315;
    --on-dark-2: rgba(255,255,255,0.74); --on-dark-3: rgba(255,255,255,0.5);
    --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px;
    --shadow-sm: 0 1px 2px rgba(20,22,21,0.05);
    --shadow-md: 0 10px 30px -12px rgba(20,22,21,0.2), 0 2px 6px rgba(20,22,21,0.04);
    --shadow-lg: 0 40px 80px -30px rgba(16,18,17,0.4), 0 8px 24px -12px rgba(16,18,17,0.12);
    --maxw: 1160px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', -apple-system, system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; letter-spacing: -0.011em; line-height: 1.5; }
  h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.06; font-weight: 800; text-wrap: balance; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  a:hover { color: inherit; }
  ::selection { background: var(--ink); color: var(--bg); }
  a:focus-visible, button:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; }
  .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
  .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-3); }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: var(--r-md); font: inherit; font-weight: 650; font-size: 16px; cursor: pointer; border: none; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; }
  .btn:active { transform: scale(0.98); }
  .btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgba(21,100,63,0.5); }
  .btn-green:hover { background: var(--green-hover); }
  .btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(36,86,184,0.5); }
  .btn-blue:hover { background: var(--blue-hover); }
  .btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
  .btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
  svg { display: block; }

  .rv { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
  .rv.in { opacity: 1; transform: none; }
  .rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
  @media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

  header.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
  header.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(20,22,21,0.25); }
  .nav-inner { display: flex; align-items: center; gap: 14px; height: 70px; }
  .logo { display: inline-flex; align-items: baseline; font-weight: 900; font-size: 23px; letter-spacing: -0.05em; }
  .logo::after { content: "."; color: var(--ink-3); }
  .nav-links { display: flex; gap: 4px; margin-left: 22px; }
  .nav-links a { padding: 9px 14px; border-radius: 10px; font-size: 15px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
  .nav-links a:hover { background: var(--surface-inset); color: var(--ink); }
  .nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .lang { display: inline-flex; background: var(--surface-inset); border-radius: 999px; padding: 3px; }
  .lang button { border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
  .lang button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

  .hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--dark-a), var(--dark-b)); color: #fff; padding: clamp(60px, 7.5vw, 110px) 0 clamp(60px, 7vw, 100px); }
  .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 520px at 50% -14%, rgba(255,255,255,0.1), transparent 62%); }
  .hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 72%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 72%); }
  .hero-inner { position: relative; z-index: 1; text-align: center; }
  @keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero-inner > * { animation: heroRise .7s cubic-bezier(.2,.7,.3,1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .08s; }
  .hero-inner > *:nth-child(3) { animation-delay: .16s; }
  .hero-inner > *:nth-child(4) { animation-delay: .26s; }
  .hero-inner > *:nth-child(5) { animation-delay: .38s; }
  @media (prefers-reduced-motion: reduce) { .hero-inner > * { animation: none; } }
  .hero .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 650; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: var(--on-dark-2); }
  .hero .pill i { width: 7px; height: 7px; border-radius: 99px; background: #3DD68C; display: inline-block; box-shadow: 0 0 0 0 rgba(61,214,140,.6); animation: ping 2.2s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,214,140,.55); } 70% { box-shadow: 0 0 0 9px rgba(61,214,140,0); } 100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); } }
  .hero h1 { font-size: clamp(36px, 5.8vw, 70px); font-weight: 850; margin-top: 26px; letter-spacing: -0.04em; }
  .hero p.sub { color: var(--on-dark-2); font-size: clamp(17px, 1.7vw, 20px); margin: 22px auto 0; max-width: 58ch; line-height: 1.55; font-weight: 450; }
  .hero p.sub .kw, .hero p.sub .ke { color: #fff; font-weight: 650; }

  .paths { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: clamp(38px, 4.5vw, 56px) auto 0; text-align: left; }
  .amp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 99px; background: var(--dark-b); border: 1px solid rgba(255,255,255,0.22); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5); z-index: 2; }
  .path { border-radius: var(--r-xl); padding: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.11); backdrop-filter: blur(4px); display: flex; flex-direction: column; transition: transform .18s, border-color .18s, background .18s; }
  .path:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.24); }
  .path .pk { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; }
  .path.pw .pk { color: var(--green-lite); }
  .path.pe .pk { color: var(--blue-lite); }
  .path h3 { font-size: 25px; margin-top: 10px; color: #fff; }
  .mock { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 12px 15px; margin-top: 18px; min-height: 74px; }
  .mock .mk { font-size: 10.5px; color: var(--on-dark-3); font-weight: 600; }
  .mock .mv { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
  .mock .mtag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; white-space: nowrap; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
  .mock .mbar { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.14); margin-top: 7px; overflow: hidden; width: 100%; }
  .mock .mbar i { display: block; height: 100%; width: 75%; border-radius: 99px; background: rgba(255,255,255,0.75); }
  .path ul { list-style: none; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 10px; }
  .path li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--on-dark-2); font-weight: 500; }
  .path li svg { flex-shrink: 0; }
  .path .btn { margin-top: auto; }

  section.band { padding: clamp(56px, 8vw, 104px) 0; }
  .sec-head { text-align: center; max-width: 660px; margin: 0 auto clamp(36px, 5vw, 60px); }
  .sec-head .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
  .sec-head .eyebrow::before, .sec-head .eyebrow::after { content: ""; width: 26px; height: 1px; background: color-mix(in srgb, var(--ink-3) 45%, transparent); }
  .sec-head h2 { font-size: clamp(30px, 4vw, 46px); }
  .sec-head p { color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); margin-top: 16px; line-height: 1.5; font-weight: 450; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
  .steps::before { content: ""; position: absolute; top: 28px; left: 11%; right: 11%; border-top: 2px dashed var(--line); }
  .step { position: relative; }
  .step .badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; position: relative; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 0 0 8px var(--bg), var(--shadow-sm); }
  .step .badge .n { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 3px solid var(--bg); }
  .stag { display: inline-flex; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; }
  .stag.te { background: var(--blue-soft); color: var(--blue-ink); }
  .stag.tw { background: var(--green-soft); color: var(--green-ink); }
  .stag.tb { background: var(--surface-inset); color: var(--ink-2); }
  .step h3 { font-size: 21px; font-weight: 750; }
  .step p { color: var(--ink-2); margin-top: 8px; font-size: 15px; line-height: 1.5; }

  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .side { border-radius: var(--r-xl); padding: clamp(26px, 3.5vw, 40px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; scroll-margin-top: 90px; transition: box-shadow .2s, transform .2s; }
  .side:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .side .pk { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
  .side.sw .pk { color: var(--green); }
  .side.se .pk { color: var(--blue); }
  .side h3 { font-size: clamp(23px, 2.5vw, 29px); margin-top: 12px; }
  .side ul { list-style: none; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 13px; }
  .side li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink); font-weight: 500; line-height: 1.45; }
  .side li svg { flex-shrink: 0; margin-top: 3px; }
  .side .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; transition: gap .15s; }
  .side.sw .go { color: var(--green); }
  .side.se .go { color: var(--blue); }
  .side .go:hover { gap: 13px; }

  /* updates digest */
  .ubanner { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
  .ubanner svg { color: var(--ink); flex-shrink: 0; }
  .ubanner p { font-size: 14.5px; font-weight: 550; color: var(--ink); flex: 1; }
  .ubanner .ud { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); background: var(--surface-inset); padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
  .updates { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .ucard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
  .ucard .pk { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
  .ucard.uw .pk { color: var(--green); }
  .ucard.ue .pk { color: var(--blue); }
  .urow { padding: 15px 0; border-bottom: 1px solid var(--line-2); }
  .urow.last { border-bottom: 0; }
  .urow .ut { display: flex; align-items: baseline; gap: 10px; }
  .urow h3 { font-size: 16.5px; font-weight: 750; letter-spacing: -0.015em; }
  .urow .ud { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
  .urow p { color: var(--ink-2); font-size: 14px; margin-top: 5px; line-height: 1.5; }
  .ucard .go { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; transition: gap .15s; }
  .ucard.uw .go { color: var(--green); }
  .ucard.ue .go { color: var(--blue); }
  .ucard .go:hover { gap: 13px; }

  .trustrow { display: flex; justify-content: center; align-items: center; gap: 14px 38px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 54px); }
  .titem { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
  .titem svg { color: var(--ink); flex-shrink: 0; }

  .cta { background: linear-gradient(165deg, var(--dark-a), var(--dark-b)); color: #fff; border-radius: var(--r-xl); padding: clamp(44px, 6.5vw, 80px); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
  .cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 320px at 50% -16%, rgba(255,255,255,0.12), transparent 62%); }
  .cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 75%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 75%); }
  .cta h2 { position: relative; font-size: clamp(32px, 4.4vw, 52px); }
  .cta p { position: relative; color: var(--on-dark-2); font-size: 18px; margin-top: 16px; }
  .cta-actions { position: relative; margin: 32px auto 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .cta-note { position: relative; margin-top: 18px; font-size: 13.5px; color: var(--on-dark-3); font-weight: 550; }

  footer.foot { padding: 64px 0 40px; border-top: 1px solid var(--line); }
  .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
  .foot-brand p { color: var(--ink-2); font-size: 14px; margin-top: 14px; max-width: 32ch; line-height: 1.5; }
  .foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; margin-bottom: 14px; }
  .foot-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 6px 0; font-weight: 500; }
  .foot-col a:hover { color: var(--ink); }
  .foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .foot-bottom p { color: var(--ink-3); font-size: 13px; }
  .foot-social { display: flex; gap: 8px; }
  .foot-social a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: color .15s, border-color .15s; }
  .foot-social a:hover { color: var(--ink); border-color: var(--ink-3); }
  .tag-soon { font-size: 9px; font-weight: 700; color: var(--ink-2); background: var(--surface-inset); padding: 2px 6px; border-radius: 99px; vertical-align: middle; margin-left: 4px; }

  @media (max-width: 1080px) {
    .nav-links { display: none; }
  }
  @media (max-width: 920px) {
    .paths, .duo, .updates { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .amp { display: none; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .foot-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 680px) {
    .steps, .news { grid-template-columns: 1fr; }
    .nav-inner { gap: 8px; height: 62px; }
    .logo { font-size: 20px; }
    .lang button { padding: 5px 9px; font-size: 12px; }
    .nav-cta { gap: 7px; }
    .nav-cta .btn-sm { height: 38px; padding: 0 12px; font-size: 13px; }
    .path { padding: 22px; }
    .feed { min-width: 0; }
    .trustrow { flex-direction: column; align-items: flex-start; gap: 14px; }
    .foot-grid { grid-template-columns: 1fr; }
    .foot-bottom { justify-content: center; text-align: center; }
  }
