/* ================================
   Mise — Design System & Styles
   ================================ */

:root {
    --sage: #4A6741;
    --sage-dark: #3A5231;
    --sage-light: #6B8F5E;
    --cream: #E8DFD0;
    --cream-light: #F5F0EA;
    --terracotta: #C4713B;
    --terracotta-light: #D4885A;
    --warm-brown: #3A2F28;
    --warm-brown-light: #4A3F38;
    --text-primary: #2C2C2C;
    --text-secondary: #7A7A7A;
    --text-tertiary: #A8A8A8;
    --surface: #F5F0EA;
    --white: #FFFFFF;

    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --shadow-subtle: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-elevated: 0 8px 40px rgba(0,0,0,0.1);
}

/* ================================
   Reset & Base
   ================================ */

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

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

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

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

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

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

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

/* ================================
   Navigation
   ================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 234, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 103, 65, 0.08);
    transition: all 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--warm-brown);
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

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

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

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

.nav-cta {
    background: var(--sage);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--warm-brown);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(245, 240, 234, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
    z-index: 99;
    border-bottom: 1px solid rgba(74, 103, 65, 0.08);
}

.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--space-sm) 0;
}

.mobile-menu .nav-cta {
    display: inline-block;
    text-align: center;
    margin-top: var(--space-sm);
}

/* ================================
   Buttons
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--sage);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(74, 103, 65, 0.3);
}

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 103, 65, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--sage);
    border: 2px solid var(--sage);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

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

.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 72px);
    color: var(--warm-brown);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: var(--space-md);
}

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

.phone-mockup {
    width: 280px;
    background: var(--warm-brown);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: var(--cream);
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-mascot {
    position: absolute;
    right: -40px;
    bottom: -20px;
    width: 200px;
    z-index: 3;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
    animation: float 4s ease-in-out infinite;
}

.hero-bg-shape {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(74, 103, 65, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ================================
   Social Proof
   ================================ */

.social-proof {
    padding: var(--space-3xl) 0;
    border-top: 1px solid rgba(74, 103, 65, 0.08);
    border-bottom: 1px solid rgba(74, 103, 65, 0.08);
}

.proof-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
}

.proof-item {
    text-align: center;
}

.proof-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--sage);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.proof-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.proof-divider {
    width: 1px;
    height: 48px;
    background: rgba(74, 103, 65, 0.15);
}

/* ================================
   Section Headers
   ================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sage);
    background: rgba(74, 103, 65, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--warm-brown);
    margin-bottom: var(--space-md);
}

.section-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* ================================
   Features
   ================================ */

.features {
    padding: var(--space-4xl) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(74, 103, 65, 0.06);
}

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

.feature-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    background: linear-gradient(135deg, var(--white) 0%, rgba(74, 103, 65, 0.03) 100%);
    padding: var(--space-3xl);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 103, 65, 0.08);
    border-radius: var(--radius-md);
    color: var(--sage);
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--warm-brown);
    margin-bottom: var(--space-sm);
}

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

.feature-image {
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.1));
}

/* ================================
   How It Works
   ================================ */

.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4xl);
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.step:nth-child(even) {
    direction: rtl;
}

.step:nth-child(even) > * {
    direction: ltr;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sage);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.step-image {
    max-width: 220px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
}

.step-content h3 {
    font-size: 24px;
    color: var(--warm-brown);
    margin-bottom: var(--space-sm);
}

.step-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================
   Voice Section
   ================================ */

.voice-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
}

.voice-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.voice-text h2 {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--warm-brown);
    margin-bottom: var(--space-lg);
}

.voice-text > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.voice-quotes {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.voice-quotes blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--sage);
    padding-left: var(--space-md);
    border-left: 3px solid var(--sage);
    line-height: 1.5;
}

.voice-choose {
    font-size: 14px;
    color: var(--text-tertiary);
}

.voice-image {
    max-width: 320px;
    margin: 0 auto;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.1));
}

/* ================================
   Pricing
   ================================ */

.pricing {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--cream-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.pricing-card-featured {
    background: var(--white);
    border-color: var(--sage);
    box-shadow: var(--shadow-card);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sage);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: var(--radius-xl);
}

.pricing-tier {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--warm-brown);
    margin-bottom: var(--space-md);
}

.pricing-price {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--warm-brown);
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-period {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

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

.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--sage);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ================================
   CTA
   ================================ */

.cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-mascot {
    width: 160px;
    margin-bottom: var(--space-xl);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite;
}

.cta h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-xl);
}

.cta .btn-primary {
    background: var(--white);
    color: var(--sage);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta .btn-primary:hover {
    background: var(--cream-light);
    transform: translateY(-2px);
}

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

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--warm-brown);
    color: rgba(255,255,255,0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    padding: var(--space-xs) 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13px;
}

/* ================================
   Legal Pages
   ================================ */

.legal-page {
    padding: 120px 0 var(--space-4xl);
    min-height: 100vh;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-subtle);
}

.legal-content h1 {
    font-size: 36px;
    color: var(--warm-brown);
    margin-bottom: var(--space-sm);
}

.legal-content .legal-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2xl);
}

.legal-content h2 {
    font-size: 22px;
    color: var(--warm-brown);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.legal-content a {
    color: var(--sage);
    text-decoration: underline;
}

/* ================================
   Support Page
   ================================ */

.support-page {
    padding: 120px 0 var(--space-4xl);
}

.support-hero {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.support-hero h1 {
    font-size: 42px;
    color: var(--warm-brown);
    margin-bottom: var(--space-sm);
}

.support-hero p {
    font-size: 18px;
    color: var(--text-secondary);
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto var(--space-3xl);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(74, 103, 65, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-subtle);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-lg);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--warm-brown);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--sage);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-section {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
}

.contact-section h2 {
    font-size: 28px;
    color: var(--warm-brown);
    margin-bottom: var(--space-sm);
}

.contact-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 18px;
    font-weight: 600;
    color: var(--sage);
    padding: var(--space-md) var(--space-xl);
    background: rgba(74, 103, 65, 0.06);
    border-radius: var(--radius-xl);
    transition: background 0.2s;
}

.contact-email:hover {
    background: rgba(74, 103, 65, 0.12);
}

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

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card-large {
        grid-column: span 2;
    }

    .step {
        grid-template-columns: auto 1fr;
        gap: var(--space-lg);
    }

    .step:nth-child(even) {
        direction: ltr;
    }

    .step-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu.active {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .phone-mockup {
        width: 240px;
    }

    .hero-mascot {
        width: 140px;
        right: -20px;
        bottom: -10px;
    }

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

    .feature-card-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-image {
        max-width: 200px;
    }

    .voice-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .voice-quotes blockquote {
        text-align: left;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card-featured {
        transform: none;
    }

    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: span 2;
    }

    .proof-items {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .proof-divider {
        width: 48px;
        height: 1px;
    }

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

    .step-number {
        margin: 0 auto var(--space-md);
    }

    .legal-content {
        padding: var(--space-xl);
    }
}
