@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --sols-brand-red-deep: #a61c00;
  --sols-brand-red: #db4233;
  --sols-brand-orange: #e69138;
  --sols-brand-yellow: #f8be15;
  --sols-brand-green: #67a04f;
  --sols-brand-teal: #128a5e;
  --sols-brand-blue: #4684bc;
  --sols-brand-blue-deep: #2a60a7;
  --sols-brand-purple: #644e9c;
  --sols-brand-magenta: #9a518e;
  --sols-black: #333333;
  --sols-white: #f7f7f9;
  --sols-yellow: var(--sols-brand-yellow);
  --sols-grey: #555555;
  --sols-light: #9ca8b7;
  --sols-light-grey: #dddddd;
  --sols-grey-desc: #666666;
  --sols-error: var(--sols-brand-red-deep);
  --sols-green: var(--sols-brand-teal);
  --sols-green-dark: var(--sols-brand-teal);
  --sols-light-green: var(--sols-brand-green);
  --sols-red-accent: var(--sols-brand-red);
  --sols-main-check: var(--sols-brand-yellow);
  --sols-sub-check: var(--sols-brand-yellow);
  --sols-progress-fill: var(--sols-brand-yellow);
  --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', 'Open Sans', Helvetica, Arial, sans-serif;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 0px 6px 0 rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-body);
  color: var(--sols-black);
  background: var(--sols-white);
  font-size: 16px;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Shared card shell */
.card {
  background: #ffffff;
  border: 1px solid var(--sols-light-grey);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.deal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  border: none;
}

.deal-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
.logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
}

.deal-header .logo {
  height: 56px;
  margin: 0;
  flex: 0 0 auto;
}

.deal-copy {
  min-width: 0;
}

.deal-name {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sols-black);
}

.deal-email {
  color: var(--sols-grey-desc);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.deal-complete-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--sols-main-check);
  flex: 0 0 auto;
}

.deal-complete-icon svg {
  width: 58px;
  height: 58px;
}

/* Home hero + contact card */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.75rem 2rem;
  border-left: none;
}
.home-hero .logo {
  margin: 0;
  height: 44px;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sols-black);
  margin: 0;
}
.contact-card {
  padding: 2rem 1.75rem;
}
.section-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sols-green);
  margin: 0 0 1rem;
}
.company-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sols-black);
  margin: 0 0 1.25rem;
}
.company-reg {
  font-weight: 400;
  color: var(--sols-grey-desc);
  font-size: 0.9rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}
.contact-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--sols-light-grey);
  margin: 0;
}
.contact-item:first-child {
  padding-top: 0;
  border-top: none;
}
.contact-item:last-child {
  padding-bottom: 0;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sols-grey-desc);
  margin: 0;
  padding-top: 0.15rem;
}
.contact-value {
  margin: 0;
  color: var(--sols-black);
  font-size: 0.95rem;
  line-height: 1.55;
}
.contact-link {
  color: var(--sols-green);
  text-decoration: none;
  font-weight: 600;
}
.contact-link:hover {
  text-decoration: underline;
}
.cx-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.75rem;
  border-color: rgb(18 138 94 / 0.22);
  background: linear-gradient(135deg, rgb(248 190 21 / 0.12), #ffffff 38%, rgb(70 132 188 / 0.1));
}
.cx-copy {
  min-width: 0;
}
.cx-card .section-heading {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--sols-brand-blue-deep);
}
.cx-title {
  margin: 0;
  color: var(--sols-black);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.cx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0.35rem 0 0;
  color: var(--sols-grey-desc);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cx-meta a {
  color: var(--sols-brand-teal);
  font-weight: 700;
  text-decoration: none;
}
.cx-meta a:hover {
  text-decoration: underline;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--sols-brand-teal);
  color: var(--sols-white);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgb(18 138 94 / 0.22);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.whatsapp-button__icon {
  display: inline-flex;
  flex-shrink: 0;
}
.whatsapp-button__icon svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}
.whatsapp-button:hover {
  background: var(--sols-brand-green);
  box-shadow: 0 12px 22px rgb(103 160 79 / 0.26);
  transform: translateY(-1px);
}
.contact-whatsapp {
  margin-top: 1.4rem;
  white-space: normal;
}
@media (max-width: 560px) {
  .home-hero {
    padding: 2rem 1.25rem 1.5rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .contact-card {
    padding: 1.5rem 1.25rem;
  }
  .contact-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .cx-card {
    align-items: stretch;
    flex-direction: column;
    padding: 1.3rem 1.25rem;
  }
  .whatsapp-button {
    width: 100%;
  }
}

/* Progress card */
.progress {
  padding: 1.25rem 1.75rem;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.progress-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sols-black);
  font-size: 0.95rem;
}

.progress-count {
  font-size: 0.85rem;
  color: var(--sols-grey-desc);
}

.progress-count strong {
  color: var(--sols-brand-yellow);
  font-weight: 700;
  font-size: 1rem;
}

.progress-bar {
  height: 6px;
  background: var(--sols-light-grey);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--sols-progress-fill);
  border-radius: 999px;
  transition: width 300ms ease;
}

/* Timeline wrapper card */
.timeline-wrap {
  padding: 2rem 2rem 1rem;
}

.timeline {
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  padding-bottom: 0.5rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--sols-light-grey);
  z-index: 0;
}

.step--done:not(:last-child)::before {
  background: var(--sols-brand-yellow);
  opacity: 0.7;
}

/* Accordion summary (clickable row) */
.step-summary {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem 0.25rem 0.75rem 0;
  list-style: none;
  user-select: none;
  border-radius: var(--radius-md);
  transition: background 150ms ease;
}

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

.step-summary:hover {
  background: rgb(18 138 94 / 0.04);
}

.step-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sols-grey-desc);
  transition: transform 200ms ease, color 150ms ease;
}

.step-chevron svg {
  width: 18px;
  height: 18px;
  display: block;
}

details[open] > .step-summary .step-chevron {
  transform: rotate(180deg);
  color: var(--sols-brand-yellow);
}

.step-summary:hover .step-chevron {
  color: var(--sols-brand-yellow);
}

.step-marker {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
  background: var(--sols-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sols-light-grey);
  grid-column: 1;
}

.step-marker svg {
  width: 22px;
  height: 22px;
  display: block;
}

.step--done .step-marker {
  color: var(--sols-main-check);
}

.step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.step-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--sols-black);
  line-height: 1.4;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}

.badge--done {
  background: rgb(248 190 21 / 0.2);
  color: var(--sols-main-check);
}

.badge--waiting {
  background: var(--sols-light-grey);
  color: var(--sols-grey-desc);
}

.substeps {
  list-style: none;
  padding: 0.5rem 0 1rem 64px;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.substep {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--sols-grey);
  align-items: center;
  padding: 0.3rem 0.1rem;
  border-radius: var(--radius-md);
  transition: background 150ms ease;
}

.substep:hover {
  background: rgb(18 138 94 / 0.04);
}

.substep-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.substep-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.substep-label {
  color: var(--sols-grey-desc);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.substep-value {
  text-align: right;
}

/* Done value pill */
.value-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgb(18 138 94 / 0.1);
  color: var(--sols-green-dark);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.substep--done .substep-icon {
  color: var(--sols-sub-check);
}

.substep--waiting .substep-icon {
  color: var(--sols-light-grey);
}

.substep--waiting .substep-value {
  color: var(--sols-light);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1;
}

.substep-value {
  color: var(--sols-black);
  font-weight: 600;
  text-align: right;
}

.not-found {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--sols-grey-desc);
  background: #ffffff;
  border: 1px solid var(--sols-light-grey);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.not-found h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--sols-black);
}

/* Dimmed site footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 1rem 0;
  text-align: center;
  color: var(--sols-light);
  font-size: 0.78rem;
  line-height: 1.6;
  border-top: 1px solid var(--sols-light-grey);
  opacity: 0.75;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .container {
    padding: 1.25rem 0.75rem 2rem;
    gap: 1rem;
  }
  .card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }
  .deal-header {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    gap: 1rem;
  }
  .deal-identity {
    gap: 0.8rem;
  }
  .deal-header .logo {
    height: 44px;
  }
  .deal-complete-icon,
  .deal-complete-icon svg {
    width: 44px;
    height: 44px;
  }
  .timeline-wrap {
    padding: 1.5rem 1.25rem 0.75rem;
  }
  .deal-name {
    font-size: 1.35rem;
  }
  .step-summary {
    grid-template-columns: 36px 1fr 24px;
    gap: 0.6rem;
  }
  .step:not(:last-child)::before {
    left: 17px;
  }
  .substeps {
    padding-left: 48px;
  }
  .step-heading {
    flex-wrap: wrap;
  }
  .step-title {
    font-size: 1rem;
  }
  .substep {
    grid-template-columns: 16px 1fr;
    row-gap: 0.15rem;
  }
  .substep-value {
    grid-column: 2;
    text-align: left;
  }
  .value-pill {
    max-width: 100%;
  }
}
