/* Reset, type and primitives. Lifted from helpmecto-web/static/css/base.css; inline hex -> tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--selection-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-2); line-height: 1.6; max-width: 60ch; }
.lead strong { color: var(--text); font-weight: 650; }
.text-gradient { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow--live { color: var(--text-2); }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }  /* breadcrumb (Site › Warehouse) */
.label-mono { color: var(--muted); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
    --btn-bg: var(--panel-2); --btn-fg: var(--text); --btn-bd: var(--line-2);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 10px 20px;
    border: 1px solid var(--btn-bd); border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: .95rem; font-weight: 650; letter-spacing: -.005em; line-height: 1;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: transparent; box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 var(--btn-highlight); }
.btn--primary:hover { --btn-bg: var(--accent-hover); box-shadow: 0 12px 40px -8px var(--accent-glow-strong), inset 0 1px 0 var(--btn-highlight); }
.btn--ghost { --btn-bg: var(--overlay-3); }
.btn--ghost:hover { --btn-bg: var(--overlay-5); --btn-bd: var(--overlay-6); }
.btn--danger { --btn-bg: var(--red-tint); --btn-fg: var(--red); --btn-bd: var(--red-soft); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn--icon.btn--sm { width: 38px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .2s, gap .2s; }
.link-arrow::after { content: "→"; color: var(--accent); }
.link-arrow:hover { border-color: var(--accent); gap: 12px; }
button.link-arrow { background: none; border-width: 0 0 1px; border-radius: 0; font-family: var(--font-mono); cursor: pointer; }

/* Badges, dots, swatches */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--badge-bg); border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge--accent { border-color: var(--accent-border-soft); background: var(--accent-soft); color: var(--accent-text); }
.badge--green { border-color: var(--green-border); background: var(--green-tint); color: var(--green); }
.badge--red { border-color: var(--red-soft); background: var(--red-tint); color: var(--red); }
.tag { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tag--muted { background: var(--overlay-3); color: var(--muted); }

.pulse-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: var(--accent); opacity: 0; animation: pulse 2s ease-out infinite; }
.pulse-dot--green { background: var(--green); }
.pulse-dot--green::after { color: var(--green); }
.live-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='%23ff6a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.check-list strong { color: var(--text); }

/* Icons: inline SVG, stroke currentColor (helpmecto convention). */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Scroll reveal: content is visible by default; JS opts in by adding .js-reveal to <html>. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
