/* ==========================================================
   HitMacros – Global Styles
   ========================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: #111827;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

p {
    color: #374151;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: #1e3a8a;
    color: #ffffff;
    padding: 14px 32px;
}

.btn-primary:hover {
    background: #172e6e;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #f1f5f9;
    color: #1e3a8a;
    padding: 14px 32px;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-lg {
    font-size: 1.05rem;
    padding: 16px 40px;
}

.btn-full {
    width: 100%;
}


/* ==========================================================
   Navbar
   ========================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border-bottom-color: #e5e7eb;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #111827;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 56px;
    height: 56px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.925rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #1e3a8a;
}

.nav-cta {
    background: #1e3a8a;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: #172e6e;
    color: #ffffff !important;
}


/* ==========================================================
   Sections
   ========================================================== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: #f8fafc;
}


/* ==========================================================
   Hero
   ========================================================== */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-guarantee {
    margin-top: 14px;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Plan preview mockup */
.plan-preview-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
}

.plan-preview-header {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.plan-preview-day {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.plan-preview-meal {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.meal-label {
    font-weight: 600;
    color: #111827;
    min-width: 80px;
}

.meal-detail {
    color: #6b7280;
    text-align: right;
}

.plan-preview-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.plan-preview-macros-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.plan-preview-macros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.macro-item {
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px 4px;
}

.macro-value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.macro-unit {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}


/* ==========================================================
   Checklist
   ========================================================== */
.check-list {
    list-style: none;
    max-width: 600px;
}

.check-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    font-size: 1.05rem;
    color: #374151;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}


/* ==========================================================
   Steps
   ========================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card p {
    font-size: 0.95rem;
    color: #374151;
}


/* ==========================================================
   Pricing
   ========================================================== */
.pricing-container {
    text-align: center;
}

.pricing-card {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 48px 56px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a8a;
}

.price-approx {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: -4px;
    margin-bottom: 6px;
}

.price-label {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.price-stripe-note {
    font-size: 0.8rem;
    color: #9ca3af;
    max-width: 280px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 6px 0;
    color: #374151;
}

.pricing-features li::before {
    content: "\2713  ";
    color: #3b82f6;
    font-weight: 700;
}


/* ==========================================================
   FAQ
   ========================================================== */
.faq-list {
    max-width: 720px;
}

.faq-item {
    margin-bottom: 28px;
}

.faq-question {
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 0.975rem;
    color: #4b5563;
    line-height: 1.7;
}


/* ==========================================================
   Order Form
   ========================================================== */
.form-title {
    margin-bottom: 8px;
    margin-top: 40px;
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.form-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-errors li {
    color: #991b1b;
    font-size: 0.9rem;
    padding: 2px 0;
}

.form-subtitle {
    color: #6b7280;
    margin-bottom: 40px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label,
.form-group legend {
    font-weight: 500;
    font-size: 0.925rem;
    color: #111827;
}

fieldset.form-group {
    border: none;
}

.required {
    color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Radio groups */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 400;
    font-size: 0.925rem;
}

.radio-label:hover {
    border-color: #3b82f6;
}

.radio-label input[type="radio"] {
    accent-color: #1e3a8a;
}

.radio-label:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* ==========================================================
   Rate Selector
   ========================================================== */
.rate-section {
    opacity: 0;
    transition: opacity 0.22s ease;
}

.rate-section.rate-visible {
    opacity: 1;
}

.rate-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.rate-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 400;
}

.rate-label:hover {
    border-color: #3b82f6;
}

.rate-label input[type="radio"] {
    margin-top: 3px;
    accent-color: #1e3a8a;
    flex-shrink: 0;
}

.rate-label:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

.rate-label-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rate-name {
    font-size: 0.925rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rate-pct {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.85rem;
}

.rate-badge {
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.rate-hint {
    font-size: 0.825rem;
    color: #9ca3af;
}

/* ==========================================================
   Activity / Description Cards
   ========================================================== */
.activity-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.activity-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 400;
}

.activity-label:hover {
    border-color: #3b82f6;
}

.activity-label input[type="radio"] {
    margin-top: 3px;
    accent-color: #1e3a8a;
    flex-shrink: 0;
}

.activity-label:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

.activity-label-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-name {
    font-size: 0.925rem;
    font-weight: 600;
    color: #111827;
}

.activity-hint {
    font-size: 0.825rem;
    color: #9ca3af;
}

/* Checkbox */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #1e3a8a;
    flex-shrink: 0;
}


/* ==========================================================
   Success Page
   ========================================================== */
.success-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-text {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 32px;
    line-height: 1.7;
}


/* ==========================================================
   Legal Pages
   ========================================================== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 24px;
}

.lang-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none !important;
    letter-spacing: 0.03em;
}

.lang-btn:hover {
    color: #1e3a8a;
    background: #f1f5f9;
}

.lang-btn.lang-active {
    color: #1e3a8a;
    background: #eff6ff;
}

.lang-sep {
    font-size: 0.8rem;
    color: #d1d5db;
    user-select: none;
}

.legal-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.legal-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 48px;
}

.legal-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.legal-section p {
    margin-bottom: 12px;
}

.legal-section ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.legal-section li {
    margin-bottom: 6px;
    color: #374151;
}

.legal-section a {
    color: #1e3a8a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: #3b82f6;
}


/* ==========================================================
   Footer
   ========================================================== */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    color: #6b7280;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1e3a8a;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: #9ca3af;
    max-width: 520px;
    margin: 0 auto 12px;
    line-height: 1.5;
}

.footer p {
    font-size: 0.85rem;
    color: #9ca3af;
}


/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 36px 28px;
    }

    .nav-links {
        gap: 18px;
    }
}

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

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

    .radio-group {
        flex-direction: column;
    }
}
