/* Vetko web stranica – boje i zaobljenja kao u aplikaciji (client/src/index.css) */
:root {
    --bg: #f6f7f5;
    --surface: #ffffff;
    --fg: #17201c;
    --muted: #5b6660;
    --border: #e4e7e3;
    --primary: #0f766e;
    --primary-hover: #0d655e;
    --primary-dark: #0b4f49;
    --accent: #e6f2f0;
    --accent-fg: #0f5f58;
    --radius: 0.75rem;
    --shadow: 0 1px 2px rgb(23 32 28 / 0.04), 0 12px 32px -12px rgb(23 32 28 / 0.18);
    --shadow-lg: 0 2px 4px rgb(23 32 28 / 0.04), 0 32px 64px -24px rgb(15 95 88 / 0.35);
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

.narrow {
    max-width: 760px;
}

/* Gumbi */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.875rem;
    padding: 0 1.25rem;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-sm {
    height: 2.375rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 2px rgb(15 118 110 / 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border);
    color: var(--fg);
}

.btn-outline:hover {
    border-color: #cdd3cc;
    background: #fafbfa;
}

.btn-light {
    background: #fff;
    color: var(--primary-dark);
}

.btn-light:hover {
    background: var(--accent);
}

/* Navigacija */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(246 247 245 / 0.85);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 4rem;
}

.brand img {
    height: 1.75rem;
    width: auto;
}

.nav-links {
    display: none;
    gap: 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-links a,
.link-quiet {
    color: var(--muted);
    text-decoration: none;
}

.nav-links a:hover,
.link-quiet:hover {
    color: var(--fg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    font-size: 0.9375rem;
    font-weight: 500;
}

@media (min-width: 860px) {
    .nav-links {
        display: flex;
    }
}

/* Hero */
.hero {
    padding: 4rem 0 0;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 50% -10%, rgb(15 118 110 / 0.12), transparent 70%),
        var(--bg);
}

.hero-inner {
    max-width: 840px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 0.875rem;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #9fe3d9;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 800;
}

.lead {
    max-width: 640px;
    margin: 1.25rem auto 0;
    color: var(--muted);
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.875rem;
}

.hero-points li::before {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
    vertical-align: 0.15em;
}

.hero-shot {
    margin-top: 3.5rem;
    margin-bottom: -6rem;
}

/* Okvir preglednika oko snimki ekrana */
.browser {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.browser-bar {
    display: flex;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border);
    background: #fbfbfa;
}

.browser-bar span {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #dfe3de;
}

.phone {
    justify-self: center;
    width: min(300px, 80%);
    margin: 0;
    padding: 0.625rem;
    border-radius: 2.5rem;
    background: #17201c;
    box-shadow: var(--shadow-lg);
}

.phone img {
    border-radius: 1.9rem;
}

/* Sekcije */
.section {
    padding: 5rem 0;
}

#funkcije {
    padding-top: 10rem;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

.section-lead {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.0625rem;
}

/* Funkcije */
.feature-grid {
    display: grid;
    gap: 1rem;
}

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

@media (min-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature h3 {
    margin-top: 1rem;
    font-size: 1.0625rem;
}

.feature p {
    margin-top: 0.375rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc(var(--radius) - 2px);
    background: var(--accent);
    color: var(--accent-fg);
}

.icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Prikazi sa snimkama */
.showcase {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.showcase + .showcase {
    margin-top: 6rem;
}

.showcase-text p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.0625rem;
}

@media (min-width: 960px) {
    .showcase {
        grid-template-columns: 5fr 7fr;
        gap: 4rem;
    }

    .showcase-reverse .showcase-text {
        order: 2;
    }

    .showcase-mobile {
        grid-template-columns: 7fr 5fr;
    }
}

.checks {
    display: grid;
    gap: 0.625rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
}

.checks li {
    position: relative;
    padding-left: 1.75rem;
}

.checks li::before {
    content: '';
    position: absolute;
    top: 0.2rem;
    left: 0;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--accent)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
        center / 0.7rem no-repeat;
}

/* Cijene */
.pricing {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 900px) {
    .pricing {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.plan-featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.badge {
    position: absolute;
    top: -0.75rem;
    left: 1.75rem;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan h3 {
    font-size: 1.25rem;
}

.plan-for {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-top: 1.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.per {
    color: var(--muted);
    font-size: 0.9375rem;
}

.plan .checks {
    flex: 1;
    margin-bottom: 2rem;
}

.fineprint {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Demo */
.demo {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 1.5rem;
    border-radius: calc(var(--radius) + 0.5rem);
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgb(255 255 255 / 0.12), transparent 60%),
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.demo h2 {
    color: #fff;
}

.demo p {
    margin-top: 1rem;
    color: rgb(255 255 255 / 0.82);
    font-size: 1.0625rem;
}

@media (min-width: 860px) {
    .demo {
        grid-template-columns: 3fr 2fr;
        gap: 3rem;
        padding: 3.5rem;
    }
}

.demo-card {
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: var(--radius);
    background: rgb(255 255 255 / 0.08);
}

.steps {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.16);
    font-size: 0.875rem;
    font-weight: 700;
}

/* Pitanja */
.faq {
    border-top: 1px solid var(--border);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    padding-bottom: 1.25rem;
    color: var(--muted);
}

/* Kontakt */
.contact {
    text-align: center;
}

.contact-cards {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
    text-align: left;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-card > span:last-child {
    min-width: 0;
}

.contact-label {
    display: block;
    color: var(--muted);
    font-size: 0.8125rem;
}

.contact-value {
    display: block;
    overflow-wrap: anywhere;
    font-weight: 600;
}

/* Podnožje */
.footer {
    padding: 2.5rem 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.footer img {
    height: 1.25rem;
    width: auto;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-left: auto;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
