/*
 * Spletni ščit – public website.
 * Plain CSS on purpose: nothing to build on the server, no third-party requests.
 * Colours follow the app (see android/.../ui/theme/Theme.kt).
 */

:root {
    color-scheme: light dark;

    --bg: #f4f7f6;
    --surface: #ffffff;
    --tint: #e9f1ee;
    --text: #101c19;
    --muted: #52625d;
    --line: #dce4e1;
    --brand: #0b6b53;
    --brand-soft: #d2f0e3;
    --button: #0b6b53;
    --button-text: #ffffff;
    --mark-check: #ffffff;
    --no: #a3352c;
    --warn-bg: #ffe6c4;
    --warn-text: #3a1e00;
    --shadow: 0 1px 2px rgb(16 28 25 / 4%), 0 18px 40px -22px rgb(16 28 25 / 22%);
    --stage: linear-gradient(140deg, #0d7459 0%, #0b6b53 40%, #064536 100%);

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 28px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c1412;
        --surface: #131d1a;
        --tint: #111a17;
        --text: #e3ece8;
        --muted: #a3b4ae;
        --line: #2a3833;
        --brand: #5fddb5;
        --brand-soft: #0e4435;
        --button: #5fddb5;
        --button-text: #04241b;
        --mark-check: #04241b;
        --no: #ff9d92;
        --warn-bg: #4a3410;
        --warn-text: #ffddb0;
        --shadow: 0 0 0 1px #223029;
        --stage: linear-gradient(140deg, #0c6a52 0%, #0a5644 40%, #052f26 100%);
    }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 20;
    padding: 10px 16px; border-radius: 12px;
    background: var(--button); color: var(--button-text); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* The shield mark */
.mark { width: 26px; height: 29px; flex: none; }
.mark-body { fill: var(--brand); }
.mark-check { stroke: var(--mark-check); }
.mark--light .mark-body { fill: #ffffff; }
.mark--light .mark-check { stroke: #0b6b53; }

/* Header */
.top {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none;
}
.top-nav { display: flex; gap: 4px; margin-inline: auto; }
.top-nav a {
    padding: 8px 12px; border-radius: 999px;
    color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none;
}
.top-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.top-side { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top-nav + .top-side { margin-left: 0; }
.top-lang { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.top-lang:hover { color: var(--text); }

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 26px; border-radius: 999px;
    background: var(--button); color: var(--button-text);
    font-weight: 650; font-size: 17px; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 45%); }
.button--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.button--light { background: #ffffff; color: #0a5a46; }
.button--ghost { background: rgb(255 255 255 / 12%); color: #ffffff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 28%); }
.button--ghost:hover { background: rgb(255 255 255 / 18%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 40%); }

/* Not a button: says where the app will be available. */
.soon {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 22px; border-radius: 999px;
    border: 1.5px dashed rgb(255 255 255 / 45%); color: #ffffff; font-weight: 600;
}

/* The green panel used for the hero and the closing call, as on the app's home screen */
.stage { position: relative; overflow: hidden; border-radius: 40px; background: var(--stage); color: #ffffff; }
.stage .eyebrow { color: #a9ecd3; }

.eyebrow {
    margin-bottom: 14px;
    color: var(--brand); font-size: 14px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 19px; line-height: 1.55; max-width: 60ch; }

/* Hero */
.hero { padding-top: 8px; }
.hero-panel {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px;
    padding: 72px 64px 0;
}
.hero-copy { align-self: center; padding-bottom: 72px; }
.hero-copy .lead { margin-top: 22px; color: #e3f2ec; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; color: #c5e6da; font-size: 15px; }

.hero-phone { position: relative; align-self: end; justify-self: center; margin-bottom: -150px; }
.hero-phone::before,
.hero-phone::after {
    content: ""; position: absolute; left: 50%; top: 44%; translate: -50% -50%;
    border-radius: 50%; background: rgb(255 255 255 / 7%);
}
.hero-phone::before { width: 560px; height: 560px; }
.hero-phone::after { width: 400px; height: 400px; }
.hero-phone .phone { position: relative; z-index: 1; width: 300px; }

/* Phone frame around a screenshot */
.phone {
    padding: 9px; border-radius: 44px; background: #0d1512;
    box-shadow: 0 34px 60px -26px rgb(0 0 0 / 55%), inset 0 0 0 1.5px rgb(255 255 255 / 14%);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 35px; }

/* Facts under the hero */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 44px 8px 0; }
.facts > div { padding: 4px 28px; border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; max-width: 30ch; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.step-shot {
    display: flex; justify-content: center; height: 380px; overflow: hidden;
    background: var(--tint); border-radius: 22px; margin: 8px 8px 0;
}
.step-shot .phone { width: 218px; align-self: flex-start; margin-top: 30px; border-radius: 38px; box-shadow: 0 24px 40px -24px rgb(0 0 0 / 45%); }
.step-shot .phone img { border-radius: 30px; }
/* These two screens are interesting at the bottom, so the phone hangs from above. */
.step-shot--register .phone,
.step-shot--setup .phone { align-self: flex-end; margin: 0 0 30px; }
.step-text { position: relative; padding: 26px 28px 30px; }
.step-number {
    display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px;
}
.step-text p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Delayed switch-off */
.delay { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 20px; align-items: stretch; }
.demo { padding: 32px; }
.demo-label { color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.segments { display: flex; flex-wrap: wrap; gap: 8px; }
.segments button {
    min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--line); background: transparent; color: var(--text);
    font: inherit; font-size: 15.5px; font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease;
}
.segments button:hover { border-color: var(--brand); }
.segments button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

.flow { margin-top: 30px; counter-reset: flow; }
.flow li {
    position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 16px; align-items: start;
    padding-bottom: 26px;
}
.flow li::before {
    counter-increment: flow; content: counter(flow);
    grid-row: 1 / span 2; position: relative; z-index: 1;
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 16px;
}
.flow li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 30%, transparent); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow li.flow-wait { padding-bottom: 54px; }
.flow li.flow-wait::after { background: repeating-linear-gradient(to bottom, var(--brand) 0 6px, transparent 6px 13px); }
.flow h3 { grid-column: 2; margin-top: 7px; font-size: 17.5px; }
.flow p { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: 15.5px; }
.when {
    grid-column: 3; grid-row: 1 / span 2; align-self: start; margin-top: 4px;
    padding: 6px 14px; border-radius: 12px; background: var(--tint);
    font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
}
.when--length { display: grid; gap: 6px; justify-items: end; color: var(--brand); background: var(--brand-soft); }
.pips { display: flex; gap: 4px; }
.pips i { width: 14px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 22%, transparent); transition: background-color .2s ease; }
.pips i.on { background: var(--brand); }

.delay-shot {
    display: flex; justify-content: center; overflow: hidden; min-height: 420px;
    border-radius: var(--radius); background: var(--stage);
}
.delay-shot .phone { width: 250px; align-self: flex-start; margin-top: 44px; margin-bottom: -180px; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.points li { padding-top: 18px; border-top: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.points h3 { font-size: 17.5px; }
.points p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* What protects the filter */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features .card { padding: 28px; }
.badge {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand); font-size: 19px;
}
.features p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Privacy */
.data { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.data .section-head { margin-bottom: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 650; text-decoration: none; }
.more:hover { text-decoration: underline; }
.ledger { display: grid; gap: 16px; }
.ledger .card { padding: 26px 28px; }
.ticks { margin-top: 14px; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16.5px; }
.ticks .icon { margin-top: 3px; color: var(--brand); stroke-width: 2.4; }
.ticks--no .icon { color: var(--no); }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    position: relative; cursor: pointer; list-style: none;
    padding: 22px 48px 22px 0; font-size: 18.5px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    translate: 0 -70%; rotate: 45deg; transition: rotate .2s ease, translate .2s ease;
}
.faq-list details[open] summary::after { rotate: 225deg; translate: 0 -30%; }
.faq-list summary:hover { color: var(--brand); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 68ch; }

/* Closing call */
.closing { padding-bottom: clamp(48px, 7vw, 88px); }
.closing-panel { display: grid; justify-items: center; gap: 0; padding: clamp(48px, 7vw, 84px) 28px; text-align: center; }
.closing-panel .mark { width: 54px; height: 60px; margin-bottom: 26px; }
.closing-panel h2 { max-width: 18ch; }
.closing-panel p { margin: 16px 0 32px; color: #e3f2ec; font-size: 19px; max-width: 46ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 44px; color: var(--muted); font-size: 15px; }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: start; }
.foot-brand p { margin-top: 8px; max-width: 36ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.foot-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.foot-nav a:hover { color: var(--brand); }
.foot-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; }

/* Text pages (privacy policy) */
.prose { max-width: 780px; padding-block: 40px 88px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; margin: 44px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose .muted { color: var(--muted); font-size: 15px; }
.notice { background: var(--warn-bg); color: var(--warn-text); border-radius: 14px; padding: 12px 16px; font-size: 15.5px; margin: 18px 0; }

/* Narrower screens */
@media (max-width: 1020px) {
    .top-nav { display: none; }
    .top-nav + .top-side { margin-left: auto; }
    .hero-panel { padding: 56px 44px 0; }
    .hero-phone .phone { width: 260px; }
    .data, .faq { grid-template-columns: 1fr; gap: 36px; }
    .faq .section-head { position: static; }
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .hero-panel { grid-template-columns: 1fr; gap: 0; padding: 44px 28px 0; border-radius: 32px; }
    .hero-copy { padding-bottom: 44px; }
    .hero-phone { margin-bottom: -250px; }
    .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .delay { grid-template-columns: 1fr; }
    .delay-shot { min-height: 360px; }
    .points { grid-template-columns: 1fr; gap: 24px; }
    .facts { grid-template-columns: 1fr; gap: 22px; padding-inline: 4px; }
    .facts > div { padding: 0 0 0 18px; border-left: 2px solid var(--brand-soft); }
    .facts > div:first-child { padding-left: 18px; border-left: 2px solid var(--brand-soft); }
    .facts dd { max-width: none; }
}

@media (max-width: 620px) {
    body { font-size: 16.5px; }
    .wrap { padding-inline: 16px; }
    .hero-panel { padding: 36px 22px 0; border-radius: 28px; }
    .actions > * { flex: 1 1 100%; }
    .features { grid-template-columns: 1fr; }
    .demo { padding: 24px 20px; }
    .flow li { grid-template-columns: 40px minmax(0, 1fr); }
    .when { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 10px; text-align: left; white-space: normal; }
    .when--length { justify-items: start; }
    .foot-row { grid-template-columns: 1fr; }
    .foot-nav { justify-content: flex-start; }
    .faq-list summary { font-size: 17.5px; padding-right: 40px; }
    .faq-list details p { padding-right: 0; }
}
