/* BudgetJar marketing site — design system + component styles */

/* ---------- Tokens ------------------------------------------------------- */
:root {
    --coral: #e88560;
    --coral-hover: #d46b44;
    --coral-soft: #f9d5c1;
    --cream: #fdede2;
    --cream-deep: #f8e0ce;
    --ink: #1f1f39;
    --ink-2: #2d2d52;
    --ink-muted: #5a5a7a;
    --surface: #ffffff;
    --surface-alt: #faf7f3;
    --border: #ece4dc;
    --accent-blue: #3878f6;
    --success: #4caf50;

    --shadow-sm: 0 4px 12px rgba(31, 31, 57, 0.06);
    --shadow-md: 0 12px 32px rgba(31, 31, 57, 0.08);
    --shadow-lg: 0 24px 64px rgba(31, 31, 57, 0.12);
    --shadow-phone: 0 30px 80px rgba(31, 31, 57, 0.18);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --container: 1200px;
    --container-narrow: 860px;
    --section-y: clamp(4rem, 8vw, 7rem);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Layout ------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container-narrow { max-width: var(--container-narrow); }

section { padding-block: var(--section-y); }

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--coral-soft);
    color: var(--coral-hover);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.025em;
}

.section-lead {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    color: var(--ink-muted);
    max-width: 42rem;
}

.section-head {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .section-lead { margin-inline: auto; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-hover); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Store badges ------------------------------------------------- */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s var(--ease);
}

.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 54px; width: auto; }

@media (max-width: 520px) {
    .store-badge img { height: 48px; }
}

/* ---------- Nav ---------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(31, 31, 57, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding-block: 14px;
}

.nav-logo img { height: 36px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta .btn { padding: 0.625rem 1.125rem; font-size: 0.9375rem; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    color: var(--ink);
}

.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 880px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .nav-drawer {
        position: fixed;
        inset: 76px 0 0 0;
        background: var(--surface);
        padding: 2rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
        border-bottom: 1px solid var(--border);
    }

    .nav-drawer[data-open="true"] {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-drawer a {
        padding: 0.875rem 0;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--ink);
        border-bottom: 1px solid var(--border);
    }

    .nav-drawer a:last-of-type { border-bottom: 0; }

    .nav-drawer .btn-coral {
        margin-top: 1rem;
        justify-content: center;
        padding-block: 1rem;
    }
}

@media (min-width: 881px) {
    .nav-drawer { display: none; }
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
    background: linear-gradient(180deg, var(--cream) 0%, var(--surface) 100%);
    padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 5vw, 4.5rem);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.1fr 1fr; }
}

.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 1rem;
    color: var(--ink);
}

.hero h1 .accent { color: var(--coral); }

.hero-lead {
    margin-top: 1.25rem;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    color: var(--ink-muted);
    max-width: 34rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

.hero-meta .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.hero-phone {
    position: relative;
    margin: 0 auto;
    max-width: 360px;
}

.hero-phone::before {
    content: "";
    position: absolute;
    inset: -10% -5% -5% -5%;
    background: radial-gradient(closest-side, var(--coral-soft) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero-phone img {
    position: relative;
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-phone));
    border-radius: 36px;
}

/* ---------- Currency strip ---------------------------------------------- */
.currency-strip {
    background: var(--ink);
    color: #fff;
    padding-block: 1.25rem;
}

.currency-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.currency-strip-inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-strip-inner svg {
    width: 18px;
    height: 18px;
    color: var(--coral);
}

/* ---------- Features ---------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--coral-soft);
    color: var(--coral-hover);
    margin-bottom: 1.125rem;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* ---------- How it works ------------------------------------------------ */
.how-it-works { background: var(--cream); }

.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .how-grid { grid-template-columns: 1.1fr 1fr; }
}

.how-phone {
    position: relative;
    margin: 0 auto;
    max-width: 300px;
    order: -1;
}

@media (min-width: 900px) {
    .how-phone { order: 0; max-width: 280px; }
}

.how-phone img {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-phone));
    border-radius: 32px;
}

.how-steps { display: flex; flex-direction: column; gap: 1.25rem; }

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    padding: 1.25rem 1.375rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step-number {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9375rem;
}

.step-body h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-body p {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ---------- Showcase ---------------------------------------------------- */
.showcase { overflow: hidden; }

.showcase-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(68vw, 280px);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 2rem;
    margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2rem));
    scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar { display: none; }

.showcase-card {
    scroll-snap-align: center;
    text-align: center;
}

.showcase-card img {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-phone));
    border-radius: 28px;
}

.showcase-card-label {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.showcase-card-sub {
    margin-top: 0.125rem;
    color: var(--ink-muted);
    font-size: 0.875rem;
}

@media (min-width: 900px) {
    .showcase-track {
        grid-auto-columns: 260px;
        justify-content: center;
        gap: 1.75rem;
    }
}

/* ---------- Pricing ----------------------------------------------------- */
.pricing { background: var(--surface-alt); }

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 800px) {
    .pricing-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.pricing-card.featured {
    border: 0;
    background: linear-gradient(135deg, #27264a 0%, #1f1f39 100%);
    color: #fff;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
    content: "Recommended";
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--coral);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.pricing-price small {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.pricing-card.featured .pricing-price small { color: rgba(255, 255, 255, 0.7); }

.pricing-card ul {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.pricing-card li {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    line-height: 1.5;
}

.pricing-card li svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--coral);
}

.pricing-card.featured li svg { color: var(--coral-soft); }

.pricing-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.package-tile {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    text-align: center;
}

.package-tile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.65);
}

.package-tile-value {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
}

/* ---------- FAQ --------------------------------------------------------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item[open] {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::after {
    content: "";
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--ink-muted);
    border-bottom: 2px solid var(--ink-muted);
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease);
    margin-top: -4px;
    flex: 0 0 auto;
}

.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.faq-answer {
    padding: 0 1.375rem 1.25rem;
    color: var(--ink-muted);
    line-height: 1.65;
}

/* ---------- Final CTA --------------------------------------------------- */
.final-cta {
    background: linear-gradient(135deg, var(--coral) 0%, #f39a7a 100%);
    color: #fff;
    text-align: center;
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.final-cta h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 720px;
    margin: 0 auto;
}

.final-cta p {
    margin-top: 1rem;
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin-inline: auto;
}

.final-cta .store-badges {
    margin-top: 2rem;
    justify-content: center;
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding-block: 4rem 2rem;
    font-size: 0.9375rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 700px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; line-height: 1.55; }

.footer-col h4 {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 700px) { .footer-bottom { flex-direction: row; } }

/* ---------- Inner pages (privacy / terms) ------------------------------- */
.page-hero {
    background: var(--cream);
    padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-hero p {
    margin-top: 0.75rem;
    color: var(--ink-muted);
}

.legal-body {
    max-width: 760px;
    margin: 0 auto;
    padding-block: clamp(3rem, 6vw, 5rem);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-2);
}

.legal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p { margin-bottom: 1rem; }

.legal-body ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-body li { margin-bottom: 0.375rem; }

.legal-body a {
    color: var(--coral-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Skip link for accessibility --------------------------------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: #fff;
    z-index: 100;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; }
