/*
.playfair-display-<uniquifier> {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.outfit-<uniquifier> {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
*/

/* ===== Palette =====
   Colors copied 1:1 from the Blo iOS app asset catalog
   (blo-ios/Resources/Colors.xcassets/*.colorset) */
:root {
    --primary-bg: #F7EEDF;        /* PrimaryBg    (0.969, 0.933, 0.875) */
    --gentle-peach: #F5D8C3;      /* GentlePeach  (0.961, 0.847, 0.765) */
    --tomato: #D04B34;            /* Tomato / AccentColor (0.816, 0.294, 0.204) */
    --salad-green: #7C9B4F;       /* SaladGreen   (0.486, 0.608, 0.310) */
    --primary-text: #2C1A13;      /* PrimaryText  (0.173, 0.102, 0.075) */
    --secondary-title: #BCA693;   /* SecondaryTitle    (0.737, 0.651, 0.576) */
    --secondary-title-100: #7E675B; /* SecondaryTitle100 (0.494, 0.404, 0.357) */
    --secondary-title-50: #AA8F7C;  /* SecondaryTitle50  (0.667, 0.561, 0.486) */
    --white-blo: #FFFFFF;         /* WhiteBlo */

    /* Semantic aliases */
    --primary-color: var(--tomato);
    --primary-dark: #B23E2A;
    --primary-light: #DD6E5A;
    --text-dark: var(--primary-text);
    --text-muted: var(--secondary-title-100);
    --bg-light: var(--primary-bg);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    background: var(--primary-bg);
    color: var(--primary-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    line-height: 1.6;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    color: inherit;
}

/* ===== Navigation ===== */
.navbar,
.navbar-brand,
.brand-text,
.nav-link {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar {
    padding: 0.5rem 0;
    background: var(--primary-bg) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.navbar-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.brand-text {
    color: var(--primary-text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--secondary-title-100) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--tomato) !important;
}

.nav-email {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: var(--secondary-title-100);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-email:hover {
    color: var(--tomato);
}

/* ===== Viewport ===== */
.viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Height of the navbar */
}

.viewport_primary {
    background: var(--primary-bg);
}

/* ===== Main Hero Section ===== */
.main-hero-section {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gentle-peach);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.main-hero-section h1 {
    color: var(--primary-text);
    letter-spacing: -0.03em;
}

.main-hero-section h2 {
    color: var(--primary-text);
}

.main-hero-section .lead {
    font-size: 1.25rem;
    color: var(--secondary-title-100);
}

.main-hero-section .hero-sub {
    color: var(--secondary-title-100);
}

.text-accent {
    color: var(--tomato);
}

/* ===== Feature Section ===== */
.features-section {
    padding: 5rem 0;
    background: var(--white-blo);
}

.section-title {
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--secondary-title-100);
    max-width: 620px;
    margin: 0 auto;
}

.feature-card {
    background: var(--primary-bg);
    border-radius: 22px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(44, 26, 19, 0.12);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white-blo);
    margin-bottom: 1.25rem;
}

.feature-icon.icon-tomato { background: var(--tomato); }
.feature-icon.icon-green  { background: var(--salad-green); }
.feature-icon.icon-peach  { background: var(--secondary-title-50); }

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--secondary-title-100);
    margin-bottom: 0;
}

/* ===== Carousel ===== */
#appCarousel {
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

#appCarousel .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
}

#appCarousel .carousel-item {
    border-radius: 20px;
    overflow: hidden;
}

#appCarousel .carousel-item img,
#appCarousel img,
.carousel-image {
    border-radius: 30px;
    display: block;
    width: 300px;
    max-width: 85%;
    margin: 20px auto;
    border: 1px solid var(--gentle-peach);
}

.app-badge {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.app-badge:hover {
    transform: scale(1.05);
}

.app-store-link {
    display: inline-block;
    text-decoration: none;
}

.disabled-link {
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 0;
    background: var(--tomato);
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: var(--white-blo);
}

.cta-section p {
    opacity: 0.9;
}

/* ===== Legal Pages ===== */
.legal-section {
    padding-top: 70px;
    padding-bottom: 3rem;
}

.legal-content {
    line-height: 1.8;
    color: var(--primary-text);
}

.legal-content h2 {
    color: var(--tomato);
    margin-top: 2rem;
}

.legal-content h3 {
    color: var(--primary-text);
    margin-top: 1.5rem;
}

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

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--tomato);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-text) !important;
    color: var(--gentle-peach);
}

.footer a {
    color: var(--gentle-peach) !important;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white-blo) !important;
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--tomato);
    border-color: var(--tomato);
    color: var(--white-blo);
    padding: 0.75rem 2rem;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 75, 52, 0.35);
}

.btn-light-cta {
    background-color: var(--white-blo);
    color: var(--tomato);
    padding: 0.75rem 2rem;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    transition: all 0.3s ease;
}

.btn-light-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 26, 19, 0.25);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .main-hero-section h1 {
        font-size: 2.5rem;
    }

    .main-hero-section .lead {
        font-size: 1.1rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .app-badge {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .main-hero-section h1 {
        font-size: 2rem;
    }
}

/* ===== Additional Utilities ===== */
.text-primary-custom {
    color: var(--tomato) !important;
}

.bg-primary-custom {
    background-color: var(--tomato) !important;
}

.bg-cream {
    background-color: var(--primary-bg) !important;
}

.shadow-custom {
    box-shadow: 0 4px 20px rgba(208, 75, 52, 0.15) !important;
}
