/* Reset suave + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background: var(--vp-bg);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--vp-text);
  background:
    radial-gradient(900px 540px at -10% -12%, rgba(var(--vp-primary-rgb), .10), transparent 60%),
    radial-gradient(760px 480px at 112% 14%, rgba(var(--vp-accent-rgb), .08), transparent 58%),
    linear-gradient(180deg, #fbfdff 0%, var(--vp-bg) 36%, #f3f7fb 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: 0; }

a {
  color: var(--vp-primary);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}
a:hover { color: var(--vp-primary-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--vp-n900);
}
h1 { font-size: var(--fs-3xl); line-height: var(--lh-3xl); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: var(--fs-2xl); line-height: var(--lh-2xl); font-weight: 700; letter-spacing: -0.035em; }
h3 { font-size: var(--fs-xl);  line-height: var(--lh-xl);  font-weight: 700; letter-spacing: -0.025em; }
h4 { font-size: var(--fs-lg);  line-height: var(--lh-lg);  font-weight: 600; letter-spacing: -0.02em; }

p { line-height: var(--lh-base); }
hr { border: 0; border-top: 1px solid var(--vp-border); }

::selection {
  background: rgba(var(--vp-primary-rgb), .16);
  color: var(--vp-n900);
}

.muted       { color: var(--vp-text-muted); }
.text-xs     { font-size: var(--fs-xs);  line-height: var(--lh-xs); }
.text-sm     { font-size: var(--fs-sm);  line-height: var(--lh-sm); }
.text-lg     { font-size: var(--fs-lg);  line-height: var(--lh-lg); }
.text-xl     { font-size: var(--fs-xl);  line-height: var(--lh-xl); }
.text-2xl    { font-size: var(--fs-2xl); line-height: var(--lh-2xl); }
.text-3xl    { font-size: var(--fs-3xl); line-height: var(--lh-3xl); }
.text-money  {
  font-size: var(--fs-money);
  line-height: var(--lh-money);
  letter-spacing: -0.05em;
  font-family: var(--font-display);
}

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.tc-primary { color: var(--vp-primary); }
.tc-success { color: var(--vp-success); }
.tc-danger  { color: var(--vp-danger); }
.tc-warn    { color: var(--vp-warn); }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
@media (min-width: 768px) {
  .container { padding: 0 clamp(1.5rem, 2vw, 2rem); }
}

.stack    > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.row         { display: flex; gap: var(--sp-3); align-items: center; }
.row-between { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; }
.row-wrap    { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.grow        { flex: 1 1 auto; }
.col         { display: flex; flex-direction: column; gap: var(--sp-3); }
.center      { display: flex; align-items: center; justify-content: center; }

.hide { display: none !important; }
@media (min-width: 768px) { .hide-md\:up { display: none !important; } }
@media (max-width: 767px) { .hide-md\:dn { display: none !important; } }

.safe-bottom { padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom)); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
