:root {
  --primary: #62399F;
  --primary-600: #512e86;
  --primary-800: #2f1a52;
  --primary-50: #F5F3FF;
  --primary-100: #ebe5fb;
  --accent: #F6C744;
  --ink: #1d1530;
  --muted: #5e5873;
  --line: #e8e4f0;
  --bg: #ffffff;
  --ok: #1fa971;
  --radius: 20px;
  --shadow: 0 18px 50px -20px rgba(47, 26, 82, .35);
  --shadow-sm: 0 6px 24px -12px rgba(47, 26, 82, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(98, 57, 159, .6); }
.btn--primary:hover { background: var(--primary-600); }
.btn--light { background: #fff; color: var(--primary); }
.btn--ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--ghost:hover { background: var(--primary-50); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 20px;
}
.logo--light .logo__mark { background: #fff; color: var(--primary); }
.logo--light .logo__text { color: #fff; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--primary); }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; padding: 48px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background: radial-gradient(1000px 500px at 85% 20%, var(--primary-50), transparent 70%);
  z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary);
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 169, 113, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(31, 169, 113, 0); } }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 20px 0 18px; }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--accent); opacity: .55; z-index: -1; border-radius: 4px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }

.locality {
  display: flex; gap: 8px; margin-top: 32px; max-width: 480px;
  padding: 6px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.locality input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 0 18px; color: var(--ink);
}
.locality:focus-within { border-color: var(--primary); }
.locality__msg { min-height: 24px; margin-top: 10px; font-size: 14px; font-weight: 500; padding-left: 18px; }
.locality__msg.is-ok { color: var(--ok); }
.locality__msg.is-err { color: #c2410c; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.1;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store small { display: block; font-size: 10px; font-weight: 500; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.stores--light .store { background: #fff; color: var(--ink); }

.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; font-weight: 500; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; fill: var(--primary); }

.hero__visual { position: relative; justify-self: center; width: min(460px, 100%); }
.hero__blob {
  position: absolute; inset: 8% -6% -4% 6%;
  background: linear-gradient(145deg, var(--primary), #8a5fd0);
  border-radius: 48% 52% 42% 58% / 52% 42% 58% 48%;
  transform: rotate(-6deg);
}
.hero__img {
  position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: 32px; box-shadow: var(--shadow);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3; animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; }
.float-card small { color: var(--muted); }
.float-card--eta { left: -40px; top: 14%; }
.float-card--done { right: -28px; bottom: 12%; animation-delay: -2.5s; }
.float-card__icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent);
}
.float-card__icon svg { width: 20px; height: 20px; fill: var(--ink); }
.float-card__icon--ok { background: #d9f5e8; }
.float-card__icon--ok svg { fill: var(--ok); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--primary-50); }
.section--dark { background: var(--primary-800); color: #fff; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; margin-top: 12px; }
.section__head p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.section__head--light p { color: rgba(255, 255, 255, .75); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.eyebrow--light { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.stat {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--primary-50), #fff);
  border: 1px solid var(--line); text-align: center;
}
.stat__num { display: block; font-size: 52px; font-weight: 800; color: var(--primary); letter-spacing: -.04em; line-height: 1; }
.stat__num small { font-size: 20px; margin-left: 4px; letter-spacing: 0; }
.stat__label { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.feature:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; fill: var(--primary); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  padding: 28px 24px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-100); margin-bottom: 18px; }
.service__icon svg { width: 36px; height: 36px; fill: var(--primary); }
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 14px; }
.service--more { background: transparent; box-shadow: none; border: 2px dashed #cfc3e8; }
.service--more:hover { box-shadow: none; }
.service--more .service__icon { background: #fff; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { position: relative; padding: 36px 32px; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.mode__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); margin-bottom: 20px; }
.mode__icon svg { width: 26px; height: 26px; fill: var(--primary); }
.mode h3 { font-size: 24px; margin-bottom: 8px; }
.mode p { color: var(--muted); }
.mode--featured { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow); }
.mode--featured p { color: rgba(255, 255, 255, .8); }
.mode--featured .mode__icon { background: var(--accent); }
.mode--featured .mode__icon svg { fill: var(--ink); }
.mode__tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.step__num { display: block; font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .72); font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -16px; width: 12px; height: 12px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg);
  opacity: .7;
}

.refer {
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 32px;
  padding: 56px; border-radius: 32px;
  background: linear-gradient(120deg, var(--primary) 0%, #8a5fd0 100%); color: #fff;
  overflow: hidden;
}
.refer .eyebrow { color: var(--accent); }
.refer h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 12px 0 14px; }
.refer p { color: rgba(255, 255, 255, .85); max-width: 520px; margin-bottom: 28px; }
.refer__art svg { width: min(240px, 100%); margin-inline: auto; transform: rotate(-8deg); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); }

.partners { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.partners h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin: 12px 0 16px; }
.partners__copy > p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='m9 16.2-3.5-3.5L4 14.1 9 19 20 8l-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.partners__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.shifts { display: grid; gap: 12px; }
.shift {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.shift:nth-child(even) { margin-left: 40px; }
.shift:hover { transform: translateX(4px); }
.shift__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.shift strong { display: block; }
.shift small { color: var(--muted); font-size: 14px; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary); font-size: 20px; font-weight: 500;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; background: var(--primary); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

.cta { padding: 0 0 96px; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px; border-radius: 32px; background: var(--ink); color: #fff;
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(98, 57, 159, .7), transparent 70%);
}
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, .75); margin-top: 8px; }
.cta .stores { margin-top: 0; }

/* Footer */
.footer { background: var(--primary-800); color: rgba(255, 255, 255, .72); padding: 72px 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand p { margin: 16px 0 20px; max-width: 280px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .features, .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 0; border-radius: 12px; background: var(--primary-50); cursor: pointer;
  }
  .nav__toggle span { width: 20px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav__links a:not(.btn) { padding: 12px 8px; font-size: 17px; color: var(--ink); }
  .nav.is-open .nav__links { display: flex; }

  .hero { padding: 24px 0 72px; }
  .hero__inner, .partners, .refer { grid-template-columns: 1fr; }
  .hero__visual { width: min(360px, 88%); margin-top: 16px; }
  .float-card--eta { left: -16px; }
  .float-card--done { right: -16px; }
  .modes, .stats { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .refer, .cta__inner { padding: 36px 24px; }
  .refer__art { order: -1; }
  .refer__art svg { width: 140px; }
  .shift:nth-child(even) { margin-left: 0; }
}

@media (max-width: 560px) {
  .features, .services, .steps { grid-template-columns: 1fr; }
  .locality { flex-direction: column; border-radius: 20px; }
  .locality input { padding: 12px 14px; }
  .locality .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .float-card { font-size: 12px; padding: 10px 12px; }
  .float-card__icon { width: 30px; height: 30px; }
}

/* Legal pages */
.legal-hero {
  padding: 56px 0 40px;
  background: radial-gradient(900px 400px at 85% 0%, var(--primary-50), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; margin: 14px 0 10px; }
.legal__meta { color: var(--muted); font-size: 15px; }
.legal__switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legal__switch a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted); background: #fff;
}
.legal__switch a:hover { border-color: var(--primary); color: var(--primary); }
.legal__switch a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.legal { padding: 56px 0 96px; }
.legal__inner { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal__toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 14px; }
.legal__toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.legal__toc a:hover { color: var(--primary); border-left-color: var(--primary); }

.legal__body { max-width: 760px; font-size: 16px; color: #3b3450; }
.legal__body h2 {
  font-size: 22px; font-weight: 800; color: var(--ink);
  margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.legal__body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.legal__body p, .legal__body ul, .legal__body ol { margin: 0 0 16px; }
.legal__body ul, .legal__body ol { padding-left: 22px; }
.legal__body li { margin-bottom: 8px; }
.legal__body li::marker { color: var(--primary); }
.legal__body strong { color: var(--ink); }
.legal__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__notice {
  margin-top: 32px !important; padding: 20px 24px; border-radius: 16px;
  background: var(--primary-50); border-left: 4px solid var(--primary); font-size: 15px;
}

@media (max-width: 860px) {
  .legal__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal__toc { position: static; max-height: none; padding: 20px; border-radius: 16px; background: var(--primary-50); }
  .legal { padding: 40px 0 72px; }
}

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; margin-inline: auto; }
.contact__card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
a.contact__card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.contact__card h3 { font-size: 19px; margin-bottom: 8px; }
.contact__card p { color: var(--muted); font-size: 16px; }
address.contact__card { font-style: normal; }
a.contact__card p { color: var(--primary); font-weight: 700; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
