:root {
  --bg: #f6f6f4;
  --panel: rgba(255, 255, 255, 0.65);
  --ink: #0e0e0e;
  --muted: #6e6e6e;
  --line: #dddddb;
  --live: #2fbf71;
  --radius: 16px;
  --container: 1200px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 400; line-height: 1.1; }
h1, h2 { font-family: var(--font-mono); font-weight: 300; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.sr-only, .hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(14px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .logo-mark { fill: #fff; }
.nav-inner { display: flex; align-items: center; gap: 40px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 1rem var(--font-mono); letter-spacing: 0.18em; }
.logo-mark { height: 22px; width: auto; aspect-ratio: 1020 / 771; fill: var(--ink); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { height: 14px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.cta-pill {
  margin-left: auto;
  padding: 0.5em 1.1em;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-toggle { display: none; }

/* Hero */
/* dark band so the light pad artwork stands out */
.hero {
  padding: 48px 0 72px;
  background:
    radial-gradient(60% 70% at 30% 50%, rgba(255, 255, 255, 0.07), transparent 70%),
    var(--ink);
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; min-height: calc(100vh - 164px); }

.stage {
  position: relative;
  display: flex; justify-content: center;
  animation: pad-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, pad-float 6s ease-in-out 0.9s infinite;
}
/* soft pool of light under the pad so it reads as sitting above a surface */
.stage::after {
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: -6%;
  height: 22%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.09), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
@keyframes pad-in {
  from { opacity: 0; transform: translateY(60px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes pad-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pad {
  /* --tilt-x / --tilt-y / --shine are set by script.js as the cursor moves */
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine: 50%;
  position: relative;
  width: 82%;
  aspect-ratio: 45 / 40;
  max-height: 64vh;
  border-radius: 14px;
  background: url("images/pad-art.webp") center / cover, #0c0d0f;
  /* stacked 1px shadows draw the edge: a thin clear polycarbonate top sheet over a black rubber base */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    0 1px 0 #d8d8d4,
    0 2px 0 #9a9a96,
    0 3px 0 #1c1c1c,
    0 4px 0 #161616,
    0 5px 0 #121212,
    0 6px 0 #0e0e0e,
    0 7px 0 #0a0a0a,
    0 60px 80px -30px rgba(0, 0, 0, 0.8),
    0 24px 30px -18px rgba(0, 0, 0, 0.6);
  transform: perspective(1400px) rotateX(calc(38deg + var(--tilt-y))) rotateY(var(--tilt-x)) rotateZ(-14deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: crosshair;
}
/* glossy sheen that slides across the hard coat as the pad tilts */
.pad::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0.05) 52%, transparent 62%) var(--shine) 0 / 250% 100% no-repeat;
  transition: background-position 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
/* fine matte grain, like a textured hard-coated surface */
.pad::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 140px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
/* difference blend keeps the white trace visible over both the light and dark parts of the art */
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; mix-blend-mode: difference; }
.pad-brand {
  /* mark printed into the corner; sized and placed in % of the pad so it scales with the artwork */
  position: absolute; right: 4.5%; bottom: 4.7%;
  width: 7%;
  display: flex;
  pointer-events: none;
}
.pad-brand svg {
  width: 100%; height: auto; aspect-ratio: 1020 / 771;
  fill: #fff;
  opacity: 0.92;
  /* thin dark edge keeps the white mark readable over light parts of the art */
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.45));
}
/* caption under the pad, outside the artwork so it doesn't read as part of the print */
.pad-hint {
  position: absolute; left: 50%; bottom: -44px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 0.72rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a7a7a;
  pointer-events: none;
  transition: opacity 0.4s;
}
.pad-hint::before { content: "↑ "; }
.pad.touched ~ .pad-hint { opacity: 0; }
@media (hover: none) { .pad-hint { display: none; } }

/* Signup panel */
.panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 1.2em;
  font: 0.72rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(47, 191, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); }
}
.panel h1 { margin-bottom: 0.15em; }
.tagline { font: 400 1.15rem var(--font-mono); letter-spacing: -0.01em; margin-bottom: 1em; }
.lead { color: #3a3a3a; margin-bottom: 1.4em; }

.spec-row {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr;
  margin: 0 0 1.4em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-row div { padding: 12px 0; }
.spec-row div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.spec-row dt { font: 0.65rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.spec-row dd { margin: 2px 0 0; font: 500 0.82rem var(--font-mono); }

.signup input[type="email"] {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.signup input[type="email"]:focus { outline: none; border-color: var(--ink); }

.submit-bar {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.submit-bar:hover { background: #2a2a2a; }
.submit-bar:active { transform: scale(0.99); }
.submit-bar:disabled { opacity: 0.6; cursor: wait; }
.submit-bar span:last-child { font-family: var(--font-mono); transition: transform 0.15s; }
.submit-bar:hover span:last-child { transform: translateX(3px); }
.form-msg { margin: 8px 0 0; min-height: 1.2em; font-size: 0.85rem; color: #b42318; }
.form-msg:empty { display: none; }

.success h2 { font-size: 1.8rem; }
.success p:last-child { color: #3a3a3a; }

.fine { margin: 12px 0 0; font-size: 0.78rem; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head .mono-label { margin-bottom: 0.6em; }

/* Comparison table */
.compare {
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row span { padding: 14px 18px; font-size: 0.9rem; color: var(--muted); }
.compare-row span:first-child { font: 500 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.compare-head span { font: 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.compare-row .ours { background: var(--ink); color: #fff; font-weight: 500; }
.compare-head .ours { color: #fff; }

.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.detail { padding-top: 16px; border-top: 1px solid var(--ink); }
.detail h3 { margin-top: 12px; }
.detail p { color: var(--muted); font-size: 0.9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-num { display: block; margin-bottom: 24px; font: 300 2.4rem var(--font-mono); letter-spacing: -0.03em; }
.steps p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* FAQ */
details {
  max-width: 820px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Final CTA */
.cta-panel {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: 44px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}
.cta-panel .mono-label { color: #9a9a9a; margin-bottom: 0.6em; }
.cta-panel h2 { margin: 0; }
.cta-btn {
  padding: 14px 24px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { font: 0.78rem var(--font-mono); text-transform: uppercase; color: var(--muted); }
.footer nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .stage { max-width: 600px; margin: 0 auto; width: 100%; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .nav-inner { gap: 12px; height: 60px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 38px; height: 38px;
    padding: 0 10px;
    border: 1px solid #333;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: #fff; transition: transform 0.2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid #222;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid #222; }
  .hero { padding: 28px 0 48px; }
  .pad { transform: perspective(1000px) rotateX(calc(30deg + var(--tilt-y))) rotateY(var(--tilt-x)) rotateZ(-8deg); }
  .panel { padding: 22px; }
  .section { padding: 64px 0; }
  /* the black Accel X 001 column is painted on each row so it runs unbroken past the row labels */
  .compare-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    isolation: isolate;
    background: linear-gradient(90deg, #fff 33.333%, var(--ink) 33.333% 66.667%, #fff 66.667%);
  }
  .compare-row .ours { background: transparent; }
  .compare-row span { padding: 10px 12px; font-size: 0.8rem; }
  .compare-row span:first-child {
    grid-column: 1 / -1;
    padding: 12px 12px 0;
    font-size: 0.68rem;
    color: #fff;
    mix-blend-mode: difference; /* dark over white, white over the black column */
  }
  .compare-head span:first-child { display: none; }
  .compare-head span { padding: 14px 12px; font-size: 0.62rem; letter-spacing: 0.04em; white-space: nowrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
