/* PunkLex landing — "paper + ink" from the app, turned up: giant type, ordered dithering,
   inversion on hover, one red accent. */
:root {
  --bg: #efefeb;
  --card: #fafaf8;
  --sunken: #e2e2dd;
  --ink: #0e0e0e;
  --ink-2: #2a2a28;
  --mute: #6b6b66;
  --line: #d0d0cb;
  --red: #e5322b;
  --white: #fff;
  --gutter: 16px;
  --radius: 10px;
  --display: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(14, 14, 14, .09) 1px, transparent 1.4px);
  background-size: 20px 20px;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--red); color: var(--white); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 28px; margin-bottom: 8px; line-height: 1.05; }
.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-2); max-width: 30em; margin: 0; }
.big { font-size: clamp(44px, 8vw, 112px); text-transform: uppercase; line-height: .9; letter-spacing: -.02em; margin-bottom: 40px; }

.tag, .label, .card .n, .marquee, footer, .form label, .sticker, .stat span, .m-n {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

/* red marker: the only accent */
.hl { background: var(--red); color: var(--white); padding: 0 .1em; display: inline-block; transform: rotate(-1.5deg); }

/* ---- header ---- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter); max-width: 1320px; margin: 0 auto; position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 30px; letter-spacing: -.005em; }
.brand img { border-radius: 8px; border: 1px solid var(--ink); }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.top nav a:not(.btn):hover { color: var(--red); }

/* ---- buttons: black primary, hairline ghost, invert on hover ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 12px 24px; min-height: 56px; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .02em;
  transition: background .12s, border-color .12s, color .12s, transform .12s;
}
.btn:hover { background: var(--red); border-color: var(--red); transform: translate(-2px, -2px); }
.btn:active { transform: none; }
.btn-sm { padding: 6px 16px; min-height: 48px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-danger { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-danger:hover { background: var(--ink); border-color: var(--ink); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--mute); cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--line); border-color: var(--line); color: var(--mute); }
.band-ink .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.band-ink .btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.lang button {
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .06em;
  background: none; border: 0; color: var(--mute); cursor: pointer; padding: 4px 12px; min-height: 46px; min-width: 46px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---- dither canvases ---- */
.dither { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; margin-top: -78px; padding-top: 78px; }
.dither-hero { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 62%); mask-image: linear-gradient(to bottom, #000 30%, transparent 62%); }
.hero-in { position: relative; max-width: 1320px; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--ink); background: var(--bg); padding: 4px 10px 4px 8px; border: 1px solid var(--ink); border-radius: 6px; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .1; } }

h1 {
  font-size: clamp(66px, 19vw, 248px);
  text-transform: uppercase; line-height: .82; letter-spacing: -.035em; margin: 0 0 40px;
}
h1 .hl { padding: 0 .06em; margin-top: .04em; }

.hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hero-text { padding-top: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-shots { position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; margin-left: auto; }
.shot { border-radius: 28px; border: 1px solid var(--ink); background: var(--card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.hero-shots .shot { position: absolute; width: 52%; }
.shot-a { left: 2%; top: -8%; z-index: 2; transform: rotate(-4deg); }
.shot-b { right: 0; top: 12%; transform: rotate(3deg); }
.sticker {
  position: absolute; z-index: 3; left: -4%; bottom: 2%; transform: rotate(-8deg);
  background: var(--red); color: var(--white); padding: 14px 18px; line-height: 1.3; border-radius: 6px;
  font-size: 15px;
}

/* ---- marquee ---- */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink); font-size: clamp(18px, 3vw, 30px); letter-spacing: .04em; }
.marquee div { display: inline-block; padding: 16px 0; animation: slide 38s linear infinite; }
.marquee span { padding: 0 32px; }
.marquee span::after { content: "✕"; margin-left: 64px; color: var(--red); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1320px; margin: 0 auto; border-inline: 1px solid var(--line); }
.stat { padding: 48px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 11vw, 160px); line-height: .85; letter-spacing: -.03em; }
.stat span { color: var(--mute); }

/* ---- manifesto: giant stacked statements, inverts on hover ---- */
.manifesto { background: var(--ink); color: var(--white); }
.m-in { max-width: 1320px; margin: 0 auto; padding: 96px var(--gutter) 40px; }
.label { color: #b9b9b3; margin: 0 0 24px; }
.m-row {
  display: grid; grid-template-columns: 90px 1.4fr 1fr; gap: 24px; align-items: baseline;
  padding: 32px 0; border-top: 1px solid var(--ink-2);
  transition: background .12s, color .12s, padding .12s;
}
.m-row:last-child { margin-bottom: 56px; border-bottom: 1px solid var(--ink-2); }
.m-n { color: var(--red); }
.m-row h2 { font-size: clamp(38px, 7vw, 104px); text-transform: uppercase; line-height: .88; letter-spacing: -.025em; }
.m-row p { margin: 0; color: #b9b9b3; font-size: 19px; max-width: 26em; }
.m-row:hover { background: var(--white); color: var(--ink); padding-inline: 20px; }
.m-row:hover p { color: var(--ink-2); }

.section { max-width: 1320px; margin: 0 auto; padding: 104px var(--gutter); }

/* ---- feature cards: hairline, invert on hover ---- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; min-height: 280px; display: flex; flex-direction: column;
  transition: background .12s, color .12s, border-color .12s, transform .12s;
}
.card .n { color: var(--red); margin-bottom: auto; padding-bottom: 48px; }
.card p { margin: 0; color: var(--mute); transition: color .12s; }
.card:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-4px) rotate(-.6deg); }
.card:hover p { color: #b9b9b3; }

/* ---- how ---- */
.band-soft { background: var(--sunken); border-block: 1px solid var(--line); }
.how { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.how .lead { margin-bottom: 8px; }
.steps { padding: 0; margin: 32px 0 0; list-style: none; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li {
  counter-increment: s; border-bottom: 1px solid var(--ink);
  padding: 18px 0 18px 64px; position: relative; font-size: 20px;
}
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 22px; color: var(--red); font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.how-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.how-shots .shot:first-child { transform: rotate(-2.5deg); }
.how-shots .shot:last-child { transform: translateY(56px) rotate(2deg); }

/* ---- final ---- */
.band-ink { background: var(--ink); color: var(--white); }
.final-wrap { position: relative; overflow: hidden; }
.final { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.final .splash { width: 100%; border-radius: var(--radius); border: 1px solid var(--ink-2); }
.final .big { margin-bottom: 24px; font-size: clamp(48px, 9vw, 128px); }
.final .lead { color: #d8d8d2; margin-bottom: 32px; }
.mega {
  position: relative; text-align: center; white-space: nowrap; overflow: hidden;
  font-weight: 800; font-size: 23.5vw; line-height: .72; letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 1px var(--ink-2); padding-bottom: 2vw; user-select: none;
}

/* ---- footer ---- */
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  max-width: 1320px; margin: 0 auto; padding: 24px var(--gutter) 40px;
  color: var(--mute); font-size: 12px;
}
.site-footer-wrap { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer { align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--mute); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.band-ink + .site-footer-wrap, main > .band-ink:last-child + .site-footer-wrap { border-top: 0; }

.contact { text-align: left; }

/* ---- legal + delete pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.doc .tag { margin-bottom: 18px; }
.doc-title { font-weight: 800; font-size: clamp(44px, 8vw, 84px); text-transform: uppercase; line-height: .92; letter-spacing: -.025em; margin: 8px 0 32px; }
.doc-body p, .doc-body li { color: var(--ink); }
.doc-body a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-body a:not(.btn):hover { color: var(--red); }
.doc-h { font-weight: 800; font-size: 32px; text-transform: uppercase; margin: 40px 0 12px; }
.doc-h3 { font-weight: 800; font-size: 22px; margin: 28px 0 8px; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin: 8px 0; }
.muted { color: var(--mute); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 24px; margin: 20px 0; }
.panel[hidden], .form[hidden] { display: none; }
.notice { color: var(--mute); font-size: 16px; margin-top: 0; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 12px; color: var(--mute); }
.form input[type="email"], .form input[type="password"] {
  font: inherit; font-size: 18px; font-weight: 400; text-transform: none; letter-spacing: 0;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-height: 48px;
}
.form input:focus-visible, .btn:focus-visible, .lang button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.band-ink a:focus-visible, .band-ink .btn:focus-visible, .manifesto a:focus-visible { outline-color: var(--white); }
.form .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--ink); }
.form .check input { margin-top: 5px; accent-color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.status { min-height: 1.5em; font-family: var(--mono); font-size: 13px; margin: 16px 0 0; }
.status[data-error="1"] { color: var(--red); }
.operator { flex-basis: 100%; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.doc .notice { margin: -16px 0 24px; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .m-row { grid-template-columns: 60px 1fr; }
  .m-row p { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero-row, .how { grid-template-columns: 1fr; }
  .hero-shots { max-width: 460px; margin: 24px auto 0; }
  .top nav a:not(.btn) { display: none; }
  .section { padding: 72px var(--gutter); }
  .final { grid-template-columns: 1fr; gap: 40px; }
  .final .splash { max-width: 220px; }
  .stats { grid-template-columns: 1fr; border-inline: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px var(--gutter); }
  .stat:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top { gap: 8px; }
  .top nav { gap: 8px; }
  .brand { font-size: 24px; gap: 8px; flex-shrink: 0; }
  .brand img { width: 30px; height: 30px; }
  .btn-sm { padding: 6px 12px; }
  .lang button { padding: 3px 6px; min-width: 44px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card .n { padding-bottom: 28px; }
  .hero-in { padding-top: 40px; }
  .m-in { padding-top: 64px; }
  .m-row { grid-template-columns: 1fr; gap: 8px; }
  .m-row p { grid-column: 1; }
  .m-n { order: -1; }
}
@media (hover: none) {
  .card:hover, .m-row:hover, .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee div, .tag::before { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card, .m-row { transition: none; }
}
