/*
 * Misma paleta monocroma que reminders-app: sin color de marca, el peso visual lo llevan
 * el contraste, el espacio y los bordes. Los tokens estan copiados de globals.css a proposito,
 * para que la landing y el producto se lean como la misma cosa.
 */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0 0);
  --primary: oklch(0.21 0 0);
  --primary-foreground: oklch(0.99 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.55 0 0);
  --accent: oklch(0.955 0 0);
  --panel: oklch(0.2 0 0);
  --panel-foreground: oklch(0.98 0 0);
  --border: oklch(0.9 0 0);
  --input: oklch(0.89 0 0);
  --ring: oklch(0.45 0 0);
  --success: oklch(0.56 0.13 155);
  --destructive: oklch(0.58 0.21 25);

  --radius: 0.6rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.6rem;

  --font-heading: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --container: 68rem;
  --gutter: 1.5rem;
  --section-y: clamp(2.25rem, 4.5vw, 3.75rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.16 0 0);
    --foreground: oklch(0.97 0 0);
    --primary: oklch(0.97 0 0);
    --primary-foreground: oklch(0.18 0 0);
    --muted: oklch(0.22 0 0);
    --muted-foreground: oklch(0.7 0 0);
    --accent: oklch(0.25 0 0);
    --panel: oklch(0.23 0 0);
    --panel-foreground: oklch(0.98 0 0);
    --border: oklch(0.29 0 0);
    --input: oklch(0.32 0 0);
    --ring: oklch(0.65 0 0);
    --success: oklch(0.72 0.14 155);
    --destructive: oklch(0.68 0.19 25);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: calc(var(--radius) * 0.6);
}

.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;
}

.skip-link {
  position: absolute; left: 50%; top: 0.5rem; transform: translate(-50%, -200%);
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 50;
  text-decoration: none; font-size: 0.9rem;
}
.skip-link:focus { transform: translate(-50%, 0); }

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

.narrow-container { max-width: 44rem; }
.center { text-align: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark { width: 1.25rem; height: 1.25rem; flex: none; }

.header-nav {
  display: none;
  gap: 1.75rem;
  margin-inline-start: auto;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.header-nav a { text-decoration: none; transition: color 0.15s ease; }
.header-nav a:hover { color: var(--foreground); }

.header-cta { margin-inline-start: auto; }

@media (min-width: 56rem) {
  .header-nav { display: flex; }
  .header-cta { margin-inline-start: 0; }
}

/* ---------- primitives ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--muted-foreground); }
.input:hover { border-color: var(--ring); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.dot {
  width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--success); flex: none;
}

.section { padding-block: var(--section-y); }

main > section + section {
  border-top: 1px solid var(--border);
}

.section-title { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }

.section-lede {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  text-wrap: pretty;
}

.section-lede.narrow { max-width: 36rem; }
.center .section-lede { margin-inline: auto; }

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

.hero {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }

.hero .lede {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 34rem;
  text-wrap: pretty;
}

/* ---------- signup form ---------- */

.signup { margin-top: 2rem; max-width: 30rem; }
.signup-center { margin-inline: auto; }

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.signup-stack { display: flex; flex-direction: column; gap: 0.7rem; }

.field { text-align: start; }

.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.field-optional {
  font-weight: 400;
  opacity: 0.75;
}

.textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.55;
}

.btn-block { width: 100%; }

.signup-row { display: flex; flex-direction: column; gap: 0.6rem; }

@media (min-width: 30rem) {
  .signup-row { flex-direction: row; }
  .signup-row .input { flex: 1; }
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.form-status {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.25rem;
}
.form-status[data-state="ok"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--destructive); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  text-align: start;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent a { color: var(--foreground); text-underline-offset: 2px; }
.consent a:hover { text-decoration: none; }

.signup-center .consent { max-width: 26rem; margin-inline: auto; }

.signup[data-done="true"] .signup-stack,
.signup[data-done="true"] .signup-row,
.signup[data-done="true"] .consent,
.signup[data-done="true"] .form-note { display: none; }

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

.hero-visual { position: relative; }

.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  overflow: hidden;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.04), 0 18px 45px -20px oklch(0 0 0 / 0.22);
}

.mock-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.mock-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--border);
}

.mock-body { padding: 1.5rem; }

.mock-from {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mock-subject {
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.mock-card {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--muted);
}

.mock-label {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mock-when {
  margin-top: 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mock-where {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.mock-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

.mock-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mock-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.mock-toast {
  position: absolute;
  left: 0.5rem;
  bottom: -1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 10px 30px -12px oklch(0 0 0 / 0.3);
  animation: toast-in 0.5s ease-out 0.5s backwards;
}

.tick {
  display: grid;
  place-items: center;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--success);
  color: oklch(1 0 0);
  flex: none;
}
.tick svg { width: 0.8rem; height: 0.8rem; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 60rem) {
  .mock-toast { left: -1.75rem; bottom: 1.5rem; }
}

/* ---------- cost ---------- */

.cost-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .cost-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.calc {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--muted);
}

.calc-caption {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

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

.calc-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.calc-rows b {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.1rem;
}

.calc-total span { font-size: 0.9375rem; color: var(--muted-foreground); }

.calc-total b {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.calc-foot {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.step {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  display: grid;
  place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.step h3 { margin-top: 1.1rem; font-size: 1.125rem; }

.step p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

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

.features {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
}

.feature h3 { font-size: 1.0625rem; }

.feature p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ---------- status ---------- */

.status-box {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--panel-foreground);
}

.status-box .eyebrow { color: oklch(0.75 0 0); }
.status-box .section-title { max-width: 26ch; }

.status-box p {
  margin-top: 1rem;
  color: oklch(0.82 0 0);
  max-width: 46rem;
  text-wrap: pretty;
}

/* ---------- faq ---------- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--border); }

.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
  flex: none;
  line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding-bottom: 1.25rem;
  margin-top: -0.25rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 40rem;
  text-wrap: pretty;
}

/* ---------- legal ---------- */

.legal { max-width: 44rem; }

.legal-title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }

.legal-updated {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.legal-intro {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.legal h2 {
  margin-top: 2.75rem;
  font-size: 1.1875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.legal strong { color: var(--foreground); font-weight: 500; }

.legal a { color: var(--foreground); text-underline-offset: 2px; }

.legal-list {
  margin: 1rem 0 0;
  padding-inline-start: 1.15rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.legal-list li { margin-top: 0.5rem; }

.legal-data {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.legal-data li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.legal-data li + li { border-top: 1px solid var(--border); }

.legal-data b { color: var(--foreground); font-weight: 500; }

/* ---------- cta + footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--muted);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-note, .footer-legal {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--foreground); text-decoration: underline; }

@media (min-width: 48rem) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .footer-note { margin-inline-start: auto; }
}
