/* 247partsonline brand tokens (Brand Standards v1.0) */
:root {
  --ink: #0B0F14;
  --graphite: #1C232C;
  --laser-cyan: #00C2FF;
  --deep-beam: #0063A6;
  --paper: #F4F6F8;
  --mist: #E6F5FA;
  --steel: #5B6673;
  --alloy: #D5DBE1;
  --white: #FFFFFF;
  --cut: #1FA971;
  --queued: #F5A524;
  --hold: #E5484D;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-control: 10px;
  --radius-card: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip; /* the spark layer may reach past the page edge */
  background-color: var(--ink);
  /* faint blueprint grid */
  background-image:
    linear-gradient(rgba(213, 219, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 219, 225, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

/* Header and logo lockup */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--graphite);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  border-radius: 8px;
}

.lockup:focus-visible { outline: 2px solid var(--laser-cyan); outline-offset: 6px; }

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.wordmark b { font-weight: 700; }
.wordmark .parts { color: var(--alloy); margin-left: 0.04em; }
.wordmark .online { font-weight: 400; color: var(--alloy); }

/* the drawn 24|7 cut: never a typed slash */
.wordmark .cut {
  display: inline-block;
  width: 0.07em;
  height: 1.12em;
  background: var(--laser-cyan);
  transform: skewX(-22deg);
  margin: 0 0.2em 0 0.17em;
  border-radius: 2px;
}

/* Hero */
.hero {
  flex: 1;
  padding: 96px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}

.status {
  margin: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--alloy);
  border: 1px solid var(--graphite);
  background: rgba(11, 15, 20, 0.6);
  padding: 6px 12px;
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--queued);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--alloy);
  max-width: 600px;
}

/* Notify form */
.notify {
  margin-top: 16px;
  padding: 24px;
  border: 1.5px dashed var(--laser-cyan);
  border-radius: var(--radius-card);
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.notify-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.notify-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notify input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--white);
  background: var(--ink);
  border: 1.5px solid #3A4552;
  border-radius: var(--radius-control);
  transition: border-color 0.15s ease;
}

.notify input[type="email"]::placeholder { color: #8A96A3; }
.notify input[type="email"]:hover { border-color: var(--alloy); }
.notify input[type="email"]:focus { outline: none; border-color: var(--laser-cyan); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.25); }

.notify button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--laser-cyan);
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.notify button:hover { background: #4DD5FF; }
.notify button:active { transform: translateY(1px); }
.notify button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.notify button:disabled { opacity: 0.6; cursor: wait; }

.notify-note {
  margin: 0;
  font-size: 13px;
  color: var(--alloy);
}

.notify.is-done .notify-row { display: none; }
.notify.is-done .notify-note { font-size: 16px; color: var(--white); }

/* honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Spec strip */
.spec {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--graphite);
  max-width: 760px;
}

.spec div {
  padding: 16px 16px 0 0;
}

.spec dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--laser-cyan);
}

.spec dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white);
}

/* Footer */
.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--graphite);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--alloy);
}

/* Decorative kerf: the mark's cut path, drawn large on wide screens only */
.page { position: relative; }
.kerf-art { display: none; }

@media (min-width: 1100px) {
  .kerf-art {
    display: block;
    position: absolute;
    top: 140px;
    right: 0;
    width: 340px;
    height: 340px;
    pointer-events: none;
  }
  .kerf-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
  /* spark layer: larger than the art so sparks can fly past its edge */
  .kerf-art canvas {
    position: absolute;
    top: -80px;
    left: -80px;
    width: calc(100% + 160px);
    height: calc(100% + 160px);
  }
}

/* Simple pages (thanks, 404) */
.simple { flex: 1; padding: 96px 0; display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.simple a { color: var(--laser-cyan); }

@media (max-width: 640px) {
  .page { padding: 0 16px; }
  .hero { padding: 56px 0 48px; gap: 20px; }
  .lede { font-size: 17px; }
  .notify { padding: 18px; }
  .notify button { width: 100%; }
  .spec { grid-template-columns: 1fr; }
  .spec div { padding: 14px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
