/* ==========================================================================
   Avessia Global Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap');

:root {
    --bg-warm-sand: #F7F5F0;
    --bg-white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --teal-primary: #1F7A76;
    --teal-hover: #165C59;
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.06);
    --border-light: #E2DFD8;
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-warm-sand);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, .hero-heading {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--teal-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.subheading {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

a {
    color: var(--teal-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal-hover);
}

/* ==========================================================================
   Components & Buttons
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--teal-primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--teal-hover);
    color: var(--bg-white);
}

.app-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.badge-placeholder {
    background-color: #111;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    border: 1px solid #333;
}

/* ==========================================================================
   Global Header
   ========================================================================== */

header {
    background-color: var(--bg-warm-sand);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--teal-primary);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

section {
    padding: 5rem 0;
}

.section-bg-white {
    background-color: var(--bg-white);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 6rem 0;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Mockup Placeholders */
.phone-mockup {
    background-color: var(--bg-white);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    border: 8px solid #EAE7DF;
    width: 280px;
    height: 580px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-mockup-bg {
    position: absolute;
    width: 240px;
    height: 500px;
    background-color: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 6px solid #EAE7DF;
    z-index: 1;
    opacity: 0.6;
}

.mockup-left { right: 60%; top: 10%; }
.mockup-right { left: 60%; top: 10%; }

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

/* Step Cards & Benefit Cards */
.card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.card h4 {
    color: var(--teal-primary);
}

/* App Screenshots Horizontal Scroll */
.screenshot-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none; /* Firefox */
}

.screenshot-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.screenshot-item {
    min-width: 260px;
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

/* Trust Note / CTA */
.center-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ==========================================================================
   Global Footer
   ========================================================================== */

footer {
    background-color: var(--bg-white);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    color: var(--teal-primary);
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.disclaimer {
    max-width: 800px;
    margin-top: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Legal Pages Typography (Privacy, Terms) */
.legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.25rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* FAQ Accordion Placeholder */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   App Store & Google Play Badge Styling
   ========================================================================== */

.app-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* Essential for mobile-friendliness */
    align-items: center;
}

/* Remove the green background and padding from the buttons */
.app-badges a.btn-primary {
    background: transparent;
    padding: 0;
    border: none;
    height: auto;
    width: auto;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Subtle hover effect for a premium feel */
.app-badges a.btn-primary:hover {
    background: transparent;
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Resize the 450px images to standard badge height */
.app-badges img {
    height: 44px; /* Standard height for digital badges */
    width: auto;  /* Maintains aspect ratio */
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .app-badges {
        justify-content: center; /* Center badges on small screens */
        gap: 10px;
    }

    .app-badges img {
        height: 40px; /* Slightly smaller for tight mobile layouts */
    }
}
