/* ===========================================================
   Page-specific styles for the Scan Laser landing page.
   Tokens come from colors_and_type.css (Proiekt Design System).
   =========================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  font-family: var(--font-sans);
  color: var(--fg-2);
  background: var(--bg-1);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tint { background: var(--paper-tint); }
.section-cool { background: var(--paper-cool); }
.section-dark { background: var(--navy-900); color: white; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5 { color: white; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-700);
  margin: 0 0 16px;
  display: inline-block;
}
.section-dark .eyebrow { color: var(--cyan-500); }
.eyebrow-lime { color: var(--brand-lime) !important; }

/* ---- Wordmark ---- */
.wordmark {
  font-family: "Museo", var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark .p { color: var(--navy-700); }
.wordmark .i { color: var(--brand-cyan); }
.wordmark.on-dark .p { color: white; }
.wordmark.on-dark .i { color: var(--brand-cyan); }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 0 22px;
  height: 48px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 180ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-primary {
  background: var(--brand-cyan);
  color: white !important;
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover {
  background: var(--cyan-500);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(19,181,234,0.36);
}
.btn-primary:active { transform: translateY(0); background: var(--cyan-700); }

.btn-lime {
  background: var(--brand-lime);
  color: var(--navy-900) !important;
  box-shadow: 0 10px 24px rgba(213,255,126,0.35);
}
.btn-lime:hover {
  background: var(--lime-500);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(213,255,126,0.45);
}

.btn-secondary { background: var(--navy-900); color: white !important; }
.btn-secondary:hover { background: var(--brand-cyan); color: white !important; }

.btn-outline {
  background: white;
  color: var(--navy-700) !important;
  box-shadow: inset 0 0 0 1.5px var(--navy-700);
}
.btn-outline:hover { background: var(--navy-50); color: var(--navy-700) !important; transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: white !important;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}
.btn-outline-dark:hover { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1.5px white; }

.btn-ghost { background: transparent; color: var(--navy-700) !important; padding: 0 10px; }
.btn-ghost:hover { background: transparent; color: var(--brand-cyan) !important; }

.btn-lg { height: 56px; font-size: 16px; padding: 0 28px; border-radius: 12px; }
.btn-sm { height: 38px; font-size: 14px; padding: 0 16px; }
.btn-block { width: 100%; }

a { color: var(--fg-link); text-decoration: none; border-bottom: none; }
a:hover { color: var(--cyan-800); }

/* ---- Inputs ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: -0.005em;
}
.field .req { color: var(--cyan-600); margin-left: 2px; }
.input, .select, .textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-1);
  background: white;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 12px 14px;
  height: 48px;
  transition: all 160ms var(--ease-out);
  width: 100%;
}
.textarea { height: auto; min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--navy-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cyan-600);
  box-shadow: var(--shadow-focus);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2332465a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--hairline-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 140ms var(--ease-out);
  user-select: none;
}
.chip-check:hover { border-color: var(--cyan-400); color: var(--navy-900); }
.chip-check.active {
  background: var(--cyan-50);
  border-color: var(--cyan-600);
  color: var(--cyan-800);
}
.chip-check input { display: none; }
.chip-check .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-strong);
  position: relative;
  flex-shrink: 0;
}
.chip-check.active .dot {
  border-color: var(--cyan-600);
  background: var(--cyan-600);
}
.chip-check.active .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: white;
}

/* File upload */
.file-drop {
  border: 1.5px dashed var(--hairline-strong);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: all 140ms var(--ease-out);
  background: white;
}
.file-drop:hover { border-color: var(--cyan-500); background: var(--cyan-50); }
.file-drop.has-files { border-color: var(--cyan-600); background: var(--cyan-50); border-style: solid; }

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: all 220ms var(--ease-out);
}
.card.interactive:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-feature {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.card-outline {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
}
.cyan-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 4px var(--cyan-100);
}

/* ---- Pill / Tag ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pill-lime {
  background: var(--brand-lime);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(213,255,126,0.55);
}
.pill-lime .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-900); }
.pill-cyan {
  background: var(--cyan-100);
  color: var(--cyan-800);
}
.pill-cyan .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-600); }
.pill-navy {
  background: rgba(255,255,255,0.10);
  color: white;
  border: 1px solid rgba(255,255,255,0.16);
}

/* ---- Background motifs ---- */
.bg-grid {
  position: relative;
}
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(50,70,90,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50,70,90,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.bg-grid-dark::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.bg-glow-cyan::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19,181,234,0.35) 0%, rgba(19,181,234,0) 60%);
  top: -180px;
  right: -200px;
  pointer-events: none;
  filter: blur(8px);
}
.bg-glow-lime::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,255,126,0.30) 0%, rgba(213,255,126,0) 60%);
  bottom: -140px;
  left: -120px;
  pointer-events: none;
  filter: blur(8px);
}

/* ---- Hairline divider ---- */
.hr-line {
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 0;
}

/* ---- Sticky nav drawer (mobile) ---- */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: white;
  z-index: 60;
  padding: 24px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 280ms var(--ease-out), visibility 0s linear 280ms;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 280ms var(--ease-out), visibility 0s linear 0s;
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .container, .container-wide { padding: 0 20px; }
}
@media (max-width: 640px) {
  .btn-lg { height: 52px; font-size: 15px; padding: 0 22px; }
}

/* ---- Utility ---- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }
.gap-7 { gap: 48px; }
.text-center { text-align: center; }
.relative { position: relative; }
.full-w { width: 100%; }
.muted { color: var(--fg-3); }
.muted-2 { color: var(--fg-4); }
.bold { font-weight: 700; }
.heavy { font-weight: 900; }
.no-wrap { white-space: nowrap; }
