/* ==========================================================================
   BESTO (besto.one) - Modern Editorial Landing Page Stylesheet
   Apple Native / Linear Aesthetics - Purposeful, Calm, Non-Marketing
   ========================================================================== */

:root {
    --graphite: #0F172A;
    --graphite-hover: #1E293B;
    --graphite-active: #020617;
    --graphite-light: #F1F5F9;
    
    --brand-primary: #059669;
    --brand-emerald: #10B981;
    --brand-surface: #ECFDF5;
    --brand-border: #A7F3D0;
    --brand-deep: #064E3B;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    --canvas-bg: #FAFAF9;
    --surface-card: #FFFFFF;
    --border-subtle: #E2E8F0;
    --border-strong: #CBD5E1;
    
    --accent-indigo: #4F46E5;
    --accent-indigo-bg: #EEF2FF;
    --accent-rose: #E11D48;
    --accent-rose-bg: #FFE4E6;
    --accent-amber: #D97706;
    --accent-amber-bg: #FEF3C7;

    --font-brand: 'Righteous', cursive;
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-elevated: 0 24px 48px -12px rgba(15, 23, 42, 0.10), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--canvas-bg);
    overflow-x: hidden;
}

/* Tabular Numbers */
.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "zero" 1;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.18s ease;
}

/* ==========================================================================
   Typography & Core Layout
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--brand-surface, #ECFDF5);
    color: var(--brand-deep, #064E3B);
    border: 1px solid var(--brand-border, #A7F3D0);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: var(--shadow-subtle);
}

.section-tag .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand-emerald);
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: var(--graphite);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.gradient-text {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons (Besto Emerald Primary - Welcoming & Energetic) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand-primary, #059669);
    background-image: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF;
    border: 1px solid #047857;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-primary:hover {
    background-color: var(--brand-deep, #064E3B);
    background-image: linear-gradient(135deg, #047857 0%, #064E3B 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.38);
}

.btn-primary:active {
    transform: translateY(0);
    background-image: none;
    background-color: #064E3B;
}

.btn-outline {
    background-color: #FFFFFF;
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-subtle);
}

.btn-outline:hover {
    background-color: #F8FAFC;
    border-color: var(--brand-border, #A7F3D0);
    color: var(--brand-primary, #059669);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Navigation Bar (Minimalist)
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.25s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--graphite);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    padding: 72px 0 80px;
}

.hero-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--graphite);
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 34px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero-notes-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
    flex-wrap: wrap;
}

.hero-note-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-note-item .material-symbols-rounded {
    font-size: 18px;
    color: var(--brand-primary);
}

/* ==========================================================================
   Mac-Style Interactive UI Mockup Window (Hero Showcase)
   ========================================================================== */

.hero-mockup-frame {
    position: relative;
    margin-top: 56px;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
}

.mac-titlebar {
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-subtle);
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mac-traffic-lights {
    display: flex;
    gap: 7px;
}

.mac-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.mac-dot--red { background: #FF5F56; }
.mac-dot--yellow { background: #FFBD2E; }
.mac-dot--green { background: #27C93F; }

.mac-url-pill {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 4px 14px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mac-url-pill .material-symbols-rounded {
    font-size: 14px;
    color: var(--brand-primary);
}

.mac-status-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--graphite);
    background: #F1F5F9;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Mockup Layout: Sidebar + Canvas */
.mockup-app-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 480px;
    background: #FAFAF9;
}

.mockup-sidebar {
    background: #FFFFFF;
    border-right: 1px solid var(--border-subtle);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mockup-nav-item .material-symbols-rounded {
    font-size: 18px;
    color: var(--text-muted);
}

.mockup-nav-item--active {
    background: var(--graphite);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.mockup-nav-item--active .material-symbols-rounded {
    color: #FFFFFF;
}

.mockup-sidebar-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 12px 0;
}

.mockup-canvas {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ready to Assign Bar */
.mockup-rta-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.mockup-rta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rta-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--brand-surface);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
}

.rta-icon-box .material-symbols-rounded {
    font-size: 20px;
}

.mockup-rta-title small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.mockup-rta-title strong {
    font-size: 18px;
    color: var(--brand-primary);
}

.rta-status-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: #065F46;
    background: #D1FAE5;
    padding: 4px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rta-status-pill .material-symbols-rounded {
    font-size: 14px;
}

/* Mockup Budget Grid */
.mockup-dashboard-cards {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
}

.mockup-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-subtle);
}

.mockup-card-title {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-cat-row {
    padding: 10px 0;
    border-bottom: 1px solid #F8FAFC;
}

.mockup-cat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.cat-row-name {
    font-weight: 600;
    color: var(--graphite);
    display: flex;
    align-items: center;
    gap: 7px;
}

.cat-row-amounts {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.cat-row-amounts strong {
    color: var(--graphite);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
}
.progress-fill--emerald { background: var(--brand-emerald); }
.progress-fill--indigo { background: var(--accent-indigo); }

/* Right Mockup Card: Debt & Net Worth */
.mockup-debt-box {
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.mockup-debt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.mockup-debt-head strong {
    font-size: 13px;
    color: #9F1239;
}

.mockup-debt-split {
    font-size: 11.5px;
    color: #881337;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #FDA4AF;
    display: flex;
    justify-content: space-between;
}

.mockup-net-worth-box {
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px;
}

.net-worth-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.net-worth-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--graphite);
    margin-top: 2px;
}

/* ==========================================================================
   Manifest Section: Why 100% Free & Why Manual Entry?
   ========================================================================== */

.manifest-section {
    padding: 88px 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.manifest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.manifest-card {
    background: #FAFAF9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.manifest-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-surface, #ECFDF5);
    border: 1px solid var(--brand-border, #A7F3D0);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    box-shadow: var(--shadow-subtle);
}

.manifest-icon-wrap .material-symbols-rounded {
    font-size: 24px;
    color: var(--brand-primary, #059669);
}

.manifest-title {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--graphite);
}

.manifest-p {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.manifest-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.manifest-list li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 9px;
}

.manifest-list li .material-symbols-rounded {
    font-size: 18px;
    color: var(--brand-primary);
}

/* ==========================================================================
   Core Pillars (Apple Storytelling Format)
   ========================================================================== */

.pillars-section {
    padding: 96px 0;
}

.pillar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 96px;
}

.pillar-row:last-child {
    margin-bottom: 0;
}

.pillar-row--reversed {
    direction: rtl;
}

.pillar-row--reversed > * {
    direction: ltr;
}

.pillar-content {
    max-width: 480px;
}

.pillar-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    margin-bottom: 10px;
    display: block;
}

.pillar-title {
    font-size: 2.1rem;
    margin-bottom: 18px;
    color: var(--graphite);
}

.pillar-desc {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

/* SVG Illustration Cards */
.pillar-visual {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.pillar-interactive-box {
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

/* ==========================================================================
   "To jeszcze nie wszystko..." (Apple Bento Grid)
   ========================================================================== */

.bento-section {
    padding: 96px 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.bento-item {
    background: #FAFAF9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-surface, #ECFDF5);
    border: 1px solid var(--brand-border, #A7F3D0);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--brand-primary, #059669);
    box-shadow: var(--shadow-subtle);
}

.bento-icon .material-symbols-rounded {
    font-size: 22px;
}

.bento-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--graphite);
}

.bento-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   FAQ Section (Calm, 4 Core Questions)
   ========================================================================== */

.faq-section {
    padding: 88px 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.18s ease;
}

.faq-item.active {
    border-color: var(--border-strong);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--graphite);
}

.faq-question .material-symbols-rounded {
    font-size: 22px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question .material-symbols-rounded {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   Calm Final Invitation
   ========================================================================== */

.final-invite-section {
    padding: 72px 0 88px;
    text-align: center;
}

.final-invite-box {
    max-width: 620px;
    margin: 0 auto;
}

.final-invite-box h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
    color: var(--graphite);
}

.final-invite-box p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ==========================================================================
   Minimalist Footer
   ========================================================================== */

.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0 32px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand-side {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand-side img {
    height: 28px;
}

.footer-brand-side p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.footer-links-side {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links-side a {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.footer-links-side a:hover {
    color: var(--graphite);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .pillar-row {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .pillar-row--reversed {
        direction: ltr;
    }
    .pillar-content {
        max-width: 100%;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero {
        padding: 48px 0 52px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 1.1rem;
    }
    .mockup-app-layout {
        grid-template-columns: 1fr;
    }
    .mockup-sidebar {
        display: none;
    }
    .mockup-dashboard-cards {
        grid-template-columns: 1fr;
    }
    .manifest-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
