/* ============================================================
   MyEP — Design System
   Modern, minimal, type-led. 2026.
   ============================================================ */

:root {
  --ink:        #0A0A0A;
  --ink-2:      #2A2A2A;
  --ink-3:      #525252;
  --ink-4:      #8A8782;
  --line:       #E7E5E4;
  --line-2:     #F0EEEB;
  --surface:    #FBFAF8;
  --surface-2:  #F5F4F2;
  --surface-3:  #EFEDE8;
  --brand:      #E10E1F;
  --brand-ink:  #B00A18;
  --brand-soft: #FFE8EA;
  --whatsapp:   #25D366;
  --whatsapp-ink: #128C7E;
  --positive:   #15803D;
  --warning:    #B45309;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Typography ---------------------------------------------- */
.font-display {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
}
.font-serif-accent {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.h-display {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow-dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brand);
  margin-right: 10px;
  vertical-align: 2px;
}

/* --- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: 16px 22px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1f1f1f; }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); background: #fff; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-ink); }

.btn-arrow { gap: 6px; }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* --- Pills / badges ----------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.pill-soft   { background: var(--surface-2); border-color: transparent; }
.pill-brand  { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.pill-positive { background: #E7F6EC; color: var(--positive); border-color: transparent; }
.pill-warning  { background: #FEF3C7; color: var(--warning); border-color: transparent; }
.pill-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: currentColor; display: inline-block;
}

/* --- Cards --------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card-soft {
  background: var(--surface-2);
  border-color: transparent;
}
.card-hover:hover {
  border-color: rgba(10,10,10,0.18);
  box-shadow: 0 1px 0 rgba(10,10,10,.04), 0 16px 40px -8px rgba(10,10,10,.08);
}
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }

/* --- Inputs -------------------------------------------------- */
.input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10,10,10,0.06);
}
.input::placeholder { color: var(--ink-4); }

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
  display: block;
}

/* --- Tabs --------------------------------------------------- */
.tab-group {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.tab {
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: color .15s ease, background .15s ease;
}
.tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(10,10,10,0.06);
}

/* --- Marquee / continuous strip ----------------------------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

/* --- Section base ------------------------------------------- */
.section { padding-top: 96px; padding-bottom: 96px; }
@media (max-width: 768px) { .section { padding-top: 64px; padding-bottom: 64px; } }

.divider-thin { border-color: var(--line); }

/* --- Hero gradient mesh (subtle) ---------------------------- */
.hero-bg {
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(225,14,31,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(225,14,31,0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg > * { position: relative; z-index: 1; }

/* --- Numeric tracker mock ----------------------------------- */
.tracker-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.tracker-step {
  position: relative;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.tracker-step:last-child { border-right: none; }
.tracker-step .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--line);
  margin-bottom: 8px;
}
.tracker-step.done .dot { background: var(--positive); }
.tracker-step.active .dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

/* --- Header sticky ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  background: rgba(251, 250, 248, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

/* --- Logo --------------------------------------------------- */
.logo-mark { display: inline-flex; align-items: center; line-height: 0; flex: none; }
.logo-mark img { display: block; height: 44px; width: auto; }
.logo-mark-lg img { height: 84px; }
.logo-mark-sm img { height: 32px; }

/* --- Anim utilities ----------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .6s ease both; }
.fade-up-d1 { animation-delay: .05s; }
.fade-up-d2 { animation-delay: .12s; }
.fade-up-d3 { animation-delay: .2s; }

/* --- Marquee ------------------------------------------------ */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 40s linear infinite;
}

/* --- Prose for service pages -------------------------------- */
.prose-myep h2 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: 36px;
  margin-top: 1.5em;
  margin-bottom: .5em;
}
.prose-myep h3 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 20px;
  margin-top: 1.2em;
  margin-bottom: .4em;
}
.prose-myep p { color: var(--ink-2); line-height: 1.65; }
.prose-myep ul { list-style: none; padding: 0; margin: 1em 0; }
.prose-myep ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-2);
}
.prose-myep ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 2px;
  background: var(--brand);
}

/* --- Subtle dotted background pattern ----------------------- */
.bg-dots {
  background-image: radial-gradient(rgba(10,10,10,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
}
