/* Mumyu Tools - Shared Styles */

/* ================================
   CSS Variables (Mumyu Brand)
================================ */
:root {
    /* Colors */
    --cream: #faf7f2;
    --warm-white: #fffcf8;
    --blush: #f5e1da;
    --peach: #f8c8b8;
    --rose: #e8a598;
    --terracotta: #c67b6f;
    --sage: #b8c4a8;
    --charcoal: #3d3d3d;
    --warm-gray: #6b6560;
    --light-gray: #9a948f;

    /* Functional colors */
    --success: #7cb798;
    --warning: #f4a261;
    --error: #e76f6f;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 61, 61, 0.06);
    --shadow-md: 0 8px 24px rgba(61, 61, 61, 0.08);
    --shadow-lg: 0 16px 48px rgba(61, 61, 61, 0.12);

    /* Border radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================
   Typography
================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--charcoal);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--terracotta);
}

p {
    color: var(--warm-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

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

.tool-page {
    min-height: 100vh;
    padding-top: 80px;
}

.tool-header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
}

.tool-header .tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
    font-weight: 500;
}

.tool-header h1 {
    margin-bottom: 1rem;
}

.tool-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.tool-content {
    padding: 3rem 2rem 5rem;
}

/* ================================
   Navigation
================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 61, 61, 0.05);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--terracotta);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--warm-gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    background: var(--terracotta);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.nav-cta:hover {
    background: var(--rose);
    transform: translateY(-2px);
}

/* ================================
   Buttons
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--terracotta);
    color: white;
    box-shadow: 0 4px 15px rgba(198, 123, 111, 0.3);
}

.btn-primary:hover {
    background: var(--rose);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 123, 111, 0.4);
}

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

.btn-secondary:hover {
    background: var(--charcoal);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
}

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

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================
   Form Elements
================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--blush);
    border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--charcoal);
    background: white;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(198, 123, 111, 0.1);
}

.form-input::placeholder {
    color: var(--light-gray);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 0.5rem;
}

/* Date Input Styling */
input[type="date"] {
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ================================
   Cards
================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-highlight {
    border: 2px solid var(--peach);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--warm-gray);
    font-size: 0.95rem;
}

/* ================================
   Results Display
================================ */
.result-box {
    background: linear-gradient(135deg, var(--blush) 0%, var(--peach) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.result-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
}

.result-subtitle {
    color: var(--warm-gray);
    margin-top: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-top: 0.5rem;
}

/* ================================
   Timeline
================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--peach), var(--blush));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--peach);
    transform: translateX(-8.5px);
}

.timeline-item.active .timeline-marker {
    background: var(--terracotta);
    border-color: var(--terracotta);
}

.timeline-item.completed .timeline-marker {
    background: var(--sage);
    border-color: var(--sage);
}

.timeline-content {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-week {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    margin: 0.25rem 0;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin: 0;
}

/* ================================
   Checklist
================================ */
.checklist {
    list-style: none;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.checklist-item:hover {
    box-shadow: var(--shadow-sm);
}

.checklist-item.checked {
    background: var(--blush);
}

.checklist-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--peach);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.checklist-item.checked .checklist-checkbox {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

.checklist-content {
    flex: 1;
}

.checklist-title {
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.checklist-item.checked .checklist-title {
    text-decoration: line-through;
    opacity: 0.7;
}

.checklist-desc {
    font-size: 0.85rem;
    color: var(--warm-gray);
}

/* ================================
   Progress Bar
================================ */
.progress-container {
    margin: 1.5rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

.progress-value {
    font-size: 0.9rem;
    color: var(--terracotta);
    font-weight: 600;
}

.progress-bar {
    height: 12px;
    background: var(--blush);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--peach), var(--terracotta));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ================================
   Email Capture
================================ */
.email-capture {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.email-capture h3 {
    margin-bottom: 0.5rem;
}

.email-capture p {
    margin-bottom: 1.5rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.email-form .form-input {
    flex: 1;
}

.email-success {
    display: none;
    padding: 1.5rem;
    background: rgba(124, 183, 152, 0.1);
    border-radius: var(--radius-md);
    color: var(--success);
}

.email-success.show {
    display: block;
}

/* ================================
   Footer
================================ */
.footer {
    background: var(--charcoal);
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

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

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ================================
   Utilities
================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ================================
   Animations
================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ================================
   Responsive
================================ */
@media (max-width: 768px) {
    html { font-size: 15px; }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .container,
    .container-sm {
        padding: 0 1.25rem;
    }

    .tool-header {
        padding: 3rem 1.5rem 2rem;
    }

    .tool-content {
        padding: 2rem 1.25rem 4rem;
    }

    .nav {
        padding: 0.75rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .card {
        padding: 1.5rem;
    }

    .result-box {
        padding: 2rem 1.5rem;
    }

    .result-value {
        font-size: 2.25rem;
    }

    .email-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
