/* TerraGreetings v2 — Prototype Styles */

:root {
    /* Brand Colors */
    --olive-bark: #585123;
    --honey-bronze: #eec170;
    --sandy-brown: #f2a65a;
    --atomic-tangerine: #f58549;
    --brandy: #772f1a;
    
    /* Extended Palette */
    --olive-bark-50: #f8f6ed;
    --olive-bark-100: #f0eedb;
    --olive-bark-200: #e2dcb6;
    --olive-bark-600: #92863a;
    --olive-bark-700: #6d652c;
    --olive-bark-800: #49431d;
    
    --honey-bronze-50: #fcf5e8;
    --honey-bronze-100: #faecd1;
    --honey-bronze-200: #f4d8a4;
    
    --atomic-tangerine-500: #f25d0d;
    --atomic-tangerine-600: #c24a0a;
    
    --brandy-500: #d1542e;
    --brandy-100: #f6ddd5;
    
    /* Semantic */
    --bg-page: #fdfbf7;
    --bg-card: #ffffff;
    --text-primary: var(--olive-bark);
    --text-secondary: var(--olive-bark-700);
    --text-muted: var(--olive-bark-600);
    --border-color: var(--olive-bark-200);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    
    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(88, 81, 35, 0.05);
    --shadow-md: 0 4px 6px rgba(88, 81, 35, 0.07);
    --shadow-lg: 0 10px 15px rgba(88, 81, 35, 0.1);
    --shadow-xl: 0 20px 25px rgba(88, 81, 35, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
}

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

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--olive-bark);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo:hover .logo-icon {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 18px rgba(244, 162, 97, 0.5));
}

.logo-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 10px rgba(244, 162, 97, 0.35));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-type {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-text-terra {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    line-height: 1;
}

.logo-text-greetings {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

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

.header .btn-primary {
    background: var(--atomic-tangerine);
    color: white;
}

.header .btn-primary:hover {
    background: var(--atomic-tangerine-400);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--atomic-tangerine);
    color: white;
    border-color: var(--atomic-tangerine);
}

.btn-primary:hover {
    background: var(--atomic-tangerine-500);
    border-color: var(--atomic-tangerine-500);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--honey-bronze);
    color: var(--olive-bark);
    border-color: var(--honey-bronze);
}

.btn-secondary:hover {
    background: var(--honey-bronze-200);
    border-color: var(--honey-bronze-200);
}

.btn-outline {
    background: transparent;
    color: var(--olive-bark);
    border-color: var(--olive-bark);
}

.btn-outline:hover {
    background: var(--olive-bark);
    color: white;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    background: linear-gradient(135deg, var(--olive-bark-50) 0%, var(--honey-bronze-50) 100%);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        padding: calc(80px + var(--space-2xl)) var(--space-3xl) var(--space-2xl);
        gap: var(--space-2xl);
    }
}

@media (min-width: 1200px) {
    .hero {
        padding: calc(80px + var(--space-3xl)) 6rem var(--space-3xl);
        gap: var(--space-3xl);
    }
}

@media (min-width: 1400px) {
    .hero {
        padding: calc(80px + var(--space-3xl)) 8rem var(--space-3xl);
        gap: 5rem;
    }
}

.hero-content {
    max-width: 540px;
    text-align: center;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
        max-width: 480px;
    }
}

@media (min-width: 1200px) {
    .hero-content {
        max-width: 540px;
    }
}

@media (min-width: 1400px) {
    .hero-content {
        max-width: 600px;
    }
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--olive-bark);
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

@media (min-width: 1200px) {
    .hero-subtitle {
        font-size: 1.375rem;
    }
}

.hero-note {
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.hero-cards {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 220px;
    display: block;
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .hero-cards {
        max-width: 360px;
        height: 240px;
    }
}

@media (min-width: 640px) {
    .hero-cards {
        max-width: 420px;
        height: 280px;
    }
}

@media (min-width: 768px) {
    .hero-cards {
        max-width: 480px;
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .hero-cards {
        width: 380px;
        max-width: none;
        height: 420px;
        margin: 0;
    }
}

@media (min-width: 1200px) {
    .hero-cards {
        width: 440px;
        height: 480px;
    }
}

@media (min-width: 1400px) {
    .hero-cards {
        width: 520px;
        height: 540px;
    }
}

.hero-card {
    position: absolute;
    width: 120px;
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s;
}

@media (min-width: 480px) {
    .hero-card {
        width: 140px;
        height: 185px;
    }
}

@media (min-width: 640px) {
    .hero-card {
        width: 160px;
        height: 210px;
    }
}

@media (min-width: 768px) {
    .hero-card {
        width: 180px;
        height: 240px;
        border-radius: var(--radius-xl);
    }
}

@media (min-width: 1024px) {
    .hero-card {
        width: 220px;
        height: 290px;
    }
}

@media (min-width: 1200px) {
    .hero-card {
        width: 260px;
        height: 340px;
    }
}

@media (min-width: 1400px) {
    .hero-card {
        width: 300px;
        height: 390px;
    }
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile-first card positions (base: < 480px) */
.hero-card-1 {
    top: 0;
    left: 20px;
    transform: rotate(-8deg);
    z-index: 1;
}

.hero-card-2 {
    top: 15px;
    left: 85px;
    transform: rotate(3deg);
    z-index: 2;
}

.hero-card-3 {
    top: 40px;
    left: 150px;
    transform: rotate(-3deg);
    z-index: 3;
}

/* 480px+ */
@media (min-width: 480px) {
    .hero-card-1 {
        left: 15px;
    }
    
    .hero-card-2 {
        top: 18px;
        left: 95px;
    }
    
    .hero-card-3 {
        top: 45px;
        left: 175px;
    }
}

/* 640px+ */
@media (min-width: 640px) {
    .hero-card-1 {
        left: 20px;
    }
    
    .hero-card-2 {
        top: 22px;
        left: 115px;
    }
    
    .hero-card-3 {
        top: 55px;
        left: 205px;
    }
}

/* 768px+ (tablets) */
@media (min-width: 768px) {
    .hero-card-1 {
        left: 25px;
    }
    
    .hero-card-2 {
        top: 25px;
        left: 130px;
    }
    
    .hero-card-3 {
        top: 65px;
        left: 235px;
    }
}

/* 1024px+ (desktop) */
@media (min-width: 1024px) {
    .hero-card-1 {
        top: 0;
        left: 0;
    }
    
    .hero-card-2 {
        top: 30px;
        left: 70px;
    }
    
    .hero-card-3 {
        top: 80px;
        left: 130px;
    }
}

@media (min-width: 1200px) {
    .hero-card-2 {
        top: 40px;
        left: 90px;
    }
    
    .hero-card-3 {
        top: 100px;
        left: 170px;
    }
}

@media (min-width: 1400px) {
    .hero-card-2 {
        top: 50px;
        left: 110px;
    }
    
    .hero-card-3 {
        top: 120px;
        left: 210px;
    }
}

.hero-card:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

/* ===== FEATURES ===== */
.features {
    padding: var(--space-3xl) var(--space-xl);
    background: white;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
}

.feature {
    text-align: center;
    padding: var(--space-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--olive-bark);
}

.feature-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ===== SECTIONS ===== */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--olive-bark);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

/* ===== PREVIEW SECTION ===== */
.preview-section {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--olive-bark-50);
    text-align: center;
}

.mood-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.mood-tab {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 500;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.mood-tab:hover {
    border-color: var(--atomic-tangerine);
}

.mood-tab.active {
    background: var(--atomic-tangerine);
    border-color: var(--atomic-tangerine);
    color: white;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto var(--space-2xl);
}

.preview-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

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

.preview-card-image {
    height: 200px;
    overflow: hidden;
}

.preview-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-card-content {
    padding: var(--space-lg);
}

.preview-card-mood {
    font-size: var(--font-size-sm);
    color: var(--atomic-tangerine);
    font-weight: 500;
}

.preview-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: var(--space-xs) 0 var(--space-sm);
    color: var(--olive-bark);
}

.preview-card-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== PRICING ===== */
.pricing {
    padding: var(--space-3xl) var(--space-xl);
    background: white;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    padding: var(--space-2xl);
    background: var(--bg-page);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
}

.pricing-card-featured {
    background: linear-gradient(135deg, var(--olive-bark) 0%, var(--olive-bark-800) 100%);
    border-color: var(--olive-bark);
    color: white;
    position: relative;
    transform: scale(1.05);
}

.pricing-card-featured .pricing-name {
    margin-top: var(--space-lg); /* Push title down to clear badge */
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%); /* Center badge on top border */
    background: var(--atomic-tangerine);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
}

.pricing-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.pricing-price {
    margin-bottom: var(--space-sm);
}

.price-amount {
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

.price-period {
    font-size: var(--font-size-lg);
    opacity: 0.8;
}

.pricing-savings {
    font-size: var(--font-size-sm);
    color: var(--honey-bronze);
    margin-bottom: var(--space-lg);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
}

.pricing-card-featured .pricing-features li {
    color: var(--olive-bark-100);
}

.pricing-card-featured .btn-primary {
    background: var(--honey-bronze);
    border-color: var(--honey-bronze);
    color: var(--olive-bark);
}

.pricing-card-featured .btn-primary:hover {
    background: var(--honey-bronze-200);
    border-color: var(--honey-bronze-200);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--olive-bark);
    color: var(--olive-bark-100);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand-section {
    max-width: 280px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--honey-bronze);
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--olive-bark-200);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

.footer-column {
    min-width: 120px;
}

.footer-heading {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--honey-bronze);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

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

.footer-list li {
    margin-bottom: var(--space-sm);
}

.footer-list a {
    font-size: var(--font-size-sm);
    color: var(--olive-bark-200);
    transition: color 0.2s;
}

.footer-list a:hover {
    color: var(--honey-bronze);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--olive-bark-700);
}

.footer-copy {
    font-size: var(--font-size-sm);
    color: var(--olive-bark-600);
}

.footer-made {
    font-size: var(--font-size-sm);
    color: var(--olive-bark-600);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .footer-brand-section {
        max-width: none;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-2xl);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== RESPONSIVE ===== */

/* Large tablets and below (991px) */
@media (max-width: 991px) {
    .header-content {
        padding: 12px 24px;
    }
    
    .logo-icon {
        width: 46px;
        height: 46px;
    }
    
    .logo-text-terra,
    .logo-text-greetings {
        font-size: 28px;
    }
    
    .nav {
        gap: var(--space-md);
    }
}

/* Tablets and below (768px) */
@media (max-width: 768px) {
    .header-content {
        padding: 10px 20px;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
    }
    
    .logo-text-terra,
    .logo-text-greetings {
        font-size: 24px;
    }
    
    .logo-type {
        gap: 4px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero - tablet */
    .hero {
        min-height: auto;
        flex-direction: column;
        text-align: center;
        padding: calc(70px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
        gap: var(--space-xl);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        margin-bottom: var(--space-lg);
    }
    
    /* Features - tablet */
    .features {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .features-grid {
        gap: var(--space-lg);
    }
    
    .feature {
        padding: var(--space-md);
    }
    
    /* Preview Section - tablet */
    .preview-section {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-md);
    }
    
    .mood-tabs {
        margin-bottom: var(--space-xl);
        gap: var(--space-xs);
    }
    
    .preview-cards {
        gap: var(--space-lg);
        margin: var(--space-lg) var(--space-md) var(--space-xl);
    }
    
    /* Pricing - tablet */
    .pricing {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .pricing-cards {
        gap: var(--space-lg);
    }
    
    .pricing-card {
        padding: var(--space-xl);
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
}

/* Small phones (576px) - Bootstrap sm breakpoint */
@media (max-width: 576px) {
    .header-content {
        padding: 8px 16px;
    }
    
    .logo {
        gap: 4px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-text-terra,
    .logo-text-greetings {
        font-size: 20px;
    }
    
    .logo-type {
        gap: 3px;
    }
    
    /* Hero - small phone */
    .hero {
        padding: calc(56px + var(--space-xl)) var(--space-md) var(--space-xl);
        gap: var(--space-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-md);
    }
    
    .hero-note {
        margin-top: var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    /* Features - small phone */
    .features {
        padding: var(--space-xl) var(--space-md);
    }
    
    .features-grid {
        gap: var(--space-md);
    }
    
    .feature {
        padding: var(--space-sm);
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: var(--space-xs);
    }
    
    .feature-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-xs);
    }
    
    .feature-desc {
        font-size: var(--font-size-sm);
    }
    
    /* Preview Section - small phone */
    .preview-section {
        padding: var(--space-xl) var(--space-md);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-sm);
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-md);
    }
    
    .mood-tabs {
        margin-bottom: var(--space-lg);
    }
    
    .mood-tab {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-size-sm);
    }
    
    .preview-cards {
        gap: var(--space-md);
        margin: var(--space-md) var(--space-sm) var(--space-lg);
    }
    
    .preview-card-content {
        padding: var(--space-sm);
    }
    
    .preview-card-title {
        font-size: var(--font-size-base);
    }
    
    .preview-card-text {
        font-size: var(--font-size-sm);
    }
    
    /* Pricing - small phone */
    .pricing {
        padding: var(--space-xl) var(--space-md);
    }
    
    .pricing-cards {
        gap: var(--space-lg);
    }
    
    .pricing-card {
        padding: var(--space-lg);
        min-width: 260px;
    }
    
    .pricing-card-featured {
        transform: scale(1); /* Remove scale on mobile to prevent overflow */
    }
    
    .pricing-card-featured .pricing-name {
        margin-top: var(--space-xl); /* More space for badge on mobile */
    }
    
    .pricing-name {
        font-size: var(--font-size-lg);
    }
    
    .price-amount {
        font-size: var(--font-size-3xl);
    }
    
    .pricing-features li {
        font-size: var(--font-size-sm);
        padding: var(--space-xs) 0;
    }
}

/* Extra small phones (420px) - Galaxy S series, older iPhones */
@media (max-width: 420px) {
    .header-content {
        padding: 8px 12px;
    }
    
    .logo {
        gap: 3px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text-terra {
        font-size: 18px;
    }
    
    .logo-text-greetings {
        font-size: 18px;
    }
    
    .logo-type {
        gap: 2px;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .mobile-menu-btn span {
        width: 20px;
    }
    
    /* Hero - extra small phone */
    .hero {
        padding: calc(52px + var(--space-lg)) var(--space-sm) var(--space-lg);
        gap: var(--space-md);
    }
    
    .hero-title {
        font-size: 1.375rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .btn-lg {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-sm);
    }
    
    /* Features - extra small phone */
    .features {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .features-grid {
        gap: var(--space-sm);
    }
    
    .feature {
        padding: var(--space-xs);
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
    
    .feature-title {
        font-size: var(--font-size-sm);
    }
    
    .feature-desc {
        font-size: var(--font-size-xs);
    }
    
    /* Preview Section - extra small phone */
    .preview-section {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
    
    .mood-tab {
        padding: 6px var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    .preview-cards {
        gap: var(--space-sm);
        margin: var(--space-sm) var(--space-sm) var(--space-md);
    }
    
    /* Pricing - extra small phone */
    .pricing {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .pricing-card {
        padding: var(--space-md);
    }
    
    .pricing-name {
        font-size: var(--font-size-base);
    }
    
    .price-amount {
        font-size: var(--font-size-2xl);
    }
    
    .pricing-features li {
        font-size: var(--font-size-xs);
    }
    
    .btn-block {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }
}

/* Very small phones (360px) - Galaxy S older models, small budget phones */
@media (max-width: 360px) {
    .header-content {
        padding: 6px 10px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text-terra {
        font-size: 16px;
    }
    
    .logo-text-greetings {
        font-size: 16px;
    }
    
    .logo-type {
        gap: 1px;
    }
    
    /* Hero - very small phone */
    .hero {
        padding: calc(44px + var(--space-md)) var(--space-xs) var(--space-md);
    }
    
    .hero-title {
        font-size: 1.125rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xs);
    }
    
    .hero-cards {
        max-width: 280px;
        height: 180px;
    }
    
    .hero-card {
        width: 100px;
        height: 130px;
        border-radius: var(--radius-md);
    }
    
    .hero-card-1 {
        left: 15px;
    }
    
    .hero-card-2 {
        top: 12px;
        left: 75px;
    }
    
    .hero-card-3 {
        top: 30px;
        left: 135px;
    }
    
    /* Features - very small phone */
    .features {
        padding: var(--space-md) var(--space-xs);
    }
    
    /* Preview Section - very small phone */
    .preview-section {
        padding: var(--space-md) var(--space-xs);
    }
    
    /* Pricing - very small phone */
    .pricing {
        padding: var(--space-md) var(--space-xs);
    }
    
    .pricing-card {
        padding: var(--space-sm);
    }
    
    .price-amount {
        font-size: var(--font-size-xl);
    }
}

