/* PackBuddy Website Design System Stylesheet */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('assets/fonts/bricolage-grotesque-variable.woff2') format('woff2-variations'),
         url('assets/fonts/bricolage-grotesque-variable.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('assets/fonts/hanken-grotesk-variable.woff2') format('woff2-variations'),
         url('assets/fonts/hanken-grotesk-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: optional;
}

:root {
    /* Colors */
    --color-forest-900: #22302A;
    --color-forest-800: #28402F;
    --color-forest-700: #2C4636;
    --color-forest-600: #3A5A44;
    --color-forest-500: #3F6049;
    --color-green-500: #5E8A5F;
    --color-green-100: #EAF0E8;
    --color-green-50: #E6EFE4;
    
    --color-amber-600: #C57A2E;
    --color-amber-500: #D58A3C;
    --color-amber-300: #E7B877;
    --color-amber-200: #F0D6AE;
    --color-amber-100: #FBEBD7;
    --color-amber-text: #8A5A1E;
    --color-amber-text2: #A8763A;

    --color-sand-300: #E4E0D6;
    --color-cream-200: #F1EDE3;
    --color-cream-100: #F5F1E8;
    --color-cream-50: #FBF9F3;
    --color-white: #FFFFFF;

    --color-text-ink: #22302A;
    --color-text-ink2: #3A4740;
    --color-text-muted: #6B7368;
    --color-text-faint: #8A9189;
    --color-text-faint2: #9AA298;
    --color-text-faint3: #A6ACA2;

    --gradient-forest: linear-gradient(135deg, var(--color-forest-500) 0%, var(--color-forest-800) 100%);
    --gradient-amber: linear-gradient(135deg, var(--color-amber-500) 0%, var(--color-amber-600) 100%);

    /* Fonts */
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;

    /* Radius */
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-xlarge: 24px;
    --radius-card: 24px;
    --radius-logo: 12px;
    --radius-button: 15px;

    /* Shadow */
    --shadow-subtle: 0 4px 18px rgba(40, 63, 47, 0.05);
    --shadow-raised: 0 10px 30px rgba(40, 63, 47, 0.12);
    --shadow-card: 0 12px 40px rgba(40, 63, 47, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream-50);
    color: var(--color-text-ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Make sure all UI elements inherit the exact typography config of the app */
button, input, select, textarea, option {
    font-family: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Button & Badge Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-button);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-amber-500);
    color: var(--color-text-ink);
    box-shadow: 0 4px 14px rgba(213, 138, 60, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-amber-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 122, 46, 0.4);
}

.btn-secondary {
    background-color: var(--color-forest-600);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-forest-700);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-amber-100);
    color: var(--color-amber-text);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 20px;
}

/* Header / Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 249, 243, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(228, 224, 214, 0.5);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-logo);
    box-shadow: var(--shadow-subtle);
    object-fit: contain;
}

.app-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-forest-900);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text-ink2);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-forest-600);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dropdown Language Selector */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropbtn {
    background: var(--color-cream-100);
    border: 1px solid var(--color-sand-300);
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-ink);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lang-dropbtn:hover {
    background: var(--color-cream-200);
}

.arrow-down {
    font-size: 9px;
    opacity: 0.7;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--color-white);
    min-width: 120px;
    box-shadow: var(--shadow-raised);
    border-radius: var(--radius-medium);
    border: 1px solid var(--color-sand-300);
    z-index: 1;
    overflow: hidden;
    margin-top: 6px;
}

.lang-dropdown-content button {
    color: var(--color-text-ink);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lang-dropdown-content button:hover {
    background-color: var(--color-cream-100);
    color: var(--color-forest-600);
}

.lang-dropdown-content.show {
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--color-cream-100);
    border-bottom: 1px solid rgba(228, 224, 214, 0.4);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 52px;
    color: var(--color-forest-900);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: var(--color-text-ink2);
    margin-bottom: 40px;
    max-width: 520px;
}

.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-link:hover {
    transform: scale(1.04);
}

.store-badge-img {
    height: 48px;
    width: auto;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 270px;
    height: 571px;
    background: #000;
    border-radius: 40px;
    border: 12px solid #1a1a1a;
    box-shadow: var(--shadow-card);
    transform: rotateX(6deg) rotateY(-8deg) rotateZ(2deg);
    transition: transform 0.5s ease;
    overflow: hidden;
}

.phone-mockup:hover {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-cream-100);
    overflow: hidden;
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 38px;
    color: var(--color-forest-900);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-sand-300);
    border-radius: var(--radius-card);
    padding: 40px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--color-forest-600);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--color-forest-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-ink2);
    line-height: 1.6;
}

/* Interactive Demo Section */
.demo-section {
    padding: 100px 24px;
    background-color: var(--color-cream-100);
    border-top: 1px solid var(--color-sand-300);
    border-bottom: 1px solid var(--color-sand-300);
}

.demo-container-center {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.demo-header {
    margin-bottom: 24px;
}

.demo-header h2 {
    font-size: 38px;
    color: var(--color-forest-900);
    margin-bottom: 16px;
}

.demo-header p {
    font-size: 16px;
    color: var(--color-text-ink2);
    max-width: 600px;
    margin: 0 auto;
}

.demo-tabs-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
}

/* Tabs switcher styles */
.demo-tabs {
    display: inline-flex;
    background-color: var(--color-cream-200);
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 0;
    border: 1px solid var(--color-sand-300);
}

.tab-btn {
    border: none;
    background: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    color: var(--color-text-ink2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--color-white);
    color: var(--color-forest-900);
    box-shadow: var(--shadow-subtle);
}

.demo-phone-container {
    display: flex;
    justify-content: center;
}

.interactive-phone {
    width: 270px;
    height: 571px;
    background: #000;
    border-radius: 40px;
    border: 12px solid #1a1a1a;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.interactive-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-cream-100);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Tab screens toggles */
.tab-screen {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

.tab-screen.active {
    display: flex;
}

/* FAQ Section */
.faq-section {
    padding: 100px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-sand-300);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-forest-900);
    text-align: left;
    cursor: pointer;
}

.faq-question:focus {
    outline: none;
}

.faq-arrow {
    font-size: 12px;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    font-size: 15px;
    color: var(--color-text-ink2);
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--color-forest-600);
    box-shadow: var(--shadow-subtle);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* Download Section */
.download-section {
    padding: 100px 24px;
    background: var(--gradient-forest);
    color: var(--color-white);
    text-align: center;
    border-radius: 0;
}

.download-container {
    max-width: 600px;
    margin: 0 auto;
}

.download-section h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.download-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.download-section .store-buttons {
    justify-content: center;
}

/* Footer */
.footer {
    background-color: var(--color-forest-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 24px 30px 24px;
    border-top: 1px solid rgba(228, 224, 214, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-white);
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-small);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-links a {
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-amber-300);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
}

/* Language Selector Visibility Rules */
html[lang="en"] .lang-de {
    display: none !important;
}

html[lang="de"] .lang-en {
    display: none !important;
}

.show-email-btn {
    background-color: var(--color-forest-600);
    color: var(--color-white);
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.show-email-btn:hover {
    background-color: var(--color-forest-800);
}

.decrypted-email {
    font-weight: 700;
    color: var(--color-forest-700);
}

/* Responsive Design Queries */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        margin: 0 auto 30px auto;
    }

    .store-buttons {
        justify-content: center;
    }



    .demo-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: calc(100% - 32px);
        min-width: 0;
        margin: 0 auto 30px auto;
        scrollbar-width: none;
        border-radius: 20px;
    }

    .demo-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 1;
        padding: 8px 16px;
        font-size: 13px;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 12px;
    }

    .logo-container {
        gap: 8px;
    }

    .app-logo {
        width: 32px;
        height: 32px;
    }

    .app-name {
        font-size: 18px;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-dropbtn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nav-links {
        display: none; /* Hide top links on mobile */
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px;
    }

    .demo-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: calc(100% - 32px);
        margin: 0 auto 30px auto;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .tab-btn {
        width: 100%;
        background-color: var(--color-cream-200);
        border: 1px solid var(--color-sand-300);
        border-radius: 30px;
        padding: 12px 16px;
        font-size: 13px;
        text-align: center;
    }

    .tab-btn.active {
        background-color: var(--color-white);
        color: var(--color-forest-900);
        border-color: var(--color-sand-300);
        box-shadow: var(--shadow-subtle);
    }
}

@media (max-width: 400px) {
    .header-container {
        padding: 0 8px;
    }

    .app-name {
        font-size: 16px;
    }

    #current-lang-text,
    .lang-dropbtn .arrow-down {
        display: none;
    }

    .lang-dropbtn {
        padding: 6px 8px;
    }

    header .btn-secondary.btn-sm {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Legal Pages Layout Styles */
.legal-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 24px;
    text-align: left;
}
.legal-content h1 {
    font-size: 36px;
    color: var(--color-forest-900);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-sand-300);
    padding-bottom: 12px;
}
.legal-content h2 {
    font-size: 22px;
    color: var(--color-forest-800);
    margin-top: 40px;
    margin-bottom: 16px;
}
.legal-content h3 {
    font-size: 18px;
    color: var(--color-forest-700);
    margin-top: 24px;
    margin-bottom: 12px;
}
.legal-content p, .legal-content li {
    font-size: 15px;
    color: var(--color-text-ink2);
    line-height: 1.7;
    margin-bottom: 12px;
}
.legal-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}
.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-forest-600);
    margin-bottom: 24px;
    transition: color 0.2s ease;
}
.legal-back-link:hover {
    color: var(--color-forest-800);
}

