/* LECHE scan page — mirrors lecheofficial.com (Next/Tailwind) tokens */
:root {
  --background: #fff;
  --foreground: #0d1b2a;
  --leche-blue: #78a7d9;
  --leche-blue-dark: #719ece;
  --leche-blue-light: #a3c6ed;
  --leche-cyan: #cce3fa;
  --border: #dbe4ee;
  --muted: #f1f5f9;
  --muted-foreground: #5a6b7b;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --page: #f4f7f9;
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
  --dur-med: .32s;
  --font-sans: Poppins, Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* VeriScan widget → LECHE palette (veriscan.css reads these) */
  --vs-brand: #78a7d9;
  --vs-brand-hover: #719ece;
  --vs-brand-disabled: #a3c6ed;
  --vs-brand-light: #cce3fa;
  --vs-text: #0d1b2a;
  --vs-text-secondary: #5a6b7b;
  --vs-text-muted: #737373;
  --vs-text-body: #5a6b7b;
  --vs-border: #dbe4ee;
  --vs-surface: #f1f5f9;
  --vs-surface-hover: #e9eef5;
  --vs-font: Poppins, Arial, Helvetica, sans-serif;
  --vs-radius-pill: 12px;
  --vs-radius-lg: 16px;
  --vs-radius-md: 12px;
  --vs-radius-sm: 12px;
  --vs-radius-xs: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; background: var(--page); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- milk drip (from lecheofficial.com) ---------- */
.milk-drip {
  pointer-events: none;
  position: absolute; left: 0; right: 0; top: -1px;
  height: 28px;
  background-image: url(/drip.svg), url(/drip.svg);
  background-position: 16% 0, 94% 0;
  background-repeat: no-repeat;
  background-size: 84px, 90px;
}
@media (min-width: 768px) {
  .milk-drip {
    height: 44px;
    background-image: url(/drip.svg), url(/drip.svg), url(/drip.svg), url(/drip.svg);
    background-position: 2% 0, 16% 0, 58% 0, 98% 0;
    background-size: 150px, 120px, 140px, 150px;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; isolation: isolate;
  background: var(--leche-blue);
}
.nav {
  position: relative; z-index: 10;
  margin: 0 auto; max-width: 80rem;
  height: 3rem; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .nav { height: 4rem; padding: 0 1.5rem; } }
.logo img { height: 2.75rem; width: auto; }
@media (min-width: 640px) { .logo img { height: 4rem; } }
@media (min-width: 768px) { .logo img { height: 4.5rem; } }
.nav-links {
  display: none; list-style: none; margin: 0; padding: 0;
  align-items: center; gap: 1.25rem;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
@media (min-width: 1280px) { .nav-links { gap: 1.75rem; } }
.nav-links a, .nav-cta {
  font-family: var(--font-mono);
  font-size: .875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.9); white-space: nowrap;
  transition: color var(--dur-med) var(--ease-smooth);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; height: 2.25rem; padding: 0 1rem;
  border-radius: .75rem; background: var(--foreground); color: #fff; font-size: .75rem;
}
@media (min-width: 1024px) { .nav-cta { display: none; } }

.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0;
  transition: transform var(--dur-med) var(--ease-smooth);
}
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(1); }

.btn-sweep { isolation: isolate; position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.btn-sweep::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sweep-color, var(--leche-blue-dark));
  transform: translateX(-102%);
  transition: transform var(--dur-med) var(--ease-smooth);
}
.btn-sweep:hover::before, .btn-sweep:focus-visible::before { transform: translateX(0); }

/* ---------- hero ---------- */
.hero {
  background: #fff; border-bottom: 1px solid rgba(0,0,0,.05);
  text-align: center; padding: 2.5rem 1rem;
}
@media (min-width: 640px) { .hero { padding: 4rem 1.5rem 3rem; } }
.eyebrow {
  margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em; color: var(--leche-blue);
}
@media (min-width: 640px) { .eyebrow { font-size: 12px; } }
.headline {
  margin: .75rem 0 0; font-weight: 800; text-transform: uppercase;
  font-size: 2.25rem; line-height: 1.02; letter-spacing: -.025em;
  background: linear-gradient(to right, var(--leche-blue-dark), var(--leche-blue), var(--leche-blue-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 640px) { .headline { font-size: 3rem; } .sm-only { display: none; } }
@media (min-width: 768px) { .headline { font-size: 3.75rem; } }
.lede {
  margin: 1rem auto 0; max-width: 36rem;
  font-size: .875rem; line-height: 1.65; color: var(--neutral-500);
}
@media (min-width: 640px) { .lede { font-size: 1rem; } }

/* ---------- card around the widget ---------- */
.panel-wrap { margin: 0 auto; max-width: 42rem; padding: 2.5rem 1rem; }
@media (min-width: 640px) { .panel-wrap { padding: 3.5rem 1.5rem; } }
.card {
  margin: 0 auto; max-width: 28rem; background: #fff;
  border: 1px solid rgba(0,0,0,.05); border-radius: 1rem;
  box-shadow: 0 28px 70px -28px rgba(120,167,217,.55);
  padding: 1.75rem 1.5rem;
}
@media (min-width: 640px) { .card { padding: 2.25rem 2rem; } }
.label {
  margin: 0 0 .75rem; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--muted-foreground);
}
.hint { margin: .875rem 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--neutral-400); }

/* widget form inside the card: keep VeriScan's layout, swap in LECHE's input look */
#veriscan-form-container.form-container { padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; max-width: none !important; border: 0 !important; }
#veriscan-form-container #veriscan-code {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace !important;
  font-weight: 600 !important; letter-spacing: .08em !important;
  background: #f1f5f9 !important; border-color: #dbe4ee !important; color: #0d1b2a !important;
}
#veriscan-form-container #veriscan-code:focus { background: #fff !important; border-color: #78a7d9 !important; box-shadow: 0 0 0 4px #cce3fa !important; }
#veriscan-form-container #veriscan-code::placeholder { color: #a3a3a3 !important; }
#veriscan-popup button[class*="veriscan"] {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace !important;
  font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .1em !important;
}

.below-card { margin: 1.25rem 0 0; text-align: center; }
.text-link {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--leche-blue-dark); transition: color .18s;
}
.text-link:hover { color: var(--leche-blue); }
.help { margin: 1.5rem auto 0; max-width: 26rem; text-align: center; font-size: 12px; line-height: 1.6; color: var(--neutral-400); }
.help a { color: var(--leche-blue-dark); }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--leche-blue); color: var(--foreground); }
.site-footer .milk-drip { top: -1px; }
.footer-grid {
  margin: 0 auto; max-width: 80rem; padding: 5rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); padding-top: 6rem; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 3.5rem; width: auto; transform: rotate(-2deg); }
.footer-brand p { margin: 1rem 0 0; font-size: .875rem; color: rgba(255,255,255,.9); line-height: 1.6; }
.site-footer h4 {
  margin: 0 0 1rem; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: #fff;
}
.footer-grid div > a { display: block; margin-bottom: .5rem; font-size: .875rem; color: rgba(255,255,255,.75); transition: color .18s; }
.footer-grid div > a:hover { color: #fff; }
.footer-note { margin: .75rem 0 0; font-size: .875rem; color: rgba(255,255,255,.75); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.2);
  margin: 0 auto; max-width: 80rem; padding: 1.25rem 1.5rem 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: 12px; color: rgba(255,255,255,.75);
}
.footer-bar .mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) {
  .btn-sweep::before, .link-underline::after { transition: none; }
}
