/* ── Engineering-sheet design tokens ─────────────────────────── */
:root {
  --paper: #fafbfc;
  --ink: #16222e;
  --dim: #5a6b7a;
  --line: #c9d4de;
  --bench: #1565c0;
  --pocket: #00695c;
  --grid: rgba(21, 101, 192, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 8px 8px, 8px 8px, auto;
  line-height: 1.6;
  padding: 14px;
}

/* Drawing-sheet frame around the whole page */
.sheet {
  border: 1.5px solid var(--ink);
  min-height: calc(100vh - 28px);
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  background: transparent;
}

.mono { font-family: "IBM Plex Mono", monospace; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1.5px solid var(--ink);
}

.wordmark {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.wordmark .mb { color: var(--bench); }
.wordmark .pp { color: var(--pocket); }

.lang {
  display: flex;
  border: 1px solid var(--ink);
}
.lang a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  padding: 5px 14px;
}
.lang a + a { border-left: 1px solid var(--ink); }
.lang a.active { background: var(--ink); color: var(--paper); }
.lang a:not(.active):hover, .lang a:not(.active):focus-visible { color: var(--ink); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: 72px 28px 48px; max-width: 880px; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 17ch;
}

.hero p.sub {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--dim);
  max-width: 58ch;
}

/* Dimension line — the signature */
.dimension {
  margin-top: 44px;
  max-width: 420px;
}
.dim-line {
  display: flex;
  align-items: center;
  color: var(--bench);
  animation: measure 0.9s ease-out both;
  transform-origin: left;
}
.dim-line::before, .dim-line::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: currentColor;
}
.dim-line .arrow { font-size: 1rem; line-height: 1; }
.dim-line .value {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 1.35rem;
  padding: 0 14px;
  white-space: nowrap;
}
.dim-ticks { display: flex; justify-content: space-between; color: var(--bench); }
.dim-ticks span { width: 1.5px; height: 12px; background: currentColor; }
.dim-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 10px;
}
@keyframes measure { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dim-line { animation: none; } }

/* ── Product details ────────────────────────────────────────── */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--ink);
}
.detail {
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail + .detail { border-left: 1.5px solid var(--ink); }

.detail-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.detail h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
}
.detail.bench h2 em, .detail.bench .detail-label b { color: var(--bench); font-style: normal; }
.detail.pocket h2 em, .detail.pocket .detail-label b { color: var(--pocket); font-style: normal; }

.shot {
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
  display: block;
}

.features {
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink);
}
.features li {
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.features li::before {
  content: "▸";
  position: absolute;
  left: 2px;
  color: var(--dim);
}
.detail.bench .features li::before { color: var(--bench); }
.detail.pocket .features li::before { color: var(--pocket); }

.cta {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  margin-top: 4px;
  transition: transform 0.12s ease;
}
.cta:hover, .cta:focus-visible { transform: translateY(-2px); }
.detail.bench .cta { background: var(--bench); }
.detail.pocket .cta { background: var(--pocket); }
.cta-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--dim);
}

/* ── Verified values ────────────────────────────────────────── */
.verified { border-top: 1.5px solid var(--ink); padding: 40px 28px 48px; }
.verified h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 6px;
}
.verified p.lead {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  max-width: 44ch;
  margin-bottom: 22px;
}
.spec {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}
.spec td {
  border: 1px solid var(--line);
  padding: 9px 14px;
}
.spec td:last-child { text-align: right; font-weight: 600; }
.spec .ok { color: var(--pocket); padding-left: 8px; }
.verified .foot {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 12px;
}

/* ── iPhone note ────────────────────────────────────────────── */
.pwa {
  border-top: 1.5px solid var(--ink);
  padding: 26px 28px;
  font-size: 0.95rem;
  color: var(--dim);
}
.pwa b { color: var(--ink); }

/* ── Title block (the drawing antet) ────────────────────────── */
.titleblock-wrap {
  border-top: 1.5px solid var(--ink);
  display: flex;
  justify-content: flex-end;
}
.titleblock {
  border-left: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  min-width: min(560px, 100%);
}
.titleblock div {
  border: 0.5px solid var(--line);
  padding: 8px 12px;
}
.titleblock .k { display: block; color: var(--dim); font-size: 0.62rem; letter-spacing: 0.1em; }
.titleblock .span2 { grid-column: span 2; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 16px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--dim);
}
footer a { color: var(--dim); }
footer a:hover { color: var(--ink); }

/* ── Privacy page ───────────────────────────────────────────── */
.prose { padding: 48px 28px; max-width: 720px; }
.prose h1 { font-size: 2rem; margin-bottom: 8px; }
.prose h2 { font-family: "Archivo", sans-serif; font-size: 1.15rem; margin: 28px 0 8px; }
.prose p { color: var(--dim); margin-bottom: 12px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .details { grid-template-columns: 1fr; }
  .detail + .detail { border-left: none; border-top: 1.5px solid var(--ink); }
  .hero { padding: 48px 20px 36px; }
  header, .verified, .pwa, footer { padding-left: 20px; padding-right: 20px; }
  .titleblock { grid-template-columns: repeat(2, 1fr); min-width: 100%; border-left: none; }
}

:focus-visible { outline: 2px solid var(--bench); outline-offset: 2px; }
