/* ============================================================
   PDF Summarizer — Design System
   ============================================================ */

:root {
    --brand:        #E4241F;

    /* ---- Backward-compat aliases (used by dashboard.css) ---- */
    --primary:          #E4241F;
    --primary-dark:     #A81410;
    --primary-light:    #F3928C;
    --secondary:        #2B2F33;
    --secondary-dark:   #1A1D1F;
    --accent:           #F2994A;
    --success:          #2F9E63;
    --success-light:    #7FC49C;
    --danger:           #C0392B;
    --warning:          #F2994A;
    --info:             #3B6B99;
    --dark:             #171717;
    --gray-950:         #0D0D0D;
    --gray-900:         #171717;
    --gray-800:         #262626;
    --gray-700:         #3A3A3A;
    --gray-600:         #525252;
    --gray-500:         #737373;
    --gray-400:         #A3A3A3;
    --gray-300:         #D4D4D4;
    --gray-200:         #E5E5E5;
    --gray-100:         #F0F0F0;
    --gray-50:          #FAFAFA;
    --transition:       all .2s cubic-bezier(.4,0,.2,1);
    --transition-fast:  all .15s cubic-bezier(.4,0,.2,1);
    --transition-slow:  all .5s cubic-bezier(.4,0,.2,1);
    --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Code', monospace;
    --gradient-primary: linear-gradient(135deg, #E4241F 0%, #A81410 100%);
    --spacing-xs: .25rem; --spacing-sm: .5rem; --spacing-md: 1rem;
    --spacing-lg: 1.5rem; --spacing-xl: 2rem; --spacing-2xl: 3rem; --spacing-3xl: 4rem;
    --shadow-xs:  0 1px 2px rgba(23,23,23,.06);
    --shadow-md:  0 6px 16px rgba(23,23,23,.10);
    --shadow-glow: 0 0 0 4px rgba(228,36,31,.14);
    --shadow-glow-lg: 0 0 0 8px rgba(228,36,31,.10);
    --shadow-2xl: 0 30px 70px rgba(23,23,23,.18);
    --shadow-inner: inset 0 2px 4px rgba(23,23,23,.05);
    /* ---- End backward-compat ---- */
    --brand-dark:   #A81410;
    --brand-light:  #F3928C;
    --purple:       #2B2F33;
    --green:        #2F9E63;
    --blue:         #3B6B99;
    --orange:       #F2994A;
    --pink:         #F2994A;
    --red:          #C0392B;

    --ink:          #171717;
    --ink-soft:     #3A3A3A;
    --muted:        #737373;
    --border:       #E5E5E5;
    --border-soft:  #F0F0F0;
    --bg:           #F5F5F5;
    --paper:        #FAFAFA;
    --white:        #FFFFFF;

    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    14px;
    --radius-xl:    20px;
    --radius-full:  999px;

    --shadow-sm:    0 1px 3px rgba(23,23,23,.08);
    --shadow:       0 6px 20px rgba(23,23,23,.09), 0 1px 2px rgba(23,23,23,.05);
    --shadow-lg:    0 14px 34px rgba(23,23,23,.12);
    --shadow-xl:    0 26px 60px rgba(23,23,23,.16);
    --shadow-brand: 0 10px 24px rgba(228,36,31,.28);

    --t: all .2s cubic-bezier(.4,0,.2,1);
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================================
   Navigation
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--t);
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    flex-shrink: 0;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: var(--t);
}

.nav-links a:hover { color: var(--brand); background: #F3E4DC; }

.nav-login {
    color: var(--muted) !important;
}

.nav-cta {
    background: var(--brand) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-brand);
}

.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--brand-dark); }

.nav-lang { position: relative; }
.nav-lang-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--border); cursor: pointer;
    color: var(--ink-soft); font-size: .85rem; font-weight: 500;
    padding: 6px 12px; border-radius: var(--radius-full);
    font-family: var(--font); transition: var(--t);
}
.nav-lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.nav-lang-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); list-style: none; padding: 6px; min-width: 160px;
    max-height: 320px; overflow-y: auto; z-index: 200;
}
.nav-lang.open .nav-lang-menu { display: block; }
.nav-lang-menu a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--ink-soft); text-decoration: none; font-size: .88rem;
}
.nav-lang-menu a:hover { background: var(--bg); color: var(--brand); }
.nav-lang-menu a.active { color: var(--brand); font-weight: 600; }
[dir="rtl"] .nav-lang-menu { right: auto; left: 0; }

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

.nav-burger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: var(--t);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: linear-gradient(160deg, #17150F 0%, #221F17 50%, #1D1A12 100%);
    padding: clamp(80px, 14vw, 130px) 24px clamp(60px, 10vw, 100px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(228, 36, 31,.14) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(242, 153, 74,.10) 0%, transparent 65%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; text-align: center; }

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 560;
    color: var(--paper);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin-bottom: 22px;
}

.hero-accent {
    font-style: italic;
    color: #E3B9A6;
    text-decoration: underline;
    text-decoration-color: rgba(228, 36, 31,.55);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.65);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Code block */
.hero-code {
    max-width: 680px;
    margin: 0 auto 44px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    text-align: left;
}

.code-bar {
    background: rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.code-dot.r { background: #ff5f56; }
.code-dot.y { background: #ffbd2e; }
.code-dot.g { background: #27c93f; }

.code-lang {
    margin-left: auto;
    font-size: .75rem;
    font-family: var(--mono);
    color: rgba(255,255,255,.4);
}

.code-body {
    background: rgba(0,0,0,.35);
    padding: 20px 24px;
    font-family: var(--mono);
    font-size: .8rem;
    line-height: 1.75;
    color: #E2D9C4;
    overflow-x: auto;
    white-space: pre;
}

.c-kw  { color: #D9B672; }
.c-str { color: #9CBA92; }
.c-comment { color: #6B6558; }
.c-key { color: #C9BFA8; }
.c-val { color: #F3928C; }

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 32px;
}

.hstat strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.hstat span {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    margin-top: 3px;
    font-weight: 500;
}

.hstat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.12);
}

/* ============================================================
   Hero upload grid — the PDF drop zone lives in the hero itself,
   not in a separate "demo" section further down the page.
   ============================================================ */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    text-align: left;
}

.hero-copy .hero-model-badge,
.hero-copy .hero-title,
.hero-copy .hero-sub { margin-left: 0; margin-right: 0; }

.hero-copy .hero-sub { max-width: 520px; margin: 0 0 32px; }
.hero-copy .hero-stats { justify-content: flex-start; }
.hero-copy .hstat { padding: 12px 28px 12px 0; align-items: flex-start; }
.hero-copy .hstat:first-child { padding-left: 0; }

.upload-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
}

.dropzone {
    margin: 20px 20px 0;
    padding: 32px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--t);
    background: var(--paper);
}

.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand-light); background: #FDF3F2; outline: none; }
.dropzone.dragover { border-color: var(--brand); background: #FDF3F2; box-shadow: var(--shadow-glow); }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: #F2FBF6; }

.dz-icon { margin-bottom: 10px; }
.dz-text { font-size: .95rem; color: var(--ink-soft); margin-bottom: 4px; }
.dz-text strong { color: var(--brand); }
.dz-sub { font-size: .78rem; color: var(--muted); }

.dz-file {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.dz-file button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: .95rem;
    line-height: 1;
    padding: 2px 4px;
}
.dz-file button:hover { color: var(--danger); }

.upload-card .demo-options { padding: 20px 20px 0; }
.upload-card .demo-bottom { padding: 18px 20px 22px; }
.upload-card .demo-output,
.upload-card .demo-loading,
.upload-card .demo-error { padding-left: 20px; padding-right: 20px; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-copy .hero-sub { margin: 0 auto 32px; }
    .hero-copy .hero-stats { justify-content: center; }
    .hero-copy .hstat { align-items: center; padding: 12px 20px; }
}

/* ============================================================
   Shared Section Styles
   ============================================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    margin-bottom: 14px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--brand);
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 560;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.01em;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 56px;
}

/* ============================================================
   Demo Section
   ============================================================ */
.demo-section {
    padding: clamp(64px, 10vw, 100px) 24px;
    background: var(--bg);
}

.demo-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}

.demo-input-area {
    padding: 28px 32px 0;
}

.input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.input-header label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.char-badge {
    font-size: .78rem;
    color: var(--muted);
    background: var(--border-soft);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.char-badge.ready { color: var(--green); background: #E7EEE5; }

textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: .95rem;
    font-family: var(--font);
    line-height: 1.6;
    resize: vertical;
    transition: var(--t);
    color: var(--ink);
}

textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(228, 36, 31,.12);
}

textarea::placeholder { color: var(--muted); opacity: .7; }

.demo-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 24px 32px 0;
}

.opt-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: var(--font);
    color: var(--ink);
    background: white;
    cursor: pointer;
    transition: var(--t);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(228, 36, 31,.12); }

.demo-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px 28px;
    gap: 16px;
    flex-wrap: wrap;
}

/* Toggle */
.kw-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-soft);
    user-select: none;
}

.kw-toggle input { display: none; }

.toggle-track {
    width: 40px;
    height: 22px;
    background: var(--border);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--t);
    flex-shrink: 0;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
}

.kw-toggle input:checked + .toggle-track { background: var(--brand); }
.kw-toggle input:checked + .toggle-track::after { transform: translateX(18px); }

.btn-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    box-shadow: var(--shadow-brand);
    white-space: nowrap;
}

.btn-submit:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--brand-dark); }
.btn-submit:active { transform: translate(0,0); box-shadow: 1px 1px 0 var(--brand-dark); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Demo output */
.demo-output {
    border-top: 1px solid var(--border-soft);
    padding: 28px 32px;
    background: var(--paper);
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.output-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1.5px solid var(--border);
    color: var(--muted);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t);
}

.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.copy-btn.copied { border-color: var(--green); color: var(--green); background: #E7EEE5; }

.output-text {
    font-size: .98rem;
    line-height: 1.8;
    color: var(--ink-soft);
    white-space: pre-wrap;
}

.output-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.ostat {
    display: flex;
    flex-direction: column;
}

.ostat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand);
}

.ostat-lbl {
    font-size: .74rem;
    color: var(--muted);
    font-weight: 500;
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--border);
    color: var(--muted);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t);
    margin-top: 16px;
}

.btn-reset:hover { border-color: var(--brand); color: var(--brand); }

/* Loading */
.demo-loading {
    border-top: 1px solid var(--border-soft);
    padding: 40px 32px;
    text-align: center;
    background: var(--paper);
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    animation: bounce .8s ease infinite;
}

.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(.8); opacity: .5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.demo-loading p {
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
}

/* Error */
.demo-error {
    border-top: 1px solid var(--border-soft);
    padding: 16px 32px;
    background: #fff5f5;
    color: var(--red);
    font-size: .9rem;
    font-weight: 500;
    border-left: 3px solid var(--red);
}

/* ============================================================
   Features Section
   ============================================================ */
.features-section {
    padding: clamp(64px, 10vw, 100px) 24px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.feature {
    padding: 28px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--t);
}

.feature:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-wrap.purple { background: #E4241F; }
.feature-icon-wrap.blue   { background: #3B6B99; }
.feature-icon-wrap.green  { background: var(--green); }
.feature-icon-wrap.orange { background: var(--orange); }
.feature-icon-wrap.indigo { background: #F3928C; }
.feature-icon-wrap.pink   { background: #C9633B; }

.feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ============================================================
   Use Cases
   ============================================================ */
.usecases-section {
    padding: clamp(64px, 10vw, 100px) 24px;
    background: var(--bg);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.usecase {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--t);
}

.usecase:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.usecase-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.usecase h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.usecase p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-section {
    padding: clamp(64px, 10vw, 100px) 24px;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.price-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    position: relative;
    transition: var(--t);
    background: white;
}

.price-card:hover { box-shadow: var(--shadow-lg); }

.price-card.featured {
    background: var(--ink);
    border-color: transparent;
    color: var(--paper);
    box-shadow: var(--shadow-brand);
}

.price-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #D9B672;
    color: #4A3814;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.price-tier {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.price-card.featured .price-tier { color: rgba(255,255,255,.7); }

.price-amount {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-card.featured .price-amount { color: white; }

.price-currency { font-size: 1.4rem; font-weight: 700; }
.price-period { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-card.featured .price-period { color: rgba(255,255,255,.6); }

.price-desc {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.price-card.featured .price-desc { color: rgba(255,255,255,.65); }

.price-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.price-card.featured .price-features li { color: rgba(255,255,255,.85); }
.price-features li.off { color: var(--muted); text-decoration: line-through; }

.price-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--t);
}

.price-btn.outline {
    border: 2px solid var(--border);
    color: var(--ink);
}

.price-btn.outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

.price-btn.solid {
    background: white;
    color: var(--brand);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.price-btn.solid:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    padding: clamp(64px, 10vw, 100px) 24px;
    background: var(--bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.faq-item {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
}

.faq-item a { color: var(--brand); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
    padding: clamp(60px, 10vw, 100px) 24px;
    background: white;
}

.cta-inner {
    background: linear-gradient(160deg, #17150F 0%, #221F17 60%, #1D1A12 100%);
    border-radius: var(--radius-xl);
    padding: clamp(48px, 8vw, 80px) 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(228, 36, 31,.13) 0%, transparent 65%);
    pointer-events: none;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 560;
    color: var(--paper);
    margin-bottom: 12px;
    position: relative;
}

.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 36px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================================
   Buttons (global)
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: .95rem;
    transition: var(--t);
    box-shadow: var(--shadow-brand);
    border: none;
    cursor: pointer;
}

.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--brand-dark); }
.btn-primary:active { transform: translate(0,0); box-shadow: 1px 1px 0 var(--brand-dark); }
.btn-primary.large { padding: 14px 32px; font-size: 1rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: .95rem;
    transition: var(--t);
    border: 1.5px solid rgba(255,255,255,.15);
}

.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-ghost.large { padding: 14px 32px; font-size: 1rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.5);
    padding: 56px 24px 28px;
}

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

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: .88rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h5 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.5);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .88rem;
    transition: var(--t);
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    font-size: .82rem;
    text-align: center;
}

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(160deg, #17150F 0%, #221F17 100%);
    padding: 80px 24px;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 560;
    color: var(--paper);
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.65);
}

/* ============================================================
   Dashboard / Auth pages (shared)
   ============================================================ */
.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    max-width: 440px;
    margin: 60px auto;
    border: 1px solid var(--border);
}

.auth-card h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.auth-card p { font-size: .9rem; color: var(--muted); margin-bottom: 28px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }

.form-field input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: var(--font);
    color: var(--ink);
    transition: var(--t);
}

.form-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(228, 36, 31,.12); }

.btn-full { width: 100%; justify-content: center; }

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: .9rem;
    margin: 16px 0;
}

.alert-success { background: #E7EEE5; color: var(--green); border-left: 3px solid var(--green); }
.alert-error   { background: #fff5f5; color: #991b1b; border-left: 3px solid var(--red); }
.alert-info    { background: #EAF1F0; color: #274654; border-left: 3px solid var(--blue); }

/* ============================================================
   Documentation
   ============================================================ */
.docs-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
}

.docs-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.docs-sidebar h3 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin: 20px 0 8px;
}

.docs-sidebar h3:first-child { margin-top: 0; }

.docs-sidebar ul { list-style: none; }
.docs-sidebar li { margin-bottom: 2px; }

.docs-sidebar a {
    display: block;
    padding: 7px 12px;
    border-radius: var(--radius);
    font-size: .88rem;
    color: var(--muted);
    text-decoration: none;
    transition: var(--t);
}

.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--brand); background: #F3E4DC; }

.docs-main { min-width: 0; }

.docs-section { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.docs-section:last-child { border-bottom: none; }

.docs-section h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.docs-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.docs-section p { font-size: .95rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 16px; }

.endpoint-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin: 12px 0;
}

.method-badge {
    background: var(--green);
    color: white;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 4px;
}

.endpoint-url {
    font-family: var(--mono);
    font-size: .88rem;
    color: var(--ink);
    font-weight: 600;
}

.code-block {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 16px 0;
}

.code-block-header {
    background: #26221A;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-block-lang {
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.code-block-copy {
    background: rgba(255,255,255,.08);
    border: none;
    color: rgba(255,255,255,.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .78rem;
    cursor: pointer;
    transition: var(--t);
    font-family: var(--font);
}

.code-block-copy:hover { background: rgba(255,255,255,.16); color: white; }

.code-block pre {
    background: #1A1A17;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: var(--mono);
    font-size: .83rem;
    line-height: 1.7;
    color: #E2D9C4;
}

.params-table { overflow-x: auto; margin: 16px 0; }
.params-table table { width: 100%; border-collapse: collapse; }
.params-table th { background: #26221A; color: white; padding: 12px 16px; text-align: left; font-size: .82rem; }
.params-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--ink-soft); }
.params-table tr:last-child td { border-bottom: none; }
.params-table code { background: var(--bg); padding: 2px 8px; border-radius: 4px; font-family: var(--mono); font-size: .82rem; color: var(--red); }

/* ============================================================
   Billing / Dashboard
   ============================================================ */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 100vh; }
.dash-sidebar { background: var(--ink); padding: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-main { background: var(--bg); padding: 32px; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

.animate-up { animation: fadeUp .5s ease both; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .docs-wrap { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: white; padding: 16px 24px 24px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border); gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-burger { display: flex; }
    .nav-links a { padding: 10px 14px; border-radius: var(--radius); display: block; }

    .hero-stats { gap: 0; }
    .hstat { padding: 10px 20px; }
    .hstat-sep { height: 28px; }

    .demo-options { grid-template-columns: 1fr 1fr; }
    .demo-bottom { flex-direction: column; align-items: stretch; }
    .btn-submit { justify-content: center; }
    .demo-input-area, .demo-options { padding-left: 20px; padding-right: 20px; }
    .demo-bottom { padding-left: 20px; padding-right: 20px; padding-bottom: 20px; }
    .demo-output, .demo-loading, .demo-error { padding-left: 20px; padding-right: 20px; }

    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .features-grid { grid-template-columns: 1fr; }
    .usecases-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { padding: 40px 24px; }
    .hero-code { display: none; }

    .output-stats { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 400px) {
    .demo-options { grid-template-columns: 1fr; }
    .usecases-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Signup / Auth Layout
   ============================================================ */
.auth-section {
    min-height: calc(100vh - 72px);
    padding: 48px 24px 80px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.auth-layout .auth-card {
    margin: 0;
    max-width: 100%;
}

.auth-header { margin-bottom: 28px; }
.auth-header h1 { font-size: 1.55rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.auth-header p  { font-size: .9rem; color: var(--muted); }

/* Plan summary sidebar */
.plan-summary {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    position: sticky;
    top: 96px;
}

.plan-summary > h3 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 18px;
}

.plan-card-mini {
    text-align: center;
    padding: 24px 0 8px;
}

.plan-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.plan-badge.free         { background: #EFE9DA; color: #4A453B; }
.plan-badge.professional { background: #F3EAD4; color: #7A5A1E; }
.plan-badge.business     { background: #fef3c7; color: #92400e; }

.plan-card-mini h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}

.plan-price-large {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-bottom: 24px;
}

.plan-price-large .currency { font-size: 1.1rem; font-weight: 700; color: var(--brand); }
.plan-price-large .amount   { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.plan-price-large .period   { font-size: .85rem; color: var(--muted); }

.plan-features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    color: var(--ink-soft);
}

.plan-features-list li svg {
    flex-shrink: 0;
    color: var(--green);
}

.change-plan-link {
    display: block;
    text-align: center;
    font-size: .82rem;
    color: var(--brand);
    text-decoration: none;
    margin-top: 16px;
    font-weight: 600;
}

.change-plan-link:hover { text-decoration: underline; }

/* Signup-only responsive */
@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .plan-summary {
        position: static;
        order: -1;
    }
}

/* ============================================================
   NEW SITE HEADER (includes/header.php)
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s ease;
}
.site-header.scrolled {
    box-shadow: 0 1px 24px rgba(0,0,0,.08);
}
.site-nav {
    position: relative;
}
.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 0;
}
.nav-logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--t);
    white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--bg); }
.nav-link--active { color: var(--brand); background: #F3E4DC; }

/* Nav GitHub icon */
.nav-github,
.nav-links .nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border-radius: 8px;
    color: var(--ink-muted, #6B6558) !important;
    background: transparent !important;
    transition: color .15s, background .15s;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-github:hover,
.nav-links .nav-github:hover {
    color: var(--ink, #26221A) !important;
    background: var(--surface, #EFE9DA) !important;
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 9px;
    transition: var(--t);
    white-space: nowrap;
    line-height: 1;
}
.nav-btn--ghost {
    color: var(--muted);
    background: transparent;
}
.nav-btn--ghost:hover { color: var(--ink); background: var(--bg); }
.nav-btn--primary {
    background: var(--brand);
    color: #fff !important;
    border-radius: var(--radius);
    box-shadow: 2px 2px 0 var(--brand-dark);
}
.nav-btn--primary:hover {
    box-shadow: 4px 4px 0 var(--brand-dark);
    transform: translate(-1px,-1px);
}
.nav-btn--block { display: flex; width: 100%; justify-content: center; }

/* Logged-in user chip */
.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #F3E4DC;
    border: 1px solid #E6C9BC;
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    max-width: 200px;
    overflow: hidden;
}
.nav-user-avatar {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E4241F, #F2994A);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav-user-email {
    font-size: .8rem;
    font-weight: 500;
    color: #A81410;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.nav-user-chip--mobile {
    width: 100%;
    border-radius: 10px;
    padding: 8px 14px 8px 8px;
    max-width: 100%;
    margin-bottom: 6px;
    box-sizing: border-box;
}
.nav-user-chip--mobile .nav-user-email { max-width: calc(100% - 40px); }

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--t);
}
.nav-burger:hover { background: var(--bg); }
.burger-bar {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
    display: block;
}
.nav-burger.is-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open .burger-bar:nth-child(2) { opacity: 0; }
.nav-burger.is-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    gap: 4px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}
.nav-mobile ul a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: var(--t);
}
.nav-mobile ul a:hover, .nav-mobile ul a.active {
    color: var(--brand);
    background: #F3E4DC;
}
.nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.nav-mobile-langs {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 6px !important;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.nav-mobile-langs a {
    padding: 6px 10px !important;
    font-size: .8rem !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .nav-burger { display: flex; }
}

/* ============================================================
   NEW SITE FOOTER (includes/footer.php)
   ============================================================ */
.site-footer {
    background: #0a0a14;
    color: rgba(255,255,255,.55);
    padding: 64px 24px 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(228, 36, 31,.5), transparent);
}
.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { max-width: 320px; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}
.footer-tagline {
    font-size: .875rem;
    line-height: 1.75;
    color: rgba(255,255,255,.45);
    margin-bottom: 20px;
}
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.25);
    color: #34d399;
    font-size: .775rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .4; }
}
.footer-col h5 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.35);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color .15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ENHANCED PAGE HERO (inner pages)
   ============================================================ */
.ph {
    background: linear-gradient(155deg, #14120D 0%, #221A12 45%, #1A1A17 100%);
    padding: clamp(80px, 12vw, 120px) 24px clamp(60px, 8vw, 90px);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.ph::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(228, 36, 31,.12) 0%, transparent 65%);
    pointer-events: none;
}
.ph::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(242, 153, 74,.09) 0%, transparent 65%);
    pointer-events: none;
}
.ph-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.ph-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.ph-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    font-weight: 560;
    color: var(--paper);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: 18px;
}
.ph-title span {
    font-style: italic;
    color: #E3B9A6;
}
.ph-sub {
    font-size: clamp(.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,.55);
    line-height: 1.75;
}
.ph-meta {
    font-size: .84rem;
    color: rgba(255,255,255,.4);
    margin-top: 12px;
}

/* ============================================================
   ABOUT PAGE — Redesigned
   ============================================================ */
.about-mission {
    padding: clamp(64px,10vw,100px) 24px;
    background: #fff;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem,4vw,2.8rem);
    font-weight: 560;
    color: var(--ink);
    letter-spacing: -.01em;
    line-height: 1.2;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-visual {
    background: var(--ink);
    border-radius: var(--radius-xl);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(228, 36, 31,.4);
}
.about-visual::before {
    content: '';
    position: absolute;
    top: -20%; right: -20%;
    width: 60%; height: 60%;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
}
.about-visual-icon {
    position: relative;
    z-index: 1;
}
.values-section {
    padding: clamp(64px,10vw,100px) 24px;
    background: var(--bg);
}
.section-head { margin-bottom: 56px; }
.section-head .eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--brand);
    margin-bottom: 10px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem,4vw,2.7rem);
    font-weight: 560;
    color: var(--ink);
    letter-spacing: -.01em;
    line-height: 1.2;
    margin-bottom: 12px;
}
.section-head p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.7;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.value-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: var(--t);
    position: relative;
    overflow: hidden;
}
.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand), var(--purple));
    opacity: 0;
    transition: opacity .25s;
    border-radius: inherit;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: transparent; }
.value-card:hover::before { opacity: 1; }
.value-card:hover .value-icon, .value-card:hover h3, .value-card:hover p { color: #fff; position: relative; z-index: 1; }
.value-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; position: relative; z-index: 1; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; transition: color .25s; position: relative; z-index: 1; }
.value-card p  { font-size: .875rem; color: var(--muted); line-height: 1.7; transition: color .25s; position: relative; z-index: 1; }

.team-section {
    padding: clamp(64px,10vw,100px) 24px;
    background: #fff;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.team-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: var(--t);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-light); }
.team-avatar {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.team-role { font-size: .8rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.team-card p { font-size: .875rem; color: var(--muted); line-height: 1.7; }

.about-stats {
    padding: 64px 24px;
    background: linear-gradient(155deg, #14120D 0%, #221A12 100%);
    position: relative;
    overflow: hidden;
}
.about-stats::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 60%; height: 120%;
    background: radial-gradient(ellipse, rgba(228, 36, 31,.13) 0%, transparent 65%);
    pointer-events: none;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.about-stat {
    text-align: center;
    padding: 32px 24px;
    border-right: 1px solid rgba(255,255,255,.08);
}
.about-stat:last-child { border-right: none; }
.about-stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem,4vw,3rem);
    font-weight: 600;
    color: #E3B9A6;
    line-height: 1;
    margin-bottom: 6px;
}
.about-stat-label { font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.about-stat-sub { font-size: .78rem; color: rgba(255,255,255,.3); }

.about-cta {
    padding: clamp(64px,10vw,100px) 24px;
    background: #fff;
    text-align: center;
}
.about-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.about-cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 900; color: var(--ink); letter-spacing: -.025em; margin-bottom: 16px; }
.about-cta p  { font-size: 1.05rem; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.about-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 800px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { aspect-ratio: 16/7; }
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    .about-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
    .about-stat:nth-child(3), .about-stat:nth-child(4) { border-bottom: none; }
}
@media (max-width: 480px) { .about-stats-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   LEGAL PAGES (privacy, terms) — Redesigned
   ============================================================ */
.legal-section {
    padding: clamp(48px,8vw,80px) 24px clamp(64px,10vw,100px);
    background: var(--bg);
}
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.legal-toc h3 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 14px;
}
.legal-toc ul { list-style: none; }
.legal-toc li { margin-bottom: 2px; }
.legal-toc a {
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: .84rem;
    color: var(--muted);
    text-decoration: none;
    transition: var(--t);
    font-weight: 500;
}
.legal-toc a:hover { color: var(--brand); background: #F3E4DC; }
.legal-body {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 40px 48px;
}
.legal-body section { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.legal-body section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.legal-body h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.legal-body h2::before {
    content: attr(data-num);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #F3E4DC;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
}
.legal-body h3 { font-size: 1rem; font-weight: 700; color: var(--ink-soft); margin: 20px 0 10px; }
.legal-body p  { font-size: .925rem; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.legal-body ul { list-style: none; margin-bottom: 14px; }
.legal-body ul li {
    display: flex;
    gap: 10px;
    font-size: .925rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 8px;
}
.legal-body ul li::before {
    content: '→';
    color: var(--brand);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.legal-body strong { color: var(--ink-soft); font-weight: 600; }
.legal-body .notice {
    background: #EAF1F0;
    border: 1px solid #C9DDE3;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: .875rem;
    color: #274654;
    line-height: 1.7;
    margin: 16px 0;
}
.legal-body .notice strong { color: #1F3540; }
.legal-body a { color: var(--brand); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

@media (max-width: 820px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-body { padding: 28px 24px; }
}

/* ============================================================
   CONTACT PAGE — Redesigned
   ============================================================ */
.contact-section {
    padding: clamp(48px,8vw,80px) 24px clamp(64px,10vw,100px);
    background: var(--bg);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}
.contact-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
.contact-info p {
    font-size: .925rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 28px;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    transition: var(--t);
}
.contact-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    border: 1.5px solid var(--ink);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    background: var(--paper);
}
.contact-card-icon.indigo { background: #F3E4DC; border-color: var(--brand); }
.contact-card-icon.green  { background: #E7EEE5; border-color: var(--green); }
.contact-card-icon.purple { background: #F3EAD4; border-color: var(--gold, #F2994A); }
.contact-card-text h4, .contact-card-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8A8271; margin-bottom: 3px; display: block; }
.contact-card-val { font-size: .9rem; font-weight: 600; color: var(--ink); display: block; line-height: 1.4; }
.contact-card-val a { color: var(--brand); text-decoration: none; }
.contact-card-val a:hover { text-decoration: underline; }
.contact-card-sub, .contact-card-text p { font-size: .78rem; color: var(--muted); margin-top: 2px; display: block; line-height: 1.5; }
.contact-form-wrap {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}
.cf-title { padding: 28px 30px 22px; border-bottom: 1px solid #EFE9DA; }
.cf-title h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.cf-title p { font-size: .85rem; color: var(--muted); }
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cf-group { margin-bottom: 18px; }
.cf-group label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 7px;
}
.cf-group input, .cf-group textarea, .cf-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: .9rem;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    transition: var(--t);
    resize: vertical;
}
.cf-group input:focus, .cf-group textarea:focus, .cf-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(228, 36, 31,.1);
    background: #fff;
}
.cf-group textarea { min-height: 140px; }
.cf-submit {
    width: 100%;
    padding: 13px;
    background: var(--brand);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--t);
    box-shadow: var(--shadow-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cf-submit:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--brand-dark); }

@media (max-width: 760px) {
    .contact-layout { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px 20px; }
}

/* ============================================================
   AUTH PAGES — Redesigned (login, signup, etc.)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #100E09 0%, #201A10 50%, #1A1A17 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(228, 36, 31,.11) 0%, transparent 65%);
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(242, 153, 74,.09) 0%, transparent 65%);
    pointer-events: none;
}
.auth-page-nav {
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.auth-page-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}
.auth-page-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-page-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--t);
}
.auth-page-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.auth-page-links .auth-cta-link {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}
.auth-page-links .auth-cta-link:hover { background: rgba(255,255,255,.2); }
.auth-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}
.auth-box {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 44px 48px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.auth-box-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 28px;
}
.auth-box h1 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 560;
    color: var(--paper);
    letter-spacing: -.01em;
    margin-bottom: 8px;
}
.auth-box .auth-sub {
    font-size: .9rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 32px;
    line-height: 1.6;
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.55);
    margin-bottom: 8px;
}
.auth-field input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    font-size: .95rem;
    font-family: var(--font);
    color: #fff;
    transition: var(--t);
    -webkit-appearance: none;
}
.auth-field input::placeholder { color: rgba(255,255,255,.25); }
.auth-field input:focus {
    outline: none;
    border-color: rgba(228, 36, 31,.75);
    background: rgba(228, 36, 31,.1);
    box-shadow: 0 0 0 4px rgba(228, 36, 31,.2);
}
.auth-opts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: .82rem;
}
.auth-opts a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.auth-opts a:hover { color: #fff; }
.auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--brand);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--t);
    box-shadow: 3px 3px 0 var(--brand-dark);
    margin-top: 8px;
    margin-bottom: 4px;
    letter-spacing: .01em;
}
.auth-submit:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--brand-dark); }
.auth-submit:active { transform: translate(0,0); box-shadow: 1px 1px 0 var(--brand-dark); }
.auth-divider {
    text-align: center;
    font-size: .875rem;
    color: rgba(255,255,255,.45);
    margin: 20px 0 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.auth-divider a {
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.auth-divider a:hover { color: #E3B9A6; text-decoration: underline; }
.auth-footer-link {
    text-align: center;
    font-size: .875rem;
    color: rgba(255,255,255,.45);
}
.auth-footer-link a { color: var(--brand-light); text-decoration: none; font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .875rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.auth-alert-error, .auth-alert--error     { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.auth-alert-success, .auth-alert--success  { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.auth-alert-info, .auth-alert--info        { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #9DBBC7; }
.auth-alert--warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.auth-page-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    font-size: .78rem;
    color: rgba(255,255,255,.25);
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,.06);
}
.auth-page-footer a { color: rgba(255,255,255,.35); text-decoration: none; transition: color .15s; }
.auth-page-footer a:hover { color: rgba(255,255,255,.65); }
.auth-page-link {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.15);
    transition: all .15s;
}
.auth-page-link:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.auth-field-link {
    float: right;
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand-light);
    text-decoration: none;
    margin-top: 1px;
    transition: color .15s;
}
.auth-field-link:hover { color: #E3B9A6; text-decoration: underline; }

/* ============================================================
   AUTH PAGES — RESPONSIVE
   ============================================================ */
@media (max-width: 540px) {
    .auth-page-nav {
        padding: 0 16px;
        height: auto;
        min-height: 60px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .auth-page-logo {
        font-size: .9rem;
        flex-shrink: 0;
    }
    .auth-page-links {
        gap: 6px;
        flex-shrink: 0;
    }
    .auth-page-links > span {
        display: none;
    }
    .auth-page-link {
        font-size: .8rem;
        padding: 5px 12px;
        white-space: nowrap;
    }
    .auth-page-main {
        padding: 24px 16px;
        align-items: flex-start;
    }
    .auth-box {
        border-radius: 18px;
        padding: 28px 20px;
    }
    .auth-box h1 {
        font-size: 1.4rem;
    }
    .auth-box-logo {
        margin-bottom: 20px;
    }
    .auth-box .auth-sub {
        font-size: .85rem;
        margin-bottom: 24px;
    }
    .auth-page-footer {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
        font-size: .75rem;
    }
    .auth-page-footer > span {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   MISC SHARED UTILITIES
   ============================================================ */
.page-wrapper { min-height: calc(100vh - 68px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ============================================================
   HERO — MODEL BADGE
   ============================================================ */
.hero-model-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(228, 36, 31,.15);
    border: 1px solid rgba(228, 36, 31,.4);
    color: #E3B9A6;
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: .04em;
}
.hero-model-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #F3928C;
    box-shadow: 0 0 8px #F3928C;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; box-shadow:0 0 8px #F3928C; }
    50%      { opacity:.6; box-shadow:0 0 3px #F3928C; }
}

/* ============================================================
   COMPARISON SECTION
   ============================================================ */
.compare-section {
    padding: 96px 24px;
    background: var(--bg);
}

.compare-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-lg);
    margin-top: 48px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
    min-width: 560px;
}

.compare-table thead th {
    padding: 20px 24px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1.5px solid var(--border);
    background: white;
}

.compare-table thead th:first-child {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    width: 36%;
}

.compare-table thead .th-us {
    background: linear-gradient(135deg, #E4241F, #F2994A);
    color: white;
    position: relative;
}
.compare-table thead .th-us .th-us-name { font-size: 1rem; font-weight: 800; }
.compare-table thead .th-us .th-us-sub  { font-size: .72rem; font-weight: 500; opacity: .8; margin-top: 2px; }

.col-us {
    background: rgba(228, 36, 31,.04);
    border-left: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
}
.compare-table thead .col-us {
    border-top: 2px solid var(--brand);
}
.compare-table tbody tr:last-child .col-us {
    border-bottom: 2px solid var(--brand);
}

.compare-table tbody td {
    padding: 15px 24px;
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
    color: var(--ink-soft);
    background: white;
    vertical-align: middle;
}
.col-us.compare-table tbody td { background: rgba(228, 36, 31,.04); }

.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--ink);
    background: white;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.cmp-yes { color: var(--green); font-size: 1.25rem; font-weight: 800; }
.cmp-no  { color: #C9BFA8; font-size: 1.25rem; }
.cmp-partial { color: var(--orange); font-size: .82rem; font-weight: 600; }

.cmp-price-us {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--brand);
    line-height: 1;
}
.cmp-price-us small { font-size: .7rem; font-weight: 600; color: var(--brand); opacity: .75; display: block; margin-top: 2px; }

.cmp-price-them {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink-soft);
    line-height: 1;
}
.cmp-price-them small { font-size: .7rem; font-weight: 500; color: var(--muted); display: block; margin-top: 2px; }

.cmp-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cmp-tag-us   { background: #F3E4DC; color: var(--brand); }
.cmp-tag-gray { background: var(--gray-100); color: var(--muted); }

.compare-savings {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    background: linear-gradient(135deg, #F3E4DC, #F3EAD4);
    border: 1.5px solid rgba(228, 36, 31,.2);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    flex-wrap: wrap;
}
.compare-savings-emoji { font-size: 2rem; flex-shrink: 0; }
.compare-savings-text strong { font-size: 1.05rem; color: var(--brand); font-weight: 800; display: block; }
.compare-savings-text p { font-size: .88rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }

/* ============================================================
   PRICING — VS BAR
   ============================================================ */
.price-vs-bar {
    background: linear-gradient(130deg, #17150F 0%, #221F17 60%, #1F1B12 100%);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-bottom: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.price-vs-bar::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(228, 36, 31,.13) 0%, transparent 65%);
    pointer-events: none;
}
.price-vs-left { position: relative; z-index: 1; }
.price-vs-left strong { font-size: 1.2rem; font-weight: 900; color: white; display: block; margin-bottom: 6px; }
.price-vs-left p { font-size: .88rem; color: rgba(255,255,255,.55); max-width: 380px; line-height: 1.5; }

.price-vs-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.price-vs-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 12px 20px;
    min-width: 120px;
}
.price-vs-chip.hl {
    background: var(--brand);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(228, 36, 31,.5);
}
.pvc-label { font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.price-vs-chip.hl .pvc-label { color: rgba(255,255,255,.8); }
.pvc-val   { font-size: 1.5rem; font-weight: 900; color: white; line-height: 1; }
.pvc-sub   { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 3px; }
.price-vs-chip.hl .pvc-sub { color: rgba(255,255,255,.7); }
.pvc-save  { font-size: .7rem; font-weight: 700; color: #86efac; margin-top: 3px; }

@media (max-width: 700px) {
    .price-vs-bar { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
    .price-vs-chips { width: 100%; }
    .price-vs-chip { flex: 1; min-width: 90px; padding: 10px 12px; }
    .compare-table { font-size: .83rem; }
    .compare-table thead th, .compare-table tbody td { padding: 12px 14px; }
    .compare-savings { padding: 18px 20px; }
}
