/* Credissimo — mobile-first design system */

:root {
  --primary: #5B3FE6;
  --primary-dark: #4A30C9;
  --primary-soft: #EFEAFE;
  --accent: #FFB81C;
  --pink: #FF4D8D;
  --green: #14B86E;
  --green-dark: #0E9858;
  --green-soft: #DDF7E8;

  --bg: #F4F1FF;
  --bg-elev: #FFFFFF;
  --bg-soft: #F7F8FB;

  --ink-1: #15103A;
  --ink-2: #4B4577;
  --ink-3: #807AAC;
  --ink-4: #B5B0D4;
  --line: #E8E4F8;
  --line-2: #F0EDFA;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 14px rgba(91, 63, 230, 0.06);
  --shadow-elev: 0 12px 32px rgba(91, 63, 230, 0.14);
  --shadow-cta: 0 8px 22px rgba(20, 184, 110, 0.32);

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============ ICONS ============ */
.ic { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; display: inline-block; }
.ic-lg { width: 24px; height: 24px; }
.ic-xl { width: 28px; height: 28px; }
.ic-flag { width: 18px; height: 12px; border-radius: 2px; vertical-align: -0.1em; }

.app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 96px;
  position: relative;
}

/* ============ HEADER ============ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(244, 241, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 8px rgba(91, 63, 230, 0.25));
}
.logo-mark svg { width: 100%; height: 100%; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* ============ HERO ============ */
.hero { padding: 12px 20px 0; }
.hero-card {
  position: relative;
  background: linear-gradient(155deg, var(--primary) 0%, #7B5FF0 60%, #B888FF 100%);
  border-radius: var(--radius-xl);
  padding: 28px 24px 36px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-elev);
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,28,0.5) 0%, transparent 70%);
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,141,0.3) 0%, transparent 70%);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}
.hero-h1 .accent { color: var(--accent); }
.hero-sub {
  margin-top: 14px;
  font-size: 15px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}
.hero-amount-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: var(--accent);
  color: var(--ink-1);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(255, 184, 28, 0.4);
}

/* ============ CALCULATOR ============ */
.calc {
  margin: -20px 20px 0;
  background: var(--bg-elev);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-card);
}
.calc-row { margin-bottom: 22px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.calc-label-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calc-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-1);
}
.calc-value .unit {
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 500;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
}
.range::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(to right, var(--primary), var(--pink));
  border-radius: 999px;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(91, 63, 230, 0.3);
  margin-top: -9px;
}
.range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  cursor: pointer;
}
.range-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
}

.calc-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 18px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.calc-summary-item { text-align: center; }
.calc-summary-label {
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}
.calc-summary-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.calc-summary-value.green { color: var(--green); }

/* ============ CTA BUTTON ============ */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green) 0%, #1ECB7E 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform .1s, box-shadow .15s;
  text-transform: uppercase;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(20, 184, 110, 0.4); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta:disabled { background: var(--line); color: var(--ink-4); box-shadow: none; cursor: not-allowed; }

/* ============ LIVE INDICATOR ============ */
.live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 20px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.live strong { color: var(--ink-1); font-weight: 700; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(20, 184, 110, 0.6);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 110, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(20, 184, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 110, 0); }
}

/* ============ SECTIONS ============ */
.section { padding: 32px 20px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 22px;
  text-wrap: balance;
}
.section-title .accent { color: var(--primary); }

/* ============ FEATURES ============ */
.feat-grid { display: flex; flex-direction: column; gap: 12px; }
.feat-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.feat-icon .ic { width: 24px; height: 24px; }
.feat-icon.v1 { background: linear-gradient(135deg, #FFB81C, #FF8A1C); }
.feat-icon.v2 { background: linear-gradient(135deg, var(--primary), #8B6FF0); }
.feat-icon.v3 { background: linear-gradient(135deg, var(--green), #4ED898); }
.feat-icon.v4 { background: linear-gradient(135deg, var(--pink), #FF85AE); }
.feat-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

/* ============ STEPS ============ */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  align-items: center;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.step-num .ic { width: 22px; height: 22px; }
.step h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.step p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ============ REVIEWS ============ */
.review-card {
  background: var(--bg-elev);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-1);
}
.review-date { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.review-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
  margin-left: auto;
}
.review-text {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q .plus {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  transition: max-height .3s, padding .3s;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 18px; }

/* ============ STICKY CTA ============ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 16px 20px 20px;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  z-index: 40;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.sticky-cta .btn-cta { pointer-events: auto; }

/* ============ FOOTER ============ */
.foot {
  padding: 24px 20px 100px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.foot-disc {
  font-size: 11px;
  color: var(--ink-4);
  margin-bottom: 14px;
  text-align: left;
  background: var(--bg-elev);
  padding: 14px;
  border-radius: var(--radius);
  line-height: 1.55;
}

/* ============ APPLY (form) ============ */
.form-hero { padding: 8px 20px 0; }
.form-card {
  background: var(--bg-elev);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.form-emoji {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  display: grid; place-items: center;
  filter: drop-shadow(0 8px 16px rgba(91, 63, 230, 0.3));
}
.form-emoji .ic { width: 36px; height: 36px; }
.form-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.form-sub {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0 0 22px;
  line-height: 1.5;
}
.phone-wrap {
  position: relative;
  margin-bottom: 16px;
}
.phone-flag {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 16px;
  border-radius: 3px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.phone-flag svg { width: 100%; height: 100%; }
.phone-input {
  width: 100%;
  height: 64px;
  padding: 0 50px 0 52px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.phone-input:focus {
  border-color: var(--primary);
  background: #fff;
}
.phone-check {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  text-align: left;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
  cursor: pointer;
}
.consent input { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.consent a { color: var(--primary); font-weight: 600; }

/* ============ LOADER ============ */
.loader {
  padding: 60px 32px;
  text-align: center;
}
.loader-ring {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  border: 6px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-h {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.loader-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.loader-steps {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.loader-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 13.5px;
  color: var(--ink-4);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  transition: color .3s;
}
.loader-step:last-child { border-bottom: none; }
.loader-step.active { color: var(--ink-1); font-weight: 600; }
.loader-step.done { color: var(--green); }
.loader-step .dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-3);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .3s, color .3s;
}
.loader-step.active .dot { background: var(--primary); color: #fff; }
.loader-step.done .dot { background: var(--green); color: #fff; }

/* ============ OFFERWALL ============ */
.ow-head {
  padding: 16px 20px 8px;
  text-align: center;
}
.ow-head .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--ink-1);
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(255, 184, 28, 0.35);
}
.ow-head h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.ow-head p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
}
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.offer-card {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  border: 2px solid transparent;
}
.offer-card.top {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 184, 28, 0.18);
  padding-top: 28px;
  margin-top: 8px;
}
.offer-top-tag {
  position: absolute;
  top: -10px; left: 16px;
  background: var(--accent);
  color: var(--ink-1);
  font-weight: 700;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.offer-row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.offer-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.offer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.offer-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}
.offer-stars { color: var(--accent); }
.offer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.offer-stat-l {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 3px;
}
.offer-stat-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.offer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green) 0%, #1ECB7E 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(20, 184, 110, 0.28);
}
.offer-card:not(.top) .offer-btn {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: none;
}

/* ============ DESKTOP ============ */
@media (min-width: 600px) {
  .app { box-shadow: 0 0 60px rgba(91, 63, 230, 0.08); }
}
