@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  --ink: #142540;
  --ink-soft: #526178;
  --blue: #0759c7;
  --blue-deep: #083e93;
  --blue-pale: #edf5ff;
  --aqua: #d9f3f1;
  --paper: #fffefd;
  --canvas: #f6f8fb;
  --line: #dfe6ee;
  --line-strong: #c7d5e4;
  --warm: #f5b841;
  --shadow: 0 18px 50px rgba(23, 44, 78, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.login-page { background: var(--canvas); }

.site-header,
.login-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 5.7rem;
  padding: 0.85rem 2rem;
  width: 100%;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.35rem 1.2rem rgba(16, 35, 62, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.login-header { justify-content: flex-start; }
.brand-mark { align-items: center; display: inline-flex; flex: 0 0 auto; }
.brand-logo { display: block; height: 3.35rem; object-fit: contain; width: auto; }
.brand-logo-wide { max-width: 10.5rem; }
.proposal-brand-logo { max-width: 9rem; }

.nav-links { align-items: center; display: flex; gap: 1.45rem; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--blue); }
.nav-links .logout-link { border-left: 1px solid var(--line); color: var(--blue); padding-left: 1.45rem; }

.login-shell,
.hero-shell,
.section,
.proposal-strip,
.site-footer {
  margin-inline: auto;
  max-width: 1240px;
  width: min(100%, 1240px);
}

.login-shell { align-items: center; display: grid; min-height: 100vh; padding: 2rem; place-items: center; }
.login-grid {
  align-items: stretch;
  display: grid;
  gap: clamp(2.5rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
}
.login-copy { align-self: center; max-width: 43rem; }

.eyebrow,
.hero-card-label,
.detail-kicker,
.support-kicker,
.proposal-strip span,
.engagement-card span,
.terms-list dt,
.secure-pill,
.login-highlights span,
.capability-index,
.timeline article span {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 1rem; }
h1, h2, h3 {
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 { font-size: clamp(2.55rem, 4.8vw, 4.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.18; }
h3 { font-size: 1.23rem; line-height: 1.25; }
p { margin: 0; }

.login-copy-text,
.hero-copy,
.section-heading p,
.terms-layout > div > p:last-child { color: var(--ink-soft); }
.login-copy-text { font-size: 1.1rem; margin-top: 1.45rem; max-width: 39rem; }

.login-highlights {
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
  padding-top: 1.2rem;
}
.login-highlights div { min-height: 5.6rem; }
.login-highlights strong { display: block; font-size: 0.93rem; line-height: 1.35; margin-top: 0.45rem; }

.logo-pair-card {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  margin-top: 2.25rem;
  padding-top: 1.4rem;
}
.logo-stack { align-items: center; display: flex; gap: 0.8rem; }
.stack-logo { display: block; object-fit: contain; width: auto; }
.stack-logo-latam { max-height: 2.3rem; max-width: 7.7rem; }
.stack-logo-dte { max-height: 2.7rem; max-width: 3.2rem; }
.stack-label, .stack-divider { display: none; }

.login-panel {
  align-self: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--blue);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.private-access-panel { max-width: 27rem; text-align: center; width: 100%; }
.private-login-logo { display: block; height: 4.8rem; margin: 0 auto 2rem; object-fit: contain; width: auto; }
.private-access-panel h1 { font-size: clamp(1.85rem, 4.5vw, 2.45rem); line-height: 1.18; }
.private-access-panel .token-form { margin-top: 2rem; text-align: left; }
.secure-pill { align-items: center; display: inline-flex; gap: 0.55rem; }
.secure-pill-dot { background: #19a696; border-radius: 50%; display: inline-block; height: 0.55rem; width: 0.55rem; }
.login-panel h2 { font-size: 2rem; margin-top: 1rem; }
.login-panel-copy { color: var(--ink-soft); margin-top: 0.75rem; }
.status-banner { background: #fff1f1; border-left: 3px solid #cc4040; color: #8a2222; margin-top: 1rem; padding: 0.8rem 0.9rem; }
.status-banner[hidden] { display: none; }

.token-form { display: grid; gap: 0.75rem; margin-top: 1.6rem; }
.token-label { font-size: 0.82rem; font-weight: 700; }
.token-input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  min-height: 3.25rem;
  padding: 0.85rem 0.95rem;
}
.token-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 89, 199, 0.13); outline: none; }

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.06em;
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
  text-transform: uppercase;
}
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-deep); }
.button.secondary { border-color: rgba(255,255,255,0.55); color: #fff; }
.button.secondary:hover { background: rgba(255,255,255,0.12); }
.login-submit { margin-top: 0.2rem; width: 100%; }
.login-checklist { border-top: 1px solid var(--line); color: var(--ink-soft); display: grid; gap: 0.65rem; list-style: none; margin: 1.5rem 0 0; padding: 1.35rem 0 0; }
.login-checklist li { font-size: 0.88rem; padding-left: 1.1rem; position: relative; }
.login-checklist li::before { background: var(--blue); border-radius: 50%; content: ""; height: 0.35rem; left: 0; position: absolute; top: 0.55rem; width: 0.35rem; }

#energyCanvas { display: none; }

.hero-section {
  background: var(--ink);
  overflow: hidden;
  padding: 5rem 2rem 0;
  position: relative;
}
.hero-section::after {
  background: linear-gradient(145deg, transparent 50%, rgba(40, 150, 225, 0.16));
  content: "";
  height: 32rem;
  pointer-events: none;
  position: absolute;
  right: -15rem;
  top: -12rem;
  transform: rotate(18deg);
  width: 45rem;
}
.hero-shell { align-items: end; display: grid; gap: 4rem; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr); position: relative; z-index: 1; }
.hero-content { padding-bottom: 4rem; }
.hero-section .eyebrow { color: #9ac7ff; }
.hero-section h1 { color: #fff; max-width: 13ch; }
.hero-copy { color: #d2dded; font-size: 1.08rem; margin-top: 1.4rem; max-width: 41rem; }
.print-meta { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

.hero-brand-card {
  background: #fff;
  box-shadow: 12px 12px 0 var(--warm);
  color: var(--ink);
  margin-bottom: 4rem;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-card-label { display: block; margin-bottom: 1.2rem; }
.hero-brand-card .logo-stack { align-items: center; display: grid; gap: 0.65rem; justify-items: start; }
.hero-brand-card .stack-logo-latam { max-height: 2.4rem; max-width: 8.2rem; }
.hero-brand-card .stack-logo-dte { max-height: 3.4rem; max-width: 5rem; margin-top: 0.9rem; }
.hero-brand-card .stack-label { color: var(--ink-soft); display: block; font-size: 0.77rem; }
.hero-brand-card .stack-divider { background: var(--line); display: block; height: 1px; width: 100%; }
.hero-note-card { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.hero-note-card span { color: var(--ink-soft); display: block; font-family: "DM Mono", monospace; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-note-card strong { display: block; font-size: 1.05rem; line-height: 1.35; margin-top: 0.4rem; }
.hero-note-card small { color: var(--ink-soft); display: block; margin-top: 0.5rem; }

.proposal-strip {
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(20,37,64,0.12);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  transform: translateY(1px);
  z-index: 2;
}
.proposal-strip div { border-right: 1px solid var(--line); padding: 1.15rem 1.25rem; }
.proposal-strip div:last-child { border-right: 0; }
.proposal-strip span { color: var(--ink-soft); }
.proposal-strip strong { display: block; font-size: 1rem; line-height: 1.35; margin-top: 0.35rem; }
.proposal-strip div:last-child strong { color: var(--blue); }

.page-sections { background: var(--paper); color: var(--ink); }
.section { padding: 5.6rem 2rem; }
.section.band { background: var(--blue-pale); }
.section-heading { margin-bottom: 2.5rem; max-width: 49rem; }
.section-heading.compact { max-width: 44rem; }
.section-heading h2 { margin-bottom: 0.9rem; }
.section-heading p { font-size: 1.04rem; }

.capability-grid, .pricing-grid, .details-layout, .engagement-card, .timeline, .terms-list { display: grid; gap: 1.1rem; }
.capability-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.capability-card { border-top: 2px solid var(--blue); padding: 1.3rem 0.45rem 0 0; }
.capability-index { display: inline-block; margin-bottom: 1rem; }
.capability-card h3 { font-size: 1.16rem; }
.capability-card p, .detail-list, .disclosure, .support-card, .timeline article p, .terms-list dd { color: var(--ink-soft); }
.capability-card p { font-size: 0.94rem; margin-top: 0.7rem; }

.details-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-card, .support-card, .timeline article, .terms-list div { background: #fff; border: 1px solid var(--line); padding: 1.45rem; }
.detail-kicker, .support-kicker { margin: 0 0 1rem; }
.detail-list, .price-card ul, .support-card ul { display: grid; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.detail-list li, .price-card li, .support-card li { padding-left: 1.15rem; position: relative; }
.detail-list li::before, .price-card li::before, .support-card li::before { background: var(--blue); border-radius: 50%; content: ""; height: 0.38rem; left: 0; position: absolute; top: 0.55rem; width: 0.38rem; }

.pricing-grid { align-items: stretch; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr); }
.price-card.featured { background: var(--blue); box-shadow: 10px 10px 0 var(--aqua); color: #fff; padding: 2rem; }
.price-card.featured h3 { color: #fff; font-size: 1.45rem; }
.plan-heading p { color: #cae1ff; margin-top: 0.5rem; }
.price-line { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.65rem 0 0.7rem; }
.price-line strong { font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(2.7rem, 4.2vw, 4.5rem); letter-spacing: -0.06em; line-height: 1; }
.price-line span { color: #d5e7ff; font-size: 0.92rem; }
.quote-subline { color: #d5e7ff; margin-bottom: 1.4rem; }
.price-card.featured li::before { background: #fff; }
.disclosure { border-top: 1px solid rgba(255,255,255,0.3); color: #d5e7ff; font-size: 0.82rem; margin-top: 1.4rem; padding-top: 1rem; }
.support-card { background: #fff; font-size: 0.92rem; }

.about-latam-section {
  background-image:
    linear-gradient(90deg, rgba(9, 38, 76, 0.91) 0%, rgba(11, 47, 87, 0.84) 44%, rgba(9, 38, 76, 0.65) 100%),
    url("/latam-bpo-barranquilla.jpg");
  background-position: center 54%;
  background-size: cover;
  color: #fff;
  min-height: 23rem;
  padding: clamp(3rem, 6vw, 5.5rem) max(2rem, calc((100vw - 1240px) / 2 + 2rem)) 0;
}
.about-latam-content { display: grid; gap: clamp(2.5rem, 7vw, 8rem); grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr); margin: 0 auto; max-width: 1240px; }
.about-latam-section .eyebrow { color: #f6cc42; }
.about-latam-section h2 { color: #fff; font-size: clamp(1.8rem, 3.3vw, 3.35rem); max-width: 13ch; }
.about-latam-copy { align-self: end; display: grid; gap: 1rem; max-width: 32rem; }
.about-latam-copy p { color: #f5f8fc; font-size: 1.05rem; }
.about-latam-proof { border-top: 1px solid rgba(255,255,255,0.44); display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: clamp(2rem, 5vw, 4rem) auto 0; max-width: 1240px; padding: 1rem 0 1.25rem; }
.about-latam-proof span { color: #fff; font-family: "DM Mono", monospace; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; }

.financial-summary { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); margin-top: 2.4rem; }
.cost-breakdown-card, .run-rate-card { border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.25rem); }
.cost-breakdown-card { background: #fff; }
.run-rate-card { background: var(--blue-pale); border-top: 4px solid var(--blue); }
.financial-card-heading { max-width: 34rem; }
.financial-card-heading .eyebrow { margin-bottom: 0.75rem; }
.financial-card-heading h3 { font-size: 1.45rem; }
.financial-card-heading p:last-child { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.65rem; }
.cost-breakdown-list, .run-rate-list { margin: 1.55rem 0 0; }
.cost-breakdown-list div, .run-rate-list div { align-items: baseline; border-top: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) auto; padding: 0.8rem 0; }
.cost-breakdown-list dt, .run-rate-list dt { color: var(--ink-soft); font-size: 0.88rem; }
.cost-breakdown-list dd, .run-rate-list dd { color: var(--ink); font-family: "DM Mono", monospace; font-size: 0.9rem; font-weight: 500; margin: 0; }
.cost-breakdown-list .cost-total, .run-rate-list .run-rate-total { border-top: 2px solid var(--ink); margin-top: 0.25rem; padding-bottom: 0; padding-top: 1rem; }
.cost-breakdown-list .cost-total dt, .run-rate-list .run-rate-total dt { color: var(--ink); font-weight: 700; }
.cost-breakdown-list .cost-total dd { color: var(--blue); font-size: 1.15rem; font-weight: 700; }
.run-rate-list .run-rate-total dd { color: var(--blue-deep); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.8rem; letter-spacing: -0.06em; }
.run-rate-list .run-rate-total span { font-family: "DM Mono", monospace; font-size: 0.64rem; letter-spacing: 0.08em; vertical-align: middle; }
.run-rate-note { color: var(--ink-soft); font-size: 0.82rem; margin-top: 1.2rem; }

.timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline article { border-top: 3px solid var(--warm); padding: 1.35rem; }
.timeline article span { display: inline-block; margin-bottom: 0.85rem; }
.timeline article p { font-size: 0.92rem; margin-top: 0.65rem; }
.rollout-note { color: var(--ink-soft); font-size: 0.86rem; margin: 1.25rem 0 0; max-width: 48rem; }

.terms-layout { align-items: start; display: grid; gap: 3rem; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.terms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.terms-list div { min-height: 8.4rem; }
.terms-list dd { font-size: 0.92rem; margin: 0.65rem 0 0; }
.engagement-section { background: var(--ink); }
.engagement-section .eyebrow { color: #9ac7ff; }
.engagement-section h2 { color: #fff; }
.engagement-section .section-heading p { color: #d2dded; }
.engagement-card { border-top: 1px solid rgba(255,255,255,0.28); grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 1.25rem; }
.engagement-card span { color: #9ac7ff; }
.engagement-card strong { color: #fff; display: block; font-size: 1rem; line-height: 1.4; margin-top: 0.5rem; }

.site-footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.14); color: #aabbd0; display: flex; flex-wrap: wrap; font-size: 0.78rem; gap: 0.75rem; justify-content: space-between; padding: 1.5rem 2rem 3rem; }
.pdf-widget { align-items: center; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow); color: var(--ink); cursor: pointer; display: inline-flex; gap: 0.75rem; padding: 0.6rem 0.85rem; position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 15; }
.pdf-widget-badge { align-items: center; background: var(--blue); color: #fff; display: inline-flex; font-family: "DM Mono", monospace; font-size: 0.7rem; height: 2.25rem; justify-content: center; width: 2.25rem; }
.pdf-widget-copy strong, .pdf-widget-copy small { display: block; text-align: left; }
.pdf-widget-copy strong { font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pdf-widget-copy small { color: var(--ink-soft); font-size: 0.68rem; }

@media (max-width: 1040px) {
  .hero-shell, .terms-layout, .login-grid { grid-template-columns: 1fr; }
  .hero-brand-card { margin-bottom: 0; max-width: 28rem; }
  .capability-grid, .timeline, .engagement-card, .proposal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; }
  .financial-summary { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header, .login-header { align-items: flex-start; min-height: auto; padding: 1rem 1.25rem; }
  .site-header { flex-direction: column; gap: 1rem; }
  .nav-links { flex-wrap: wrap; gap: 0.7rem 1.05rem; width: 100%; }
  .nav-links .logout-link { border-left: 0; padding-left: 0; }
  .login-shell, .section { padding: 3rem 1.25rem; }
  .hero-section { padding: 3.5rem 1.25rem 0; }
  .about-latam-section { background-position: 58% center; min-height: 31rem; padding: 3.5rem 1.25rem 0; }
  .about-latam-content { grid-template-columns: 1fr; }
  .about-latam-copy { align-self: start; }
  .about-latam-proof { gap: 0.65rem; margin-top: 2rem; padding-bottom: 1.25rem; }
  .about-latam-proof span { font-size: 0.64rem; }
  .hero-content { padding-bottom: 3rem; }
  .hero-brand-card { margin-left: 0; }
  .login-highlights, .details-layout, .terms-list, .capability-grid, .timeline, .engagement-card, .proposal-strip, .pricing-grid, .financial-summary { grid-template-columns: 1fr; }
  .login-highlights { gap: 0.8rem; }
  .login-highlights div { min-height: auto; }
  .proposal-strip div { border-bottom: 1px solid var(--line); border-right: 0; }
  .proposal-strip div:last-child { border-bottom: 0; }
  .site-footer { flex-direction: column; padding: 1.5rem 1.25rem 5rem; }
  .pdf-widget { bottom: 1rem; left: 1rem; justify-content: center; right: 1rem; }
}

@media print {
  body, .page-sections { background: #fff; color: #10233e; }
  .site-header, .pdf-widget, #energyCanvas { display: none !important; }
  .hero-section { background: #fff; padding: 0 0 1.5rem; }
  .hero-section::after { display: none; }
  .hero-section h1, .hero-section .hero-copy, .hero-section .eyebrow { color: #10233e; }
  .hero-shell, .section, .proposal-strip, .site-footer { max-width: none; width: 100%; }
  .hero-content, .section { padding: 1.5rem 0; }
  .hero-brand-card, .detail-card, .support-card, .timeline article, .terms-list div { box-shadow: none; }
  .price-card.featured, .engagement-section, .site-footer { background: #fff; color: #10233e; }
  .price-card.featured h3, .engagement-section h2, .engagement-card strong { color: #10233e; }
  .price-card.featured .plan-heading p, .quote-subline, .disclosure, .engagement-section .section-heading p { color: #526178; }
  .engagement-card { border-color: #dfe6ee; }
}
