/* =============================================================================
   Tasx Marketing Site — Global Stylesheet
   Brand identity matched to app.tasx.me (extracted from app screenshots)
   ============================================================================= */

:root {
    /* === Brand palette === */
    --brand-primary: #6366F1;          /* indigo — buttons, accents */
    --brand-primary-dark: #4F46E5;     /* hover */
    --brand-primary-soft: #EEF0FE;     /* subtle indigo background */
    --brand-accent: #14B8A6;           /* teal-X in wordmark */

    /* === Surfaces === */
    --bg: #F8FAFC;                     /* page background */
    --bg-soft: #F1F5F9;                /* section alternate */
    --surface: #FFFFFF;                /* cards */
    --border: #E2E8F0;                 /* subtle dividers */
    --border-strong: #CBD5E1;

    /* === Text === */
    --text-heading: #0F172A;           /* near-black navy */
    --text-body: #475569;              /* muted body */
    --text-muted: #94A3B8;             /* hints, captions */

    /* === Status colors (mirror app) === */
    --green: #10B981;
    --amber: #F59E0B;
    --red:   #EF4444;
    --blue:  #3B82F6;

    /* === Layout === */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow:    0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.08);

    --container: 1200px;
    --container-narrow: 880px;
}

/* === Reset + base === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { color: var(--text-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === Layout containers === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--surface); }
section.dark { background: #0F172A; color: #E2E8F0; }
section.dark h1, section.dark h2, section.dark h3 { color: #FFFFFF; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary   { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-primary-dark); box-shadow: var(--shadow); }

.btn-secondary { background: var(--surface); color: var(--text-heading); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); }

.btn-ghost { background: transparent; color: var(--text-heading); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }

/* === Header / Navigation === */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.tasx-logo {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.tasx-logo:hover { text-decoration: none; }
.tasx-wordmark {
    font-size: var(--logo-size, 22px);
    font-weight: 800;
    color: #2563EB;                   /* Tas — blue */
    letter-spacing: -0.02em;
    line-height: 1;
}
.tasx-x { color: var(--brand-accent); }   /* X — teal */

/* Nav links */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    padding: 8px 14px;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text-heading); background: var(--bg-soft); text-decoration: none; }
.site-nav a.active { color: var(--brand-primary); }

.site-cta { display: flex; align-items: center; gap: 8px; }

@media (max-width: 880px) {
    .site-nav { display: none; }
    .site-cta .btn-ghost { display: none; }
}

/* === Hero === */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--brand-primary-soft) 0%, var(--bg) 100%);
}
.hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero .lead {
    font-size: 1.25rem;
    color: var(--text-body);
    max-width: 680px;
    margin: 0 auto 40px;
}
.hero-ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-meta { margin-top: 40px; color: var(--text-muted); font-size: 0.875rem; }

/* === Eyebrow / section labels === */
.eyebrow {
    display: inline-block;
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.125rem; color: var(--text-body); }

/* === Grids === */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === Cards === */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}
.card h3 { margin-bottom: 8px; font-size: 1.125rem; }
.card p { font-size: 0.9375rem; color: var(--text-body); }

/* Feature card variations */
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-card .badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 12px; }
.badge-unique  { background: #FEF3C7; color: #92400E; }
.badge-shipped { background: #D1FAE5; color: #065F46; }
.badge-roadmap { background: #DBEAFE; color: #1E40AF; }

/* === Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.price-card.featured {
    border: 2px solid var(--brand-primary);
    box-shadow: var(--shadow);
    position: relative;
}
.price-card.featured::before {
    content: "Most popular";
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand-primary); color: #fff;
    padding: 4px 12px; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.price-card .plan-blurb { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 20px; }
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--text-heading); line-height: 1; }
.price-amount .currency { font-size: 1.125rem; vertical-align: top; margin-right: 2px; color: var(--text-muted); font-weight: 600; }
.price-period { color: var(--text-muted); font-size: 0.875rem; margin: 6px 0 24px; }
.price-note { color: var(--brand-primary); font-size: 0.8125rem; font-weight: 600; margin: -18px 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.price-card li { padding: 7px 0; font-size: 0.9375rem; padding-left: 24px; position: relative; }
.price-card li::before {
    content: "✓"; color: var(--green); font-weight: 700;
    position: absolute; left: 0;
}
.price-card .btn { width: 100%; justify-content: center; }

/* === Logo bar === */
.logo-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 56px; flex-wrap: wrap;
    padding: 32px 0;
    opacity: 0.6;
}
.logo-bar-label { width: 100%; text-align: center; color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.logo-bar-item { color: var(--text-muted); font-weight: 600; font-size: 1.0625rem; }

/* === Stats === */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 24px; }
.stat-number {
    font-size: 2.5rem; font-weight: 800;
    color: var(--brand-primary);
    line-height: 1; margin-bottom: 6px;
}
.stat-label { color: var(--text-body); font-size: 0.9375rem; }

/* === Comparison table === */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.compare-table th { background: var(--bg-soft); font-weight: 600; color: var(--text-heading); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no  { color: var(--red); opacity: 0.7; }
.compare-table .partial { color: var(--amber); font-weight: 600; }

/* === CTA banner === */
.cta-banner {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: #fff;
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 28px; font-size: 1.0625rem; }
.cta-banner .btn-primary { background: #fff; color: var(--brand-primary); }
.cta-banner .btn-primary:hover { background: var(--brand-primary-soft); }
.cta-banner .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* === Footer === */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 64px 0 32px;
}
.site-footer h4 { color: #fff; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: #94A3B8; font-size: 0.9375rem; max-width: 280px; margin-top: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94A3B8; font-size: 0.9375rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    color: #64748B; font-size: 0.875rem;
}

/* === Two-column feature row === */
.two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center;
}
.two-col.reverse > div:first-child { order: 2; }
@media (max-width: 880px) {
    .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 40px; }
    .two-col.reverse > div:first-child { order: 0; }
}
.two-col .img-placeholder {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Generic illustrations for two-col blocks (inline SVG containers) */
.illo { width: 100%; height: 100%; padding: 32px; display: flex; align-items: center; justify-content: center; }

/* === Misc === */
.tag {
    display: inline-block;
    padding: 3px 10px; border-radius: 12px;
    background: var(--brand-primary-soft); color: var(--brand-primary);
    font-size: 0.75rem; font-weight: 600;
    margin-bottom: 12px;
}

.divider { height: 1px; background: var(--border); margin: 24px 0; }

.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* =============================================================================
   === Language toggle ===
   ============================================================================= */
.lang-toggle {
    position: relative;
    margin-left: 8px;
}
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.lang-toggle-btn:hover {
    background: var(--bg-soft);
    border-color: var(--border-strong);
}
.lang-toggle-btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}
.lang-toggle-code {
    font-weight: 700;
    letter-spacing: 0.04em;
}
.lang-toggle-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 60;
}
.lang-toggle-menu li { list-style: none; margin: 0; }
.lang-toggle-option {
    display: block;
    padding: 8px 12px;
    color: var(--text-heading);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
}
.lang-toggle-option:hover,
.lang-toggle-option:focus-visible {
    background: var(--brand-primary-soft);
    text-decoration: none;
    outline: none;
}
.lang-toggle-option.is-current {
    font-weight: 700;
    color: var(--brand-primary);
}
.lang-toggle-option[lang="ar"] { font-family: -apple-system, "Segoe UI", "Noto Sans Arabic", sans-serif; }

@media (max-width: 880px) {
    .lang-toggle { display: none; }
}
