/* ═══════════════════════════════════════════
   EZ-Chef — Main Stylesheet
   ═══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #e8751a;
    --orange-dark: #d45d0f;
    --orange-light: #fff3e0;
    --bg: #f5f0eb;
    --bg-card: #ffffff;
    --text: #2d2d2d;
    --text-muted: #888;
    --border: #e8ddd2;
    --green: #2e7d32;
    --red: #c0392b;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAVIGATION ── */
.nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--orange) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.nav-logo::before {
    content: "🍽️";
    font-size: 20px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a:not(.btn) {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}
.nav-links a:not(.btn):hover { color: var(--orange); }
.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.2s ease;
    border-radius: 1px;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:not(.btn).active {
    color: var(--orange);
}
.nav-links a:not(.btn).active::after { width: 100%; }
/* Nav separator between text and buttons */
.nav-separator {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    background: var(--orange);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none !important;
    line-height: 1.4;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; text-align: center; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange) !important;
}
.btn-outline:hover { background: var(--orange-light); }
.btn-accent {
    background: #1a1a2e;
}
.btn-accent:hover { background: #2d2d4e; }
.btn-danger {
    background: var(--red);
}
.btn-danger:hover { background: #a93226; }
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── HERO ── */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero-content { flex: 1; }
.hero-badge {
    display: inline-block;
    background: var(--orange-light);
    color: var(--orange);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.hero .highlight { color: var(--orange); }
.hero-sub {
    font-size: 17px;
    color: #666;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 24px;
}
.hero-cta { margin-bottom: 8px; }
.hero-note { font-size: 13px; color: #aaa; }
.hero-visual { flex: 1; display: flex; justify-content: center; }

.hero-phone {
    width: 280px;
    background: #1a1a2e;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.phone-screen {
    background: white;
    border-radius: 16px;
    padding: 16px;
    font-size: 13px;
}
.phone-header {
    background: var(--orange);
    color: white;
    text-align: center;
    padding: 6px 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.phone-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.phone-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.phone-list-item {
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid #f0ebe5;
}
.phone-list-item .check { color: var(--green); font-weight: 700; }

/* ── SECTIONS ── */
.section {
    padding: 60px 24px;
}
.section-dark {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-inner {
    max-width: 900px;
    margin: 0 auto;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
}

/* ── STEPS ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
}
.step-num {
    width: 40px;
    height: 40px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: #666; }

/* ── FEATURES ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    padding: 20px;
}
.feature-icon { font-size: 32px; margin-bottom: 8px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: #666; line-height: 1.5; }

/* ── PRICING CARD ── */
.pricing-card {
    max-width: 380px;
    margin: 0 auto;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--orange);
    box-shadow: 0 4px 20px rgba(232,117,26,0.12);
}
.pricing-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 8px; }
.price { margin: 16px 0; font-size: 48px; font-weight: 800; color: var(--orange); }
.price .dollar { font-size: 24px; vertical-align: super; }
.price .cents { font-size: 24px; vertical-align: super; }
.price .price-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--orange);
}
.price .period { font-size: 14px; color: var(--text-muted); }
.price-features {
    list-style: none;
    margin: 16px 0 24px;
    text-align: left;
}
.price-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

/* ── FORM PAGES ── */
.form-page {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}
.form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    width: 100%;
    max-width: 640px;
}
.form-card-sm { max-width: 440px; }
.form-card h1 { font-size: 26px; margin-bottom: 4px; }
.form-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.form-section {
    margin-bottom: 28px;
}
.form-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
}
.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ── CUISINE CHECKBOXES ── */
.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.cuisine-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.cuisine-check:hover { background: #f9f5f0; }
.cuisine-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--orange);
}

/* ── ALERTS ── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-error {
    background: #fdecea;
    color: var(--red);
    border: 1px solid #f5c6cb;
}
.alert-success {
    background: #e8f5e9;
    color: var(--green);
    border: 1px solid #c8e6c9;
}

/* ── STRIPE CARD ── */
#card-element, #card-element-dash {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: white;
    min-height: 44px;
}

/* ── DASHBOARD ── */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}
.dash-header {
    margin-bottom: 28px;
}
.dash-header h1 { font-size: 28px; }
.dash-sub { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dash-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.dash-card h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
}
.dash-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* ── INFO TABLE ── */
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #f0ebe5;
    font-size: 14px;
}
.info-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 140px;
}

/* ── FOOTER ── */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 24px 24px;
    text-align: center;
    margin-top: 60px;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 12px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.footer-links a { color: #ccc; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-small { font-size: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-inner {
        padding: 12px 16px;
    }
    .nav-logo {
        font-size: 20px;
    }
    .nav-links {
        gap: 12px;
    }
    .nav-links a:not(.btn) {
        font-size: 13px;
    }
    .nav-separator {
        display: none;
    }
    .btn-sm { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }
    .nav-logo {
        font-size: 18px;
    }
    .nav-logo::before {
        font-size: 16px;
    }
    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .nav-links a:not(.btn) {
        font-size: 12px;
        padding: 4px 6px;
    }
    .btn-sm { padding: 5px 10px; font-size: 11px; }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 16px;
    }
    .hero-sub { max-width: 100%; }
    .hero h1 { font-size: 32px; }
    .hero-visual { display: none; }
    .steps-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    .dash-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cuisine-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px 16px; }
}
