/* CSS Variables - Whymzi Brand Colors */
:root {
    --brand-primary: #4AB8A9;   /* teal */
    --brand-peach:   #EEB19E;   /* peach */
    --brand-mint:    #D3FEF8;   /* mint */
    --brand-cream:   #F4E4D9;   /* cream */
    --brand-pink:    #F6C8D5;   /* pink */
    --brand-text:    #1F2937;   /* dark gray */
    --brand-bg:      #F9FAFB;   /* light neutral */
    --radius: 14px;
    --shadow: 0 6px 18px rgba(0,0,0,.06);
    
    /* Legacy variables for compatibility */
    --primary-color: var(--brand-primary);
    --accent-color: var(--brand-peach);
    --text-primary: var(--brand-text);
    --text-secondary: #6B7280;
    --bg-primary: var(--brand-bg);
    --bg-secondary: #FFFFFF;
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: var(--brand-bg);
    color: var(--brand-text);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

header .subheading {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Main content */
main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Signup section */
.signup {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 90%;
    margin: 0 auto;
}

.signup .card h2 {
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.one-liner {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.35;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="email"], input[type="text"] {
    padding: 1.2rem;
    border: none !important;
    border-radius: var(--radius);
    font-size: 1.1rem;
    background: #f8f9fa !important;
    transition: background-color 0.3s ease;
    box-shadow: none !important;
    min-height: 56px;
}

input[type="email"]:focus, input[type="text"]:focus {
    outline: none;
    background: #f0f0f0 !important;
    border: none !important;
}

/* Button overrides for large height */
.btn-parent, .btn-provider {
    padding: 12px 20px !important;
    border-radius: 24px !important;
    font-weight: 600;
    border: none !important;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    width: 100%;
}

.btn-parent {
    background: var(--brand-peach) !important;
    color: #2a2a2a !important;
}

.btn-provider {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    margin-left: 1rem;
    margin-right: 1rem;
}

.checkbox input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.4em;
    transform: scale(1.2);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand-text);
}

footer a {
    color: var(--brand-primary);
    text-decoration: none;
}

/* Status message */
.status-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    display: none;
}

.status-message:not(:empty) {
    display: block;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .card {
        padding: 0.75rem;
    }
    
    .one-liner {
        font-size: 0.8rem;
        line-height: 1.25;
    }
    
    input[type="email"], input[type="text"] {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .btn-parent, .btn-provider {
        min-height: 38px !important;
        height: 38px !important;
        font-size: 0.9rem;
    }
    
    .checkbox {
        font-size: 0.85rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
        height: 100vh;
    }
    
    header {
        margin-bottom: 1rem;
    }
    
    header h1 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 6px;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .signup {
        gap: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .signup .card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .one-liner {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    input[type="email"], input[type="text"] {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .btn-parent, .btn-provider {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 1rem;
    }
    
    .checkbox {
        font-size: 0.9rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    footer {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        font-size: 0.8rem;
    }
}

/* Global Card and Panel Styles */
.card, .panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    padding: 2rem;
}

/* Global Link Styles */
a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brand-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.sticky {
    background: rgba(254, 247, 240, 0.98);
    border-bottom-color: rgba(31, 41, 55, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #1F2937;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
    color: #E67E50;
    border-bottom-color: #E67E50;
    outline: none;
}

@media (max-width: 567px) {
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #FEF7F0 0%, #F7E9DB 100%);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 3rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Whymzi Brand CTAs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 168px;
    box-shadow: var(--shadow);
}

.btn:focus {
    outline: 3px solid rgba(74, 184, 169, 0.5);
    outline-offset: 2px;
}

.btn-parent {
    background: var(--brand-primary);
    color: #fff;
}

.btn-parent:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.btn-provider {
    background: var(--brand-peach);
    color: #2a2a2a;
}

.btn-provider:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

/* Legacy button styles for backward compatibility */
.btn-primary {
    background: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--brand-peach);
    color: #2a2a2a;
}

.btn-secondary:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1F2937;
    text-align: center;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }
}

/* USPs */
.usps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.usp {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(31, 41, 55, 0.05);
    position: relative;
    overflow: hidden;
}

.usp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #FF7A59);
}

#parents .usp:nth-child(1)::before {
    background: #E67E50;
}

#parents .usp:nth-child(2)::before {
    background: #7FB3B3;
}

#parents .usp:nth-child(3)::before {
    background: #E67E50;
}

#parents .usp:nth-child(4)::before {
    background: #7FB3B3;
}

#parents .usp:nth-child(5)::before {
    background: #E67E50;
}

#parents .usp:nth-child(6)::before {
    background: #7FB3B3;
}

#providers .usp:nth-child(1)::before {
    background: #7FB3B3;
}

#providers .usp:nth-child(2)::before {
    background: #E67E50;
}

#providers .usp:nth-child(3)::before {
    background: #7FB3B3;
}

#providers .usp:nth-child(4)::before {
    background: #E67E50;
}

#providers .usp:nth-child(5)::before {
    background: #7FB3B3;
}

#providers .usp:nth-child(6)::before {
    background: #E67E50;
}

.usp-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.usp-text {
    color: #6B7280;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .usps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .usp {
        padding: 1.5rem;
    }
}

/* Advantages Section */
.advantages-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(31, 41, 55, 0.1);
}

.advantages-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1F2937;
    text-align: center;
    margin-bottom: 2rem;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.advantage {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-peach) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

#providers .advantage {
    background: linear-gradient(135deg, var(--brand-peach) 0%, var(--brand-cream) 100%);
    color: #2a2a2a;
    box-shadow: var(--shadow);
}

.advantage::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.advantage-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.advantage-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .advantages-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .advantages-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .advantages {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage {
        padding: 1.25rem;
    }
}

/* Signup Section */
.signup-section {
    background: white;
    border-top: 1px solid rgba(31, 41, 55, 0.1);
    border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.signup-subtitle {
    color: #6B7280;
    margin-bottom: 2rem;
}

.form-tabs {
    display: flex;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6B7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow);
}

.tab-btn:focus {
    outline: 2px solid #E67E50;
    outline-offset: 2px;
}

.form-container {
    position: relative;
    min-height: 500px;
}

.form-content {
    display: none;
    width: 100%;
    height: 100%;
}

.form-content.active {
    display: block;
}

.form-placeholder {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-placeholder h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-placeholder p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.form-input {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.signup-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.signup-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
}

.signup-btn.provider {
    background: var(--brand-peach);
    color: #2a2a2a;
}

.signup-btn.provider:hover {
    filter: brightness(0.95);
}

/* Accent Chips and Badges */
.chip-mint {
    background: var(--brand-mint);
    color: #115e59;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.chip-cream {
    background: var(--brand-cream);
    color: #6b4423;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.chip-pink {
    background: var(--brand-pink);
    color: #6b2140;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Section Tints */
.tint-mint {
    background: linear-gradient(0deg, #fff, var(--brand-mint));
}

.tint-cream {
    background: linear-gradient(0deg, #fff, var(--brand-cream));
}

.tint-pink {
    background: linear-gradient(0deg, #fff, var(--brand-pink));
}

.fallback {
    padding: 2rem;
    background: var(--brand-bg);
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    text-align: center;
}

.fallback a {
    color: #E67E50;
    text-decoration: none;
    font-weight: 500;
}

.fallback a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: white;
    border-top: 1px solid rgba(31, 41, 55, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.5px;
}

.footer-copyright {
    color: #6B7280;
    font-size: 0.875rem;
}

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

.footer-link {
    color: #6B7280;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-link:hover, .footer-link:focus {
    color: #E67E50;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}