/* Neopix — sales landing. Charte-bound (see tokens.css). */

/* fonts — self-hosted, latin subsets */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/schibsted-400.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/schibsted-500.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/schibsted-700.woff2') format('woff2'); }
@font-face { font-family: 'Fragment Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fragment-mono-400.woff2') format('woff2'); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-0); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 28px 48px;
}
@media (max-width: 720px) { .nav { padding: 20px 24px; } }
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dk-fg); }
.nav .brand svg { width: 26px; height: 26px; }
.nav .brand b { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.nav .right { display: flex; align-items: center; gap: 20px; }
.langs { display: flex; gap: 2px; border: 1px solid var(--dk-border); }
.langs button {
  background: transparent; border: 0; color: var(--dk-muted);
  font-family: var(--font-mono); font-size: 12px; padding: 7px 10px; cursor: pointer;
}
.langs button.active { background: var(--dk-card); color: var(--dk-fg); }
.langs button:focus-visible { outline: 2px solid var(--verm); outline-offset: 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--verm); color: #fff;
  font-family: var(--font-sans); font-weight: 500; font-size: 16px;
  padding: 15px 30px; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--verm-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--dk-fg); border: 1px solid var(--dk-border); }
.btn.ghost:hover { border-color: var(--dk-fg); background: transparent; }
.btn.small { padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  background: var(--carbon); color: var(--dk-fg);
  min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 140px 0 96px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: var(--sp-3); align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero .markbox { order: -1; max-width: 300px; } }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--dk-link); margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, var(--fs-6)); font-weight: 700; line-height: 1.06; letter-spacing: -.015em; margin-bottom: 24px; max-width: 15ch; }
.hero .lede { font-size: var(--fs-1); color: var(--dk-muted); max-width: 46ch; margin-bottom: 40px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero .meta { font-family: var(--font-mono); font-size: 12px; color: var(--dk-muted); display: flex; gap: 24px; flex-wrap: wrap; }
.hero .meta span::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--verm); margin-right: 9px; }
.markbox svg { width: 100%; height: auto; }

/* ---------- sections ---------- */
section { padding: var(--sp-4) 0; }
@media (max-width: 720px) { section { padding: 80px 0; } }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-3); }
.sec-head .px-slot {
  width: 12px; height: 12px; flex: 0 0 12px;
  border: 1px solid var(--verm); position: relative;
}
.px-slot i {
  position: absolute; inset: 0; background: var(--verm);
  transform: scale(0); display: block;
}
.filled .px-slot i { transform: scale(1); transition: transform .28s cubic-bezier(.2, 1.4, .4, 1); }
.sec-head h2 { font-family: var(--font-mono); font-size: 14px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dark .sec-head h2 { color: var(--dk-muted); }
h3.title { font-size: clamp(1.8rem, 3.4vw, var(--fs-4)); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; max-width: 24ch; margin-bottom: var(--sp-2); }

.dark { background: var(--carbon); color: var(--dk-fg); }

/* diagonal dividers — the two strokes of the x: consecutive dividers alternate lean (/ then \) */
.diag { height: 140px; background: linear-gradient(var(--diag), var(--carbon) 0 58%, var(--verm) 58% 60.5%, var(--paper) 60.5%); }
.diag.flip { background: linear-gradient(var(--diag-mirror), var(--paper) 0 58%, var(--verm) 58% 60.5%, var(--carbon) 60.5%); }

/* ---------- identity gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 40px; min-height: 240px; position: relative; }
.tile.carbon { background: var(--carbon); border-color: var(--carbon); }
.tile .cap { position: absolute; left: 16px; bottom: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tile.carbon .cap { color: var(--dk-muted); }
.t-6 { grid-column: span 6; } .t-4 { grid-column: span 4; } .t-8 { grid-column: span 8; } .t-12 { grid-column: span 12; }
@media (max-width: 880px) { .t-6, .t-4, .t-8 { grid-column: span 12; } .tile { min-height: 200px; } }
.tile img { width: 60%; height: auto; }
.tile img.wide { width: 82%; }
.tile .favrow { display: flex; align-items: center; gap: 28px; }
.swatches { display: flex; width: 100%; height: 120px; }
.swatches div { flex: 1; position: relative; }
.swatches span { position: absolute; left: 8px; bottom: 6px; font-family: var(--font-mono); font-size: 10px; color: #fff; mix-blend-mode: difference; }

/* ---------- included cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--dk-card); border: 1px solid var(--dk-border); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card .num { font-family: var(--font-mono); font-size: 12px; color: var(--dk-link); }
.card h4 { font-size: var(--fs-1); font-weight: 700; }
.card p { font-size: 15px; color: var(--dk-muted); }
.card ul { list-style: none; margin-top: 4px; }
.card li { font-size: 14px; color: var(--dk-muted); padding-left: 18px; position: relative; margin-bottom: 8px; }
.card li::before { content: ''; width: 7px; height: 7px; background: var(--verm); position: absolute; left: 0; top: 7px; }

/* ---------- the name ---------- */
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: start; }
@media (max-width: 880px) { .name-grid { grid-template-columns: 1fr; } }
.name-eq { font-size: clamp(2rem, 4.4vw, var(--fs-5)); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.name-eq em { font-style: normal; color: var(--verm); }
.name-eq .mono-eq { font-family: var(--font-mono); font-size: .5em; color: var(--muted); font-weight: 400; display: block; margin-top: 12px; }
.fits { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-2); }
.fits span { border: 1px solid var(--border); background: #fff; padding: 10px 16px; font-size: 14px; font-weight: 500; }
.name-grid .expl p { color: var(--muted); margin-bottom: 16px; max-width: 52ch; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--border); background: #fff; padding: 32px; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--verm); margin-bottom: 16px; display: block; }
.step h4 { font-size: var(--fs-1); font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- final cta ---------- */
.final { text-align: center; padding: var(--sp-4) 0; }
.final .markmini { width: 56px; margin: 0 auto var(--sp-2); }
.final h3 { font-size: clamp(1.9rem, 4vw, var(--fs-5)); font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px; }
.final p { color: var(--dk-muted); margin-bottom: var(--sp-2); }

/* ---------- footer ---------- */
footer { background: var(--carbon); color: var(--dk-muted); border-top: 1px solid var(--dk-border); padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .fbrand { display: flex; align-items: center; gap: 10px; color: var(--dk-fg); }
footer .fbrand svg { width: 18px; height: 18px; }
footer .fbrand b { font-weight: 500; font-size: 14px; }
footer .legal { font-family: var(--font-mono); font-size: 11px; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(17, 17, 17, .55); z-index: 50;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--paper); color: var(--ink); width: 100%; max-width: 520px; padding: 40px; position: relative; max-height: 92svh; overflow-y: auto; }
.modal .close { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.modal h3 { font-size: var(--fs-2); font-weight: 700; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid #D8D3CC; background: #fff; color: var(--ink);
  font-family: var(--font-sans); font-size: 15px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--verm); outline-offset: -1px; border-color: var(--verm); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.status { font-size: 14px; margin-top: 14px; min-height: 20px; }
.status.ok { color: #1B7A3D; }
.status.err { color: var(--verm-deep); }

/* ---------- reveals (JS adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .filled .px-slot i { transition: none; }
  .btn { transition: none; }
}
