/* 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;
  }
}
.drip-drop {
  position: absolute; top: 16px; left: calc(16% + 34px);
  width: 6px; height: 8px; opacity: 0; pointer-events: none;
  border: 1px solid rgba(255,255,255,.9); border-radius: 50% 50% 55% 55% / 40% 40% 60% 60%;
  animation: drip-fall 9s linear infinite;
}
@media (min-width: 768px) { .drip-drop { top: 26px; left: calc(16% + 48px); } }
@keyframes drip-fall {
  0%, 76% { opacity: 0; transform: translateY(0) scale(.45); }
  80% { opacity: .9; transform: translateY(1px) scale(.7); }
  85% { opacity: .9; transform: translateY(3px) scaleX(.85) scaleY(1.2); }
  95% { opacity: .8; transform: translateY(22px) scale(.85); }
  100% { opacity: 0; transform: translateY(30px) scale(.8); }
}

/* ---------- header: logo only, reloads this page ---------- */
.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: center;
}
@media (min-width: 640px) { .nav { height: 4rem; padding: 0 1.5rem; } }
/* logo is centered, so keep the drips off the middle of the header */
@media (min-width: 768px) {
  .site-header .milk-drip { background-position: 2% 0, 22% 0, 78% 0, 98% 0; }
  .site-header .drip-drop { left: calc(22% + 40px); }
}
.logo img { height: 2.75rem; width: auto; }
@media (min-width: 640px) { .logo img { height: 4rem; } }
@media (min-width: 768px) { .logo img { height: 4.5rem; } }

/* ---------- 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;
}
/* small phones: give the code input enough room for its full placeholder */
@media (max-width: 380px) {
  .panel-wrap { padding-left: .75rem; padding-right: .75rem; }
  .card { padding: 1.5rem 1rem; }
}
@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; }
@media (max-width: 380px) {
  #veriscan-form-container #veriscan-code { letter-spacing: .02em !important; }
}
/* #veriscan-popup-content raises specificity over veriscan.css's own .vs-popup-close-btn rules */
#veriscan-popup #veriscan-popup-content button {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace !important;
  font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .1em !important;
}
/* close button: inset, rounded LECHE button instead of an edge-to-edge bar (clear of the iPhone home indicator) */
#veriscan-popup #veriscan-popup-content .vs-popup-close-btn {
  width: calc(100% - 3rem) !important; margin: .5rem 1.5rem 1.5rem !important;
  border-radius: .75rem !important; font-size: .875rem !important;
}
#veriscan-popup #veriscan-popup-content .vs-popup-close-btn:focus { outline: none !important; }
#veriscan-popup #veriscan-popup-content .vs-popup-close-btn:focus-visible { outline: 2px solid #78a7d9 !important; outline-offset: 3px !important; }
@media (max-width: 600px) {
  #veriscan-popup #veriscan-popup-content .vs-popup-close-btn {
    width: calc(100% - 2rem) !important;
    margin: .5rem 1rem max(1rem, env(safe-area-inset-bottom)) !important;
  }
}

/* ---------- footer: what this page is ---------- */
.site-footer { background: var(--leche-blue); padding: 2.5rem 0 1.5rem; }
@media (min-width: 640px) { .site-footer { padding: 4rem 0 2.5rem; } }
.footer-inner { margin: 0 auto; max-width: 80rem; padding: 0 1.5rem; }
@media (min-width: 768px) { .footer-inner { padding: 0 2.5rem; } }
.footer-about { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-about img { height: 3rem; width: auto; }
@media (min-width: 640px) { .footer-about img { height: 4rem; } }
.footer-about p { margin: 0; max-width: 32rem; font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.8); }

.footer-bar {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); text-align: center;
}
@media (min-width: 640px) { .footer-bar { flex-direction: row; margin-top: 3rem; padding-top: 2rem; text-align: left; } }
.footer-bar p { margin: 0; font-size: .75rem; line-height: 1rem; color: rgba(255,255,255,.6); }
.footer-bar .mono { margin-top: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
@media (min-width: 640px) { .footer-bar .mono { margin-top: 0; } }

@media (prefers-reduced-motion: reduce) {
  .drip-drop { display: none; }
}
