:root {
  --bg: #f6fbfa;
  --surface: #ffffff;
  --text: #0f1f1d;
  --muted: #5b6b69;
  --border: #dbe7e5;
  --primary: #0d9488;
  --primary-strong: #0f766e;
  --primary-soft: #ccfbf1;
  --on-primary: #ffffff;
  --accent: #134e4a;
  --shadow: 0 20px 50px -20px rgba(15, 118, 110, 0.35);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07100f;
    --surface: #111b1a;
    --text: #eef7f5;
    --muted: #9fb1ae;
    --border: #22302e;
    --primary: #2dd4bf;
    --primary-strong: #5eead4;
    --primary-soft: #0f2e2b;
    --on-primary: #042f2e;
    --accent: #99f6e4;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-strong); }

img { max-width: 100%; }

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

code {
  background: var(--primary-soft);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  font-size: 0.9em;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; text-align: center; }
h3 { font-size: 1.2rem; font-weight: 800; }

section { padding: 72px 16px; max-width: 1120px; margin: 0 auto; }

/* --- Top bar ------------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
}

.topbar nav { display: flex; align-items: center; gap: 20px; }
.topbar nav a:not(.button) { color: var(--muted); text-decoration: none; font-weight: 700; }
.topbar nav a:not(.button):hover { color: var(--text); }

@media (max-width: 640px) {
  .topbar nav a:not(.button) { display: none; }
}

/* --- Buttons ------------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-2px); background: var(--primary-strong); }
.button-small { padding: 8px 18px; font-size: 0.95rem; box-shadow: none; }
.button-light { background: #ffffff; color: #0f766e; }
.button-light:hover { background: #f0fdfa; }

.invert { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { .invert { filter: brightness(0) invert(0.1); } }
.logo-glyph { color: currentColor; }

/* --- Hero --------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 4px; }
.hero h1 strong { color: var(--primary); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.cta .muted { font-size: 0.95rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
}

/* Phone mock-up of the reminder list. */
.phone {
  justify-self: center;
  width: min(330px, 100%);
  padding: 12px;
  border-radius: 44px;
  background: #0b1514;
  box-shadow: var(--shadow), 0 0 0 2px #1f2d2b;
  transform: rotate(2deg);
}
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 560px;
  padding: 18px 14px;
  border-radius: 34px;
  background: #ffffff;
  color: #0a0a0a;
  text-align: left;
  overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; padding: 6px 4px 10px; }
.burger { width: 20px; height: 14px; border-block: 3px solid #0a0a0a; position: relative; }
.burger::after { content: ''; position: absolute; left: 0; right: 0; top: 2.5px; height: 3px; background: #0a0a0a; }
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4e4e7;
  border-left: 5px solid var(--c);
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.35;
}
.card b { display: block; font-size: 1.02rem; }
.card small { display: block; color: #71717a; font-size: 0.8rem; }
.card .tag { color: #52525b; }
.bubble {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 18%, transparent);
  font-size: 1.3rem;
}
.fab {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #0d9488;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
}

/* --- Calendar vs interval ------------------------------------------------------------ */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare-card.interval { background: var(--primary); color: var(--on-primary); border-color: transparent; box-shadow: var(--shadow); }
.compare-card.interval .muted { color: inherit; opacity: 0.85; }
.label { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; opacity: 0.75; }
.quote { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; margin: 8px 0 12px; line-height: 1.2; }
.calendar .quote { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }

@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* --- Steps -------------------------------------------------------------------------- */

.steps ol { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps p { margin: 0; color: var(--muted); }
.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 900;
}

@media (max-width: 860px) { .steps ol { grid-template-columns: 1fr; } }

/* --- Examples ----------------------------------------------------------------------- */

.chips { list-style: none; padding: 0; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--c) 55%, transparent);
  font-size: 1.02rem;
}
.chips b { color: var(--c); }
@media (prefers-color-scheme: dark) { .chips b { filter: brightness(1.5); } }

/* --- Features ----------------------------------------------------------------------- */

.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.features article { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.features article p { margin: 0; color: var(--muted); }
.features .icon { display: block; font-size: 2rem; margin-bottom: 10px; }
.languages { text-align: center; margin-top: 28px; }

@media (max-width: 860px) { .features .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features .grid { grid-template-columns: 1fr; } }

/* --- Download ----------------------------------------------------------------------- */

.download-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px;
  border-radius: 28px;
  background: linear-gradient(145deg, #0d9488, #115e59);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}
.download-card h2 { margin-top: 16px; }
.download-card code { background: rgba(255, 255, 255, 0.18); }
.download-card img { border-radius: 20px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.install { text-align: left; max-width: 32em; margin: 32px auto 0; padding-left: 1.3em; }
.install li { margin-bottom: 8px; }
.note { margin: 24px auto 0; max-width: 34em; font-size: 0.95rem; opacity: 0.85; }

/* --- Footer ------------------------------------------------------------------------- */

footer { padding: 40px 16px 56px; text-align: center; color: var(--muted); border-top: 1px solid var(--border); }
footer p { margin: 4px 0; }

/* --- Changelog ---------------------------------------------------------------------- */

.section-intro { text-align: center; margin: -8px 0 32px; }
.releases { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.release { padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.release:first-child { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.release h3 { margin: 0; }
.release-date { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.release ul { margin: 0; padding-left: 1.2em; }
.release li { margin: 6px 0; }
.release li::marker { color: var(--primary); }

/* --- Ko-fi -------------------------------------------------------------------------- */

.support-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
}
.support-card h2 { text-align: left; font-size: 1.8rem; }
.support-card p { color: var(--muted); margin: 0 0 20px; }
.support-icon { font-size: 3rem; line-height: 1; }
.button-kofi { background: #ff5e5b; color: #ffffff; }
.button-kofi:hover { background: #e94f4c; }

@media (max-width: 560px) {
  .support-card { flex-direction: column; padding: 24px; }
}

/* Legal pages (privacidad.html, condiciones.html) */
.legal { max-width: 760px; padding-top: 40px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 900; }
.legal h2 { font-size: 1.35rem; text-align: left; margin-top: 2em; }
.legal li { margin: 0.35em 0; }
.legal .updated { color: var(--muted); margin-bottom: 2em; }
