/* Landing-page additions on top of the Site Kit library: header actions,
   phone-framed screenshots, feature cards, news and steps. */

/* Header */
.site-top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-head {
    padding: 14px 0;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}
.wordmark img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}
.head-end {
    display: flex;
    align-items: center;
    gap: 10px 20px;
    flex-wrap: wrap;
}
.site-head nav a,
.language a {
    min-height: 44px;
}
.button-small {
    min-height: 44px;
    padding: 9px 16px;
    gap: 10px;
    font-size: 15px;
}
@media (max-width: 860px) {
    .site-head nav:not(.language) {
        display: none;
    }
}
.language abbr {
    text-decoration: none;
}
@media (max-width: 520px) {
    .site-head {
        flex-wrap: nowrap;
        gap: 12px;
    }
    .wordmark {
        font-size: 15px;
        line-height: 1.15;
    }
    .head-end {
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    .language {
        gap: 2px;
        flex-wrap: nowrap;
    }
    .head-end .button-small {
        display: none;
    }
}

main > section {
    scroll-margin-top: 84px;
}

/* Hero */
main > section.block-hero {
    padding-top: clamp(40px, 6vw, 80px);
}
.block-hero h1 {
    max-width: 16ch;
}
.store-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.hero-phone {
    justify-self: center;
}

/* Phone frame */
.phone {
    margin: 0;
    width: min(100%, 300px);
    padding: 6px;
    border-radius: 26px;
    background: var(--bezel);
    border: 1px solid var(--bezel-edge);
    box-shadow: 0 24px 48px -28px rgba(17, 30, 48, 0.55);
}
.phone img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 20;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    background: var(--image-bg);
}
.hero-phone .phone {
    width: min(78vw, 320px);
}

/* Screenshot strip: swipeable on phones, a row on wide screens */
.screens {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
    margin: 36px 0 0;
    padding: 4px 4px 18px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}
.screens li {
    scroll-snap-align: start;
}
@media (min-width: 1000px) {
    .screens {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
    }
}
/* Reset the browser's default figure margin (40px each side) */
.screens figure {
    margin: 0;
}
.screens .phone {
    width: 100%;
}
.screens figcaption {
    margin-top: 14px;
    font-size: 15px;
    color: var(--muted);
}
.screens figcaption strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
}
.screens:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 16px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.feature {
    padding: 22px 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}
.feature h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.feature p {
    margin: 8px 0 0;
    color: var(--muted);
}
.tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    vertical-align: 2px;
}

/* News */
.news {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
    max-width: 860px;
}
.news li {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 6px 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.news time {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    padding-top: 3px;
}
.news h3 {
    font-size: clamp(19px, 1.7vw, 22px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.news p {
    margin: 6px 0 0;
    color: var(--muted);
    max-width: 62ch;
}
@media (max-width: 600px) {
    .news li {
        grid-template-columns: 1fr;
    }
}

/* Steps */
.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 28px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}
.steps li {
    counter-increment: step;
    border-top: 2px solid var(--accent);
    padding-top: 18px;
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.steps h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}
.steps p {
    margin: 8px 0 0;
    color: var(--muted);
}

/* Privacy list */
.facts {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 0 40px;
}
.facts li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.facts strong {
    display: block;
    font-weight: 600;
}
.facts span {
    color: var(--muted);
}

/* Download band */
.call-to-action.download {
    background: var(--hero);
    color: var(--on-hero);
}
.download h2 {
    color: var(--on-hero);
}
.download p {
    color: var(--on-hero-muted);
}
.download .button {
    background: var(--on-hero);
    border-color: var(--on-hero);
    color: #1a283b;
}
.download .button:hover {
    background: var(--on-hero-muted);
}
.download .button:focus-visible {
    outline-color: var(--on-hero);
}

/* Footer */
.foot-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.foot-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}
.foot-links a {
    min-height: 44px;
}
