:root {
  --bg: #d7dce4;
  --card: #f4f6fa;
  --white: #ffffff;
  --text: #243858;
  --muted: #5d6e89;
  --line: #cfd6e2;
  --accent: #5c3ef0;
  --accent-soft: #eef1ff;
  --trust-bar: #127c69;
  --sticky-footer-stack: 71px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}

.top-brand-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 58px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(212, 217, 228, 0.82);
  box-shadow: 0 2px 10px rgba(44, 57, 92, 0.05);
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.brand-wordmark-primary {
  color: #111111;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-wordmark-secondary {
  color: #3b5fcf;
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.finish-header-tools {
  margin-left: auto;
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #111111;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.proof svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: currentColor;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid #d8deeb;
  border-radius: 999px;
  background: #ffffff;
}

.lang-switch-btn {
  min-width: 74px;
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #425172;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch-btn.is-active {
  background: #1f4ba3;
  color: #ffffff;
}

.continue-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: calc(100vh - 38px);
  padding: 20px 14px calc(130px + var(--sticky-footer-stack));
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 16px;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.auth-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form span {
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid #c8d0de;
  border-radius: 10px;
  background: #f6f8fc;
  padding: 0 12px;
  font-size: 0.95rem;
}

.auth-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #5c3ef0, #5547e6);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-feedback {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid #e6d5d8;
  background: #fff7f8;
  color: #a02f3d;
  font-size: 0.9rem;
  display: none;
}

.auth-feedback.show {
  display: block;
}

.hide {
  display: none;
}

.progress-wrapper {
  margin: 16px 0 18px;
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.step {
  height: 4px;
  background: #cad3e0;
  border-radius: 999px;
  overflow: hidden;
}

.step-progress {
  height: 100%;
  width: 0;
  background: #48c2dd;
}

.step-progress.is-filled {
  width: 100%;
}

.step-progress.is-partial {
  width: 33%;
}

.content {
  background: transparent;
}

.content h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.content p {
  margin: 0 0 8px;
  color: #3e516f;
  font-size: 0.95rem;
  line-height: 1.45;
}

.content a {
  color: #2f57ae;
}

.info-box {
  margin: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #c8d2e0;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.82rem;
  color: #324765;
}

.info-box .icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #7f8ea4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.creditor-list {
  display: grid;
  gap: 10px;
}

.creditor-card {
  background: #f9fbff;
  border: 1px solid #d4dbe7;
  border-radius: 11px;
  padding: 12px;
}

.creditor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.creditor-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creditor-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.creditor-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.creditor-mask {
  font-size: 0.78rem;
  color: #697c9d;
}

.edit-btn {
  border: 0;
  border-radius: 999px;
  min-height: 30px;
  min-width: 72px;
  padding: 0 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.creditor-money {
  margin-top: 10px;
}

.creditor-money-label {
  font-size: 0.8rem;
  color: #556a8b;
}

.creditor-money-value {
  margin-top: 3px;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.creditor-divider {
  height: 1px;
  margin: 12px 0 10px;
  background: #d5dce8;
}

.creditor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
}

.summary-card {
  margin-top: 10px;
  border: 0;
  border-radius: 28px;
  background: #f2f3f5;
  padding: 26px 26px 20px;
}

.summary-hero {
  border-radius: 24px;
  background: linear-gradient(0deg, #7f6fe2 0%, #8e8bda 44%, #9dd7df 100%);
  color: #30456a;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 36px 28px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #3f5272;
  font-size: 0.85rem;
}

.summary-row strong {
  color: #1d2f4d;
  font-size: 1.05rem;
}

.summary-progress {
  margin: 8px 0 10px;
  height: 8px;
  border-radius: 999px;
  background: #d6dcef;
  overflow: hidden;
}

.summary-progress-bar {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c3ef0, #5f4ce8);
}

.summary-note {
  margin-top: 10px;
  border-radius: 10px;
  background: #c8d2e0;
  color: #3d4f69;
  font-size: 0.82rem;
  padding: 11px;
}

.cta-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 96px;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}

.main-cta {
  width: min(480px, calc(100vw - 28px));
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #5c3ef0, #5547e6);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.bottom-trust-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 38px;
  z-index: 20;
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 6px 16px;
  background: var(--trust-bar);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.bottom-legal-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px 7px;
  margin: 0;
  background: rgba(255, 255, 255, 0.985);
  border-top: 1px solid #e5e8f0;
  color: #17459c;
  font-size: 0.78rem;
  line-height: 1;
}

.legal-group {
  display: flex;
  align-items: center;
  gap: 38px;
}

.legal-group-left {
  min-width: 0;
}

.legal-group-right {
  margin-left: auto;
}

.legal-divider {
  display: none;
  width: 1px;
  align-self: stretch;
  background: #dfe3eb;
}

.legal-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #17459c;
  font-weight: 400;
}

.legal-item svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.legal-link {
  color: #17459c;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 400;
}

.legal-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .top-brand-bar {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .top-brand-bar {
    height: auto;
    min-height: auto;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 10px 9px;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
  }

  .brand-wordmark-primary {
    font-size: 1.62rem;
    letter-spacing: -0.035em;
  }

  .brand-wordmark-secondary {
    font-size: 0.94rem;
  }

  .finish-header-tools {
    width: 100%;
    justify-content: flex-end;
    padding-top: 2px;
  }

  .proof {
    display: inline-flex;
    font-size: 0.62rem;
    gap: 4px;
    position: absolute;
    right: 10px;
    top: 11px;
  }

  .proof svg {
    width: 11px;
    height: 11px;
  }

  .lang-switch-btn {
    min-width: 68px;
  }

  .continue-shell {
    padding-bottom: 22px;
  }

  .cta-wrapper {
    bottom: 12px;
  }

  .bottom-trust-bar {
    position: static;
    min-height: 88px;
    align-items: stretch;
    gap: 0;
    padding: 12px 10px 11px;
  }

  .bottom-legal-bar {
    position: static;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 18px;
  }

  .trust-item {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
    text-align: center;
    white-space: normal;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .trust-item svg {
    width: 16px;
    height: 16px;
  }

  .trust-item span {
    display: block;
    max-width: 94px;
    margin: 0 auto;
  }

  .legal-group {
    width: 100%;
    justify-content: center;
    gap: 12px 18px;
  }

  .legal-group-left {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 24px;
  }

  .legal-group-right {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    margin-left: 0;
  }

  .legal-item {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .legal-link {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}
