/* ============================================
   Siteavail — Shared Stylesheet
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--slate-800);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p {
    color: var(--slate-500);
    font-size: 1.125rem;
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2 {
    margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--emerald-500);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background-color: var(--emerald-600);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--slate-200);
    color: var(--slate-800);
}

.btn-outline:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-600);
    background-color: var(--emerald-50);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-login {
    background-color: var(--white);
    border: 1px solid var(--emerald-500);
    color: var(--slate-700);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-login:hover {
    background-color: var(--emerald-50);
    border-color: var(--emerald-600);
    color: var(--slate-900);
    transform: translateY(-1px);
}

.w-full { width: 100%; }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--emerald-50);
    color: var(--emerald-700);
    margin-bottom: 1.5rem;
}

.badge i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-actions .btn-login {
    display: none;
}

.nav-links .btn-login {
    display: inline-flex;
}

.nav-links .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.nav-links .btn-primary {
    margin-left: -1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--slate-900);
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.375rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

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

.nav-link {
    font-weight: 500;
    color: var(--slate-500);
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--slate-900);
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1010;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-800);
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(to bottom, var(--slate-50) 0%, var(--white) 40%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content h1 .no-wrap {
    white-space: nowrap;
}

.hero-content h1 span {
    color: var(--emerald-500);
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--emerald-100);
    z-index: -1;
    opacity: 0.6;
}

.hero-desc {
    margin: 1.5rem 0 2.5rem;
    font-size: 1.25rem;
    max-width: 540px;
    color: var(--slate-500);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-trust {
    font-size: 0.875rem;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-1rem);
}

.hero-image {
    width: 105%;
    max-width: none;
    height: auto;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
    padding: 60px 0;
    border-bottom: 1px solid var(--slate-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--emerald-500);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--slate-500);
    font-weight: 500;
}

/* ---------- Features Grid ---------- */
.features {
    padding: 100px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--slate-100);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-100);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--emerald-50);
    color: var(--emerald-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

/* ---------- How It Works ---------- */
.steps-section {
    padding: 100px 0;
    background: var(--slate-900);
    color: var(--white);
}

.steps-section h2 { color: var(--white); }
.steps-section p { color: var(--slate-400); }
.steps-section h3 { color: var(--white); }

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.how-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.how-card {
    background: var(--slate-800);
    border-radius: 16px;
    padding: 40px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.how-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.how-card h3 {
    margin-bottom: 12px;
}

.how-card p {
    line-height: 1.7;
}

/* ---------- Pricing ---------- */
.pricing {
    padding: 100px 0;
    background: var(--slate-50);
}

.pricing-card {
    background: var(--white);
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--slate-900);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 24px 0;
}

.price span {
    font-size: 1.25rem;
    color: var(--slate-500);
    font-weight: 500;
}

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--slate-700);
    font-weight: 500;
}

.features-list li i {
    color: var(--emerald-500);
    font-size: 1.25rem;
}

/* ---------- FAQ ---------- */
.faq {
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    text-align: left;
    gap: 16px;
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--slate-400);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
    color: var(--emerald-500);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* ---------- Built For ---------- */
.built-for {
    padding: 100px 0;
    background: var(--white);
}

.built-for .section-header {
    max-width: none;
}


/* ---------- Final CTA ---------- */
.final-cta {
    padding: 100px 0;
    text-align: center;
}

/* ---------- Footer ---------- */
footer {
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    padding: 80px 0 40px;
    color: var(--slate-500);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 1rem;
}

.footer-col h4 {
    color: var(--slate-900);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.footer-col a:hover {
    color: var(--emerald-600);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-400);
    padding-top: 32px;
    border-top: 1px solid var(--slate-100);
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    position: relative;
    border: 1px solid var(--slate-200);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    animation: modalSlide 0.3s ease-out;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate-400);
    transition: color 0.2s;
    background: none;
    border: none;
}

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

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--slate-700);
    font-size: 0.9375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--slate-800);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Contact Form Status ---------- */
.contact-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9375rem;
    margin-top: 16px;
    display: none;
}

.contact-status-success,
.contact-status-error {
    display: block;
}

.contact-status-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.contact-status-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ---------- Input Groups ---------- */
.input-group {
    display: flex;
}

.input-group .input-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px 0 0 8px;
    color: var(--slate-500);
    font-size: 1rem;
}

.input-group .form-input {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.input-group .form-input:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15);
}

/* ---------- Checkbox ---------- */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--emerald-500);
    cursor: pointer;
}

.form-check-text {
    font-size: 0.8125rem;
    color: var(--slate-500);
    line-height: 1.4;
}

.form-check-text a {
    color: var(--emerald-500);
    text-decoration: none;
    font-weight: 600;
}

.form-check-text a:hover {
    color: var(--emerald-600);
    text-decoration: underline;
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(to bottom, var(--slate-50), var(--white));
    text-align: center;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- Content Sections (for inner pages) ---------- */
.content-section {
    padding: 80px 0;
}

.content-section.alt {
    background: var(--slate-50);
}

.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.75rem;
    margin: 48px 0 16px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}

.prose p {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.prose ul, .prose ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.prose li {
    color: var(--slate-500);
    font-size: 1.0625rem;
    margin-bottom: 8px;
    line-height: 1.7;
}

.prose a {
    color: var(--emerald-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--emerald-700);
}

.prose strong {
    color: var(--slate-700);
}

.last-updated {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-bottom: 32px;
    display: block;
}

/* ---------- About page specifics ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.value-card {
    padding: 32px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--slate-100);
}

.value-card .icon-box {
    margin-bottom: 16px;
}

.value-card h3 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.value-card p {
    font-size: 1rem;
}

/* ---------- Contact page specifics ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--slate-100);
}

.contact-info-card:last-child {
    border-bottom: none;
}

.contact-info-card .icon-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.contact-info-card h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.contact-info-card p {
    font-size: 0.9375rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 40px;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        gap: 0;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid var(--slate-100);
        width: 100%;
    }

    .nav-links .btn {
        margin-left: 0;
        border-bottom: none;
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }

    .nav-links .btn-login {
        display: inline-flex;
        margin-top: 24px;
        margin-bottom: 8px;
        border: 1px solid var(--emerald-500);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .btn-login {
        display: inline-flex;
    }
}

/* ---------- About Page — Compact Feature Cards ---------- */
.feature-card-compact {
    padding: 24px;
    text-align: center;
}
.feature-card-compact .icon-box {
    margin: 0 auto 16px;
}

/* ---------- About Page — Founder Section ---------- */
.founder-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
}
.founder-avatar {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.25rem; }
    .hero-content h1 .no-wrap { white-space: normal; }
    h2 { font-size: 1.75rem; }

    .hero-grid,
    .grid-3,
    .how-grid,
    .how-grid-3,
    .stats-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .pricing-card {
        padding: 32px;
    }

    .modal-content {
        padding: 32px;
    }

    .input-group .input-group-icon {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .input-group .form-input {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .founder-avatar {
        margin: 0 auto;
    }
}
