/* Public pages: header, footer, landing, sign-in, documents. */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(26px, 4.2vw, 46px); }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); }
.top__in { display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 12px var(--gutter); min-height: 68px; }
.top__nav { display: none; gap: 4px; margin-left: auto; }
.top__nav a { padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.top__nav a:hover { background: var(--mist); color: var(--ink); }
.top__act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.top__login { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .2s var(--ease); }
.top__login:hover { background: var(--mist); }
.top__act .btn { display: none; }
@media (min-width: 560px) { .top__act .btn { display: inline-flex; } }
@media (min-width: 980px) { .top__nav { display: flex; } .top__act { margin-left: 8px; } }

/* ---- hero ---- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero__in { display: grid; gap: clamp(32px, 5vw, 64px); max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); align-items: center; }
.hero h1 { font-size: clamp(30px, 5.6vw, 62px); }
.hero__sub { margin-top: 20px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero__form { display: grid; gap: 10px; margin-top: 28px; max-width: 560px; }
.hero__note { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
@media (min-width: 620px) { .hero__form { grid-template-columns: 1fr auto; } }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.08fr .92fr; } }

.stage { display: grid; gap: 20px; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-xl); background: var(--mist); }
.stage__code { width: min(100%, 320px); margin: 0 auto; padding: 14px; border-radius: var(--r-l); background: #fff; box-shadow: 0 18px 40px -24px rgba(14, 14, 20, .35); aspect-ratio: 1; display: grid; place-items: center; }
.stage__code svg { width: 100%; height: 100%; transition: opacity .25s var(--ease); }
.stage__code.is-pulse { animation: pulse .7s var(--ease); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(113, 56, 255, .45), 0 18px 40px -24px rgba(14, 14, 20, .35); } 100% { box-shadow: 0 0 0 22px rgba(113, 56, 255, 0), 0 18px 40px -24px rgba(14, 14, 20, .35); } }
.stage__to { display: grid; gap: 6px; justify-items: start; padding: 14px 16px; border-radius: var(--r-m); background: #fff; }
.stage__label { color: var(--ink-3); font-size: 14px; }
.stage__url { min-width: 0; margin-bottom: 6px; font-weight: 600; font-size: 18px; overflow-wrap: anywhere; line-height: 1.3; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.stage__url.is-out { opacity: 0; transform: translateY(6px); }
.stage__same { color: var(--ok); font-size: 14px; font-weight: 500; }
.stage__styles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch { padding: 5px; border: 2px solid transparent; border-radius: 14px; background: #fff; transition: border-color .2s var(--ease), transform .15s var(--ease); aspect-ratio: 1; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { border-color: var(--violet); }
.swatch svg { width: 100%; height: 100%; }

/* ---- one code, different links ---- */
.cases { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 96px) 0; }
.cases h2 { max-width: 16em; }
.cases__list { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.case { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px 18px; align-items: center; padding: 16px; border-radius: var(--r-l); background: #1b1b24; }
.case__code { grid-row: span 2; width: 84px; border-radius: 12px; overflow: hidden; background: #fff; }
.case__code svg { width: 100%; height: auto; }
.case h3 { font-family: var(--display); font-size: clamp(15px, 4.6vw, 18px); letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (max-width: 380px) { .case { grid-template-columns: 68px minmax(0, 1fr); gap: 6px 12px; padding: 14px; } .case__code { width: 68px; } }
.case__txt p { margin-top: 4px; color: #b9b9c8; font-size: 16px; line-height: 1.4; }
.case__swap { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.case__swap span { padding: 6px 12px; border-radius: 999px; background: #2b2b38; color: #d6d6e2; }
.case__swap span:last-child { background: var(--violet); color: #fff; }
.case__swap .ic { width: 18px; height: 18px; color: #8f8fa3; }
@media (min-width: 860px) {
  .case { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 28px; padding: 20px 28px 20px 20px; }
  .case__code { grid-row: auto; width: 112px; }
  .case__swap { grid-column: auto; font-size: 15px; }
  .case h3 { font-size: 22px; }
}

/* ---- steps ---- */
.how { padding: clamp(48px, 7vw, 96px) 0; }
.steps { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.step { position: relative; padding: 24px; border-radius: var(--r-l); background: var(--mist); overflow: hidden; }
.step__n { display: block; font: 800 64px/1 var(--display); color: var(--violet); letter-spacing: -.04em; }
.step h3 { margin-top: 18px; font-size: 22px; }
.step p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { padding: 32px; }
  .step__n { font-size: 96px; }
  .step:nth-child(2) { margin-top: 40px; }
  .step:nth-child(3) { margin-top: 80px; }
}

/* ---- features ---- */
.feat { padding: 0 0 clamp(48px, 7vw, 96px); }
.feat h2 { max-width: 18em; }
.bento { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.tile { display: flex; flex-direction: column; gap: 20px; padding: 24px 24px 0; border-radius: var(--r-l); background: var(--mist); overflow: hidden; }
.tile__txt p { margin-top: 8px; color: var(--ink-2); max-width: 36em; }
.shot { width: 100%; height: auto; margin-top: auto; border-radius: 14px 14px 0 0; box-shadow: 0 -1px 0 rgba(14, 14, 20, .04), 0 18px 40px -20px rgba(14, 14, 20, .3); }
.shot--phone { width: min(74%, 250px); margin-inline: auto; border-radius: 26px 26px 0 0; }
.tile--design { background: var(--ink); color: #fff; padding-bottom: 24px; }
.tile--design .tile__txt p { color: #b9b9c8; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery > div { border-radius: 14px; overflow: hidden; background: #fff; padding: 6px; aspect-ratio: 1; display: grid; place-items: center; }
.gallery svg { width: 100%; height: 100%; }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 20px; grid-auto-flow: dense; }
  .tile { padding: 32px 32px 0; }
  .tile--design { grid-column: span 6; flex-direction: row; align-items: center; gap: 40px; padding: 32px; }
  .tile--design .tile__txt { flex: 0 1 34%; }
  .tile--design .gallery { flex: 1; grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .tile--stats { grid-column: span 4; }
  .tile--page { grid-column: span 2; grid-row: span 2; }
  .tile--geo { grid-column: span 4; }
  .tile--history, .tile--list { grid-column: span 3; }
}

/* ---- prices ---- */
.prices { padding: clamp(48px, 7vw, 96px) 0; background: var(--mist); }
.prices__head { display: grid; gap: 24px; align-items: end; }
.prices__head p:not(.label) { margin-top: 14px; max-width: 32em; color: var(--ink-2); }
.prices__term { display: grid; gap: 8px; }
.prices__term .seg { background: #fff; }
.prices__term .seg__b[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 620px) {
  .prices__term .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .prices__term .seg__b { padding: 8px 2px; }
  .prices__term .seg__full { display: none; }
  .prices__term .seg__short { display: inline; }
}
.pricelist { display: grid; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.price { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-l); background: #fff; }
.price__name { font: 700 22px/1.1 var(--display); letter-spacing: -.01em; }
.price__what { display: grid; gap: 4px; color: var(--ink-2); font-size: 16px; }
.price__sum b { font: 700 28px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.price__sum span { margin-left: 8px; color: var(--ink-3); font-size: 15px; }
.price__total { min-height: 1.4em; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.prices__all { margin-top: 24px; max-width: 52em; color: var(--ink-2); font-size: 16px; }
@media (min-width: 720px) { .prices__head { grid-template-columns: 1fr auto; } }
@media (min-width: 980px) {
  .price { grid-template-columns: 180px minmax(0, 1fr) 170px 240px; align-items: center; gap: 24px; padding: 22px 22px 22px 32px; }
  .price__go { white-space: nowrap; padding-inline: 16px; }
  .price__sum { display: grid; }
  .price__sum span { margin: 2px 0 0; }
  .price__total { grid-column: 3; grid-row: 1; align-self: end; margin-top: 62px; font-size: 14px; }
  .price__sum { grid-column: 3; grid-row: 1; align-self: start; }
}

/* ---- questions ---- */
.faq { padding: clamp(48px, 7vw, 96px) 0; }
.faq__in { display: grid; gap: 28px; }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-m); background: var(--mist); transition: background-color .2s var(--ease); }
.faq details[open] { background: var(--violet-s); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 18px; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 46em; }
@media (min-width: 980px) { .faq__in { grid-template-columns: 340px 1fr; gap: 64px; } .faq h2 { position: sticky; top: 100px; align-self: start; } }

/* ---- last call ---- */
.cta { padding: 0 0 clamp(48px, 7vw, 96px); }
.cta__in { display: grid; gap: 24px; justify-items: start; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--violet); color: #fff; max-width: calc(1200px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.cta h2 { max-width: 14em; }
@media (min-width: 860px) { .cta__in { grid-template-columns: 1fr auto; align-items: center; } }

/* ---- footer ---- */
.foot { background: var(--ink); color: #b9b9c8; padding: clamp(36px, 5vw, 64px) 0 28px; font-size: 15px; }
.foot__in { display: grid; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.foot__brand p { margin-top: 14px; max-width: 24em; }
.logo--light { color: #fff; }
.logo--light span { color: #b89cff; }
.foot__col { display: grid; gap: 4px; align-content: start; }
.foot__col a { padding: 6px 0; text-decoration: none; transition: color .2s var(--ease); }
.foot__col a:hover { color: #fff; }
.foot__req { padding-top: 20px; color: #8f8fa3; font-size: 14px; }
@media (min-width: 860px) { .foot__in { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } .foot__req { grid-column: 1 / -1; } }

/* ---- sign-in and sign-up ---- */
.auth { min-height: calc(100vh - 68px); padding: clamp(28px, 6vw, 72px) var(--gutter); background: var(--mist); }
.auth__card { display: grid; gap: 20px; width: 100%; max-width: 460px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: #fff; }
.auth__card h1 { font-size: clamp(24px, 3.4vw, 32px); }
.auth__sub { margin-top: -8px; color: var(--ink-2); }
.auth__alt { text-align: center; color: var(--ink-2); }
.auth__fine { color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.pass { position: relative; }
.pass .input { padding-right: 56px; }
.pass__eye { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); transition: background-color .2s var(--ease), color .2s var(--ease); }
.pass__eye:hover { background: var(--mist); color: var(--ink); }

/* ---- documents ---- */
.doc { padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px); }
.doc__in { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(26px, 4vw, 40px); }
.doc__sub { margin-top: 14px; color: var(--ink-2); }
.doc h2 { margin-top: 40px; font: 700 22px/1.25 var(--text); letter-spacing: 0; scroll-margin-top: 96px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.doc a { color: var(--violet-d); text-underline-offset: 3px; }
.req { display: grid; gap: 4px 24px; margin-top: 28px; padding: 24px; border-radius: var(--r-l); background: var(--mist); }
.req dt { color: var(--ink-3); font-size: 14px; }
.req dd { margin-bottom: 12px; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 620px) { .req { grid-template-columns: 180px 1fr; } .req dt { font-size: 16px; } .req dd { margin: 0 0 8px; } }

/* ---- the page is not found ---- */
.lost { display: grid; gap: 20px; justify-items: start; max-width: 760px; margin: 0 auto; padding: clamp(48px, 9vw, 120px) var(--gutter); }
.lost h1 { font-size: clamp(28px, 5vw, 48px); }
