/* ============================================
   Tour Tracker — Landing Page Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.nav-logo:hover {
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- Hero --- */
.hero {
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
    background: linear-gradient(135deg, var(--bg) 0%, #e0f2f1 50%, var(--bg-soft) 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat span {
    font-size: 0.85rem;
    color: var(--muted);
}

/* --- Sections --- */
.section {
    padding: 5rem 0;
    scroll-margin-top: var(--nav-height);
}

.section-alt {
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Workflow --- */
.workflow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 480px;
    width: 100%;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.workflow-connector {
    width: 2px;
    height: 32px;
    background: var(--border);
    margin-left: 23px;
}

/* --- Calculator --- */
.calculator {
    max-width: 560px;
    margin: 0 auto;
}

.calculator-slider-wrap {
    position: relative;
    margin-bottom: 2rem;
}

.calculator-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    outline: none;
    cursor: pointer;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: border-color 0.2s;
}

.calculator-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.calculator-value {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.75rem;
}

.calculator-result {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.calc-plan-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.calc-plan-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.calc-plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
}

.calc-plan-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* --- Plan Cards --- */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.plan-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.plan-card-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text);
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--text);
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.modal-plan-label {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* --- Forms --- */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.input-group input.invalid,
.input-group textarea.invalid {
    border-color: var(--error);
}

.input-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.form-error {
    color: var(--error);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.form-success {
    color: var(--success);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.contact-full {
    grid-column: 1 / -1;
}

/* --- FAQ --- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 1.25rem 2rem 1.25rem 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-answer {
    padding: 0 0 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--text);
    color: var(--muted);
    padding: 3rem 0;
}

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

.footer-brand .nav-logo {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand .nav-logo span {
    color: #fff;
}

.footer-brand p {
    font-size: 0.85rem;
}

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

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
}

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

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--text);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transition: transform 0.3s ease;
    max-width: 90vw;
    text-align: center;
}

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

.toast.toast-success {
    background: var(--success);
}

.toast.toast-error {
    background: var(--error);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- Responsive --- */

/* 640px+ */
@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 1rem;
    }

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

/* 768px+ */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .workflow-steps {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .workflow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .workflow-connector {
        width: 60px;
        height: 2px;
        margin-left: 0;
        margin-top: 24px;
        flex-shrink: 0;
    }
}

/* 1024px+ */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-card-featured {
        transform: scale(1.05);
    }

    .plan-card-featured:hover {
        transform: scale(1.05) translateY(-4px);
    }
}

/* Mobile nav */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav.nav-open .nav-links {
        display: flex;
    }

    .nav.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}
