/* ============================================
   Midsole Marketing Site — trymidsole.com
   Brand tokens mapped from DesignTokens.swift
   ============================================ */

:root {
    --navy: #1E2D5A;
    --navy-light: #7B9BD4;
    --red: #CC2222;
    --gold: #F0A500;
    --gold-text: #C08200;
    --cream: #F2EEEA;
    --parchment: #E8E3DD;
    --linen: #DDD7CF;
    --stone: #6B6560;
    --charcoal: #0D0D0D;
    --fresh: #2E9E5B;
    --rest: #D97B20;
    --care: #3A7FB5;
    --worn: #9B3A2A;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

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

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

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

body {
    font-family: var(--font);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
}

/* ============================================
   Nav
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(242, 238, 234, 0.85);
    border-bottom: 1px solid var(--linen);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--navy);
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-cta:hover {
    opacity: 0.85;
}

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

.hero {
    padding: 140px 24px 80px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-title-light {
    display: block;
    font-weight: 300;
    color: var(--stone);
}

.hero-title-bold {
    display: block;
    font-weight: 700;
    color: var(--charcoal);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--stone);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 440px;
}

/* Signup form */
.signup-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--font);
    border: 1.5px solid var(--linen);
    border-radius: var(--radius-md);
    background: white;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
    border-color: var(--navy);
}

.signup-form input[type="email"]::placeholder {
    color: var(--stone);
    opacity: 0.6;
}

.signup-form button {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    color: white;
    background: var(--red);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
}

.signup-form button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.signup-form button:active {
    transform: translateY(0);
}

.signup-note {
    font-size: 13px;
    color: var(--stone);
    margin-top: 12px;
}

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    background: white;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.phone-screen {
    background: var(--cream);
    border-radius: 26px;
    padding: 20px 16px;
    min-height: 480px;
}

.mock-status {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mock-header {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mock-date {
    font-size: 13px;
    color: var(--stone);
    margin-bottom: 20px;
}

.mock-hero-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.mock-photo-area {
    height: 140px;
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mock-shoe-icon {
    color: var(--stone);
    opacity: 0.4;
}

.mock-health-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fresh);
}

.mock-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--stone);
    text-transform: uppercase;
}

.mock-name {
    font-size: 15px;
    font-weight: 600;
}

.mock-meta {
    font-size: 11px;
    color: var(--stone);
}

.mock-insight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--parchment);
    border-radius: var(--radius-md);
    font-size: 11px;
    color: var(--charcoal);
}

.mock-insight-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* ============================================
   Value Props
   ============================================ */

.values {
    padding: 80px 24px;
    background: white;
}

.values-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--cream);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon--navy {
    background: var(--navy);
    color: white;
}

.value-icon--care {
    background: var(--care);
    color: white;
}

.value-icon--gold {
    background: var(--gold);
    color: white;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.value-card p {
    font-size: 15px;
    color: var(--stone);
    line-height: 1.6;
}

/* ============================================
   Rotation Section
   ============================================ */

.rotation-section {
    padding: 100px 24px;
}

.rotation-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rotation-content h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.rotation-content p {
    font-size: 16px;
    color: var(--stone);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 440px;
}

.rotation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rotation-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.rotation-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rotation-dot--fresh { background: var(--fresh); }
.rotation-dot--rest { background: var(--rest); }
.rotation-dot--due { background: var(--gold); }
.rotation-dot--care { background: var(--care); }

/* Pulse strip */
.rotation-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pulse-strip {
    display: flex;
    gap: 16px;
}

.pulse-day {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--linen);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pulse-day span {
    font-size: 14px;
    font-weight: 600;
    color: var(--stone);
}

.pulse-day--filled {
    background: var(--navy);
    border-color: var(--navy);
}

.pulse-day--filled span {
    color: white;
}

.pulse-day--today {
    border-color: var(--navy);
    border-style: dashed;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.pulse-label {
    margin-top: 20px;
    font-size: 14px;
    color: var(--stone);
    font-weight: 500;
}

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

.cta-section {
    padding: 100px 24px;
    background: var(--navy);
    text-align: center;
}

.cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 32px;
}

.signup-form--large {
    max-width: 100%;
    justify-content: center;
}

.cta-section .signup-form input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.cta-section .signup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cta-section .signup-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .signup-note {
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

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

.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--linen);
}

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

.footer-logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.footer-copy {
    font-size: 13px;
    color: var(--stone);
}

/* ============================================
   Toast
   ============================================ */

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--charcoal);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
    z-index: 200;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

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

    .hero-signup {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .signup-form {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
    }

    .signup-form button {
        width: 100%;
    }

    .signup-note {
        text-align: center;
    }

    .values-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rotation-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .rotation-content p {
        max-width: 100%;
    }

    .rotation-list {
        align-items: center;
    }

    .pulse-strip {
        gap: 10px;
    }

    .pulse-day {
        width: 40px;
        height: 40px;
    }

    .pulse-day span {
        font-size: 12px;
    }

    .phone-mockup {
        width: 260px;
    }

    .cta-section .signup-form {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .phone-mockup {
        width: 240px;
    }

    .value-card {
        padding: 24px;
    }
}
