:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --font-sans: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --border: oklch(1 0 0 / 10%);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 64rem; /* max-w-5xl */
  margin: 0 auto;
  padding: 0 1.5rem; /* px-6 */
}

/* ── header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem 0;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.875rem; /* text-sm */
  letter-spacing: -0.025em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.logo:hover {
  color: var(--foreground);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

/* ── main ── */
.main {
  flex: 1;
}

.section {
  padding-bottom: 6rem; /* pb-24 */
}

@media (min-width: 768px) {
  .section {
    padding-bottom: 8rem; /* md:pb-32 */
  }
}

/* ── hero ── */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .title {
    font-size: 3rem; /* sm:text-5xl */
  }
}

@media (min-width: 768px) {
  .title {
    font-size: 4.5rem; /* md:text-7xl */
  }
}

.subtitle {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1.25rem;
  }
}

.hero-row {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .hero-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}

.hero-visual {
  order: -1;
}

@media (min-width: 768px) {
  .hero-visual {
    order: 2;
  }
}

.product-image {
  width: 100%;
  max-width: 20rem;
  height: auto;
  border-radius: 0.75rem; /* rounded-xl */
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 9999px; /* rounded-full */
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

.download-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ── confirmation ── */
.confirm-section {
  padding: 6rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.confirm-section[hidden],
#contenido[hidden] {
  display: none;
}

.confirm-message {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  max-width: 28rem;
}

/* ── section headings ── */
.separator {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 4rem; /* mb-16 */
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem; /* md:text-3xl */
  }
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ── features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--border);
  border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background-color: var(--background);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem; /* text-[11px] */
  color: var(--muted-foreground);
  opacity: 0.6;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.feature p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* ── footer ── */
.footer {
  padding: 2rem 0 3rem;
}

.footer .separator {
  margin-bottom: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.legal-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.legal-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-links a:hover {
  color: var(--foreground);
}
