/*
 * Zero Debt marketing theme stylesheet.
 *
 * Color tokens are copied 1:1 from the mobile app's own design tokens
 * (mobile/constants/colors.ts) so the website and the app read as one
 * brand, not a reskin:
 *   primary (navy)   #0B1F39   primaryLight #E7EFF8   primaryDark #081628
 *   brandGreen       #499647
 *   background       #F8F9FD   surface #FFFFFF   border #ECEEF4
 *   textPrimary      #171A2B   textSecondary #70758B   textMuted #A3A7B5
 *   danger           #EB5757   success #35B987
 * No dark theme here either, matching the mobile app's own v1 scope.
 */

:root {
    --zd-primary: #0B1F39;
    --zd-primary-light: #E7EFF8;
    --zd-primary-dark: #081628;
    --zd-green: #499647;

    --zd-bg: #F8F9FD;
    --zd-surface: #FFFFFF;
    --zd-border: #ECEEF4;

    --zd-text: #171A2B;
    --zd-text-secondary: #70758B;
    --zd-text-muted: #A3A7B5;
    --zd-text-on-primary: #FFFFFF;

    --zd-danger: #EB5757;
    --zd-success: #35B987;

    --zd-radius-sm: 10px;
    --zd-radius-md: 16px;
    --zd-radius-lg: 24px;
    --zd-shadow: 0 12px 32px rgba(11, 31, 57, 0.08);
    --zd-container: 1120px;
    --zd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--zd-font);
    color: var(--zd-text);
    background: var(--zd-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }

p { margin: 0 0 1em; color: var(--zd-text-secondary); }

ul, ol { padding: 0; margin: 0; list-style: none; }

.zd-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.zd-container {
    max-width: var(--zd-container);
    margin: 0 auto;
    padding: 0 20px;
}

.zd-accent { color: var(--zd-green); }

/* ---------- Buttons ---------- */

.zd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}
.zd-btn:hover { transform: translateY(-1px); }

.zd-btn--primary {
    background: var(--zd-primary);
    color: var(--zd-text-on-primary);
}
.zd-btn--primary:hover { background: var(--zd-primary-dark); }

.zd-btn--ghost {
    background: transparent;
    color: var(--zd-primary);
    border-color: var(--zd-border);
}
.zd-btn--ghost:hover { border-color: var(--zd-primary); }

.zd-btn--large { padding: 16px 32px; font-size: 16px; }
.zd-btn--small { padding: 9px 18px; font-size: 13px; }

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

.zd-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 249, 253, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--zd-border);
}

.zd-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.zd-site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--zd-text);
    flex-shrink: 0;
}
.zd-site-header__mark { border-radius: 50%; }
.zd-site-header__wordmark { letter-spacing: -0.02em; }

.zd-site-header__nav { margin-left: auto; }
.zd-site-header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
}
.zd-site-header__menu a {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--zd-text-secondary);
}
.zd-site-header__menu a:hover { color: var(--zd-primary); }

.zd-site-header__cta { flex-shrink: 0; }

.zd-site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--zd-border);
    background: var(--zd-surface);
    cursor: pointer;
}
.zd-site-header__toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--zd-text);
    border-radius: 2px;
}

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

.zd-section { padding: 72px 0; }
.zd-section--tint { background: var(--zd-surface); }
.zd-section--admin-content { padding-bottom: 0; }

.zd-section__title {
    font-size: clamp(26px, 3.2vw, 36px);
    text-align: center;
    margin-bottom: 20px;
    color: var(--zd-text);
}
.zd-section__lead {
    max-width: 760px;
    margin: 0 auto 1.1em;
    text-align: center;
    font-size: 17px;
}
.zd-section__note {
    max-width: 760px;
    margin: 32px auto 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--zd-text-muted);
}

.zd-prose :is(h1, h2, h3) { color: var(--zd-text); }
.zd-prose p { color: var(--zd-text-secondary); }

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

.zd-hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(73, 150, 71, 0.10), transparent 60%),
        radial-gradient(900px 480px at -10% 10%, rgba(11, 31, 57, 0.08), transparent 55%);
}
.zd-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.zd-eyebrow {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12.5px;
    color: var(--zd-green);
    margin-bottom: 14px;
}
.zd-hero__title {
    font-size: clamp(32px, 4.4vw, 50px);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.zd-hero__subtitle {
    font-size: 17.5px;
    max-width: 540px;
}
.zd-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.zd-hero__art {
    display: flex;
    justify-content: center;
}
.zd-hero__logo {
    max-width: 380px;
    width: 100%;
    filter: drop-shadow(0 18px 40px rgba(11, 31, 57, 0.12));
}

/* ---------- Features ---------- */

.zd-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.zd-feature-card {
    background: var(--zd-surface);
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius-md);
    padding: 26px 24px;
    box-shadow: var(--zd-shadow);
}
.zd-section--tint .zd-feature-card { background: var(--zd-bg); }
.zd-feature-card h3 {
    font-size: 17px;
    margin: 14px 0 8px;
}
.zd-feature-card p {
    font-size: 14.5px;
    margin: 0;
}
.zd-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--zd-primary-light);
    color: var(--zd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}
.zd-feature-card__icon--zara {
    background: var(--zd-primary);
    color: #fff;
}

/* ---------- Journey ---------- */

.zd-section--journey { background: var(--zd-surface); }
.zd-journey {
    max-width: 820px;
    margin: 44px auto 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.zd-journey__step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.zd-journey__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--zd-primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zd-journey__step h3 {
    font-size: 18px;
    margin-bottom: 6px;
}
.zd-journey__step p {
    font-size: 15px;
    margin: 0;
}
.zd-journey__step strong { color: var(--zd-text); }

/* ---------- Download ---------- */

.zd-section--download {
    background:
        linear-gradient(135deg, var(--zd-primary) 0%, var(--zd-primary-dark) 55%, var(--zd-green) 140%);
    color: #fff;
}
.zd-download {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.zd-download__mark {
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    margin-bottom: 18px;
}
.zd-download h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
}
.zd-download p { color: rgba(255,255,255,0.8); }
.zd-download__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}
.zd-store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0B1F39;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--zd-radius-sm);
    padding: 10px 20px 10px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
}
.zd-store-badge small {
    display: block;
    font-weight: 500;
    font-size: 10.5px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.zd-store-badge:hover { background: var(--zd-primary-dark); }
.zd-download__soon {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

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

.zd-site-footer {
    background: var(--zd-primary-dark);
    color: rgba(255,255,255,0.65);
    padding: 40px 0;
}
.zd-site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.zd-site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #fff;
}
.zd-site-footer__mark { border-radius: 50%; }
.zd-site-footer__menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.zd-site-footer__menu a { font-size: 13.5px; }
.zd-site-footer__menu a:hover { color: #fff; }
.zd-site-footer__legal {
    width: 100%;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin: 10px 0 0;
    text-align: left;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .zd-hero__inner { grid-template-columns: 1fr; text-align: center; }
    .zd-hero__subtitle { margin-left: auto; margin-right: auto; }
    .zd-hero__ctas { justify-content: center; }
    .zd-hero__art { order: -1; }
    .zd-hero__logo { max-width: 260px; }
}

@media (max-width: 720px) {
    .zd-site-header__toggle { display: flex; }
    .zd-site-header__nav {
        position: fixed;
        inset: 72px 0 auto 0;
        background: var(--zd-surface);
        border-bottom: 1px solid var(--zd-border);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.15s ease, opacity 0.15s ease;
        margin-left: 0;
    }
    .zd-site-header__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .zd-site-header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 20px 16px;
    }
    .zd-site-header__menu a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--zd-border);
    }
    .zd-site-header__cta { display: none; }
}

@media (max-width: 520px) {
    .zd-section { padding: 52px 0; }
    .zd-journey__step { gap: 14px; }
}
