/* ============================================================
   leaf — sitio público
   Design tokens: mismo sistema que la app, un solo modo claro.
   No hay dark mode acá a propósito.
   ============================================================ */

:root {
  --bg: #F5F1E8;
  --surface: #FBF8F0;
  --surface-alt: #EFE9DA;
  --border: #DDD4C3;
  --rule: rgba(17, 17, 17, 0.10);
  --accent: #123D2D;
  --accent-tint: rgba(18, 61, 45, 0.08);
  --on-accent: #F5F1E8;
  --text: #111111;
  --text-muted: #6b6a63;
  --text-faint: #8a8980;
  --danger: #8b2230;
  --danger-tint: rgba(139, 34, 48, 0.06);

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 720px;
  --gutter: 24px;
}

/* ---------- reset mínimo ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-tint);
  transition: border-color 120ms ease;
}

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

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ---------- tipografía ---------- */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

h1 {
  font-size: 46px;
  line-height: 1.12;
}

h2 {
  font-size: 27px;
  line-height: 1.25;
}

h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.faint {
  color: var(--text-faint);
}

/* ---------- header ---------- */

.site-header {
  padding: 28px 0;
}

.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  border-bottom: none;
}

.wordmark:hover {
  border-bottom: none;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-muted);
  border-bottom: none;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom: none;
}

/* ---------- hero ---------- */

.hero {
  border-top: 1px solid var(--rule);
  padding: 56px 0 48px;
}

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 22px;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 12ch;
}

.hero .lede {
  max-width: 54ch;
}

/* ---------- secciones ---------- */

.section {
  border-top: 1px solid var(--rule);
  padding: 44px 0;
}

.section-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 24px;
}

/* ---------- features ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.features li:first-child {
  border-top: none;
  padding-top: 0;
}

.features li:last-child {
  padding-bottom: 0;
}

.features h3 {
  margin-bottom: 5px;
}

.features p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* ---------- datos ---------- */

.section-datos h2 {
  margin-bottom: 16px;
}

.section-datos p {
  color: var(--text-muted);
  max-width: 60ch;
}

.arrow-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}

/* ---------- política de privacidad ---------- */

.doc-header {
  border-top: 1px solid var(--rule);
  padding: 48px 0 32px;
}

.doc-header h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.doc-meta {
  font-size: 14.5px;
  color: var(--text-faint);
  margin: 0;
}

.doc section {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
}

.doc section h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.doc section h3 {
  margin: 22px 0 6px;
}

.doc p,
.doc li {
  color: var(--text-muted);
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc li:last-child {
  margin-bottom: 0;
}

/* callout — se usa para el bloque de eliminación de cuenta */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 20px 0;
}

.callout h3 {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-danger {
  background: var(--danger-tint);
  border-color: rgba(139, 34, 48, 0.18);
}

.callout-danger strong {
  color: var(--danger);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
  margin-top: 8px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-size: 14.5px;
  color: var(--text-faint);
}

.site-footer .wordmark {
  font-size: 19px;
  margin-right: auto;
}

.site-footer a {
  color: var(--text-muted);
  border-bottom: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ---------- responsive ---------- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .hero h1 {
    max-width: none;
  }

  .doc-header h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .section,
  .doc section {
    padding: 32px 0;
  }

  .site-footer .wordmark {
    margin-right: 0;
    width: 100%;
  }
}
