:root {
  --purple: #7C3AED;
  --purple-dark: #6D28D9;
  --purple-soft: #EDE9FE;
  --green: #10B981;
  --orange: #F59E0B;
  --red: #EF4444;
  --pink: #EC4899;
  --pink-dark: #C026D3;
  --blue: #3B82F6;
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --surface-2: #F4F4F8;
  --label: #0A0A14;
  --secondary: #6B7280;
  --border: #E5E7EB;
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07070C;
    --surface: #15151D;
    --surface-2: #1E1E27;
    --label: #FAFAFA;
    --secondary: #9CA3AF;
    --border: #27272F;
    --purple-soft: #312E81;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--label);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────── decorative background ───────────── */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.bg-blob.purple {
  width: 500px;
  height: 500px;
  background: var(--purple);
  top: -100px;
  right: -150px;
}

.bg-blob.pink {
  width: 400px;
  height: 400px;
  background: var(--pink);
  bottom: -100px;
  left: -100px;
  opacity: 0.25;
}

@media (prefers-color-scheme: dark) {
  .bg-blob { opacity: 0.18; }
  .bg-blob.pink { opacity: 0.12; }
}

/* ───────────── nav ───────────── */
header.nav {
  padding: 18px 0;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--label);
  letter-spacing: -0.3px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn {
  background: var(--label);
  color: var(--bg);
  border: none;
  padding: 15px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, opacity .2s, box-shadow .2s;
  letter-spacing: -0.2px;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 12px;
}

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-form { margin: 0 auto; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--label);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, .05); }
}

h1.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.02;
  margin-bottom: 24px;
}

h1.hero-title .accent {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--secondary);
  margin-bottom: 36px;
  line-height: 1.55;
  max-width: 540px;
}

@media (max-width: 900px) {
  .hero-sub { margin-left: auto; margin-right: auto; }
}

.hero-form {
  max-width: 460px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-form input[type="email"] {
  flex: 1 1 240px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--label);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.hero-form input[type="email"]:focus {
  border-color: var(--purple);
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--secondary);
}

.success-msg {
  display: none;
  padding: 14px 18px;
  background: rgba(16, 185, 129, .1);
  border: 1.5px solid rgba(16, 185, 129, .25);
  color: var(--green);
  border-radius: 14px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14.5px;
}

.success-msg.show { display: block; }

/* ───────────── iPhone Mockup ───────────── */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 290px;
  height: 595px;
  background: linear-gradient(145deg, #1a1a22, #0a0a12);
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2a35,
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 50px 120px rgba(124, 58, 237, 0.15);
  position: relative;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s ease;
}

.phone:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #FAFAFC;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  padding: 50px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* second phone (smaller, behind) */
.phone.phone-2 {
  position: absolute;
  width: 230px;
  height: 470px;
  left: -100px;
  bottom: -40px;
  transform: perspective(1200px) rotateY(10deg) rotateX(2deg) scale(0.85);
  opacity: 0.85;
  z-index: -1;
}

.phone.phone-2 .phone-screen {
  padding: 40px 10px 10px;
  border-radius: 32px;
  gap: 8px;
}

.phone.phone-2::before {
  width: 80px;
  height: 22px;
  top: 14px;
}

@media (max-width: 900px) {
  .phone-stage { transform: scale(0.85); margin: -40px 0; }
  .phone.phone-2 { display: none; }
}

/* ───────────── UI mockup components ───────────── */
.ui-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}

.ui-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}

.ui-greeting {
  flex: 1;
}

.ui-greeting .small {
  font-size: 9px;
  color: #6B7280;
}

.ui-greeting .big {
  font-size: 13px;
  font-weight: 800;
  color: #0A0A14;
}

.ui-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F4F4F8;
  border: 1px solid #E5E7EB;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.ui-hero-card {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 16px;
  padding: 14px;
  color: white;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.ui-hero-card .label {
  font-size: 9px;
  opacity: 0.85;
  font-weight: 600;
}

.ui-hero-card .amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 2px 0 8px;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.18);
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 600;
}

.ui-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #0A0A14;
  padding: 0 4px;
  margin-top: 4px;
}

.ui-section-title::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  margin-top: 2px;
}

.ui-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.ui-stat {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 9px 6px;
  text-align: center;
}

.ui-stat .icon {
  font-size: 13px;
  margin-bottom: 4px;
}

.ui-stat .value {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.ui-stat .name {
  font-size: 8px;
  color: #6B7280;
  font-weight: 600;
}

.ui-stat.green .value { color: var(--green); }
.ui-stat.orange .value { color: var(--orange); }
.ui-stat.blue .value { color: var(--blue); }

.ui-horse-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px;
}

.ui-horse-pic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #D4A574, #8B5A3C);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.ui-horse-pic.pink { background: linear-gradient(135deg, #F472B6, #BE185D); }

.ui-horse-info { flex: 1; min-width: 0; }
.ui-horse-info .name { font-size: 11px; font-weight: 800; color: #0A0A14; }
.ui-horse-info .meta { font-size: 9px; color: #6B7280; }

.ui-chevron {
  color: #C5C5CD;
  font-size: 14px;
}

/* second phone: pregnancy view */
.ui-pregnancy {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-radius: 14px;
  padding: 12px;
  color: white;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
}

.ui-pregnancy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ui-heart {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.ui-pregnancy .status { font-size: 9px; opacity: 0.85; font-weight: 600; }
.ui-pregnancy .days { font-size: 13px; font-weight: 800; }

.ui-progress {
  height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0 8px;
}

.ui-progress-bar {
  height: 100%;
  width: 68%;
  background: white;
  border-radius: 3px;
}

.ui-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  font-size: 8px;
  margin-bottom: 8px;
}

.ui-mini-stat .label {
  opacity: 0.7;
  font-weight: 600;
}
.ui-mini-stat .value {
  font-weight: 800;
  font-size: 10px;
}

.ui-stallion {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.ui-stallion .pic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6B5B3A, #3C2F1E);
}

.ui-stallion .info { font-size: 8px; }
.ui-stallion .info .label { opacity: 0.7; }
.ui-stallion .info .name { font-weight: 800; font-size: 9.5px; }

/* ───────────── sections ───────────── */
section {
  padding: 90px 0;
  position: relative;
}

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.05;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  text-align: center;
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 56px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ───────────── pain points ───────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.pain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.pain:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.08);
}

.pain-q {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.pain-a {
  font-size: 14.5px;
  color: var(--secondary);
  line-height: 1.55;
}

.pain::before {
  content: attr(data-icon);
  font-size: 26px;
  display: block;
  margin-bottom: 12px;
}

/* ───────────── alternating feature rows ───────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 90px 0;
}

.feature-row.reverse {
  direction: rtl;
}
.feature-row.reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 60px 0;
    direction: ltr;
  }
}

.feature-text h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.feature-text p {
  font-size: 17px;
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature-tag {
  display: inline-block;
  background: var(--purple-soft);
  color: var(--purple-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

@media (prefers-color-scheme: dark) {
  .feature-tag { color: white; }
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  font-size: 15.5px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--label);
}

.feature-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* second mockup: inventario */
.ui-inv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ui-inv {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px;
}

.ui-inv .icon-bg {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}

.ui-inv.pacas .icon-bg { background: rgba(245, 158, 11, .15); }
.ui-inv.feed .icon-bg { background: rgba(16, 185, 129, .15); }
.ui-inv.med .icon-bg { background: rgba(239, 68, 68, .15); }
.ui-inv.aserrin .icon-bg { background: rgba(236, 72, 153, .15); }

.ui-inv .value {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0A0A14;
}

.ui-inv .name {
  font-size: 9px;
  color: #6B7280;
  font-weight: 600;
}

.ui-pie {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(
    var(--orange) 0% 38%,
    var(--green) 38% 60%,
    var(--red) 60% 75%,
    var(--blue) 75% 88%,
    var(--pink) 88% 100%
  );
  position: relative;
}

.ui-pie::after {
  content: "₡82k";
  position: absolute;
  inset: 22px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #0A0A14;
}

.ui-toggle {
  display: flex;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 2px;
  font-size: 9px;
  font-weight: 700;
}

.ui-toggle > div {
  flex: 1;
  text-align: center;
  padding: 4px;
  border-radius: 6px;
}

.ui-toggle > div.active {
  background: var(--purple);
  color: white;
}

/* ───────────── built-by-section ───────────── */
.built-by {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 40px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.built-by .author-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 50%;
  margin: 0 auto 20px;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.built-by h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.built-by p {
  font-size: 16px;
  color: var(--secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

/* ───────────── faq ───────────── */
.faq {
  max-width: 740px;
  margin: 0 auto;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

summary {
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  letter-spacing: -0.2px;
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  color: var(--purple);
  font-weight: 400;
  transition: transform .25s;
}

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

details p {
  margin-top: 12px;
  color: var(--secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ───────────── CTA final ───────────── */
.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 50%, var(--pink-dark) 100%);
  border-radius: 32px;
  padding: 70px 40px;
  text-align: center;
  color: white;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, white 0%, transparent 70%);
  opacity: 0.1;
  top: -150px;
  right: -100px;
  border-radius: 50%;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.1;
  position: relative;
}

.cta-band p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
}

.cta-band .hero-form {
  margin: 0 auto;
  position: relative;
}

.cta-band .hero-form input {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: white;
}

.cta-band .hero-form input::placeholder {
  color: rgba(255,255,255,0.65);
}

.cta-band .btn-primary {
  background: white;
  color: var(--purple);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ───────────── footer ───────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
  margin-top: 80px;
  color: var(--secondary);
  font-size: 14px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer a { color: var(--secondary); }
footer a:hover { color: var(--purple); }

/* ───────────── legal (privacy page) ───────────── */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0;
}

.legal h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal .meta {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 14px;
  letter-spacing: -0.4px;
}

.legal h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 10px;
}

.legal p, .legal li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--label);
}

.legal ul, .legal ol {
  padding-left: 26px;
  margin-bottom: 14px;
}

.legal strong { font-weight: 700; }

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .hero { padding: 50px 0 70px; }
  .hero-form { flex-direction: column; }
  .hero-form input, .hero-form button { width: 100%; }
  .cta-band { padding: 50px 24px; }
  .built-by { padding: 36px 24px; }
}
