/* LabRatz 3D brand: black background, neon cyan + pink, graffiti headings. */
:root {
  --bg: #000000;        /* pure black so the logo's background blends in */
  --surface: #0d0d12;
  --text: #f4f4f7;
  --muted: #a3a3ad;
  --cyan: #1ee8ff;
  --pink: #ff2bd6;
  --line: #24242c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pink { color: var(--pink); }

/* ---- Top bar ---- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
  padding: 16px;
}

.brand img { width: 44px; height: 44px; }

.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--cyan); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

.hero-logo { width: min(520px, 100%); margin-left: -12px; }

.tagline {
  margin: 8px 0 0;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
}

.lead {
  margin: 14px 0 28px;
  font-size: 19px;
  color: var(--muted);
  max-width: 36ch;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(30, 232, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(30, 232, 255, 0.55); }

.button.ghost {
  background: none;
  color: var(--text);
  border: 1px solid var(--pink);
  box-shadow: none;
}

.button.ghost:hover { box-shadow: 0 0 24px rgba(255, 43, 214, 0.35); }

.hero-photo { margin: 0; }

.hero-photo img {
  border-radius: 20px;
  border: 1px solid rgba(30, 232, 255, 0.35);
  box-shadow: 0 0 60px rgba(30, 232, 255, 0.18);
}

/* "Made to fit cases from" brand list */
.fits { margin-top: 32px; }
.fits-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.brands li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
}

.brands + .fits-label { display: block; margin-top: 16px; }

.brands li.now {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(30, 232, 255, 0.3);
}

.brands li.soon { color: var(--muted); border-style: dashed; }

.pd-fits { margin: 0 0 4px; color: var(--cyan); font-weight: 600; }

/* ---- Sections ---- */
.section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 64px 16px 72px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 14px;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 46px);
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(30, 232, 255, 0.35);
}

.section-text { max-width: 62ch; font-size: 18px; color: var(--muted); margin: 0 0 36px; }

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.shot:hover { border-color: var(--pink); transform: translateY(-3px); }
.shot span { display: block; padding: 12px 16px; font-weight: 500; }

.note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* ---- Product pop-up ---- */
.product-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(30, 232, 255, 0.4);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 60px rgba(30, 232, 255, 0.2);
  overflow: auto;
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.product-dialog::backdrop { background: rgba(0, 0, 0, 0.8); }

.product-dialog img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }

.pd-info h3 { margin: 0; font-size: 24px; line-height: 1.25; }

.pd-price {
  margin: 12px 0 6px;
  font-family: "Permanent Marker", cursive;
  font-size: 44px;
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 43, 214, 0.4);
}

.pd-note { margin: 0 0 24px; color: var(--muted); font-size: 14px; }

.pd-buttons { display: flex; flex-direction: column; gap: 10px; }
.pd-buttons .button { text-align: center; }

.pd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.pd-close:hover { border-color: var(--cyan); }

[hidden] { display: none !important; }

button.button { border: none; font: inherit; font-weight: 700; cursor: pointer; }
button.button:disabled { opacity: 0.6; cursor: wait; }

/* ---- Order form ---- */
.pd-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }

.pd-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }

.pd-form input, .pd-form textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000;
  color: var(--text);
  resize: vertical;
}

.pd-form input:focus, .pd-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(30, 232, 255, 0.25);
}

.of-error { margin: 0; color: var(--pink); font-size: 14px; }

.pd-done .pd-done-title {
  margin: 0 0 8px;
  font-family: "Permanent Marker", cursive;
  font-size: 28px;
  color: var(--cyan);
}

.pd-done p { color: var(--muted); }

.pd-done .button { display: block; text-align: center; margin: 16px 0 8px; font-size: 18px; }

.pay-qty { color: var(--pink) !important; font-weight: 600; font-size: 14px; }

/* ---- About cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card-num { color: var(--pink); font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.card h3 { margin: 8px 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

/* ---- Contact ---- */
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.contact-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.contact-card svg { flex: none; width: 32px; height: 32px; fill: var(--cyan); }
.contact-card strong { display: block; font-size: 18px; }
.contact-detail { color: var(--muted); overflow-wrap: anywhere; }

/* ---- Thank-you page (/thanks/) ---- */
.thanks {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 16px 88px;
  text-align: center;
}

/* The lr3d logo sits between the heading and the steps. The image has a lot of
   empty black space above and below the artwork, so it's cropped to the middle. */
.thanks-logo {
  width: min(380px, 80%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
  margin: 0 auto 40px;
}

.tag-us { margin: 0 0 20px; font-weight: 500; }

.thanks h1 {
  margin: 8px 0 0;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.4;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(30, 232, 255, 0.35);
}

.thanks .lead { margin: 24px auto 32px; line-height: 1.7; color: var(--text); text-shadow: 0 2px 10px #000, 0 0 4px #000; }

.steps {
  margin: 0 0 52px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.steps li {
  position: relative;
  margin-bottom: 18px;
  padding: 20px 22px 20px 64px;
  line-height: 1.6;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.steps li strong { color: var(--text); }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  color: #000;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

.thanks .hero-buttons { justify-content: center; gap: 16px; }
.thanks .note { margin-top: 40px; }
.thanks .note a { color: var(--cyan); }

/* ---- Footer ---- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.disclaimer { margin: 6px 0 0; font-size: 12px; max-width: 62ch; }

/* ---- Phones and small tablets ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8px; }
  .hero-logo { margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-buttons, .brands { justify-content: center; }
  .gallery, .cards { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; }
  .product-dialog[open] { grid-template-columns: 1fr; }
  .product-dialog img { height: auto; }
  .pd-info { padding: 20px 20px 24px; text-align: center; }
}

@media (max-width: 420px) {
  .nav-links { gap: 14px; font-size: 14px; }
}
