:root {
  color-scheme: light;
  --green: #087a45;
  --green-dark: #055e35;
  --ink: #102119;
  --muted: #607066;
  --line: #dce7df;
  --paper: #f3f8f4;
  --white: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); -webkit-text-size-adjust: 100%; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { width: min(100% - 40px, 480px); margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; direction: ltr; }
.brand { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 9px; letter-spacing: -.02em; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--green); color: white; font-size: 13px; box-shadow: 0 5px 14px rgba(8,122,69,.2); }
.mini-flag { width: 22px; height: 17px; flex: none; display: block; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16,33,25,.12); }
.mini-flag[hidden] { display: none; }
.trust-row i { font-style: normal; }

.hero { position: relative; width: min(100% - 32px, 448px); margin: 4px auto 0; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(1px); z-index: -1; }
.hero::before { width: 240px; height: 240px; right: -180px; top: 30px; background: rgba(14,142,82,.08); }
.hero::after { width: 140px; height: 140px; left: -120px; top: 280px; background: rgba(14,142,82,.05); }
.country-chip { width: fit-content; max-width: 185px; min-height: 38px; padding: 6px 10px 6px 7px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.78); }
.country-flag { width: 28px; height: 21px; flex: none; display: block; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16,33,25,.12); }
.country-chip > span:last-child { min-width: 0; }
.country-chip b, .country-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-chip b { max-width: 135px; font-size: 10px; }
.country-chip small { max-width: 135px; margin-top: 1px; color: var(--muted); font-size: 8px; }
.offer-tag { color: var(--green-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; margin-top: 15px; }
.offer-tag span { color: #99ad9f; padding: 0 5px; }
h1 { margin: 12px 0 0; font-size: clamp(42px, 12.2vw, 58px); line-height: .99; letter-spacing: -.055em; font-weight: 760; }
h1 strong { display: inline-block; color: var(--green); font-size: .9em; font-weight: 860; white-space: nowrap; }
.lede { max-width: 365px; margin: 17px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.offer-line { margin: 23px 0 20px; display: grid; grid-template-columns: 1fr .8fr 1.25fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.offer-line div { padding: 0 12px; border-left: 1px solid var(--line); min-width: 0; }
.offer-line div:first-child { padding-left: 0; border: 0; }
.offer-line div:last-child { padding-right: 0; }
.offer-line b, .offer-line span { display: block; white-space: nowrap; }
.offer-line b { color: var(--ink); font-size: 16px; letter-spacing: -.025em; }
.offer-line span { color: var(--muted); font-size: 9px; margin-top: 3px; }

.action-panel { background: var(--white); border: 1px solid rgba(8,122,69,.13); border-radius: 18px; padding: 21px; box-shadow: 0 18px 50px rgba(20,70,44,.10); }
.step-label, .success-kicker { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
h2 { margin: 8px 0 0; font-size: 21px; line-height: 1.18; letter-spacing: -.03em; }
.supporting, .state-view > p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0 16px; }
label { display: block; font-size: 11px; font-weight: 750; margin-bottom: 7px; }
.phone-field { height: 54px; display: flex; align-items: center; border: 1.5px solid #cddbd2; border-radius: 11px; background: #fbfdfb; transition: border-color .2s, box-shadow .2s; }
.phone-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,122,69,.10); }
.phone-field.invalid { border-color: #c73a3a; box-shadow: 0 0 0 3px rgba(199,58,58,.08); }
.country-code { padding: 0 12px; border-right: 1px solid var(--line); height: 28px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; direction: ltr; }
input { width: 100%; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: .02em; }
input::placeholder { color: #9aa9a0; font-weight: 500; }
.hint, .error { min-height: 15px; margin: 6px 0 9px; font-size: 9px; line-height: 1.4; }
.hint { color: #7a8a80; }
.error { color: #ad2828; font-weight: 650; display: none; }
.error:not(:empty) { display: block; }
.error:not(:empty) + button { margin-top: 9px; }
button { width: 100%; min-height: 52px; border: 0; border-radius: 11px; background: var(--green); color: white; padding: 12px 16px; font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px rgba(8,122,69,.20); cursor: pointer; transition: background .2s, transform .1s; }
button:hover { background: var(--green-dark); }
button:active { transform: scale(.985); }
button:disabled { cursor: wait; opacity: .65; }
button { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
button > span:last-child { font-size: 18px; line-height: 16px; }
.button-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button-copy .offer-amount { font-size: inherit; }

.state-view { min-height: 252px; text-align: center; padding: 10px 0 2px; }
.state-view[hidden] { display: none; }
.progress-icon { width: 78px; height: 78px; display: grid; place-items: center; margin: 2px auto 14px; border: 7px solid #dfeee5; border-top-color: var(--green); border-radius: 50%; color: var(--green-dark); font-size: 22px; font-weight: 850; animation: breathe 1.5s ease-in-out infinite; }
.progress-icon span { grid-area: 1/1; }
.progress-icon small { grid-area: 1/1; margin: 2px 0 0 31px; font-size: 9px; }
.progress-track { height: 6px; border-radius: 99px; overflow: hidden; background: #e8f0eb; margin-top: 22px; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s linear; }
.progress-meta { display: flex; justify-content: space-between; color: #75877b; font-size: 9px; margin-top: 7px; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 30px; box-shadow: 0 9px 24px rgba(8,122,69,.22); animation: pop .45s cubic-bezier(.2,.9,.25,1.25); }
.receipt { margin-top: 19px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-radius: 10px; font-size: 10px; color: var(--muted); }
.receipt strong { color: var(--ink); font-size: 11px; }

.trust-row { display: flex; justify-content: center; gap: 24px; padding: 15px 0 6px; color: var(--muted); font-size: 9px; }
.trust-row b { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 3px; color: var(--green); border: 1px solid #a6ccb6; border-radius: 50%; font-size: 8px; }
footer { width: min(100% - 40px, 448px); margin: auto auto 0; padding: 24px 0 calc(19px + env(safe-area-inset-bottom)); color: #7b8b81; font-size: 8px; line-height: 1.5; }
footer p { margin: 0 0 11px; }
footer nav { display: flex; gap: 15px; align-items: center; }
footer a { color: inherit; }
footer span { margin-left: auto; }

.is-loading .offer-amount, .is-loading #country-name, .is-loading #country-language { color: transparent; border-radius: 5px; background: linear-gradient(90deg,#e3ece6 25%,#f5f8f6 50%,#e3ece6 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.is-loading #country-name { width: 132px; }
.is-loading #country-language { width: 78px; margin-top: 3px; }
[dir="rtl"] .country-code { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] input { direction: ltr; text-align: right; }
[dir="rtl"] footer span { margin-left: 0; margin-right: auto; }
[dir="rtl"] .offer-tag { letter-spacing: .04em; }

@keyframes breathe { 50% { transform: scale(1.035); } }
@keyframes pop { from { opacity: 0; transform: scale(.65); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 350px) {
  .topbar { width: calc(100% - 28px); }
  .brand > span:last-child { display: none; }
  .hero { width: calc(100% - 24px); }
  h1 { font-size: 36px; }
  .action-panel { padding: 18px; }
  .offer-line div { padding-inline: 7px; }
  .trust-row { gap: 10px; }
  .country-chip { max-width: 225px; }
  .country-chip b, .country-chip small { max-width: 175px; }
}
@media (min-width: 700px) {
  .topbar { padding-top: 24px; }
  .hero { margin-top: 10px; }
  footer { padding-bottom: 24px; }
}
