/* Labelbound holding page. Values mirror brand/tokens.json (palette A); change the tokens first, then this file.
   The page is dark by default (data-theme="dark" on <html>); light tokens are kept for the portal and later pages. */
:root {
  --lb-ink: #14181F;
  --lb-paper: #F7F8FA;
  --lb-bound: #0B4F8A;
  --lb-neutral: #6B7280;
  --lb-rule: #D5D9E0;
  --lb-verify: #1F8A5B;
  --lb-alert: #B42318;
  --lb-caution: #B7791F;
  --lb-glow: rgba(11, 79, 138, 0.35);
  --lb-font-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lb-font-mono: "JetBrains Mono", Consolas, Menlo, monospace;
  --lb-radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lb-ink: #E6E9EE;
    --lb-paper: #0F1318;
    --lb-bound: #3D7CB8;
    --lb-neutral: #9AA3AF;
    --lb-rule: #2A313B;
    --lb-glow: rgba(61, 124, 184, 0.28);
  }
}
:root[data-theme="dark"] {
  --lb-ink: #E6E9EE;
  --lb-paper: #0F1318;
  --lb-bound: #3D7CB8;
  --lb-neutral: #9AA3AF;
  --lb-rule: #2A313B;
  --lb-glow: rgba(61, 124, 184, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--lb-paper);
  color: var(--lb-ink);
  font: 400 1rem/1.5 var(--lb-font-ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background: two slow glows and one light sweep. Abstract on purpose; nothing here depicts the product. */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.9; }
.glow-a { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: radial-gradient(closest-side, var(--lb-glow), transparent 70%); animation: drift-a 26s ease-in-out infinite alternate; }
.glow-b { width: 50vmax; height: 50vmax; right: -18vmax; bottom: -22vmax; background: radial-gradient(closest-side, rgba(31,138,91,0.18), transparent 70%); animation: drift-b 34s ease-in-out infinite alternate; }
.sweep { position: absolute; top: -20%; left: -40%; width: 40%; height: 140%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(230,233,238,0.05), transparent); animation: sweep 14s linear infinite; }
@keyframes drift-a { from { transform: translate(0,0) scale(1); } to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vmax, -8vmax) scale(1.1); } }
@keyframes sweep { from { left: -45%; } to { left: 115%; } }

.top, main, footer { position: relative; z-index: 1; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-size: 0.8125rem; color: var(--lb-neutral); letter-spacing: 0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.6875rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--lb-font-mono); font-size: 0.75rem; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lb-verify); box-shadow: 0 0 0 0 rgba(31,138,91,0.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,138,91,0.55); } 70% { box-shadow: 0 0 0 10px rgba(31,138,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,138,91,0); } }
#status-text { display: inline-block; transition: opacity 0.26s ease, transform 0.26s ease; }
#status-text.swap { opacity: 0; transform: translateY(4px); }

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 48px; }
.hero { max-width: 720px; width: 100%; text-align: left; }

/* The mark: label and carton drift apart, come together, and the bar locks with a pulse. Loops every 9 s. */
.mark { color: var(--lb-ink); width: 96px; height: auto; display: block; margin-bottom: 20px; overflow: visible; }
.m-left  { animation: left-in  9s cubic-bezier(.2,.8,.2,1) infinite; transform-box: fill-box; transform-origin: center; }
.m-right { animation: right-in 9s cubic-bezier(.2,.8,.2,1) infinite; transform-box: fill-box; transform-origin: center; }
.m-bar   { stroke-dasharray: 20; stroke-dashoffset: 20; animation: bar-in 9s ease-out infinite; }
.m-pulse { opacity: 0; animation: pulse 9s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes left-in  { 0%,10% { transform: translateX(-18px); opacity: .35; } 35%,100% { transform: translateX(0); opacity: 1; } }
@keyframes right-in { 0%,10% { transform: translateX(18px);  opacity: .35; } 35%,100% { transform: translateX(0); opacity: 1; } }
@keyframes bar-in   { 0%,38% { stroke-dashoffset: 20; } 50%,100% { stroke-dashoffset: 0; } }
@keyframes pulse    { 0%,48% { opacity: 0; transform: scale(.4); } 52% { opacity: .9; transform: scale(.6); } 75%,100% { opacity: 0; transform: scale(3.2); } }

.wordmark { font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 0 0 36px; color: var(--lb-ink); }

.line { font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; opacity: 0; transform: translateY(10px); animation: rise 0.9s ease-out forwards; }
.line-1 { animation-delay: 0.3s; color: var(--lb-neutral); }
.line-2 { animation-delay: 1.4s; color: var(--lb-neutral); }
.line-3 { animation-delay: 2.7s; color: var(--lb-ink); }
.line strong { font-weight: 600; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.tag { margin: 28px 0 8px; font-family: var(--lb-font-mono); font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lb-bound); opacity: 0; animation: rise 0.9s ease-out 3.8s forwards; }
.cat { margin: 0 0 28px; color: var(--lb-neutral); max-width: 56ch; opacity: 0; animation: rise 0.9s ease-out 4.3s forwards; }

.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; opacity: 0; animation: rise 0.9s ease-out 4.8s forwards; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--lb-bound); color: #fff; font-weight: 500; text-decoration: none; box-shadow: 0 0 0 0 var(--lb-glow); transition: box-shadow .3s ease, transform .2s ease; }
.btn:hover, .btn:focus-visible { box-shadow: 0 0 0 8px var(--lb-glow); transform: translateY(-1px); text-decoration: none; }
.link { color: var(--lb-ink); text-decoration: none; font-family: var(--lb-font-mono); font-size: 0.9375rem; }
.link:hover, .link:focus-visible { text-decoration: underline; }
a { color: var(--lb-bound); }

.fine { margin: 32px 0 0; font-size: 0.8125rem; color: var(--lb-neutral); max-width: 60ch; opacity: 0; animation: rise 0.9s ease-out 5.3s forwards; }

footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; padding: 16px; font-size: 0.75rem; color: var(--lb-neutral); border-top: 1px solid var(--lb-rule); }
footer a { color: var(--lb-neutral); }

@media (prefers-reduced-motion: reduce) {
  .glow, .sweep, .m-left, .m-right, .m-bar, .m-pulse, .status .dot { animation: none !important; }
  .m-bar { stroke-dashoffset: 0; }
  .line, .tag, .cat, .actions, .fine { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .top { padding: 16px; }
  main { padding: 16px 16px 40px; }
}
