/* ============================================================
   MJC Job Board — LinkedIn-inspired layout, MJC brand
   Light theme. Clean. Conversion-focused.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand */
    --brand:        #0a66c2;   /* MJC primary blue */
    --brand-dark:   #004182;
    --brand-light:  #e8f0fe;
    --brand-grad:   linear-gradient(135deg, #0a66c2 0%, #7c3aed 100%);

    /* Surfaces */
    --bg:           #f3f2ee;   /* LinkedIn warm off-white */
    --bg-white:     #ffffff;
    --bg-card:      #ffffff;
    --bg-hover:     #f5f5f5;

    /* Text */
    --text:         #191919;
    --text-muted:   #666666;
    --text-dim:     #999999;

    /* Borders */
    --border:       #e0e0e0;
    --border-focus: #0a66c2;

    /* Status */
    --green:        #057642;
    --green-bg:     #e8f5ee;
    --amber:        #915907;
    --amber-bg:     #fdf3e3;
    --red:          #cc1016;

    /* Radius */
    --r-sm:   4px;
    --r-md:   8px;
    --r-lg:   12px;
    --r-xl:   16px;
    --r-pill: 50px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
    --shadow:    0 2px 8px rgba(0,0,0,0.10);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--brand-dark); }
img { display: block; max-width: 100%; }

.container { max-width: 1128px; margin: 0 auto; padding: 0 16px; }

/* ══════════════════════════════════════
   HEADER — LinkedIn style
══════════════════════════════════════ */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 8px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    margin-right: 4px;
}
.logo:hover { text-decoration: none; }
.logo-img {
    width: 36px; height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}
.logo-wordmark {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
}
.logo-wordmark span { color: var(--text); }

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    height: 52px;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    gap: 2px;
    text-decoration: none;
    cursor: pointer;
}
.nav-item:hover {
    color: var(--text);
    text-decoration: none;
    border-bottom-color: var(--text);
}
.nav-item svg, .nav-item .nav-icon { font-size: 1.25rem; line-height: 1; }

.nav-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin: 0 4px;
}
.nav-signin {
    padding: 6px 16px;
    border: 1.5px solid var(--brand);
    border-radius: var(--r-pill);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 4px;
    transition: all 0.15s;
    text-decoration: none;
}
.nav-signin:hover {
    background: var(--brand-light);
    text-decoration: none;
}
.nav-join {
    padding: 6px 16px;
    background: var(--brand);
    border: 1.5px solid var(--brand);
    border-radius: var(--r-pill);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 4px;
    transition: all 0.15s;
    text-decoration: none;
}
.nav-join:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    text-decoration: none;
    color: #fff;
}

.market-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid #c0d8f0;
    letter-spacing: 0.04em;
    margin-right: 8px;
}

/* ══════════════════════════════════════
   HERO — Two column (form left, value right)
══════════════════════════════════════ */
.hero-section {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    background: var(--bg);
    padding: 48px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 64px;
    align-items: center;
}

/* ── Left: Value prop + Form ── */
.hero-left {}

.hero-headline {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--text);
}
.hero-headline .accent {
    color: var(--brand);
}
.hero-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Signup card */
.signup-card {
    background: var(--bg-white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}
.signup-card--iframe {
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}
.n8n-form-iframe {
    width: 100%;
    height: 1320px;
    border: none;
    border-radius: var(--r-xl);
    display: block;
    overflow: hidden;
}
.signup-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.signup-card-sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Form fields */
.form-row { margin-bottom: 14px; }
.form-row label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus, .form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}
.form-input::placeholder { color: var(--text-dim); }

/* CV upload zone */
.cv-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: var(--bg);
}
.cv-upload-zone:hover, .cv-upload-zone.dragover {
    border-color: var(--brand);
    background: var(--brand-light);
}
.cv-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.cv-upload-icon { font-size: 1.75rem; margin-bottom: 6px; }
.cv-upload-text { font-size: 0.8125rem; font-weight: 600; color: var(--brand); }
.cv-upload-hint { font-size: 0.6875rem; color: var(--text-dim); margin-top: 3px; }
.cv-file-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green);
    margin-top: 6px;
    display: none;
}

/* Frequency row */
.freq-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.freq-option {
    flex: 1;
    min-width: 0;
}
.freq-option input[type="radio"] { display: none; }
.freq-option label {
    display: block;
    text-align: center;
    padding: 8px 6px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    letter-spacing: 0;
}
.freq-option input[type="radio"]:checked + label {
    border-color: var(--brand);
    background: var(--brand-light);
    color: var(--brand);
}
.freq-option label:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* CTA button */
.btn-cta {
    width: 100%;
    padding: 14px;
    background: var(--brand-grad);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 16px rgba(10,102,194,0.3);
}
.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(10,102,194,0.4);
    color: #fff;
    text-decoration: none;
}
.btn-cta-arrow { font-size: 1.125rem; transition: transform 0.2s; }
.btn-cta:hover .btn-cta-arrow { transform: translateX(4px); }

/* T&Cs */
.signup-legal {
    font-size: 0.6875rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}
.signup-legal a { color: var(--text-muted); text-decoration: underline; }
.signup-legal a:hover { color: var(--brand); }

/* Already have account */
.signin-link {
    text-align: center;
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.signin-link a { font-weight: 600; }

/* Checkbox grid for multi-select (e.g. target countries) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px 12px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text);
    cursor: pointer;
    padding: 2px 0;
}
.checkbox-item input[type="checkbox"] {
    accent-color: var(--brand);
}

/* Form help text */
.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Hero CTA button (larger) */
.btn-cta--hero {
    font-size: 1.1rem;
    padding: 16px 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-sub {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-top: 8px;
    text-align: center;
}

/* ── Right: Value prop visual ── */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.value-headline {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
}
.value-headline .line-accent {
    color: var(--brand);
    display: block;
}

.value-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.value-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.vp-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.vp-text strong { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.vp-text span   { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }

/* Proof strip */
.proof-strip {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-number { font-size: 1.4rem; font-weight: 900; color: var(--brand); letter-spacing: -0.03em; }
.proof-label  { font-size: 0.6875rem; color: var(--text-dim); margin-top: 1px; }

/* ══════════════════════════════════════
   BELOW THE FOLD — Content sections
══════════════════════════════════════ */

/* Category strip */
.section-strip {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}
.section-strip-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.strip-label {
    flex-shrink: 0;
    min-width: 200px;
}
.strip-label h2 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.strip-label p  { font-size: 0.8125rem; color: var(--text-muted); }
.category-grid-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-pill {
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-white);
    transition: all 0.15s;
    text-decoration: none;
}
.cat-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
    text-decoration: none;
}

/* Jobs sections */
.jobs-section { padding: 40px 0; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-header h2 { font-size: 1.1rem; font-weight: 700; }
.section-header a  { font-size: 0.8125rem; }

.job-grid { display: grid; gap: 8px; }

/* ── Job Card ── */
.job-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 20px;
    color: var(--text);
    transition: box-shadow 0.15s, border-color 0.15s;
    position: relative;
}
.job-card:hover {
    box-shadow: var(--shadow);
    border-color: #aaa;
    text-decoration: none;
    color: var(--text);
}
.job-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.job-card-identity { flex: 1; min-width: 0; }

.company-logo-sm {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    object-fit: contain;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg);
}
.company-logo-placeholder {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: var(--brand-light);
    border: 1px solid #c0d8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8125rem;
    color: var(--brand);
    flex-shrink: 0;
}
.job-title   { font-size: 0.9375rem; font-weight: 700; margin-bottom: 2px; }
.company-name{ font-size: 0.8125rem; color: var(--text-muted); }

.match-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--r-md);
    background: var(--brand-light);
    border: 1px solid #c0d8f0;
    min-width: 50px;
    flex-shrink: 0;
}
.match-pct   { font-size: 0.875rem; font-weight: 800; color: var(--brand); line-height: 1; }
.match-label { font-size: 0.5625rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.job-card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.tag-remote  { background: var(--green-bg);  border-color: #a7d7b8; color: var(--green); }
.tag-featured{ background: var(--amber-bg);  border-color: #f0c070; color: var(--amber); }
.location    { font-size: 0.75rem; color: var(--text-dim); }

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.job-salary { font-weight: 700; font-size: 0.8125rem; color: var(--green); }
.posted-time { font-size: 0.75rem; color: var(--text-dim); }
.job-deadline { font-size: 0.6875rem; color: var(--amber, #c8810a); font-weight: 600; }
.match-cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    padding: 4px 12px;
    border: 1.5px solid var(--brand);
    border-radius: var(--r-pill);
    transition: all 0.15s;
}
.job-card:hover .match-cta { background: var(--brand-light); }

/* AI Tools */
.ai-tools-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}
.ai-tools-header { margin-bottom: 28px; }
.ai-tools-header h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.ai-tools-header p  { font-size: 0.8125rem; color: var(--text-muted); }
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.tool-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    transition: box-shadow 0.15s;
}
.tool-card:hover { box-shadow: var(--shadow); }
.tool-icon { font-size: 1.375rem; margin-bottom: 10px; }
.tool-card h3 { font-size: 0.8125rem; font-weight: 700; margin-bottom: 4px; }
.tool-card p  { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════
   BROWSE / LIST PAGE
══════════════════════════════════════ */
.page-header {
    background: var(--bg-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.page-header p  { font-size: 0.8125rem; color: var(--text-muted); }

.jobs-browse { padding: 24px 0; }
.browse-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }

.filters {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    position: sticky;
    top: 68px;
}
.filters-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.filter-group { margin-bottom: 12px; }
.filter-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.filter-input, .filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-white);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
}
.filter-input:focus, .filter-select:focus { border-color: var(--brand); }
.filter-divider { height: 1px; background: var(--border); margin: 12px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.875rem; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text-muted); background: transparent; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover { background: #045c32; text-decoration: none; color: #fff; }
.btn-full { width: 100%; }
.btn-lg   { padding: 12px 24px; font-size: 0.9375rem; }

.job-results { min-width: 0; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
}
.page-link { padding: 7px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--bg-white); color: var(--text-muted); font-size: 0.8125rem; font-weight: 600; transition: all 0.15s; }
.page-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); text-decoration: none; }
.page-info { color: var(--text-dim); font-size: 0.8125rem; }

.empty-state { text-align: center; padding: 48px 24px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r-xl); }
.empty-state-icon { font-size: 2.25rem; margin-bottom: 12px; opacity: 0.6; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 6px; }
.empty-state p  { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; }

/* ══════════════════════════════════════
   JOB DETAIL
══════════════════════════════════════ */
.job-detail { padding: 28px 0 60px; }
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

.detail-hero {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 16px;
}
.detail-header { display: flex; gap: 16px; align-items: flex-start; }
.company-logo-lg { width: 56px; height: 56px; border-radius: var(--r-md); object-fit: contain; border: 1px solid var(--border); flex-shrink: 0; }
.company-logo-lg-placeholder {
    width: 56px; height: 56px;
    border-radius: var(--r-md);
    background: var(--brand-light);
    border: 1px solid #c0d8f0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: var(--brand); flex-shrink: 0;
}
.detail-header h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.company-link { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 10px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.salary-display { font-size: 1.1rem; font-weight: 800; color: var(--green); }
.detail-meta { font-size: 0.75rem; color: var(--text-dim); display: flex; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px; }
.detail-deadline { color: var(--amber, #c8810a); font-weight: 600; }

.detail-body-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; margin-bottom: 16px; }
.detail-body-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.detail-body { font-size: 0.9375rem; line-height: 1.8; color: var(--text-muted); white-space: pre-line; }

/* Formatted job description — overrides pre-line when structured HTML is rendered */
.jd-formatted { white-space: normal; }
.jd-formatted h4.jd-section-header {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.jd-formatted h4.jd-section-header:first-child { margin-top: 0; }
.jd-formatted ul.jd-list {
    margin: 8px 0 16px 0;
    padding-left: 20px;
    list-style: disc;
}
.jd-formatted ul.jd-list li {
    margin-bottom: 6px;
    line-height: 1.6;
    color: var(--text-muted);
}
.jd-formatted p {
    margin: 0 0 12px 0;
    line-height: 1.8;
    color: var(--text-muted);
}
.jd-formatted p:last-child { margin-bottom: 0; }

.match-card {
    background: var(--bg-white);
    border: 2px solid var(--brand);
    border-radius: var(--r-xl);
    padding: 20px;
    margin-bottom: 12px;
}
.match-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.match-card p  { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.match-note { font-size: 0.6875rem; color: var(--text-dim); text-align: center; margin-top: 10px; }

.tailor-card { margin-bottom: 14px; }
.tailor-note { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; margin-top: 10px; }

.action-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px; margin-bottom: 12px; }
.action-card h3 { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 12px; }
.tools-list { list-style: none; }
.tools-list li { padding: 9px 0; font-size: 0.8125rem; border-bottom: 1px solid var(--border); color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.tools-list li:last-child { border: none; padding-bottom: 0; }
.tools-list li strong { color: var(--text); }
.tool-arrow { margin-left: auto; color: var(--text-dim); }
.tool-link { display: flex; align-items: center; gap: 10px; width: 100%; text-decoration: none; color: inherit; }
.tool-link:hover { color: var(--brand); }

.related-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 32px 0 20px;
    margin-top: 48px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.footer-brand .logo-img { width: 30px; height: 30px; }
.footer-brand p { font-size: 0.8125rem; color: var(--text-muted); margin-top: 8px; max-width: 200px; line-height: 1.5; }
.footer-col h4 { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 3px 0; }
.footer-col a  { font-size: 0.8125rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-dim); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--text-dim); margin: 0 6px; }
.footer-bottom a:hover { color: var(--brand); }

/* ══════════════════════════════════════
   LANGUAGE TOGGLE
══════════════════════════════════════ */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    margin-right: 4px;
}
.lang-btn {
    padding: 3px 8px;
    border: none;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    transition: all 0.15s;
    line-height: 1;
    letter-spacing: 0.03em;
}
.lang-btn.active {
    background: var(--brand);
    color: #fff;
}
.lang-btn:hover:not(.active) {
    background: var(--brand-light);
    color: var(--brand);
}
.lang-sep { font-size: 0.6875rem; color: var(--border); }

/* Google Translate widget — blend into nav */
#google_translate_element { display: inline-block; vertical-align: middle; }
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget .goog-te-combo {
    font-family: inherit;
    font-size: 0.8125rem;
    padding: 4px 8px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}
/* Hide Google Translate top banner bar that pushes page down.
   Keep the in-nav dropdown (#google_translate_element) visible. */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ══════════════════════════════════════
   MATCH CARDS STACK (Hero right column)
══════════════════════════════════════ */
.match-cards-stack {
    width: 100%;
}
.stack-notification {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--green-bg);
    border: 1px solid #a7d7b8;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 14px;
}
.notif-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: notif-pulse 2s ease infinite;
}
@keyframes notif-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.7; }
}

/* Card stack container — relative so cards can overlap via rotation */
.cards-container {
    position: relative;
    height: 240px;
    margin-bottom: 12px;
}

/* Shared preview card styles */
.preview-card {
    position: absolute;
    left: 0; right: 0; top: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transform-origin: bottom center;
    transition: transform 0.3s ease;
}

/* Back card 2 — rotated right, peeking out */
.preview-card--back2 {
    z-index: 1;
    transform: rotate(5deg) translateX(10px);
    filter: brightness(0.92);
    pointer-events: none;
}
/* Back card 1 — rotated left slightly, peeking out other side */
.preview-card--back1 {
    z-index: 2;
    transform: rotate(-3deg) translateX(-6px);
    filter: brightness(0.96);
    pointer-events: none;
}
/* Front card — flat, fully visible */
.preview-card--front {
    z-index: 3;
    transform: rotate(0);
}
/* Hover: spread the fan more */
.cards-container:hover .preview-card--back1 { transform: rotate(-5deg) translateX(-12px); }
.cards-container:hover .preview-card--back2 { transform: rotate(8deg) translateX(16px); }

/* "New match" badge on front card */
.pc-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-light);
    border: 1px solid #c0d8f0;
    border-radius: var(--r-pill);
    padding: 2px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

/* Card header row */
.pc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.pc-logo {
    width: 36px; height: 36px;
    border-radius: var(--r-md);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
}
.pc-logo--accent {
    background: var(--brand-light);
    border-color: #c0d8f0;
    color: var(--brand);
}
.pc-identity { flex: 1; min-width: 0; }
.pc-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.pc-company { font-size: 0.75rem; color: var(--text-muted); }

/* Match score on card */
.pc-score {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    border: 2.5px solid;
}
.pc-score--high  { color: var(--green);  border-color: var(--green);  background: var(--green-bg); }
.pc-score--mid   { color: var(--amber);  border-color: var(--amber);  background: var(--amber-bg); }
.pc-score--low   { color: var(--text-muted); border-color: var(--border); background: var(--bg); }

/* Card tags */
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pc-tag {
    font-size: 0.6875rem;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
}
.pc-tag--salary { color: var(--green); background: var(--green-bg); border-color: #a7d7b8; font-weight: 700; }

/* CTA line on front card */
.pc-cta {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand);
    border-top: 1px solid var(--border);
    padding-top: 8px;
    cursor: pointer;
}
.pc-cta:hover { text-decoration: underline; }

.stack-caption { font-size: 0.75rem; color: var(--text-dim); text-align: center; margin-top: 4px; }

/* Employers strip */
.employers-strip { background: #eef4fb !important; }
.employers-strip .strip-label h2 { font-size: 1.1rem; }

/* Employer page — "What happens next" */
.what-happens-next {
    margin-top: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 20px;
}
.whn-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.whn-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.whn-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.whn-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ══════════════════════════════════════
   HERO RIGHT — AI Tool Quick-Launch Grid
══════════════════════════════════════ */
.tools-quick-header {
    width: 100%;
}
.tools-quick-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 4px;
}
.tools-quick-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.tools-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.tool-quick-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.tool-quick-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand);
    background: var(--brand-light);
    text-decoration: none;
    color: var(--text);
}
.tqc-icon {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 2px;
}
.tqc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.tqc-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}
.tools-quick-pricing-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin-top: 4px;
    text-decoration: none;
}
.tools-quick-pricing-link:hover {
    text-decoration: underline;
    color: var(--brand-dark);
}

/* ══════════════════════════════════════
   PRICING PAGE
══════════════════════════════════════ */
.pricing-page { padding: 48px 0 64px; }

.pricing-hero {
    text-align: center;
    margin-bottom: 48px;
}
.pricing-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 8px;
}
.pricing-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.pricing-card--recommended {
    border: 2px solid var(--brand);
    position: relative;
}
.pricing-card--recommended::before {
    content: 'Most Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 14px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.pricing-card-header {}
.pricing-plan-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.pricing-price {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}
.pricing-tagline {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 6px;
}
.pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.pricing-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}
.btn-mobile-money {
    background: #2e7d32; color: #fff; border-color: #2e7d32;
}
.btn-mobile-money:hover {
    background: #1b5e20; border-color: #1b5e20; text-decoration: none; color: #fff;
}

/* ══════════════════════════════════════
   CHECKOUT — Success / Cancel pages
══════════════════════════════════════ */
.checkout-result {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    background: var(--bg);
}
.checkout-result-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.checkout-icon {
    font-size: 48px;
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-weight: 700;
}
.checkout-result--success .checkout-icon { background: #e8f5e9; color: #2e7d32; }
.checkout-result--cancel .checkout-icon  { background: #fbe9e7; color: #c62828; }
.checkout-result-card h1 { font-size: 24px; margin-bottom: 12px; }
.checkout-result-card p  { color: var(--text-muted); margin-bottom: 32px; }
.checkout-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════
   AUTH — Register / Login
══════════════════════════════════════ */
.auth-section {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    padding: 48px 0;
    background: var(--bg);
}
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 64px;
    align-items: center;
}
.auth-left {}
.auth-value-headline {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--text);
}
.auth-value-headline .line-accent {
    color: var(--brand);
    display: block;
}
.auth-right {}
.auth-card {
    background: var(--bg-white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.auth-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.auth-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Narrow layout for login page */
.auth-section--narrow {
    align-items: flex-start;
    padding-top: 64px;
}
.auth-narrow-wrap {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

/* Two-column form row (first/last name) */
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* User type radio buttons */
.user-type-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.user-type-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s;
    margin-bottom: 0;
}
.user-type-option:hover { border-color: var(--brand); color: var(--brand); }
.user-type-option input[type="radio"] { accent-color: var(--brand); }
.user-type-option input[type="radio"]:checked + span { color: var(--brand); font-weight: 700; }

/* Form error message */
.form-error {
    display: block;
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
}

/* Alert messages */
.alert {
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.alert-success { background: var(--green-bg); color: var(--green); border-color: #a7d7b8; }
.alert-error, .alert-danger { background: #fdecea; color: var(--red); border-color: #f5c2c7; }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: #f0c070; }
.alert-info { background: var(--brand-light); color: var(--brand); border-color: #c0d8f0; }

/* ══════════════════════════════════════
   DASHBOARD
══════════════════════════════════════ */
.dashboard-section {
    padding: 32px 0 64px;
    background: var(--bg);
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.dashboard-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.dashboard-sub { font-size: 14px; color: var(--text-muted); }

/* Stats row */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-icon { font-size: 24px; flex-shrink: 0; }
.stat-body {}
.stat-value { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.stat-value--muted { color: var(--text-dim); }
.stat-label { font-size: 12px; color: var(--text-dim); }
.stat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
}
.stat-badge--green { background: var(--green-bg); color: var(--green); }
.stat-badge--grey  { background: var(--bg); border: 1px solid var(--border); color: var(--text-dim); }

/* Main dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}
.dashboard-main {}
.dashboard-sidebar {}

/* Dashboard cards */
.dashboard-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.dashboard-card:last-child { margin-bottom: 0; }
.dashboard-card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 14px;
}

/* Action card (CV upload, Telegram) */
.dashboard-card--action {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 2px dashed var(--border);
    background: var(--bg);
}
.dca-icon { font-size: 28px; flex-shrink: 0; }
.dca-body {}
.dca-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.dca-body p  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.dca-note { font-size: 11px; color: var(--text-dim); display: block; margin-top: 6px; }

/* Small empty state */
.empty-state--sm {
    padding: 24px;
    text-align: center;
}
.empty-state--sm .empty-state-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.6; }
.empty-state--sm p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

/* Account details list */
.account-details {
    list-style: none;
}
.account-details li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}
.account-details li:last-child { border: none; }
.ad-label { color: var(--text-dim); flex-shrink: 0; }
.ad-value  { color: var(--text); font-weight: 500; text-align: right; word-break: break-all; }

/* Referral card */
.dashboard-card--referral {}
.referral-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.referral-link-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.referral-link-input {
    flex: 1;
    font-size: 12px !important;
    padding: 8px 10px !important;
    color: var(--text-muted) !important;
}
.referral-copy-btn { flex-shrink: 0; padding: 8px 14px; font-size: 13px; }
.referral-code-display { font-size: 12px; color: var(--text-dim); }
.referral-code-display strong { color: var(--brand); }

/* ══════════════════════════════════════
   HAMBURGER / MOBILE NAV
══════════════════════════════════════ */

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: var(--r-md);
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.nav-hamburger:hover { background: var(--bg-hover); }

/* The three bars */
.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* X animation when nav is open — targets the button when aria-expanded=true */
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav header strip — "Menu" label + close button */
.mobile-nav-header {
    display: none; /* shown via media query */
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.mobile-nav-close {
    background: transparent;
    border: none;
    font-size: 1.125rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    line-height: 1;
    transition: background 0.15s;
}
.mobile-nav-close:hover { background: var(--bg-hover); color: var(--text); }

/* Overlay backdrop behind the mobile drawer */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 198;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { order: -1; }
    .hero-section { min-height: auto; padding: 32px 0; }
    .browse-layout { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .section-strip-inner { flex-direction: column; gap: 16px; }
    .strip-label { min-width: unset; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    /* Auth */
    .auth-layout { grid-template-columns: 1fr; gap: 32px; }
    .auth-left { display: none; }  /* Hide value prop on small screens */
    .auth-section { min-height: auto; padding: 32px 0; }
    /* Dashboard */
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
    .dashboard-grid  { grid-template-columns: 1fr; }

    /* ── Hamburger: show button, convert nav to drawer ── */
    .nav-hamburger {
        display: flex;
    }

    /* Main nav becomes a fixed right-side drawer, completely hidden */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--bg-white);
        border-left: 1px solid var(--border);
        z-index: 199;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        overflow-y: auto;
        padding-bottom: 32px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.28s ease, visibility 0.28s ease;
    }

    /* Drawer open state */
    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Mobile nav header strip visible inside drawer */
    .mobile-nav-header {
        display: flex;
    }

    /* Nav items inside drawer — full-width rows */
    .main-nav .nav-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.9375rem;
        font-weight: 600;
        border-bottom: 1px solid var(--border);
        border-bottom-width: 1px;
        border-left: none;
        gap: 12px;
        width: 100%;
        color: var(--text);
    }
    .main-nav .nav-item:last-of-type { border-bottom: none; }
    .main-nav .nav-item:hover {
        background: var(--bg-hover);
        border-bottom-color: var(--border);
        color: var(--brand);
    }
    /* All nav items visible in drawer (desktop hides some) */
    .main-nav .nav-item { display: flex; }
    .main-nav .nav-item.show-mobile { display: flex; }

    /* Nav icon size in drawer */
    .main-nav .nav-item .nav-icon { font-size: 1.125rem; }

    /* Divider becomes a horizontal rule in the drawer */
    .nav-divider {
        width: auto;
        height: 1px;
        background: var(--border);
        margin: 8px 0;
    }

    /* Market badge — left-aligned in drawer */
    .market-badge {
        margin: 8px 20px;
        align-self: flex-start;
    }

    /* Language toggle — left-aligned in drawer */
    .lang-toggle {
        margin: 8px 20px;
        align-self: flex-start;
    }

    /* Auth buttons — full-width in drawer */
    .nav-signin,
    .nav-join {
        display: block;
        text-align: center;
        margin: 6px 20px;
        min-height: 44px;
        line-height: 44px;
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .hero-headline { font-size: 1.6rem; }
    .value-headline { font-size: 1.8rem; }
    .footer-top { grid-template-columns: 1fr; }
    .proof-strip { gap: 16px; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .freq-options { gap: 6px; }
    .tools-quick-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    /* Auth */
    .form-row-split { grid-template-columns: 1fr; }
    /* Dashboard */
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   TOUCH TARGETS — min 44px on mobile
══════════════════════════════════════ */
@media (max-width: 900px) {
    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
    }

    /* Restore decorative / inline elements that must not be stretched */
    input[type="radio"],
    input[type="checkbox"],
    input[type="hidden"] {
        min-height: 0;
    }

    /* Nav links in drawer get proper block padding */
    .main-nav .nav-item,
    .main-nav .nav-signin,
    .main-nav .nav-join {
        min-height: 44px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Inline / decorative anchors that should not expand */
    .logo,
    .footer-col a,
    .footer-bottom a {
        min-height: 0;
    }
}

/* ══════════════════════════════════════
   AI-POWERED CAREER SERVICES — Homepage section
══════════════════════════════════════ */

/* Section wrapper reuses .ai-tools-section from above; override header copy here */
.ai-tools-section .ai-tools-header h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.ai-tools-section .ai-tools-header p {
    font-size: 14px;
    max-width: 560px;
}

/* Category block — label + card row */
.ait-category-block {
    margin-bottom: 32px;
}
/* ── AI-Powered Career Services (matches myjobconcierge.com design) ── */
.ai-tools-section {
    padding: 60px 0;
    background: var(--bg);
}
.ai-tools-header {
    text-align: center;
    margin-bottom: 48px;
}
.ai-tools-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.ai-tools-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.ait-category-block {
    margin-bottom: 48px;
}
.ait-category-heading {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 28px;
}

/* Card grids — 4-col and 3-col variants */
.ait-card-grid {
    display: grid;
    gap: 24px;
    justify-items: center;
}
.ait-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ait-card-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }

/* Individual tool card — matches myjobconcierge.com purple circle icon style */
.ait-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 32px 20px 28px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    width: 100%;
}
.ait-home-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    text-decoration: none;
    color: var(--text);
}
.ait-home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3e8ff;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 12px;
}
.ait-home-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.ait-home-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}
.ait-home-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}
.ait-home-card:hover .ait-home-link {
    opacity: 1;
    color: var(--brand-dark);
}

/* Section footer — pricing link */
.ait-home-footer {
    text-align: center;
    padding-top: 8px;
}

/* ══════════════════════════════════════
   AI TOOL DETAIL PAGE
══════════════════════════════════════ */

/* Breadcrumb bar */
.ait-breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.ait-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ait-crumb-link {
    font-size: 13px;
    color: var(--brand);
    text-decoration: none;
}
.ait-crumb-link:hover { text-decoration: underline; }
.ait-crumb-sep {
    font-size: 13px;
    color: var(--text-dim);
}
.ait-crumb-current {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero */
.ait-hero {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 40px;
}
.ait-hero-inner {
    max-width: 680px;
}
.ait-hero-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
}
.ait-hero-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 8px;
}
.ait-hero-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 12px;
}
.ait-hero-tagline {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 560px;
}
.ait-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Main body layout */
.ait-body {
    padding: 32px 0 60px;
}
.ait-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
.ait-main {}
.ait-sidebar {}

/* Content cards */
.ait-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 16px;
}
.ait-card:last-child { margin-bottom: 0; }

.ait-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 14px;
}

/* Description paragraphs */
.ait-para {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.ait-para:last-child { margin-bottom: 0; }

/* Feature list */
.ait-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ait-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.ait-feature-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* How it works — 3 numbered steps */
.ait-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ait-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ait-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.ait-step-body strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.ait-step-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Sidebar CTA card */
.ait-cta-card {
    background: var(--bg-white);
    border: 2px solid var(--brand);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}
.ait-cta-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 12px;
}
.ait-cta-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.ait-cta-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}
.ait-cta-note {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 10px;
    line-height: 1.5;
}

/* Sidebar related tools card */
.ait-related-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px;
}
.ait-related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ait-related-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.12s;
}
.ait-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.ait-related-item:hover { text-decoration: none; }
.ait-related-item:hover .ait-related-body strong { color: var(--brand); }
.ait-related-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.ait-related-body {
    flex: 1;
    min-width: 0;
}
.ait-related-body strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    transition: color 0.12s;
}
.ait-related-body span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}
.ait-related-arrow {
    font-size: 16px;
    color: var(--text-dim);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Bottom strip */
.ait-bottom-strip {
    margin-top: 0 !important;
}

/* ── Responsive: AI tools ── */
@media (max-width: 1024px) {
    .ait-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ait-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .ait-layout { grid-template-columns: 1fr; }
    .ait-sidebar { order: -1; }
    .ait-cta-card { text-align: left; }
    .ait-cta-icon { display: none; }
    .ait-hero-ctas { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
    .ait-card-grid--4,
    .ait-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .ait-card-grid--4,
    .ait-card-grid--3 { grid-template-columns: 1fr; }
    .ait-hero { padding: 32px 0 24px; }
    .ait-hero-title { font-size: 1.4rem; }
}
