/* Конор — the landing for guests (mockups «Для гостей — телефон» / «Для гостей — сайт»).
   Phone first; the desktop layout starts at 900 px. Same tokens as webapp-v2.css. */

:root {
  --bg: #0B0F24;
  --sky: #0D1230;
  --planet: #1B2B45;
  --surface: #151B3A;
  --border: #232B52;
  --border-strong: #2A3360;
  --text-1: #EEF0FF;
  --text-2: #A9B0D6;
  --text-3: #8A92BE;
  --text-hero: #B9BEE0;
  --nav: #C9CEEA;
  --accent: #F9C64A;
  --accent-hover: #FFD970;
  --on-accent: #1A1300;
  --success: #4ADE80;
  --success-soft: #7EE2A0;
  --danger: #F87171;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ln {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.ln a { color: var(--accent); }
.ln a:hover { color: var(--accent-hover); }
.ln img { max-width: 100%; }

.ln-wrap { width: 100%; max-width: 560px; margin: 0 auto; }
.ln-desk { display: none !important; }

/* ---------- hero ---------- */
.ln-hero { position: relative; overflow: hidden; background: var(--sky); }
/* The hero grows with its text; the planet and Конор stay pinned to its bottom. */
.ln-hero-in { position: relative; min-height: 520px; padding: 26px 24px 250px; }
.ln-stars { position: absolute; left: 0; top: 0; width: 100%; height: 520px; pointer-events: none; }
.ln-stars-desk { display: none; }
.ln-stars circle { fill: #FFFFFF; animation: ln-twinkle 2.6s ease-in-out infinite; }
.ln-stars circle.gold { fill: var(--accent); }
@keyframes ln-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Конор sits on top of the planet: both share the same centre line. */
.ln-hero-in { --cx: 52.6%; }
.ln-planet {
  position: absolute; left: calc(var(--cx) - 640px); bottom: -1200px; /* top edge 80 px above the bottom */
  width: 1280px; height: 1280px; border-radius: 50%; background: var(--planet);
}
.ln-moon { display: none; }
.ln-konor { position: absolute; left: calc(var(--cx) - 95px); bottom: 28px; width: 190px; }
.ln-konor img { display: block; width: 100%; height: auto; }
.ln-bubble {
  position: absolute; left: 79%; top: -10px; white-space: nowrap;
  background: #FFFFFF; color: var(--on-accent); border-radius: 16px; padding: 8px 13px;
  font-size: 14px; font-weight: 700; line-height: 1.2;
}

.ln-nav { position: relative; display: flex; align-items: center; justify-content: space-between; }
.ln-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent); }
.ln-nav-links { display: none; }
.ln-hero-text { position: relative; max-width: 342px; margin-top: 12px; }
.ln-hero-text h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.12;
}
.ln-sub { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-hero); }
.ln-invite {
  display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 16px;
  background: rgba(249, 198, 74, .12); border: 1px solid rgba(249, 198, 74, .45);
  color: var(--accent); font-size: 14px; font-weight: 700; line-height: 1.35;
}
.ln .ln-tg { align-self: center; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* ---------- buttons, live card ---------- */
.ln-main { display: flex; flex-direction: column; gap: 14px; padding: 20px 16px 0; }
.ln-actions { display: flex; flex-direction: column; gap: 14px; }
.ln .ln-btn {
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 700; border-radius: 28px; transition: background .15s ease, border-color .15s ease;
}
.ln .ln-btn-primary { height: 56px; background: var(--accent); color: var(--on-accent); font-size: 17px; }
.ln .ln-btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.ln .ln-btn-outline {
  height: 50px; border: 1px solid var(--border-strong); color: var(--text-1); font-size: 15px;
}
.ln .ln-btn-outline:hover { border-color: var(--text-3); color: var(--text-1); }

.ln-live {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.ln-live-text { display: flex; flex-direction: column; }
.ln-live-text b { font-size: 15px; }
.ln-live-text span { font-size: 12px; color: var(--text-2); }
.ln-dot { display: block; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; }
.ln-dot-ok { background: var(--success); box-shadow: 0 0 0 4px rgba(74, 222, 128, .14); }
.ln-dot-warn { background: var(--accent); }
.ln-dot-down { background: var(--danger); }

/* ---------- sections ---------- */
.ln-h2 { margin: 12px 4px 14px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.ln-cards { display: flex; flex-direction: column; gap: 14px; }
.ln-card {
  display: flex; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.ln-paw { flex-shrink: 0; width: 24px; height: 24px; fill: var(--accent); }
.ln-card-body { display: flex; flex-direction: column; gap: 2px; }
.ln-card-body b { font-size: 15px; }
.ln-card-body span { font-size: 13px; line-height: 1.45; color: var(--text-2); }

.ln-steps-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.ln-steps-list li {
  display: flex; flex-direction: column; gap: 6px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  font-size: 13px; font-weight: 700; line-height: 1.35;
}
.ln-steps-list li span { font-family: var(--font-display); font-size: 20px; color: var(--accent); }

.ln-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ln-price {
  display: flex; flex-direction: column; gap: 2px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.ln-price.is-best { border: 2px solid var(--accent); padding: 13px; }
.ln-price-label { font-size: 13px; color: var(--text-2); }
.ln-price-value { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.ln-price-note { font-size: 12px; font-weight: 700; color: var(--success-soft); }
.ln-note { margin: 14px 0 0; font-size: 13px; color: var(--text-2); text-align: center; }

.ln-where-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ln .ln-app {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; color: var(--text-1);
}
.ln a.ln-app:hover { border-color: var(--border-strong); color: var(--text-1); }
.ln .ln-app.is-own { border-color: var(--accent); }
.ln-app-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 12px; background: #1B2350; color: var(--accent);
}
.ln-app-icon svg { width: 20px; height: 20px; }
.ln-app-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ln-app b { font-size: 14px; line-height: 1.25; }
.ln-app-body span { font-size: 12px; color: var(--text-2); }
.ln-app-own {
  position: absolute; top: -8px; right: 10px; padding: 1px 8px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; font-style: normal;
}
.ln-steps-list li a { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ln-where .ln-note a { font-weight: 700; text-decoration: none; }

.ln-footer {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 16px calc(30px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--text-3); text-align: center;
}
.ln-footer-links { display: flex; flex-direction: column; gap: 6px; }
.ln .ln-footer a { color: var(--text-3); text-decoration: none; }
.ln .ln-footer a:hover { color: var(--text-1); }

/* ---------- desktop ---------- */
/* 320–360 px phones: the steps' longest word («приложение») and Конор's bubble fit */
@media (max-width: 360px) {
  .ln-steps-list li { padding: 10px 8px; font-size: 12px; }
  .ln-bubble { left: 70%; }
}

@media (min-width: 900px) {
  .ln-phone { display: none !important; }
  .ln-desk { display: revert !important; }
  .ln-hero-actions.ln-desk { display: flex !important; }

  .ln-wrap { max-width: 1280px; }
  .ln-hero-in { --cx: 72.66%; min-height: 620px; padding: 36px 80px 64px; }
  .ln-stars-phone { display: none; }
  .ln-stars-desk { display: block; height: 620px; }
  .ln-planet { left: calc(var(--cx) - 1000px); bottom: -1900px; width: 2000px; height: 2000px; }
  .ln-moon { display: block; position: absolute; right: 60px; top: 80px; width: 120px; height: 120px; }
  .ln-konor { left: calc(var(--cx) - 130px); bottom: 108px; width: 260px; }
  .ln-bubble { left: 77%; top: -20px; border-radius: 18px; padding: 10px 16px; font-size: 16px; }

  .ln-brand { font-size: 22px; }
  .ln-nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
  .ln .ln-nav-links a { color: var(--nav); text-decoration: none; }
  .ln .ln-nav-links a:hover { color: var(--text-1); }
  .ln .ln-nav-links .ln-nav-login {
    color: var(--text-1); font-weight: 700; border: 1px solid var(--border-strong);
    border-radius: 20px; padding: 9px 18px;
  }
  .ln-hero-text { max-width: min(620px, 58%); margin-top: 84px; }
  .ln-hero-text h1 { font-size: clamp(38px, 4.2vw, 54px); line-height: 1.08; }
  .ln-sub { margin-top: 18px; font-size: 19px; }
  .ln-hero-actions { gap: 12px; margin-top: 26px; flex-wrap: wrap; }
  .ln-invite { font-size: 16px; margin-bottom: 18px; }
  .ln .ln-tg.ln-desk { display: inline-block !important; margin-top: 14px; }
  .ln .ln-hero-actions .ln-btn-primary { height: 58px; padding: 0 30px; border-radius: 29px; font-size: 18px; }
  .ln-pill {
    display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 24px;
    border: 1px solid var(--border-strong); border-radius: 29px; font-size: 16px; font-weight: 700;
  }

  .ln-main { gap: 0; padding: 0 80px; }
  .ln-h2 {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .ln-why { margin-top: 57px; }
  .ln-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ln-card { flex-direction: column; gap: 8px; padding: 22px; border-radius: 24px; }
  .ln-paw { width: 28px; height: 28px; }
  .ln-card-body { gap: 8px; }
  .ln-card-body b { font-size: 17px; }
  .ln-card-body span { font-size: 14px; line-height: 1.5; }

  .ln-h2.ln-h2-show {
    position: static; width: auto; height: auto; margin: 0 0 16px; overflow: visible; clip: auto;
    white-space: normal; font-size: 26px;
  }
  .ln-steps { margin-top: 48px; }
  .ln-steps-list { gap: 16px; }
  .ln-steps-list li { flex-direction: row; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 24px; font-size: 16px; }
  .ln-steps-list li span { font-size: 28px; }
  .ln-where { margin-top: 48px; scroll-margin-top: 24px; }
  .ln-where-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .ln .ln-app { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border-radius: 24px; }
  .ln-app-icon { width: 44px; height: 44px; border-radius: 14px; }
  .ln-app-icon svg { width: 24px; height: 24px; }
  .ln-app b { font-size: 16px; }
  .ln-app-body span { font-size: 13px; }
  .ln-where .ln-note { text-align: left; margin-top: 16px; }
  .ln-prices-cta { display: flex !important; align-items: center; gap: 20px; margin-top: 24px; }
  .ln-prices-cta span { font-size: 15px; color: var(--text-2); }
  .ln .ln-prices-cta .ln-btn-primary { height: 58px; padding: 0 30px; border-radius: 29px; font-size: 18px; }
  .ln-prices { margin-top: 44px; scroll-margin-top: 24px; }
  .ln-price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ln-price { gap: 4px; padding: 22px; border-radius: 24px; }
  .ln-price.is-best { padding: 21px; }
  .ln-price-label { font-size: 15px; }
  .ln-price-value { font-size: 30px; }
  .ln-price-note { font-size: 13px; }

  .ln-footer {
    flex-direction: row; justify-content: space-between; gap: 24px;
    padding: 36px 80px 40px; font-size: 14px; text-align: left;
  }
  .ln-footer-links { flex-direction: row; gap: 0; }
  .ln-footer-links > span + span::before { content: "\00a0·\00a0"; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ln-stars circle { animation: none; opacity: .6; }
}

/* ---------- /g/CODE — «Тебе подарили прогулку!» (mockup WebGiftReceived) ---------- */
body.gr { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--sky); }
body.gr-day { background: #58B4F0; }  /* body.gr above would win over a bare .gr-day */
/* the sky and the planet span the screen; the words, stars and the sheet keep a phone-wide column */
.gr-scene { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 540px; overflow: hidden; width: 100%; }
.gr-stars, .gr-confetti {
  position: absolute; top: 0; left: 50%; width: 100%; max-width: 560px; height: 100%; transform: translateX(-50%);
}
.gr-stars circle { fill: #FFFFFF; animation: ln-twinkle 2.8s ease-in-out infinite; }
.gr-stars circle.gold { fill: var(--accent); }
/* Konor mid-jump right under the text; the little planet's body fills the rest down to the sheet */
.gr-world { position: relative; flex: 1; min-height: 260px; }
.gr-planet { position: absolute; left: 50%; top: 162px; width: 740px; height: 740px; margin-left: -370px; }
.gr-ground { fill: var(--planet); }
.gr-day .gr-ground { fill: #3FAE69; }
.gr-beacon { animation: ln-twinkle 1.6s ease-in-out infinite; }
.gr-sun {
  position: absolute; left: calc(50% + 111px); top: 16px; width: 56px; height: 56px; border-radius: 50%;
  background: #F9C64A; box-shadow: 0 0 0 16px rgba(255, 224, 138, .45);
}
.gr-konor { position: absolute; left: 50%; top: 20px; width: 190px; height: auto; margin-left: -95px; animation: gr-hop 1.2s ease-out infinite; }
@keyframes gr-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-28px); } 60% { transform: translateY(0); } 78% { transform: translateY(-10px); } }
.gr-text {
  position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px;
  margin: 0 auto; padding: 44px 24px 0; box-sizing: border-box;
}
.gr-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.gr-text h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.gr-text p { margin: 0; font-size: 15px; color: var(--text-hero); }
.gr-day .gr-text h1 { color: #0B1B33; }
.gr-day .gr-text p { color: #1F3B63; }
.gr-day .gr-kicker { color: #7A4B00; }
.gr-bubble {
  align-self: flex-start; max-width: 100%; margin-top: 6px; padding: 10px 14px; border-radius: 18px 18px 18px 4px;
  background: #FFFFFF; color: #1A1300; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere;
}
.gr-sheet {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; width: 100%;
  margin: -28px 0 0; box-sizing: border-box;
  padding: 20px max(20px, calc((100% - 520px) / 2)) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid #1D2447; border-radius: 28px 28px 0 0;
}
.ln .gr-btn-telegram { height: 56px; background: #229ED9; color: #FFFFFF; font-size: 17px; }
.ln .gr-btn-telegram:hover { background: #2AABEE; color: #FFFFFF; }
.gr-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3); text-align: center; }
.gr-done { margin: 4px 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; text-align: center; }
.gr-error { font-size: 13px; color: var(--danger); text-align: center; }
.gr [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .gr-konor, .gr-beacon { animation: none; } }

/* the trope line links to «Карта троп»; «проверили из России N минут назад» under it */
a.ln-pill, a.ln-live { color: inherit; text-decoration: none; }
.ln-pill small { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; opacity: .75; }
a.ln-pill:hover, a.ln-live:hover { border-color: var(--border-strong); }


/* «Какие страны работают прямо сейчас» — the /map schematic on the landing (map.css draws it).
   Phone: title, status, the map, buttons. Desktop: text and buttons left, the map right. */
.ln-map { margin-top: 36px; scroll-margin-top: 24px; }
.ln-map-title { margin: 12px 4px 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.ln-map-sub { margin: 0 4px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ln-map .mp-status { margin-left: 4px; }
.ln-map-card { margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.ln-map-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) {
  .ln-map {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 48px;
    align-content: center; margin-top: 72px;
  }
  .ln-map > * { grid-column: 1; }
  .ln-map > .ln-map-card { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin-top: 0; padding: 20px; border-radius: 24px; }
  .ln-map-title { margin: 0 0 14px; font-size: 34px; line-height: 1.15; }
  .ln-map-sub { margin: 0; font-size: 16px; }
  .ln-map .mp-status { margin: 14px 0 0; }
  .ln-map-actions { align-items: flex-start; margin-top: 28px; }
  .ln .ln-map-actions .ln-btn { padding: 0 28px; }
}
