/*
  Shared by every page of the landing (/ and /ru/). The privacy policy and
  404 page keep their own inline styles.
*/
:root {
    --bg: #05060b;
    --bg-raised: #0c0e18;
    --text: #e4e5ee;
    --muted: #9296ab;
    --border: #1d2033;
    --accent: #5b6fd6;
    --accent-soft: #2a3068;
    --sun-1: #ffe9c2;
    --sun-2: #e8a24a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}
header.top {
    padding: 20px 0;
}
header.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header.top a.brand {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.02em;
}
header.top a.brand:hover { color: var(--text); }
header.top .right {
    display: flex;
    gap: 20px;
}
/* Three header links do not fit a phone's width and would widen the whole
   page; Pecto is credited in the footer anyway. */
@media (max-width: 520px) {
    header.top a.pecto { display: none; }
}

.hero {
    padding: 40px 0 56px;
    text-align: center;
}
.hero .subtitle, .hero .promo { text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.hero h1 {
    font-size: 2.1rem;
    margin: 20px 0 4px;
}
.hero .subtitle {
    color: var(--muted);
    font-size: 1.15rem;
    margin: 0 0 18px;
}
.hero .promo {
    max-width: 560px;
    margin: 0 auto 28px;
    color: #c7c9d8;
}
.stores {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #101223;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    transition: border-color 0.15s, transform 0.15s;
}
.store-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.store-btn svg { flex: none; }
.store-btn .lines { text-align: left; line-height: 1.2; }
.store-btn .lines .small { display: block; font-size: 11px; color: var(--muted); }
.store-btn .lines .big { display: block; font-size: 15px; font-weight: 600; }

/* The store the visitor can actually use is filled in sun colours. Without
   JavaScript, or on a desktop, both are; on a phone app.js demotes the other
   store to an outline and moves it second. */
.store-btn.primary {
    background: linear-gradient(180deg, #ffe3b0 0%, #eaa955 100%);
    border-color: transparent;
    color: #1d1306;
    box-shadow: 0 8px 28px rgba(232,162,74,0.28);
}
.store-btn.primary .lines .small { color: #5a3d14; }
.store-btn.primary:hover { border-color: transparent; box-shadow: 0 10px 34px rgba(232,162,74,0.4); }
.store-btn.primary svg { fill: currentColor; }

.cta-note {
    margin: -12px 0 28px;
    font-size: 0.9rem;
    color: var(--muted);
}

.cta-final {
    text-align: center;
    padding: 64px 0 72px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,233,194,0.22) 0%, rgba(232,162,74,0.12) 30%, rgba(232,162,74,0) 65%);
}
.cta-final .icon { width: 64px; height: 64px; border-radius: 15px; }
.cta-final h2 { font-size: 1.7rem; margin: 18px 0 8px; }
.cta-final p { margin: 0 auto 26px; max-width: 520px; }

/* Phones only, and only once the hero's buttons have scrolled away. */
.sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    background: rgba(12,14,24,0.94);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10;
    transform: translateY(150%);
    transition: transform 0.25s ease;
}
.sticky-cta.enabled { display: flex; }
.sticky-cta.shown { transform: none; }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-cta .label { flex: 1; line-height: 1.25; font-size: 0.9rem; }
.sticky-cta .label strong { display: block; font-size: 0.95rem; }
.sticky-cta .label span { color: var(--muted); }
.sticky-cta a.go {
    flex: none;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 11px;
    background: linear-gradient(180deg, #ffe3b0 0%, #eaa955 100%);
    color: #1d1306;
}

.hero-shot {
    width: 220px;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}
section h2 {
    font-size: 1.4rem;
    margin: 0 0 14px;
}
section p {
    color: #c7c9d8;
}
section p.lead {
    font-size: 1.05rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.features li {
    display: flex;
    gap: 12px;
    color: #c7c9d8;
}
.features li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.shots {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 0 10px;
    margin-top: 24px;
    -webkit-overflow-scrolling: touch;
}
.shots img {
    height: 340px;
    width: auto;
    border-radius: 20px;
    border: 1px solid var(--border);
    flex: none;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 28px;
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
}
.privacy-grid li {
    color: #c7c9d8;
    display: flex;
    gap: 8px;
}
.privacy-grid li::before {
    content: "✓";
    color: var(--accent);
    flex: none;
}


footer.bottom {
    padding: 36px 0 48px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}
footer.bottom a { color: #b9bdd6; text-decoration: underline; }
footer.bottom .links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (min-width: 700px) {
    .hero .wrap { display: flex; align-items: center; text-align: left; gap: 48px; }
    .hero-col { flex: 1; }
    .hero h1 { font-size: 2.6rem; }
    .hero .subtitle { font-size: 1.25rem; }
    .hero .promo { margin: 0 0 28px; }
    .stores { justify-content: flex-start; }
    .cta-final .stores { justify-content: center; }
    .icon { margin: 0; }
}

/* Hero: the app's name sits small beside its icon; the headline is the
   promise. */
.app-name {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
}
.app-name .icon { width: 48px; height: 48px; border-radius: 12px; }
.hero h1 { margin-top: 18px; line-height: 1.15; }

/* The live pacer: the same 5.5-breaths-a-minute raised cosine as the app,
   driven by app.js. Without JavaScript it rests at mid-size. */
.pacer-col { text-align: center; }
.pacer {
    width: 260px;
    height: 260px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sun {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle,
        #fff7e8 0%, #ffe3b0 18%, #f2b866 38%, rgba(232,162,74,0.45) 58%, rgba(232,162,74,0) 72%);
    transform: scale(0.78);
    will-change: transform;
}
.pacer-label {
    margin: 4px 0 2px;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--text);
    min-height: 1.6em;
}
.pacer-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }

.callout {
    margin-top: 22px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-left: 3px solid var(--sun-2);
    border-radius: 12px;
    padding: 16px 20px;
}
.callout p { margin: 0; }
section a { color: #c9cdf0; }

.faq details {
    border-top: 1px solid var(--border);
    padding: 14px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; }
