/* =========================================================
   Savvy Expense — Static Site Styles
   Theme: dark "Extendable"-inspired block theme
   Font: Poppins (100–900)
   ========================================================= */

:root {
    --bg:            #0b0c0f;   /* primary background */
    --bg-alt:        #0d0d0d;   /* tertiary / alt sections */
    --card-bg:       #14161a;   /* content cards */
    --text:          #eaecef;   /* foreground */
    --muted:         #9395a6;   /* secondary text */
    --muted-2:       #6d6f74;   /* tertiary text */
    --accent:        #73C04A;   /* primary link/CTA green */
    --gold:          #c9b22a;   /* accent highlights */
    --gold-2:        #f9d548;
    --border:        rgba(255,255,255,0.08);
    --radius:        16px;
    --radius-sm:     12px;
    --maxw:          1200px;
    --shadow:        0 20px 60px rgba(0,0,0,0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1.2;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(115,192,74,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(115,192,74,0.5);
}

/* ---------- Header & Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,12,15,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}
.site-logo .logo-img {
    height: 34px;
    width: auto;
    border-radius: 8px;
}
.site-logo strong { color: var(--accent); }
.site-logo.light { color: var(--text); }
.logo-mark {
    color: var(--accent);
    font-size: 22px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-nav a,
.site-nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav .nav-link:hover { color: var(--accent); }

/* Dropdown Navigation */
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-item.has-dropdown {
    cursor: pointer;
}
.nav-item .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
}
.nav-item .caret {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.2s ease;
    display: inline-block;
}
.nav-item.has-dropdown:hover .caret {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #14161a;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
    pointer-events: none;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
    pointer-events: auto;
}
.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: rgba(115,192,74,0.12);
    color: var(--accent);
}
.site-nav .nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(115,192,74,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-nav .nav-cta:hover {
    background: #62a83e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(115,192,74,0.45);
}
.mobile-nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.eyebrow {
    color: var(--muted-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero .lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 540px;
}
.store-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.store-badges img {
    height: 52px;
    width: auto;
}
.store-badges.small img { height: 40px; }

/* ---------- Cover / Parallax Sections ---------- */
.cover-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}
.cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}
.cover-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11,12,15,0.72);
    z-index: 1;
}
.cover-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}
.cover-section h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.15;
}
.cover-section .cover-eyebrow {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 14px;
}
.cover-section p {
    font-size: 18px;
    color: rgba(234,236,239,0.9);
    margin-bottom: 16px;
}
.price-highlight {
    font-size: 26px !important;
    font-weight: 600;
    color: var(--text) !important;
}
.price-sub { font-size: 18px !important; }
.cover-section .btn { margin-top: 28px; }

/* ---------- Feature Cards ---------- */
.feature-cards { padding: 96px 0; background: var(--bg); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.4px;
}
.section-header p { font-size: 18px; color: var(--muted); }
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.feature-card img {
    border-radius: var(--radius-sm);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.feature-card p { color: var(--muted); font-size: 15px; }
.center-cta { text-align: center; margin-top: 48px; }

/* ---------- Column Rows (Flexible Layout) ---------- */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.row > .col,
.col {
    flex: 1 1 0;
    min-width: 280px;
}
.col.col-50 { flex: 0 1 calc(50% - 16px); }
.col.col-40 { flex: 0 1 calc(40% - 16px); }
.col.col-60 { flex: 0 1 calc(60% - 16px); }
.col.col-33, .col.col-3 { flex: 0 1 calc(33.333% - 22px); }
.col.full, .col.col-100 { flex: 0 1 100%; }

/* ---------- Screenshot Galleries & Showcase ---------- */
.screenshot-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 32px 0 48px;
}
.screenshot-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin: 32px 0 48px;
}
.screenshot-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.screenshot-card img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.screenshot-card .caption,
figcaption.caption {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

/* Callout Boxes */
.callout-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 28px 0;
    color: #fca5a5;
    font-size: 15px;
    line-height: 1.6;
}
.callout-danger strong { color: #fff; font-weight: 600; }
.callout-info {
    background: rgba(115, 192, 74, 0.08);
    border: 1px solid rgba(115, 192, 74, 0.25);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 28px 0;
    color: #d1fae5;
    font-size: 15px;
}

/* Step list */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 28px 0;
}
.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}
.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.step-list li strong { color: var(--text); }

/* ---------- Split Section ---------- */
.split-section {
    padding: 96px 0;
    background: var(--bg-alt);
}
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.15;
}
.split-content p { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.split-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
}

/* ---------- Articles ---------- */
.articles-section { padding: 96px 0; background: var(--bg); }
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.article-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.article-card a {
    display: block;
    padding: 24px;
}
.article-card .card-body { padding: 24px; }
.article-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.article-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-top: 72px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); margin: 16px 0; max-width: 300px; font-size: 15px; }
.footer-badges img { height: 44px; }
.footer-nav h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text);
}
.footer-nav a {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.page-content h4 { font-weight: 600; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--muted-2);
    font-size: 14px;
}

/* ---------- Contact / Form Pages ---------- */
.page-content h3 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
}
.page-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.5;
}
.page-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
}
.page-content .col p {
    color: var(--muted);
    font-size: 16px;
}
.page-content .col p a { color: var(--accent); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.bg-tertiary { background: var(--bg-alt); }

/* ---------- Feature Grid (Features page) ---------- */
.feature-card.tall { overflow: hidden; }
.feature-card.tall .feature-screenshot {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: block;
}
.feature-card .feature-body { padding: 28px; }
.feature-card .feature-body h4 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}
.feature-card .feature-body ul,
.roadmap ul {
    list-style: none;
    padding: 0;
}
.feature-card .feature-body li,
.roadmap li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.feature-card .feature-body li::before,
.roadmap li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}
.feature-card .feature-body li strong,
.roadmap li strong { color: var(--text); }

/* ---------- Roadmap band ---------- */
.roadmap {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin: 48px 0;
    text-align: center;
}
.roadmap h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
}
.roadmap p {
    color: var(--muted);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 28px;
}
.roadmap ul {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}
.roadmap li::before { content: "→"; }

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.contact-form label .req { color: var(--accent); }
.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(115,192,74,0.18);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form .btn-primary { margin: 0; }
.contact-form .form-note {
    font-size: 13px !important;
    color: var(--muted-2) !important;
    max-width: 420px;
}

/* ---------- Article Page Styles ---------- */
.article-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 88px;
}
.article-page .article-header {
    margin-bottom: 32px;
}
.article-page h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600 !important;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text);
}
.article-page .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}
.article-page .article-cover {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.article-page .article-cover img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-page h3 {
    font-size: 24px;
    font-weight: 600 !important;
    margin: 40px 0 16px;
    color: var(--text);
}
.article-page h4 {
    font-size: 18px;
    font-weight: 600 !important;
    margin: 28px 0 12px;
    color: var(--text);
}
.article-page p {
    font-size: 16px;
    color: #c5c8d2;
    line-height: 1.75;
    margin-bottom: 20px;
}
.article-page ul,
.article-page ol {
    margin: 16px 0 24px 24px;
    color: #c5c8d2;
    line-height: 1.75;
}
.article-page li { margin-bottom: 8px; }
.article-page blockquote {
    border-left: 3px solid var(--accent);
    padding: 18px 24px;
    margin: 28px 0;
    background: rgba(255,255,255,0.025);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--muted);
}
.article-page blockquote strong { color: var(--text); font-weight: 600 !important; }

/* Category Pills & Badges */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 36px;
}
.category-pill {
    display: inline-block;
    padding: 6px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.2s ease;
    text-decoration: none;
}
.category-pill:hover,
.category-pill.active {
    background: rgba(115,192,74,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Enforce strict font-weight capping <= 600 across entire site */
h1, h2, h3, h4, h5, h6, strong, b, th, .btn, .nav-cta, .eyebrow, .cover-eyebrow {
    font-weight: 600 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .split-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { order: -1; }
    .card-grid, .article-grid, .screenshot-grid-3, .screenshot-grid-2 { grid-template-columns: 1fr; }
    .row { flex-direction: column; gap: 24px; }
    .col, .col.col-50, .col.col-40, .col.col-60, .col.col-33 { flex: 1 1 100% !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cover-section { background-attachment: scroll; }
    .site-nav { display: none; }
    .mobile-nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
    .mobile-nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; }
    
    /* Mobile nav dropdown drawer */
    .site-nav.is-open {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(11,12,15,0.98) !important;
        padding: 24px !important;
        gap: 16px !important;
        border-top: 1px solid var(--border) !important;
        max-height: 85vh;
        overflow-y: auto;
    }
    .site-nav.is-open .nav-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .site-nav.is-open .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        padding: 4px 0 4px 16px !important;
        display: flex;
        flex-direction: column;
        gap: 8px;
        pointer-events: auto !important;
    }
    .site-nav.is-open .dropdown-menu a {
        padding: 6px 0 !important;
        color: var(--muted) !important;
    }
    .site-nav.is-open .dropdown-menu a:hover {
        color: var(--accent) !important;
    }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 48px; }
    .cover-section { padding: 64px 0; }
}
