/* BetterGuard brand site - base layer: reset, tokens, primitives. */

/* Tokens are also in /tokens.css; mirrored here so base.css ships standalone. */
@import url('../../tokens.css');

/* ---------- modern minimal reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 900px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  code, kbd, samp { overflow-wrap: anywhere; word-break: break-word; }
  p, li, dd, dt, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
}
body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--color-link); text-decoration: none; transition: color var(--motion-duration-fast) var(--motion-ease-out); }
a:hover { color: var(--color-link-hover); }
code, kbd, pre, samp { font-family: var(--font-mono); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-xl) 0; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background-color: var(--color-cyan);
  color: #fff;
  font-weight: 600;
  z-index: 9999;
  border-radius: var(--radius-skip-link);
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

/* ---------- focus ring ---------- */
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

.shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
}

.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  backdrop-filter: blur(16px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-cyan);
  background: var(--color-section-badge-bg);
  border: 1px solid var(--color-section-badge-border);
  padding: 6px 12px;
  border-radius: var(--radius-related);
}

/* ---------- type utilities ---------- */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero-size);
  font-weight: var(--text-hero-weight);
  line-height: var(--text-hero-line);
  letter-spacing: var(--text-hero-tracking);
}
.t-section-lg {
  font-family: var(--font-display);
  font-size: var(--text-section-lg-size);
  font-weight: var(--text-section-lg-weight);
  line-height: var(--text-section-lg-line);
  letter-spacing: var(--text-section-lg-tracking);
}
.t-section-md {
  font-family: var(--font-display);
  font-size: var(--text-section-md-size);
  font-weight: var(--text-section-md-weight);
  line-height: var(--text-section-md-line);
  letter-spacing: var(--text-section-md-tracking);
}
.t-section-sm {
  font-family: var(--font-display);
  font-size: var(--text-section-sm-size);
  font-weight: var(--text-section-sm-weight);
  line-height: var(--text-section-sm-line);
}
.t-lead {
  font-size: var(--text-lead-size);
  line-height: var(--text-lead-line);
  color: var(--color-text-secondary);
}
.t-small { font-size: var(--text-small-size); color: var(--color-text-secondary); }
.t-mono { font-family: var(--font-mono); }

/* ---------- selection ---------- */
::selection { background: var(--color-cyan); color: #000; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
