/*
 * Diagraw marketing landings — minimal typographic system.
 * No cards, gradients or shadows: hierarchy comes from type, whitespace and
 * hairline rules. One brand accent, used sparingly. Shared by every landing
 * under /es and /en, so all styling lives here (the pages carry no inline CSS).
 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0b1120;
  --body: #33415c;
  --muted: #64748b;
  --line: #e7e9ee;
  --line-strong: #d5d9e0;
  --accent: #3b5bdb;
  --accent-ink: #2c46ad;
  --measure: 42rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-ink);
}

.wrap {
  width: min(64rem, calc(100vw - 48px));
  margin: 0 auto;
}

/* Header ------------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand img {
  width: 26px;
  height: 26px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

/* Typography -------------------------------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding: 84px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.lead {
  margin: 22px 0 0;
  max-width: var(--measure);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-ink);
  color: #fff;
}

.btn-secondary {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* Hero value props (the "mini" row): plain text, no boxes. */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Sections ---------------------------------------------------------------- */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 40px;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Entry grids: boxless, structured by a hairline rule on top of each item. */
.feature-grid,
.step-grid,
.related-grid {
  display: grid;
  gap: 4px 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature,
.step,
.faq,
.related-card {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  gap: 0;
  max-width: var(--measure);
}

.mini-card p,
.feature p,
.step p,
.faq p,
.related-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.related-card a {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

/* Plain list of capabilities. */
.list-card {
  max-width: var(--measure);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-card li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--line);
  color: var(--body);
}

.list-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* Footer ------------------------------------------------------------------ */
.footer {
  padding: 72px 0 96px;
  border-top: 1px solid var(--line);
}

.footer h2 {
  max-width: var(--measure);
}

.footer p {
  margin: 16px 0 0;
  max-width: var(--measure);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 700;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-grid {
    gap: 44px;
  }

  .section {
    padding: 48px 0;
  }

  .mini-grid,
  .feature-grid,
  .step-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mini-card {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    margin-top: 24px;
  }

  .mini-card:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}
