:root {
    --ink: #1a1a2e;
    --ink-light: #3d3d5c;
    --ink-muted: #6b6b8a;
    --surface: #fafaf8;
    --surface-warm: #f3f1eb;
    --accent: #0f6cbd;
    --accent-deep: #0a4f91;
    --accent-glow: #2899f5;
    --outlook-orange: #d4552a;
    --white: #ffffff;
    --border: #e2e0da;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
    --shadow-md: 0 4px 20px rgba(26,26,46,0.08);
    --shadow-lg: 0 12px 40px rgba(26,26,46,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250,250,248,0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.nav-brand svg { flex-shrink: 0; }
.nav-brand span {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    text-decoration: none;
    color: var(--ink-muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--ink);
    background: var(--surface-warm);
}
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ── COMMON ── */
section { padding: 100px 28px; }
.container { max-width: 1140px; margin: 0 auto; }
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
h1 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ink);
}
h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 20px;
}
h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--ink);
}
p { color: var(--ink-light); }
a { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(15,108,189,0.25);
}
.btn-primary:hover {
    background: var(--accent-deep);
    box-shadow: 0 4px 20px rgba(15,108,189,0.35);
    transform: translateY(-1px);
}
.btn-outline {
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(15,108,189,0.03);
}

/* ── HERO ── */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, var(--surface) 0%, #eef3f9 55%, var(--surface-warm) 100%);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -200px;
    width: 650px; height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,108,189,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-text h1 { margin-bottom: 22px; }
.hero-text p {
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 34px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-mockup {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.mockup-bar {
    background: var(--accent);
    color: var(--white);
    padding: 14px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}
.mockup-body { padding: 16px; }
.template-item {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: default;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}
.template-item:hover {
    background: #f0f5fb;
    border-color: rgba(15,108,189,0.12);
}
.template-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.template-item:nth-child(1) .template-dot { background: var(--accent); }
.template-item:nth-child(2) .template-dot { background: var(--outlook-orange); }
.template-item:nth-child(3) .template-dot { background: #2d9d5c; }
.template-item:nth-child(4) .template-dot { background: #8b5cf6; }
.template-item:nth-child(5) .template-dot { background: #e0a526; }
.template-info { flex: 1; }
.template-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}
.template-preview {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 2px;
}
.template-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: #eef3f9;
    color: var(--accent);
    white-space: nowrap;
}

/* ── FREE BADGE ── */
.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2d7d46;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}
.free-badge svg { flex-shrink: 0; }

/* ── FEATURES ── */
.features-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-header { text-align: center; margin-bottom: 56px; }
.features-header p { max-width: 540px; margin: 0 auto; font-size: 1.05rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.25s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(15,108,189,0.15);
    transform: translateY(-3px);
}
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef3f9, #dce8f5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent);
}
.feature-card p { font-size: 0.9rem; line-height: 1.6; }

/* ── SUPPORT ── */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.support-content p { margin-bottom: 16px; font-size: 0.95rem; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-q {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    user-select: none;
}
.faq-q:hover { background: var(--surface); }
.faq-q::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 300;
    transition: transform 0.3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 20px 16px;
}
.faq-a p { font-size: 0.88rem; color: var(--ink-muted); }

/* ── LEGAL ── */
.legal-section { background: var(--white); border-top: 1px solid var(--border); }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content p, .legal-content li {
    font-size: 0.9rem;
    color: var(--ink-light);
    margin-bottom: 12px;
    line-height: 1.7;
}
.legal-content h3 { margin-top: 28px; margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 6px; }

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-content p { font-size: 0.95rem; margin-bottom: 16px; }
.about-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.about-card .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 24px;
}
.stat-value {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-top: 4px;
}
.cta-box {
    margin-top: 32px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f5fb, #e8eef6);
    border-radius: var(--radius);
    border: 1px solid rgba(15,108,189,0.1);
}
.cta-box h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cta-box p { font-size: 0.88rem; margin-bottom: 16px; }

/* ── PAGE HEADER (subpages) ── */
.page-header {
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, var(--surface) 0%, #eef3f9 60%, var(--surface-warm) 100%);
}
.page-header::before {
    content: '';
    position: absolute;
    top: -100px; right: -180px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,108,189,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.page-header .container { position: relative; }
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}
.page-header p {
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.82rem;
}
.breadcrumb a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ── FOOTER ── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.6);
    padding: 48px 28px 36px;
}
.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand span {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 28px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
}

/* ── USER'S GUIDE ── */
.guide-content {
    max-width: 780px;
    margin: 0 auto;
}

    .guide-content p {
        font-size: 0.93rem;
        color: var(--ink-light);
        margin-bottom: 14px;
        line-height: 1.75;
    }

    .guide-content h3 {
        margin-top: 40px;
        margin-bottom: 12px;
        font-size: 1.15rem;
    }

        .guide-content h3:first-of-type {
            margin-top: 0;
        }

.guide-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef3f9, #dce8f5);
    color: var(--accent);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    flex: 1;
}

    .step-text strong {
        color: var(--ink);
    }

    .step-text p {
        margin-bottom: 4px;
    }

.guide-tip {
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0f5fb, #e8eef6);
    border-radius: var(--radius);
    border: 1px solid rgba(15,108,189,0.1);
    margin-top: 16px;
    margin-bottom: 28px;
}

    .guide-tip p {
        font-size: 0.86rem;
        color: var(--ink-light);
        margin-bottom: 0;
    }

    .guide-tip strong {
        color: var(--accent);
    }

/* ── CONTACT FORM ── */
.contact-form { margin-top: 24px; }
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form .form-group {
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.contact-form label .req {
    color: var(--accent);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15,108,189,0.08);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--ink-muted);
    opacity: 0.7;
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .hero-grid, .support-grid, .about-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { order: -1; }
    .hero-mockup { max-width: 380px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 16px 28px;
        box-shadow: var(--shadow-md);
    }
    .hamburger { display: block; }
}
@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    section { padding: 70px 20px; }
    .about-card .stat-grid { grid-template-columns: 1fr; }
    .page-header { padding-top: 120px; padding-bottom: 40px; }
}
