/* jethr.uk — sito parodia per la candidatura Jet HR. Stile ispirato a jethr.com
   (Mona Sans, nero + lime), contenuti su Jacopo Barzago. Non affiliato a Jet HR. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/MonaSansVF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --ink: #11150a;
  --ink-soft: #585b54;
  --lime: #dfeb57;
  --lime-soft: #eff4b4;
  --paper: #ffffff;
  --paper-2: #f6f8f9;
  --radius: 999px;
  --maxw: 1080px;
  --font: "Mona Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- banner non affiliazione ---------- */
.disclaimer {
  background: var(--ink);
  color: var(--lime);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .01em;
  text-align: center;
  padding: 9px 16px;
}
.disclaimer a { color: #fff; text-underline-offset: 2px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #eceeea;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand .logo { height: 31px; width: auto; display: block; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- pill buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  padding: 13px 24px; border-radius: var(--radius); border: 1.5px solid var(--ink);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { background: var(--lime-soft); padding: 72px 0 64px; }
.hero h1 {
  font-weight: 800; letter-spacing: -.03em; line-height: .98;
  font-size: clamp(40px, 8vw, 86px); margin: 0 0 24px; max-width: 14ch;
}
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .42em; }
.scribble svg path { stroke: var(--lime); stroke-width: 14; fill: none; stroke-linecap: round; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink); max-width: 46ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.validated { margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.validated .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: #fff; border: 1px solid #e3e6dd; border-radius: var(--radius); padding: 6px 14px; font-weight: 700; font-size: 13px; }

/* ritratto nella hero */
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); }
.portrait-bg { position: absolute; inset: 0; border-radius: 32px; background: var(--lime); transform: rotate(-5deg) translate(14px, 10px); }
.portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 32px; background: #fff; box-shadow: 0 20px 44px rgba(17,21,10,.14); }
.portrait-tag { position: absolute; left: -22px; bottom: 26px; background: #fff; border-radius: 999px; padding: 10px 20px 10px 18px;
  box-shadow: 0 12px 28px rgba(17,21,10,.14); display: flex; flex-direction: column; line-height: 1.2; }
.portrait-tag strong { font-size: 15px; font-weight: 800; }
.portrait-tag span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* ---------- stats ---------- */
.section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); margin: 0 0 14px; }
.section h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(30px, 5vw, 50px); margin: 0 0 18px; max-width: 18ch; }
.section p.sub { font-size: 19px; color: var(--ink-soft); max-width: 54ch; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat { background: var(--paper-2); border: 1px solid #eceeea; border-radius: 20px; padding: 26px 22px; }
.stat .num { font-weight: 800; letter-spacing: -.03em; font-size: clamp(34px, 4.4vw, 48px); line-height: 1; }
.stat .lbl { margin-top: 10px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.stat .num.sm { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.5; }
.stat .num .u { font-size: .42em; font-weight: 700; letter-spacing: -.01em; margin-left: 6px; }
.stat .co { margin-top: 12px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.stat .co + .lbl { margin-top: 4px; }
.stat.accent { background: var(--lime); border-color: var(--lime); }

/* ---------- feature (prototipo) ---------- */
.feature { background: var(--ink); color: #fff; }
.feature .eyebrow { color: var(--lime); }
.feature h2 { color: #fff; }
.feature p.sub { color: #c9ccc4; }
.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; margin-top: 44px; }
.card-demo { background: #0b0e07; border: 1px solid #2a2f22; border-radius: 20px; padding: 22px; }
.row-demo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid #22271a; font-size: 15px; }
.row-demo:last-child { border-bottom: 0; }
.row-demo .co { font-weight: 700; }
.row-demo .sig { color: #c9ccc4; font-size: 13px; }
.score { background: var(--lime); color: var(--ink); font-weight: 800; border-radius: var(--radius); padding: 3px 11px; font-size: 13px; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; }
.feature ul li { padding: 9px 0 9px 30px; position: relative; color: #e7e9e3; }
.feature ul li::before { content: "→"; position: absolute; left: 0; color: var(--lime); font-weight: 800; }

/* ---------- quote ---------- */
.quote { background: var(--paper); text-align: center; }
.quote blockquote { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; font-size: clamp(24px, 4vw, 40px); margin: 0 auto; max-width: 20ch; }
.quote .who { margin-top: 22px; color: var(--ink-soft); font-weight: 600; }

/* ---------- cta final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { margin: 0 auto 10px; }
.cta-final .hero-actions { justify-content: center; margin-top: 26px; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #c9ccc4; padding: 48px 0 40px; font-size: 14.5px; }
footer .brand { color: #fff; margin-bottom: 16px; }
footer .foot-note { max-width: 62ch; line-height: 1.6; }
footer a { color: #fff; }
footer .fine { margin-top: 26px; padding-top: 20px; border-top: 1px solid #2a2f22; color: #8d9185; font-size: 13px; }

/* ---------- storia (email + scrollytelling) ---------- */
.story { background: var(--paper-2); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; margin-top: 44px; }
.story-sticky { align-self: start; }

/* email */
.mail { background: #fff; border: 1px solid #e6e8e3; border-radius: 16px; padding: 22px 22px 24px; box-shadow: 0 18px 40px rgba(17,21,10,.08); font-size: 15.5px; }
.mail-head { display: flex; align-items: flex-start; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #3f7fae; color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; flex: 0 0 auto; }
.mail-meta { flex: 1 1 auto; min-width: 0; }
.mail-from { font-size: 15px; }
.mail-from .addr { color: var(--ink-soft); font-weight: 500; }
.mail-to { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }
.mail-date { color: var(--ink-soft); font-size: 13.5px; white-space: nowrap; padding-top: 2px; }
.mail-body { margin-top: 16px; line-height: 1.8; }
.mail-body > p { margin: 0 0 20px; }

/* annotazioni: spotlight. Lo step attivo sbiadisce l'email e accende solo il suo punto */
.mail-head, .mail-body > p { transition: color .35s ease; }
.mail.focus .mail-from, .mail.focus .mail-to, .mail.focus .mail-date, .mail.focus .mail-body > p { color: rgba(17,21,10,.25); }
.mail.focus .mail-from .addr { color: inherit; }
.mk { position: relative; font-weight: 700; cursor: default; padding: 1px 3px; margin: 0 -3px; border-radius: 4px;
  background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .5s cubic-bezier(.4,0,.2,1), color .35s ease; }
.mk.on { color: var(--ink); background-size: 100% 100%; }
.mk::after { content: attr(data-n); position: absolute; top: -13px; right: -12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center;
  opacity: 0; transform: scale(.4); transition: opacity .25s ease .3s, transform .3s cubic-bezier(.3,1.6,.5,1) .3s; }
.mk.on::after { opacity: 1; transform: none; }
.mk:not([data-n])::after { display: none; }
.mk:not([data-n]) { font-weight: inherit; }
.mk.on:not([data-n]) { font-weight: 600; }
.step-k .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--lime);
  font-size: 13.5px; font-weight: 800; letter-spacing: 0; margin-right: 10px; vertical-align: 3px; }

/* firma */
.sign { display: flex; gap: 16px; align-items: flex-start; padding-top: 16px; border-top: 1px solid #eef0ec; }
.sign-logo { flex: 0 0 auto; }
.sign-txt { font-size: 13.5px; line-height: 1.5; }
.s-name { color: #2b5a86; font-weight: 800; font-size: 15px; }
.s-role { font-style: italic; color: var(--ink-soft); }
.s-co { color: #2b5a86; font-weight: 800; margin-top: 8px; }
.s-line { color: var(--ink); }
.s-sede { margin-top: 8px; font-weight: 700; }

/* step */
.story-steps { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.step { cursor: default; border-radius: 0 14px 14px 0; border-left: 3px solid transparent; padding: 14px 18px 14px 20px; transition: opacity .3s ease, background .3s ease, border-color .3s ease; outline: none; }
.story-steps.has-active .step { opacity: .38; }
.story-steps .step.active { opacity: 1; background: #fff; border-left-color: var(--lime); }
.step:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.step-k { font-weight: 800; letter-spacing: -.02em; font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 6px; }
.step p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.step p em { font-style: italic; font-weight: 700; }

.story-close { max-width: 60ch; margin: 24px auto 0; text-align: center; font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -.01em; line-height: 1.3; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { width: min(80%, 320px); }
  .portrait-tag { left: -10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 8px; }
  .story-steps { gap: 10px; padding-top: 20px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0; }
}

/* ---------- mobile: niente sforamenti, margini a 16px ---------- */
.story-grid > *, .hero-grid > * { min-width: 0; }
.mail-head { flex-wrap: wrap; }
.mail-meta { min-width: 0; }
.mail-from .addr { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .mail { padding: 18px 16px 20px; }
  .mail-from .addr { display: block; }
  .mail-date { order: -1; width: 100%; text-align: right; }
  .sign { gap: 12px; }
  .step { padding: 12px 12px 12px 16px; }
  .stats { gap: 12px; }
  .stat { padding: 20px 16px; }
  .nav .btn-sm { padding: 8px 14px; font-size: 14px; }
}
