:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --soft: #f1f5f9;
  --card: #ffffff;
  --tint: rgba(37, 99, 235, .08);
  --glow-a: rgba(56, 189, 248, .22);
  --glow-b: rgba(37, 99, 235, .10);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --gutter: 16px;
}
@media (min-width: 40rem) { :root { --gutter: 24px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --fg: #e5e9f2;
    --muted: #a3adc2;
    --line: #232b3f;
    --accent: #7cb7ff;
    --soft: #121a2e;
    --card: #111830;
    --tint: rgba(56, 189, 248, .10);
    --glow-a: rgba(56, 189, 248, .14);
    --glow-b: rgba(37, 99, 235, .22);
    --shadow: none;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(48rem 24rem at 85% -4rem, var(--glow-a), transparent 70%),
    radial-gradient(44rem 22rem at 5% -6rem, var(--glow-b), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
.site-header, main, .site-footer { max-width: 68rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.site-header { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; text-decoration: none; color: var(--fg); }
.brand img { display: block; }
.site-header nav a { margin-left: 1.5rem; color: var(--fg); font-weight: 500; text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

main { padding-top: 24px; padding-bottom: 56px; }
/* Document pages keep a readable line length, aligned with the logo. */
main:not(.home) > * { max-width: 46rem; }
h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 .75rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .5rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 12px 8px 0; }
th { color: var(--muted); font-weight: 600; }

/* Home page */
.home h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin-top: 0; }
.home h2 { font-size: 1.7rem; letter-spacing: -.01em; margin-top: 0; }
.home section { margin-top: 64px; }
.home .hero { margin-top: 0; display: grid; gap: 32px; align-items: center; padding: 16px 0 8px; }
@media (min-width: 56rem) { .home .hero { grid-template-columns: 1.05fr 1fr; padding-top: 40px; } }
.home .lede { font-size: 1.2rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.section-lede { color: var(--muted); max-width: 40rem; margin: .5rem 0 0; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 28px 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.whatsapp { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #38bdf8; border-radius: 16px; padding: 24px 28px; box-shadow: var(--shadow); }
.whatsapp p { margin: .5rem 0 0; max-width: 46rem; }
.badge { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.about { background: var(--soft); border-radius: 16px; padding: 28px; }
.about p { margin: .5rem 0 0; max-width: 46rem; }

/* Hero illustration (decorative inline SVG) */
.hero-art { width: 100%; height: auto; overflow: visible; }
.hero-art .panel { fill: var(--card); stroke: var(--line); }
.hero-art .bar { fill: var(--line); }
.hero-art .on { fill: var(--tint); }
.hero-art .soft { fill: var(--soft); stroke: var(--line); }
.hero-art .shadow { filter: drop-shadow(0 14px 28px rgba(15, 23, 42, .16)); }
.hero-art text { font: 12px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--fg); }
.hero-art .on-blue { fill: #fff; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 48px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer p:first-child { max-width: 36rem; }
.site-footer a { margin-right: 1rem; }
.site-footer p:first-child a { margin-right: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 8px; z-index: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
