@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"), url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1F2937;
  --ink-soft: #374151;
  --steel: #5B6573;
  --rule: #CDD2D8;
  --paper: #F4F5F6;
  --white: #FFFFFF;
  --signal: #F4C430;
  --signal-ink: #1F2937;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-stretch: 118%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.15rem; font-stretch: 110%; line-height: 1.25; }
p { margin: 0; max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 650; font-stretch: 108%; font-size: 1rem;
  text-decoration: none; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--ink);
}
.btn-signal { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-signal:hover { background: #E9B71F; border-color: #E9B71F; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 96px; }
.site-header img { height: 80px; width: auto; margin-left: -14px; }
.site-header .btn { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 24px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.curve-panel { background: var(--ink); border-radius: 10px; padding: clamp(18px, 3vw, 28px); color: #C9CED6; }
.curve-panel figcaption { font-size: 0.9rem; color: #AEB5BF; margin-top: 12px; }
.curve-panel text { font-family: "Archivo", sans-serif; font-stretch: 88%; }
.curve-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s cubic-bezier(.45,.05,.25,1) .3s forwards; }
.curve-pt { opacity: 0; animation: appear .4s ease forwards; }
.curve-pt.p1 { animation-delay: .7s; } .curve-pt.p2 { animation-delay: 1.2s; }
.curve-pt.p3 { animation-delay: 1.8s; } .curve-pt.p4 { animation-delay: 2.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .curve-line { animation: none; stroke-dashoffset: 0; }
  .curve-pt { animation: none; opacity: 1; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.band-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-ink { background: var(--ink); color: #E5E7EB; }
.band-ink h2, .band-ink h3 { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split p + p { margin-top: 18px; }
.muted { color: var(--steel); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 2px; background: var(--rule); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink);
  font-weight: 750; font-stretch: 110%; margin-bottom: 22px; position: relative;
}
.steps li:last-child::before { background: var(--signal); border-color: var(--signal); }
.steps p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }

/* Board mock */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; font-size: 0.82rem; }
.board-col h4 { margin: 0 0 8px; font-size: 0.8rem; font-weight: 650; font-stretch: 100%; color: var(--steel); }
.board-card { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 9px 10px; margin-bottom: 8px; line-height: 1.35; }
.board-card b { display: block; font-weight: 650; }
.board-card span { color: var(--steel); }
.board-card.hit { border-left: 4px solid var(--signal); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding: 10px 0 10px 30px; border-top: 1px solid var(--rule); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }

/* Who / credibility */
.who-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.who-list li { border: 1px solid #4B5563; border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; color: #E5E7EB; }
.origin { border-left: 4px solid var(--signal); padding-left: 24px; }
.origin p + p { margin-top: 16px; }
.origin .sig { color: #AEB5BF; font-size: 0.95rem; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-stretch: 106%; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid .btn { margin-top: 28px; }
.contact-alt { margin-top: 24px; color: var(--steel); font-size: 0.98rem; }
form { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--steel); }
input, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: 6px; padding: 11px 12px;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--steel); margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: #166534; }
.form-status.err { color: #B91C1C; }

/* Footer */
.site-footer { background: var(--ink); color: #AEB5BF; padding: 40px 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer img { height: 56px; width: auto; }
.site-footer a { color: #E5E7EB; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .site-header img { height: 60px; }
  .site-header .btn { padding: 0 12px; }
  .steps { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .board-col:nth-child(3) { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Sector links on the homepage */
.who-list a { text-decoration: none; display: block; }
.who-list li:has(a):hover { border-color: var(--signal); }
.who-list li:has(a) { padding: 0; }
.who-list a { padding: 6px 14px; }

/* Footer: sectors and social */
.site-footer .foot-cols { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.foot-sectors { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-sectors .foot-head, .foot-links .foot-head { color: #8B94A1; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.foot-social { display: inline-flex; align-items: center; gap: 8px; }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Inner pages (sector pages, 404) */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 72px); }
.crumbs { font-size: 0.9rem; color: var(--steel); margin-bottom: 20px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); max-width: 20ch; }
.prose h2 { margin-bottom: 20px; }
.prose p + p { margin-top: 18px; }
.prose ul.bullets { margin: 20px 0 0; padding: 0 0 0 1.2em; max-width: 62ch; }
.prose ul.bullets li { margin: 8px 0; color: var(--ink-soft); }
.role-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.role-list li { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }
.steps-detail { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: sd; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.steps-detail li { counter-increment: sd; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps-detail li:last-child { border-top-color: var(--signal); }
.steps-detail h3::before { content: counter(sd) ". "; }
.steps-detail p { margin-top: 10px; color: var(--ink-soft); }
.related { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { color: #C9CED6; margin-top: 12px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band-ink .btn-line { color: var(--white); border-color: var(--white); }
.band-ink .btn-line:hover { background: var(--white); color: var(--ink); }
.notfound { padding: clamp(72px, 12vw, 140px) 0; }
.notfound p { margin-top: 18px; color: var(--ink-soft); }
.notfound .hero-actions { margin-top: 28px; }
@media (max-width: 900px) { .steps-detail { grid-template-columns: 1fr; } }
.site-footer { border-top: 1px solid #374151; }
.site-footer .wrap { align-items: flex-start; }

/* Turnstile human check */
.ts-box { min-height: 65px; margin: 4px 0 18px; }
