/* The sign-in page, the face of the project (owner 22.10.2026). Plain type, real
   figures, one accent; sections are cards (23.10.2026: «make the home page prettier»).
   No aurora, no gradient headline, no drawn mock-up. Only the welcome page loads this file. */

body.welcome { background: var(--ground); overflow-x: clip; }
.land { width: min(1160px, 100% - 48px); margin: 0 auto; padding: 24px 0 80px; }

/* ——— Hero ——— */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: min(900px, calc(100vh - 90px)); padding: 24px 0 56px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.kicker { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.hero .lead { margin: 0; max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 6px; }
.hero-cta { min-height: 52px; padding: 0 26px; font-size: 16px; }
.hero-more { color: var(--ink-2); font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
.hero-more:hover { color: var(--ink); text-decoration-color: var(--ink); }
.hero-note { margin: -6px 0 0; color: var(--muted); font-size: 13px; }
.figures { display: flex; gap: 0; margin: 18px 0 0; padding: 0; }
.figures > div { display: grid; gap: 2px; padding: 0 30px; border-left: 1px solid var(--line-strong); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dt { order: 2; color: var(--muted); font-size: 13px; }
.figures dd { order: 1; margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; }

/* ——— The globe: a canvas drawn by js/globe.js, a ring without scripts ——— */
/* The globe is half the page: its column runs on to the right edge of the window. */
.hero-globe { display: grid; gap: 6px; margin: 0 calc((min(1160px, 100vw - 48px) - 100vw) / 2) 0 0; justify-items: end; align-content: center; }
.globe { position: relative; width: min(100%, calc(100vh - 150px), 980px); aspect-ratio: 1; }
.globe::before { content: ""; position: absolute; inset: 10%; border: 1px solid var(--line); border-radius: 50%; }
/* A haze of light behind the planet gives the page depth. */
.globe::after { content: ""; position: absolute; inset: -16%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 16%, transparent), transparent 72%); pointer-events: none; }
.globe canvas { position: relative; display: block; width: 100%; height: 100%; color: var(--ink); touch-action: pan-y; cursor: grab; --globe-accent: var(--blue); }
.globe canvas:active { cursor: grabbing; }
/* The card for the country under the pointer: follows its pin (js/globe.js). */
.globe-tip { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin: -46px 0 0 14px; padding: 7px 12px; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-pop); font-size: 13px; white-space: nowrap; pointer-events: none; animation: quip-in .2s var(--ease) both; }
.globe-tip[hidden] { display: none; }
.globe-tip img { border-radius: 50%; }
.globe-tip b { font-weight: 600; }
.globe-tip span { color: var(--muted); }
.hero-globe figcaption { display: grid; gap: 10px; width: min(100%, 560px); margin: -2.5% auto 0 0; padding-left: 8%; }
.where-title { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.where { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.where li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; border-radius: 8px; transition: color .15s var(--ease); }
.where li[role="button"] { cursor: pointer; }
.where li.lit, .where li[role="button"]:hover { color: var(--ink); }
.where li:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.where img { border-radius: 50%; }
.where b { color: var(--muted); font-weight: 500; }

/* ——— The ribbon under the first screen: what the service speaks, running slowly ——— */
.ribbon { position: relative; z-index: 2; overflow: hidden; margin: 0 calc((min(1160px, 100vw - 48px) - 100vw) / 2); border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 46s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; color: var(--ink-2); font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; }
.ribbon span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: .75; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* ——— Sections: a pill with the number, a heading, then the cards ——— */
.sec { display: grid; gap: 34px; padding: 96px 0 8px; }
.sec-head { display: grid; justify-items: start; align-content: start; gap: 14px; }
.sec-no { padding: 3px 11px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.sec-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.06; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.sec-head p { margin: 0; max-width: 34em; color: var(--muted); font-size: 16px; line-height: 1.6; }
.sec-body { display: grid; gap: 22px; align-content: start; min-width: 0; }
.aside { margin: 0; max-width: 44em; color: var(--muted); font-size: 14px; line-height: 1.65; }
.aside a, .how-steps a, .faq a, .protocols a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* The card every block shares: white, soft shadow, a light that follows the pointer (js/scrollfx.js sets --mx, --my). */
.how-steps li, .inside > div, .protocols > div, .tier { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.how-steps li::after, .inside > div::after, .protocols > div::after, .tier::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--blue) 13%, transparent), transparent 70%); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.how-steps li:hover::after, .inside > div:hover::after, .protocols > div:hover::after, .tier:hover::after { opacity: 1; }
.how-steps li:hover, .inside > div:hover, .protocols > div:hover, .tier:hover { border-color: var(--line-strong); box-shadow: var(--shadow-pop); transform: translate3d(0, -3px, 0); }

/* Steps: three cards on a line, a thread runs through the numbers */
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.how-steps li { display: grid; align-content: start; gap: 18px; padding: 26px; }
.how-steps li:not(:last-child)::before { content: ""; position: absolute; z-index: 1; top: 47px; left: calc(26px + 42px + 12px); right: -18px; height: 0; border-top: 2px dotted var(--line-strong); }
.step-no { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 18px; font-weight: 600; }
.how-steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.how-steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.land .key { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--card-2); color: var(--ink); font-size: 14px; }

/* Inside the cabinet, protocols: icon, name, a few lines */
.inside, .protocols { display: grid; gap: 18px; margin: 0; }
.inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.protocols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.protocols > div:first-child { grid-column: span 2; }
.inside > div, .protocols > div { display: grid; align-content: start; gap: 12px; padding: 26px; }
.inside dt, .protocols dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.protocols dt small { color: var(--muted); font-size: 12px; font-weight: 500; }
.inside dd, .protocols dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.chip { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--info-soft); color: var(--blue); transition: transform .3s var(--spring); }
.chip .icon { width: 20px; height: 20px; }
.inside > div:hover .chip, .protocols > div:hover .chip { transform: rotate(-8deg) scale(1.1); }
.pick { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-style: normal; font-weight: 500; }

/* Plans: cards in a row, the recommended one lifted and ringed */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.tier { display: grid; align-content: start; gap: 10px; padding: 26px 24px; }
.tier.rec { border-color: color-mix(in srgb, var(--blue) 55%, transparent); box-shadow: 0 0 0 4px var(--info-soft), var(--shadow-pop); }
.tier-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tier-name h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
/* A tab hanging from the card's top edge: the price stays level with its neighbours. */
.tier-rec { position: absolute; top: 0; right: 20px; padding: 4px 10px 5px; border-radius: 0 0 10px 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tier-price { margin: 6px 0 4px; display: grid; gap: 2px; }
.tier-price b { font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1.1; }
.tier-price span { color: var(--muted); font-size: 13px; }
.tier-opens, .tier-extra { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.tier-opens { padding-top: 14px; border-top: 1px solid var(--line); }
.tier-extra { color: var(--muted); }

/* FAQ: one rounded card, rows inside */
.faq { display: grid; overflow: hidden; border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 550; letter-spacing: -.01em; transition: background .2s var(--ease); }
.faq summary:hover { background: var(--hover); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: -6px 0 0; padding: 0 26px 24px; max-width: 46em; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* Closing: a card of the theme itself (owner 23.10.2026: dark on dark, light on light; an inverted
   panel read as a broken theme), with a glow of the accent and the theme's own primary button. */
.closing { position: relative; z-index: 2; display: grid; justify-items: start; gap: 26px; margin-top: 96px; padding: clamp(32px, 6vw, 72px); overflow: hidden; border-radius: 32px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.closing::before { content: ""; position: absolute; right: -8%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 26%, transparent), transparent); pointer-events: none; }
.closing h2 { position: relative; margin: 0; max-width: 16em; font-size: clamp(28px, 4vw, 50px); line-height: 1.06; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.closing .button { position: relative; }

/* ——— On scroll (js/scrollfx.js sets --p, 0 at the top to 1 once the first screen has gone) ———
   The globe grows and drifts toward the middle, the headline lets go, the sections rise into view. */
.fx .hero { --p: 0; }
.fx .hero-globe .globe { transform: translate3d(calc(var(--p) * -11%), calc(var(--p) * 9%), 0) scale(calc(1 + var(--p) * 0.6)); transform-origin: 50% 50%; will-change: transform, opacity;
  opacity: calc(1 - (max(var(--p), 0.55) - 0.55) * 1.8); }
.fx .hero-copy { opacity: calc(1 - var(--p) * 1.9); transform: translate3d(0, calc(var(--p) * -48px), 0); will-change: transform, opacity; }
.fx .hero-globe figcaption { opacity: calc(1 - var(--p) * 2.2); }
.fx .hero.away .hero-copy { visibility: hidden; }
.fx .hero { z-index: 1; position: relative; }
.fx .sec { position: relative; z-index: 2; }
.fx .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.fx .reveal.in { opacity: 1; transform: none; }
/* Once a card has arrived, its hover answers at once (scrollfx.js adds .done). */
.fx .tier.reveal.in:hover, .fx .how-steps li.reveal.in:hover, .fx .inside > div.reveal.in:hover, .fx .protocols > div.reveal.in:hover { transform: translate3d(0, -3px, 0); }
.fx .reveal.in.done { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); transition-delay: 0s; }

/* ——— Phones and narrow windows ——— */
@media (max-width: 960px) {
  .land { width: min(100% - 32px, 1160px); }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 12px 0 48px; }
  .hero-globe { margin-right: 0; justify-items: center; }
  .globe { width: min(100%, 560px); }
  .hero-globe figcaption { margin: 0; padding-left: 0; }
  .ribbon { margin: 0 -16px; }
  .sec { padding-top: 64px; gap: 26px; }
  .how-steps, .protocols { grid-template-columns: 1fr; }
  .protocols > div:first-child { grid-column: auto; }
  .how-steps li:not(:last-child)::before { display: none; }
  .inside { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .figures > div { padding: 0 18px; }
  .figures dd { font-size: 28px; }
  .how-steps li, .inside > div, .protocols > div { padding: 22px; }
  .faq summary { padding: 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
}
