/* The first screen (canvas board 1А): the headline and its subheading at half its size, one card, and under it the ribbon with the live mark.
   It is fluid and always one screen: sizes follow the window's height (vh) as well as its width. Markup:
   .hero[data-ribbon-scope] > header.top, main.hero-main > (.hero-text, .stage > (.ribbon, .card, .hub, .ribbon-tag)) */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
/* the first screen's own light, still: warm orange on the left, pink on the right; a faint grid that fades out.
   The cyan that wanders over the whole page is site/glow.css */
.hero::before { content: ''; position: absolute; left: -10%; right: -10%; top: -15vh; height: 85vh; z-index: 0; pointer-events: none; filter: blur(24px);
  background: radial-gradient(38% 46% at 18% 32%, rgba(255,196,140,.55), transparent 70%), radial-gradient(34% 44% at 80% 26%, rgba(255,168,196,.45), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(10,10,10,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,10,10,.045) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 20%, transparent 75%); }
.hero > * { position: relative; z-index: 1; }

/* the top bar */
.top { display: flex; align-items: center; gap: 24px; padding: clamp(12px, 2.2vh, 20px) 0; }
.top .logo img { height: 32px; width: auto; display: block; }
.top .links { display: flex; gap: 24px; margin-inline-start: auto; font-size: 15px; font-weight: 500; }
.top .links a { text-decoration: none; color: var(--muted); }
.top .links a:hover { color: var(--ink); }
/* the language switch: a pill face over a real, invisible <select> (site/lang.js fills it) */
.langsw { position: relative; gap: 6px; }
.langsw select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.langsw:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.top .links + .langsw { margin-inline-start: 0; }

.hero-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4vh, 44px); padding-bottom: clamp(12px, 2vh, 24px); text-align: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 18px); }
.hero h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.05; }
.hero .lead { margin: 0; max-width: 24em; text-wrap: balance; font-size: var(--fs-lead); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--quiet); }

/* the stage, top to bottom: the card, the language tag, the live mark at the very bottom. The ribbon's U is centred
   on the mark and stays below the card (Vladimir: not under it, not over it). --space runs from the card to the mark;
   the tag's middle sits 55% down it, a little nearer the mark than the exact middle (Vladimir, 2026-11-15) */
.stage { position: relative; width: 100%; max-width: 560px; --hs: clamp(88px, 12vh, 112px); --k: 1;
  --space: clamp(80px, 15.5vh, 175px); --tagh: 26px;
  padding-bottom: calc(var(--space) + var(--hs)); }
.stage .ribbon { left: 50%; top: calc(100% - var(--hs) / 2); z-index: 0; }
.stage .hub { left: 50%; top: calc(100% - var(--hs) / 2); transform: translate(-50%, -50%); z-index: 3; }
.stage .ribbon-tag { left: 50%; top: calc(100% - var(--hs) - var(--space) * .45 - var(--tagh) / 2); z-index: 3; }
@media (max-height: 780px) { .stage { --k: .88; } }
@media (max-width: 700px) { .stage { --k: .8; --hs: clamp(76px, 10vh, 92px); --space: clamp(84px, 12vh, 132px); } }

/* the card: «a guest needs only the link» on top, the two ways in below on a grey tray */
.entry { position: relative; z-index: 2; text-align: start; overflow: hidden; box-shadow: var(--lift-shadow); }
.entry-head { display: flex; align-items: center; gap: 12px; padding: clamp(14px, 2.2vh, 20px) 22px; }
.entry-head b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.entry-head span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.entry .tray { margin: 0 8px 8px; padding: clamp(10px, 1.8vh, 16px); display: flex; flex-direction: column; gap: 12px; }
.entry .ways { display: flex; flex-wrap: wrap; gap: 8px; }
.entry .ways { flex-wrap: nowrap; }
.entry .ways .pill { flex: 1 1 0; min-width: 0; padding: 0 12px; height: 42px; font-size: 14px; }
.li-mark { width: 18px; height: 18px; border-radius: 4px; background: #0A66C2; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.agree input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.agree a { color: var(--ink); text-underline-offset: 3px; }
.agree.nudge { animation: nudge .45s ease; }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.signin-msg { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }

@media (max-width: 720px) {
  .top .links { display: none; }
  .top { gap: 8px; }
  .top .pill-ink { display: none; } /* the App Store badge under the headline does the same */
  .top .langsw { margin-inline-start: auto; }
  .hero-main { gap: clamp(16px, 2.6vh, 28px); }
  .hero h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .hero .lead { font-size: clamp(18px, 4.6vw, 22px); }
  .entry-head { padding: 14px 16px; }
  .entry .ways .pill { padding: 0 8px; gap: 6px; }
}
