/* ============================================================
   ProdajaPlaceva — Coming Soon landing
   Self-contained CSS. Brand palette + fonts mirror the live site.
   ============================================================ */

:root {
    /* Brand palette */
    --accent: #6b8e4e;
    --accent-dark: #4f6b39;
    --accent-wash: #eef2e4;
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-alt: #f4f1e9;
    --ink: #23241f;
    --ink-2: #4a4b41;
    --muted: #7b7a6e;
    --line: #e7e3d7;
    --line-2: #d9d4c6;
    --danger: #c0563f;

    /* Shadows */
    --shadow-brand:
        0 1px 2px rgba(40, 40, 30, 0.04),
        0 8px 24px -12px rgba(40, 40, 30, 0.18);
    --shadow-brand-lg:
        0 2px 6px rgba(40, 40, 30, 0.06),
        0 24px 48px -18px rgba(40, 40, 30, 0.28);

    /* Radius */
    --radius-brand: 14px;
    --radius-brand-sm: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Outfit, system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Izohipse backdrop (surveyor contour lines, see /geometar). Fixed and
   behind everything; .page gets a stacking context above it. */
.topo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.topo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

@media (min-width: 768px) {
    .page {
        padding: 36px 32px 64px;
    }
}

/* ─────────── Header ─────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
}

.brand__logo {
    height: 26px;
    width: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
    background: var(--accent-wash);
    color: var(--accent-dark);
    border-radius: 999px;
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.header__nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* The "Stiže uskoro" badge yields to the auth links on narrow screens. */
@media (max-width: 520px) {
    .header__nav .badge {
        display: none;
    }
}

.header__link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.header__link:hover {
    border-color: var(--accent);
}

.header__link--cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.header__link--cta:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* ─────────── Hero ─────────── */
.hero {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
    background: var(--accent-wash);
    color: var(--accent-dark);
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.hero__title {
    font-family: Spectral, Georgia, serif;
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.05;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.hero__title em {
    font-style: italic;
    color: var(--accent-dark);
}

.hero__lead {
    margin: 0;
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
    max-width: 580px;
}

/* ─────────── Notify form ─────────── */
.notify {
    width: 100%;
    max-width: 540px;
    margin-top: 14px;
    text-align: left;
}

.notify__label {
    display: block;
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
    text-align: center;
}

.notify__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-brand);
    padding: 8px;
    box-shadow: var(--shadow-brand-lg);
}

@media (min-width: 540px) {
    .notify__row {
        flex-direction: row;
        align-items: stretch;
    }
}

.notify__input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: transparent;
    border-radius: var(--radius-brand-sm);
}

.notify__terms {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

.notify__terms a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notify__input::placeholder {
    color: var(--muted);
}

.notify__button {
    flex: 0 0 auto;
    border: 0;
    background: var(--accent);
    color: white;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius-brand-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}

.notify__button:hover,
.notify__button:focus-visible {
    background: var(--accent-dark);
}

.notify__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.notify__feedback {
    margin: 10px 4px 0;
    font-size: 13px;
    line-height: 1.5;
    min-height: 1em;
}

.notify__feedback.is-success {
    color: var(--accent-dark);
    font-weight: 500;
}

.notify__feedback.is-error {
    color: var(--danger);
}

/* ─────────── Features ─────────── */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 980px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-brand);
    padding: 22px 20px;
    box-shadow: var(--shadow-brand);
}

.feature__icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-brand-sm);
    background: var(--accent-wash);
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.feature__title {
    font-family: Spectral, Georgia, serif;
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.feature__body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
}

/* ─────────── Footer ─────────── */
.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.footer__brand {
    color: var(--ink-2);
    font-weight: 600;
}

.footer__sep {
    color: var(--line-2);
}

.footer__link {
    color: var(--accent-dark);
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}
