/* Monte — marketing site styles. Brand tokens mirror Colors.swift. */

:root {
    --brand-navy: #0F2744;
    --brand-navy-deep: #0A1B33;
    --brand-navy-soft: #1E3A5F;
    --accent-blue: #3B82F6;
    --accent-blue-soft: #EFF6FF;
    --canvas: #F8FAFC;
    --surface: #FFFFFF;
    --surface-inset: #F1F5F9;
    --divider: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --text-on-dark: #F8FAFC;
    --success: #16A34A;
    --warning: #D97706;
    --error: #DC2626;
    --shadow-soft: 0 1px 2px rgba(15, 39, 68, 0.04), 0 4px 12px rgba(15, 39, 68, 0.06);
    --shadow-hero: 0 8px 24px rgba(15, 39, 68, 0.12), 0 24px 64px rgba(15, 39, 68, 0.18);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--canvas);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--divider);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--brand-navy);
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

@media (max-width: 720px) {
    .nav-links {
        gap: 18px;
    }
    .nav-links a:not(.btn) {
        display: none;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--brand-navy-soft);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: var(--surface);
    color: var(--brand-navy);
    border-color: var(--divider);
}

.btn-secondary:hover {
    background: var(--surface-inset);
    text-decoration: none;
}

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

.hero {
    padding: 88px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: var(--accent-blue-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--brand-navy);
    margin: 0 0 20px;
    font-weight: 800;
}

.hero p.lede {
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--text-secondary);
    margin: 0 0 32px;
    max-width: 560px;
}

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

.hero-meta {
    margin-top: 24px;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ---- Phone mockup ---- */

.phone-frame {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    aspect-ratio: 9 / 19.5;
    border-radius: 44px;
    background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
    padding: 14px;
    box-shadow: var(--shadow-hero);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    background: var(--canvas);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: var(--brand-navy-deep);
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.screen-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-top: 28px;
}

.screen-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 4px 0 16px;
}

.probability-ring {
    width: 140px;
    height: 140px;
    margin: 12px auto 16px;
    border-radius: 50%;
    background:
        conic-gradient(var(--success) 0% 73%, var(--surface-inset) 73% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.probability-ring::after {
    content: "";
    position: absolute;
    inset: 14px;
    background: var(--surface);
    border-radius: 50%;
}

.probability-value {
    position: relative;
    z-index: 1;
    text-align: center;
}

.probability-value .num {
    font-size: 34px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}

.probability-value .label {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.screen-stat-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.screen-stat {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 10px 12px;
}

.screen-stat .v {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-navy);
}

.screen-stat .k {
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.screen-chart {
    margin-top: 14px;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 12px;
    flex: 1;
}

.screen-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 880px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .phone-frame {
        margin: 0 auto;
    }
    .hero {
        padding: 56px 0 32px;
    }
}

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

section.block {
    padding: 80px 0;
}

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

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-head .eyebrow {
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    margin: 0 0 12px;
    font-weight: 800;
    line-height: 1.15;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 17px;
    margin: 0;
}

/* ---- Feature grid ---- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hero);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--brand-navy);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 15px;
}

@media (max-width: 880px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- How it works ---- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 56px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: var(--text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step h3 {
    font-size: 20px;
    color: var(--brand-navy);
    margin: 0 0 8px;
}

.step p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 880px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* ---- Pricing ---- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tier {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.tier.featured {
    border: 2px solid var(--brand-navy);
    position: relative;
    box-shadow: var(--shadow-hero);
}

.tier-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-navy);
    color: var(--text-on-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.tier h3 {
    font-size: 20px;
    color: var(--brand-navy);
    margin: 0 0 8px;
}

.tier .price {
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}

.tier .price small {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tier ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex: 1;
}

.tier ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tier ul li::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4.5' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    flex: 0 0 16px;
    margin-top: 4px;
}

@media (max-width: 880px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- CTA band ---- */

.cta-band {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
    color: var(--text-on-dark);
    padding: 80px 0;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    font-weight: 800;
    line-height: 1.15;
}

.cta-band p {
    color: rgba(248, 250, 252, 0.78);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-band .btn-primary {
    background: var(--surface);
    color: var(--brand-navy);
}

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

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

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--divider);
    padding: 48px 0 32px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-grid h4 {
    color: var(--brand-navy);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    padding: 4px 0;
}

.footer-grid a {
    color: var(--text-secondary);
}

.footer-grid a:hover {
    color: var(--brand-navy);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--divider);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Legal / content pages ---- */

.legal {
    padding: 56px 0 80px;
}

.legal .container {
    max-width: 760px;
}

.legal h1 {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--brand-navy);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    font-weight: 800;
}

.legal .updated {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 22px;
    color: var(--brand-navy);
    margin: 40px 0 12px;
    letter-spacing: -0.01em;
}

.legal h3 {
    font-size: 17px;
    color: var(--brand-navy);
    margin: 24px 0 8px;
}

.legal p, .legal li {
    color: var(--text-primary);
    font-size: 16px;
}

.legal ul, .legal ol {
    padding-left: 22px;
}

.legal ul li, .legal ol li {
    padding: 4px 0;
}

.legal .callout {
    background: var(--accent-blue-soft);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin: 24px 0;
    color: var(--brand-navy);
    font-size: 15px;
}

/* ---- FAQ ---- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--brand-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--text-secondary);
}
