:root {
  --accent: #1f4a36;
  --accent-soft: #eef4ef;
  --gray: #f4f4f2;
  --bg: #ffffff;
  --soft: #f7f7f5;
  --sk: #e7e7e3;
  --ink: #0c0c0c;
  --ink-2: #4a4a48;
  --muted: #8b8b87;
  --line: #e8e8e5;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
h1 em, h2 em {
  font-style: normal; color: var(--accent); padding: 0 .08em; margin: 0 -.02em;
  background: linear-gradient(transparent 58%, #d9eadc 58%, #d9eadc 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
@media (max-width: 520px) { .wrap { width: calc(100% - 32px); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px;
  border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: #2a2a2a; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: var(--soft); border-color: #d6d6d2; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 128px 0 112px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: 1; max-width: 12em; }
.hero__code { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero__code b { color: var(--ink); font-weight: 500; letter-spacing: .06em; margin: 0 6px 0 4px; }
@media (max-width: 900px) {
  .hero { padding: 96px 0 88px; }
}
@media (max-width: 520px) {
  .hero { padding: 72px 0 72px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn--lg { flex: 1; min-width: 0; padding: 0 14px; font-size: 15px; }
}

/* Onboarding */
.ob { padding: 104px 0 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ob__head { text-align: center; }
.ob__head h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; }
.ob__head p { margin-top: 10px; color: var(--ink-2); }
.ob__progress { display: flex; gap: 6px; max-width: 560px; margin-top: 48px; }
.ob__progress button { flex: 1; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.ob__progress button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.ob__progress button.is-done::before { background: var(--ink); }

.ob__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 40px; overscroll-behavior-x: contain; }
.ob__track::-webkit-scrollbar { display: none; }
.ob__track:focus-visible { outline-offset: -2px; }
.ob__slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; grid-template-columns: 300px minmax(0, 440px); justify-content: center; align-items: center; gap: 96px;
  padding: 8px max(24px, calc((100% - 1120px) / 2));
}
.ob__text { transition: opacity .4s ease, transform .4s ease; }
.ob__slide:not(.is-active) .ob__text { opacity: .25; }
.ob__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ob__text h3 { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.05; letter-spacing: -.01em; margin: 10px 0 16px; }
.ob__text p { color: var(--ink-2); }
.ob__text p b { color: var(--ink); font-weight: 500; }
.ob__text .btn { margin-top: 28px; }

.ob__nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.ob__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 18px/1 var(--sans); cursor: pointer; transition: background-color .15s, opacity .2s; }
.ob__arrow:hover:not(:disabled) { background: var(--soft); }
.ob__arrow:disabled { opacity: .3; cursor: default; }
.ob__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; }
.ob__count b { color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .ob { padding: 72px 0 64px; }
  .ob__progress { margin-top: 32px; }
  .ob__track { margin-top: 28px; }
  .ob__slide { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; gap: 28px; padding-inline: 16px; }
  .ob__text { max-width: 400px; }
  .ob__text h3 { font-size: 32px; }
  .ob__nav { margin-top: 28px; }
}

/* Phone mockup */
.phone { width: 280px; aspect-ratio: 9 / 19; padding: 9px; border: 1px solid #dcdcd8; border-radius: 46px; background: var(--bg); }
@media (max-width: 860px) { .phone { width: 220px; aspect-ratio: 9 / 16.2; border-radius: 40px; } }
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 37px; background: var(--soft);
  display: flex; flex-direction: column; gap: 10px; padding: 52px 16px 18px; font-size: 11px; line-height: 1.3; text-align: left;
}
@media (max-width: 860px) { .screen { border-radius: 31px; padding: 46px 14px 16px; gap: 8px; } }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 12px; background: var(--ink); }
.scr-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin-bottom: 6px; }
.sk { display: block; height: 8px; width: 100%; border-radius: 4px; background: var(--sk); }
.sk--short { width: 60%; }
.sk--title { height: 16px; width: 72%; margin-top: 8px; background: #dadad6; }
.ui-btn { margin-top: auto; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.ok { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ink); position: relative; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1) .8s; }
.ok::after { content: ""; position: absolute; left: 5px; top: 4px; width: 6px; height: 3.5px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); }
.is-active .ok { transform: scale(1); }

/* 1 — link */
.url { align-self: center; padding: 5px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.hero-img { flex: 1; min-height: 80px; margin-top: 4px; border-radius: 14px; background: #ececea; display: grid; place-items: center; }
.hero-img::after { content: ""; width: 62%; aspect-ratio: 1.586; border-radius: 8px; background: var(--ink); transform: rotate(-8deg); }
.tap { position: absolute; left: 50%; bottom: 26px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 1.5px solid #fff; opacity: 0; }
.is-active .tap { animation: tap 2s ease-out .6s infinite; }
@keyframes tap { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* 2 — form */
.field { position: relative; display: grid; gap: 5px; padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.field > span { font-size: 9.5px; color: var(--muted); }
.field .sk { width: 48%; }
.field .sk--long { width: 76%; }
.field--code { border-color: var(--ink); padding-right: 38px; }
.typed { font-weight: 600; font-size: 12px; letter-spacing: .01em; white-space: nowrap; line-height: 1; clip-path: inset(0 100% 0 0); }
.is-active .typed { animation: type 1s steps(10, end) .4s forwards; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.field--code .ok { position: absolute; right: 12px; top: 50%; margin-top: -8px; transition-delay: 1.5s; }

/* 3 — card */
.opt { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); transition: border-color .3s ease .7s; }
.opt .sk { flex: 1; }
.mini { width: 38px; height: 25px; flex: none; border-radius: 4px; background: var(--sk); }
.mini--mid { background: #a8a8a4; }
.mini--dark { background: var(--ink); }
.radio { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid #cfcfcb; transition: all .3s ease .7s; }
.is-active .opt--sel { border-color: var(--ink); }
.is-active .opt--sel .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }

/* 4 — identity */
.idcard { position: relative; overflow: hidden; display: grid; grid-template-columns: 46px 1fr; align-content: center; gap: 7px 12px; padding: 16px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 6px; }
.idphoto { grid-row: span 3; height: 58px; border-radius: 6px; background: var(--sk); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--ink); opacity: 0; }
.is-active .scan { animation: scan 1.6s ease-in-out .2s 2 alternate; }
@keyframes scan { 0% { top: 0; opacity: .7; } 100% { top: 100%; opacity: .7; } }
.row { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.ok--late { transition-delay: 1.4s; }
.ok--later { transition-delay: 2s; }

/* 5 — deposit */
.amount { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 22px 0 18px; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--muted); }
.caret { width: 1.5px; height: 38px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.keys i { font-style: normal; height: 34px; display: grid; place-items: center; font-size: 15px; font-weight: 500; border-radius: 8px; }
@media (max-width: 860px) { .keys i { height: 28px; } .amount { padding: 14px 0 12px; } }

/* 6 — bonus */
.tx { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 10px 10px 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.tx .sk { width: 70%; }
.tx .sk--amt { width: 34px; }
.tx__ico { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: italic 15px/1 var(--serif); }
.tx__ico--sk { background: var(--sk); }
.tx small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.tx b { font-weight: 600; font-size: 12px; white-space: nowrap; }
.tx--new { border-color: var(--ink); opacity: 0; transform: translateY(-12px); transition: opacity .5s ease .5s, transform .5s ease .5s; }
.is-active .tx--new { opacity: 1; transform: none; }

/* Content blocks */
.block { padding: 104px 0; border-bottom: 1px solid var(--line); }
.block__head h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; }
.block__head p { margin-top: 14px; color: var(--ink-2); max-width: 30em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
@media (max-width: 860px) {
  .block { padding: 72px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}

.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list li { position: relative; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 6px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.aside { margin-top: 32px; padding: 20px 22px; background: var(--soft); border-radius: 12px; color: var(--ink-2); font-size: 15px; }
.aside strong { color: var(--ink); font-weight: 600; }
.fine { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.grid2 > div { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.grid2 > div:nth-child(odd) { padding-right: 28px; }
.grid2 > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.grid2 p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .grid2 > div:nth-child(n) { padding: 22px 0 24px; border-left: 0; }
}

.prose { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 32em; }

/* Hero actions + QR icon button */
.hero__actions { display: flex; gap: 10px; margin-top: 48px; }
.iconbtn { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: background-color .15s, border-color .15s; }
.iconbtn:hover { background: var(--soft); border-color: #d6d6d2; }

/* QR modal */
.modal:focus { outline: none; }
.modal { width: min(360px, calc(100% - 32px)); padding: 56px 32px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--ink); text-align: center; }
.modal[open] { animation: modal-in .32s cubic-bezier(.2, .8, .2, 1); }
.modal.is-closing { animation: modal-out .2s ease forwards; }
.modal::backdrop { background: rgba(12, 12, 12, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: fade-in .32s ease; }
.modal.is-closing::backdrop { animation: fade-out .2s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.modal h2 { font-size: 28px; line-height: 1.1; }
.modal > p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.modal__qr { width: 200px; height: 200px; margin: 28px auto 0; }
.modal__qr svg { width: 100%; height: 100%; }
.modal__qr svg rect[fill="#ffffff"] { fill: transparent; }
.modal .modal__code { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.modal__code b { color: var(--ink); font-weight: 500; letter-spacing: .06em; margin-left: 4px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.modal__close:hover { background: var(--soft); }

/* FAQ */
.faq-sec { background: var(--gray); padding: 112px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.faq-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.faq-side h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; max-width: 9em; }
.faq-side__cta p { color: var(--ink-2); max-width: 22em; }
.faq-side__cta b { color: var(--ink); font-weight: 500; letter-spacing: .04em; }
.faq-side__cta .btn { margin-top: 20px; }
.faq-list { display: grid; gap: 10px; align-content: start; }
.qa { border-radius: 16px; background: var(--bg); transition: background-color .35s ease; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; font-size: 16.5px; font-weight: 500; line-height: 1.4; border-radius: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); transition: background-color .35s ease, border-color .35s ease; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; border-radius: 1px; background: var(--ink); transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .35s ease; }
.qa__icon::after { transform: rotate(90deg); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 72px 24px 24px; color: var(--ink-2); line-height: 1.65; }
.qa__body a { color: var(--accent); }
.qa.is-open, .no-js .qa[open] { background: var(--accent-soft); }
.qa.is-open summary { color: var(--accent); }
.qa.is-open .qa__icon { background: var(--accent); border-color: var(--accent); }
.qa.is-open .qa__icon::before, .qa.is-open .qa__icon::after { background: #fff; }
.qa.is-open .qa__icon::after { transform: rotate(0deg); }
@media (max-width: 860px) {
  .faq-sec { padding: 80px 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { display: contents; }
  .faq-side h2 { order: -1; }
  .faq-list { order: 0; }
  .faq-side__cta { order: 1; }
  .qa summary { padding: 18px 18px 18px 20px; font-size: 15.5px; }
  .qa__body p { padding: 0 20px 20px; }
}

/* Final */
.final { padding: 128px 0 136px; text-align: center; }
.final h2 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.actions--center { justify-content: center; margin-top: 40px; }
@media (max-width: 520px) {
  .final { padding: 88px 0 96px; }
  .final .btn { width: 100%; }
}

/* Footer */
.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 8px; }
.footer p:first-child { max-width: 60em; }

/* Mobile bar */
.bar {
  position: fixed; inset: auto 0 0 0; z-index: 10; display: none; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform .3s ease;
}
.bar.is-on { transform: none; }
.bar__text { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.bar__text b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .bar { display: flex; } .footer { padding-bottom: 104px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .typed { clip-path: none; }
}

/* Legal page */
.legal { max-width: 680px; padding: 72px 0 96px; }
.legal .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.legal h1 { font-size: 48px; line-height: 1.05; margin: 40px 0 8px; }
.legal h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-top: 40px; }
.legal p { margin-top: 10px; color: var(--ink-2); }
