/* Public landing page (views/landing.php). Loaded after app.css, so colors,
   fonts, buttons and form fields all come from the app's own design tokens —
   this file only adds the marketing layout. Always light: the page sets
   data-theme="light" so a visitor's dark-mode preference does not recolor it. */

html { scroll-behavior: smooth; }

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

.lp { background: var(--bg); color: var(--ink); }
.lp img { max-width: 100%; height: auto; }
.lp [id] { scroll-margin-top: 84px; }

.lp-container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.lp-narrow { width: min(780px, calc(100% - 32px)); }

/* ---------- Header ---------- */

.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.lp-brand svg { width: 24px; height: 24px; color: var(--gold-ink); }

.lp-nav { display: none; gap: 26px; }

.lp-nav a {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.lp-nav a:hover { color: var(--ink); }

.lp-header-actions { display: flex; align-items: center; gap: 14px; }

.lp-login-link {
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.lp-login-link:hover { color: var(--ink); }

/* Text links are thumb targets on a phone: at least 44px tall. */
@media (hover: none) and (pointer: coarse) {
    .lp-login-link, .lp-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

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

.lp-preview-bar {
    padding: 8px 16px;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.lp-preview-bar a { color: inherit; }

/* ---------- Hero ---------- */

.lp-hero {
    padding: 48px 0 64px;
    background:
        radial-gradient(60% 55% at 88% 0%, var(--gold-soft), transparent 70%),
        radial-gradient(45% 45% at 0% 100%, var(--brand-soft), transparent 70%),
        var(--bg);
    overflow: hidden;
}

.lp-hero-grid { display: grid; gap: 40px; align-items: center; }

.lp-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold-ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lp-hero h1 {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 6vw, 3.6rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.lp-script {
    font-family: var(--font-script);
    font-size: 1.18em;
    font-weight: 700;
    color: var(--gold-ink);
    line-height: 1;
}

.lp-lead {
    margin: 0 0 26px;
    max-width: 520px;
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1.6;
}

.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-btn-lg { padding: 14px 26px; font-size: 0.96rem; }

.lp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
}

.lp-chips li { display: inline-flex; align-items: center; gap: 7px; }
.lp-chips svg { width: 16px; height: 16px; color: var(--ok-ink); }

.lp-hero-visual { position: relative; padding-bottom: 6%; }

.lp-browser {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    box-shadow: var(--shadow-lg);
}

.lp-browser-bar {
    display: flex;
    gap: 6px;
    padding: 11px 14px;
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--line);
}

.lp-browser-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
}

.lp-browser img { display: block; width: 100%; }

.lp-phone {
    overflow: hidden;
    border: 7px solid #0f1a2c;
    border-radius: 30px;
    background: #0f1a2c;
    box-shadow: var(--shadow-lg);
}

.lp-phone img { display: block; width: 100%; }

.lp-phone-hero { display: none; }

@media (min-width: 720px) {
    .lp-phone-hero {
        display: block;
        position: absolute;
        left: -4%;
        bottom: -3%;
        width: 26%;
        max-width: 190px;
    }
}

@media (min-width: 940px) {
    .lp-hero { padding: 72px 0 88px; }
    .lp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
}

/* ---------- Sections ---------- */

.lp-section { padding: 68px 0; }
.lp-section-tint { background: var(--bg-sunken); }

.lp-section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }

.lp-section-head h2,
.lp-order-copy h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 600;
    line-height: 1.15;
}

.lp-section-head p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

.lp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--gold-soft);
    color: var(--gold-ink);
}

.lp-icon svg { width: 22px; height: 22px; }

/* Steps */

.lp-steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-step,
.lp-feature,
.lp-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    box-shadow: var(--shadow-sm);
}

.lp-step h3,
.lp-feature h3,
.lp-card h3 { margin: 14px 0 6px; font-size: 1.05rem; }

.lp-step p,
.lp-feature p,
.lp-card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }

.lp-step-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--line-strong);
    line-height: 1;
}

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

/* Features */

.lp-features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Showcase */

.lp-showcase { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
.lp-showcase:first-of-type { margin-top: 0; }

.lp-showcase-media.is-phone { display: flex; justify-content: center; }
.lp-showcase-media.is-phone .lp-phone { width: min(270px, 70%); }

.lp-showcase-copy h3 {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.lp-checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.lp-checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-size: 0.98rem; line-height: 1.5; }

.lp-checklist svg {
    flex: none;
    width: 22px;
    height: 22px;
    padding: 4px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--ok-bg);
    color: var(--ok-ink);
}

@media (min-width: 900px) {
    .lp-showcase { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
    .lp-showcase.is-reversed { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
    .lp-showcase.is-reversed .lp-showcase-media { order: 2; }
}

/* Audience */

.lp-audience { display: grid; gap: 16px; }

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

/* Price */

.lp-price-card {
    width: min(540px, 100%);
    margin: 0 auto;
    padding: 34px 30px 30px;
    border: 1px solid var(--line-strong);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    box-shadow: var(--shadow-lg);
}

.lp-price-head { display: grid; gap: 6px; justify-items: center; margin-bottom: 24px; text-align: center; }

.lp-price-label {
    color: var(--gold-ink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lp-price-amount { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 600; line-height: 1.1; }
.lp-price-ask { font-size: 2rem; }
.lp-price-note { color: var(--ink-soft); font-size: 0.9rem; }
.lp-price-list { margin-bottom: 26px; }
.lp-price-cta { width: 100%; }

/* FAQ */

.lp-faq { display: grid; gap: 10px; }

.lp-faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
}

.lp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary svg { flex: none; width: 18px; height: 18px; color: var(--ink-soft); transition: transform 0.2s ease; }
.lp-faq-item[open] summary svg { transform: rotate(180deg); }
.lp-faq-item p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); line-height: 1.65; }

/* Order form */

.lp-order {
    background:
        radial-gradient(50% 60% at 100% 0%, rgba(201, 168, 106, 0.18), transparent 70%),
        var(--sidebar-bg);
    color: #fff;
}

.lp-order-grid { display: grid; gap: 36px; align-items: start; }

.lp-order-copy .lp-eyebrow { color: #e2be82; }
.lp-order-copy p { margin: 0 0 22px; color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; line-height: 1.65; }

.lp-contact { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-contact li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.85); }
.lp-contact svg { width: 18px; height: 18px; color: #e2be82; }
.lp-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.lp-contact a:hover { text-decoration: underline; }

.lp-order-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.lp-form { display: grid; gap: 16px; }
.lp-form-row { display: grid; gap: 16px; }

@media (min-width: 580px) {
    .lp-form-row { grid-template-columns: 1fr 1fr; }
}

/* The honeypot: present for bots, invisible and unreachable for people. */
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lp-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.5;
}

.lp-consent input { flex: none; width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--brand); }

.lp-form-hint { margin: -4px 0 0; color: var(--ink-soft); font-size: 0.8rem; text-align: center; }

.lp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    color: var(--danger-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.lp-alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

.lp-success { display: grid; justify-items: center; gap: 4px; padding: 26px 8px; text-align: center; }
.lp-success .lp-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); }
.lp-success .lp-icon svg { width: 28px; height: 28px; }
.lp-success h3 { margin: 12px 0 4px; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }
.lp-success p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

@media (min-width: 900px) {
    .lp-order-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
    .lp-order-card { padding: 34px; }
}

/* ---------- Footer ---------- */

.lp-footer { background: #0b1220; color: rgba(255, 255, 255, 0.72); }

.lp-footer-inner { display: grid; gap: 22px; padding: 36px 0; }

.lp-footer .lp-brand { color: #fff; }
.lp-footer .lp-brand svg { color: #e2be82; }
.lp-footer-brand p { margin: 10px 0 0; font-size: 0.88rem; }

.lp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lp-footer-links a { color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.lp-footer-links a:hover { color: #fff; }

.lp-footer-contact { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; }

@media (min-width: 900px) {
    .lp-footer-inner { grid-template-columns: 1fr auto; align-items: center; }
    .lp-footer-contact { grid-column: 1 / -1; }
}

/* ---------- Demo ---------- */

.lp-demo-form { display: inline-flex; margin: 0; }
.lp-demo-min {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font-size: 0.72rem;
    font-weight: 800;
}
.lp-demo-time { font-variant-numeric: tabular-nums; }
.lp-demo-time.is-low { color: var(--danger-ink); }
.lp-demo-hint { margin: 14px 0 0; color: var(--ink-soft); font-size: 0.86rem; }

.lp-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--ok-bg);
    color: var(--ok-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}
.lp-notice svg { width: 18px; height: 18px; flex: none; }
.lp-notice.is-error { background: var(--danger-bg); color: var(--danger-ink); border-radius: var(--radius-md); margin-bottom: 16px; }

/* ---------- Couple login gate (mladenci.php) ---------- */
.lp-narrow .gate-card { padding: 8px 0 4px; }

.lp-demo-card {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: 34px 30px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 90% at 100% 0%, var(--gold-soft), transparent 70%),
        var(--bg-raised);
    box-shadow: var(--shadow-md);
}
.lp-demo-copy h2 {
    margin: 8px 0 12px;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
}
.lp-demo-copy p { margin: 0 0 16px; color: var(--ink-soft); line-height: 1.65; }
.lp-demo-action { display: grid; gap: 14px; justify-items: start; }
.lp-demo-left { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.lp-demo-left strong { color: var(--ink); font-size: 1.4rem; }

@media (min-width: 860px) {
    .lp-demo-card { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding: 40px 44px; }
    .lp-demo-action { justify-items: center; text-align: center; }
}

.lp-demo-privacy { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: 0.74rem; line-height: 1.5; }

/* ---------- Guides (guide.php) ---------- */

.lp-breadcrumb { padding: 18px 0 0; color: var(--ink-soft); font-size: 0.84rem; }
.lp-breadcrumb a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.lp-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.lp-breadcrumb span[aria-hidden] { margin: 0 4px; opacity: 0.6; }

.lp-article { padding-top: 24px; }
.lp-article h1 { margin: 10px 0 8px; font-family: var(--font-heading); font-size: clamp(1.9rem, 5.2vw, 2.7rem); line-height: 1.15; }
.lp-article-meta { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.84rem; }
.lp-article-lead { font-size: 1.12rem; line-height: 1.7; color: var(--ink); }
.lp-article h2 { margin: 38px 0 12px; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.25; }
.lp-article p { line-height: 1.75; color: var(--ink); font-size: 1.02rem; }
.lp-article ul { margin: 10px 0 16px; padding-left: 1.25em; line-height: 1.75; font-size: 1.02rem; }
.lp-article li { margin: 6px 0; }
.lp-article p a, .lp-article li a { color: var(--gold-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.lp-cta-box {
    margin: 42px 0;
    padding: 26px 22px;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #1a2b47, #0f1a2e);
    box-shadow: var(--shadow-md);
}
.lp-cta-box h2 { margin: 0 0 8px; color: #fff; font-size: 1.4rem; }
.lp-cta-box p { margin: 0 auto 18px; max-width: 46ch; color: rgba(255, 255, 255, 0.85); }
.lp-cta-box .lp-hero-actions { justify-content: center; }

.lp-related { margin-top: 30px; }
.lp-related h2 { margin: 0 0 16px; font-family: var(--font-heading); font-size: 1.4rem; }

.lp-guide-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.lp-guide-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-raised);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-guide-card h2, .lp-guide-card h3 { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.3; }
.lp-guide-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.lp-guide-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; color: var(--gold-ink); font-size: 0.86rem; font-weight: 800; }
.lp-guide-more svg { width: 16px; height: 16px; }
.lp-guide-all { margin: 26px 0 0; text-align: center; }
.lp-guide-all a { color: var(--gold-ink); font-weight: 800; }
.lp-guide-hub .lp-section-head h1 { margin: 10px 0 12px; font-family: var(--font-heading); font-size: clamp(2rem, 5.6vw, 2.9rem); line-height: 1.15; }
@media (min-width: 720px) { .lp-footer-inner { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); } }
.lp-footer-groups { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 720px) { .lp-footer-groups { justify-items: end; } .lp-footer-groups .lp-footer-links { justify-content: flex-end; } }
.lp-cta-box .btn:not(.btn-ghost) { background: linear-gradient(180deg, #e2be82, #c9a86a); color: #142033; box-shadow: none; }
.lp-cta-box .btn-ghost { background: #fff; color: #142033; border-color: #fff; }

/* ---------- Logo ---------- */
.lp-brand img.lp-brand-mark { width: auto; height: 34px; flex: none; }
.lp-footer .lp-brand img.lp-brand-mark { height: 38px; }
