/* ============================================================
   WritingZap — Editorial Design System (site.css)
   Public / marketing website only. Dashboard is fully separate.
   Theme: warm "paper" editorial — Fraunces serif + DM Sans,
   deep forest green + amber ochre, dark contrast bands.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Fonts */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Paper / surfaces */
    --paper: #FBF8F1;
    --paper-alt: #F3ECDE;
    --paper-deep: #EDE4D2;
    --surface: #FFFFFF;
    --surface-warm: #FEFCF7;

    /* Ink (warm neutrals) */
    --ink: #211C15;
    --ink-soft: #524c40;
    --ink-mute: #8a8072;
    --line: #E5DCC9;
    --line-soft: #EFE8D9;
    --line-strong: #D6C9AF;

    /* Forest (primary) */
    --forest: #1F4A3A;
    --forest-deep: #143026;
    --forest-mid: #2C6149;
    --forest-tint: #E8EFE9;
    --forest-100: #D2E0D5;

    /* Amber (accent) */
    --amber: #D68A38;
    --amber-deep: #B96C22;
    --amber-soft: #F0B267;
    --amber-tint: #FaEEDA;

    /* Dark band */
    --dark: #16261F;
    --dark-2: #1E3329;
    --dark-3: #274235;
    --dark-line: rgba(255, 255, 255, 0.14);
    --dark-ink: #F4EFE3;
    --dark-mute: #A9B7AC;

    /* Status */
    --success: #3C7A56;
    --success-tint: #E4EFE7;
    --warning: #C1841F;
    --warning-tint: #F8EED6;
    --danger: #B24328;
    --danger-tint: #F6E3DC;
    --info: #3B6A8C;
    --info-tint: #E1ebf1;

    /* Radii — crisp editorial */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Shadows — soft, warm-tinted */
    --shadow-xs: 0 1px 2px rgba(33, 28, 21, 0.05);
    --shadow-sm: 0 3px 10px rgba(33, 28, 21, 0.06);
    --shadow: 0 8px 24px rgba(33, 28, 21, 0.08);
    --shadow-lg: 0 20px 48px rgba(33, 28, 21, 0.12);
    --shadow-xl: 0 34px 74px rgba(33, 28, 21, 0.16);

    --container: 1200px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.16s ease;

    /* -------- legacy aliases (keep lingering inline var() refs working) -------- */
    --primary: var(--forest);
    --primary-dark: var(--forest-deep);
    --primary-darker: var(--forest-deep);
    --primary-light: var(--forest-mid);
    --primary-50: var(--forest-tint);
    --primary-100: var(--forest-100);
    --primary-glow: rgba(31, 74, 58, 0.28);
    --accent: var(--amber);
    --accent-dark: var(--amber-deep);
    --accent-glow: rgba(214, 138, 56, 0.3);
    --secondary: var(--amber);
    --body-bg: var(--paper);
    --card-bg: var(--surface);
    --white: #FFFFFF;
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --text-muted: var(--ink-mute);
    --border-color: var(--line);
    --radius-2xl: var(--radius-xl);
    --shadow-md: var(--shadow);
    --shadow-card: var(--shadow-sm);
    --shadow-primary: 0 12px 30px rgba(31, 74, 58, 0.24);
    --success-light: var(--success-tint);
    --warning-light: var(--warning-tint);
    --danger-light: var(--danger-tint);
    --info-light: var(--info-tint);
    --max-width: var(--container);
    --gray-50: #F6F1E7;
    --gray-100: #EFE8DA;
    --gray-200: var(--line);
    --gray-300: var(--line-strong);
    --gray-400: #B7AC97;
    --gray-500: var(--ink-mute);
    --gray-600: #6E665A;
    --gray-700: var(--ink-soft);
    --gray-800: #353027;
    --gray-900: var(--ink);
    --glass-bg: rgba(251, 248, 241, 0.82);
    --glass-border: rgba(214, 201, 175, 0.5);
    --glass-blur: blur(14px);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--forest);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--forest-deep);
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--forest);
    color: var(--paper);
}

/* Warm scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--paper-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
    border: 3px solid var(--paper-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-mute);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 560;
    line-height: 1.1;
    letter-spacing: -0.015em;
    font-optical-sizing: auto;
}

h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.4rem);
    font-weight: 540;
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
}

h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

h4 {
    font-size: 1.18rem;
}

h5 {
    font-size: 1.02rem;
}

h6 {
    font-size: 0.9rem;
}

p {
    color: var(--ink-soft);
}

.lead {
    font-size: clamp(1.06rem, 1.6vw, 1.28rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Serif-italic accent (replaces old gradient-text) */
.gradient-text,
.serif-accent {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--amber-deep);
}

/* Eyebrow / section label */
.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest-mid);
    margin-bottom: 1.1rem;
}

.eyebrow::before,
.section-label::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--amber);
}

.section-label i,
.section-label .ph,
.section-label [class^="ph-"] {
    color: var(--amber);
}

.eyebrow.centered::before {
    display: none;
}

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

.container-narrow {
    max-width: 820px;
}

.section {
    padding: 5.5rem 0;
    position: relative;
}

.section-sm {
    padding: 3.5rem 0;
}

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

.section-paper-deep {
    background: var(--paper-deep);
}

/* Dark contrast band */
.section-dark {
    background: var(--dark);
    color: var(--dark-ink);
    position: relative;
    overflow: hidden;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--dark-ink);
}

.section-dark p {
    color: var(--dark-mute);
}

.section-dark .section-label,
.section-dark .eyebrow {
    color: var(--amber-soft);
}

.section-dark .section-label::before,
.section-dark .eyebrow::before {
    background: var(--amber-soft);
}

.section-dark a {
    color: var(--amber-soft);
}

.section-dark .lead {
    color: var(--dark-ink);
}

/* Keep secondary text legible on dark bands — beats equal-specificity component
   defaults (e.g. .section-header p, .text-muted) that would otherwise be dark-on-dark */
.section-dark .section-header p,
.section-dark .text-muted,
.section-dark .text-secondary,
.section-dark .form-hint,
.section-dark .testimonial-card .author-company {
    color: var(--dark-mute);
}

/* Section headers */
.section-header {
    max-width: 680px;
    margin: 0 0 3rem;
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header.centered .section-label,
.section-header.centered .eyebrow {
    justify-content: center;
}

.section-header h1,
.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--ink-soft);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.gap-5 {
    gap: 2.5rem;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

/* Split (asymmetric editorial layout) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split.wide-left {
    grid-template-columns: 1.15fr 0.85fr;
}

.split.wide-right {
    grid-template-columns: 0.85fr 1.15fr;
}

/* Divider rule */
.rule {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 2rem 0;
}

.rule-dark {
    background: var(--dark-line);
}

/* ---------- Spacing / text utilities ---------- */
.mt-1 {
    margin-top: .5rem
}

.mt-2 {
    margin-top: 1rem
}

.mt-3 {
    margin-top: 1.5rem
}

.mt-4 {
    margin-top: 2rem
}

.mt-5 {
    margin-top: 2.5rem
}

.mb-0 {
    margin-bottom: 0
}

.mb-1 {
    margin-bottom: .5rem
}

.mb-2 {
    margin-bottom: 1rem
}

.mb-3 {
    margin-bottom: 1.5rem
}

.mb-4 {
    margin-bottom: 2rem
}

.mb-5 {
    margin-bottom: 2.5rem
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-xs {
    font-size: 0.76rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-muted {
    color: var(--ink-mute);
}

.text-secondary {
    color: var(--ink-soft);
}

.text-primary {
    color: var(--forest);
}

.text-accent {
    color: var(--amber-deep);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-display {
    font-family: var(--font-display);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hide-mobile {
    display: initial;
}

.show-mobile {
    display: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

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

.btn i,
.btn .ph,
.btn [class^="ph-"] {
    font-size: 1.1em;
}

.btn-primary {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}

.btn-primary:hover {
    background: var(--forest-deep);
    border-color: var(--forest-deep);
    color: var(--paper);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn-accent {
    background: var(--amber);
    color: #2c1c07;
    border-color: var(--amber);
}

.btn-accent:hover {
    background: var(--amber-deep);
    border-color: var(--amber-deep);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

.btn-outline:hover {
    background: var(--forest);
    color: var(--paper);
}

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

.btn-ghost:hover {
    background: rgba(33, 28, 21, 0.06);
    color: var(--ink);
}

.btn-light {
    background: var(--paper);
    color: var(--forest);
    border-color: var(--paper);
}

.btn-light:hover {
    background: #fff;
    color: var(--forest-deep);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.95rem 1.75rem;
    font-size: 1.02rem;
}

.btn-xl {
    padding: 1.1rem 2.1rem;
    font-size: 1.06rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* dark-section button variants */
.section-dark .btn-secondary,
.cta-section .btn-secondary {
    color: var(--dark-ink);
    border-color: var(--dark-line);
}

.section-dark .btn-secondary:hover,
.cta-section .btn-secondary:hover {
    background: var(--paper);
    color: var(--forest-deep);
    border-color: var(--paper);
}

.section-dark .btn-outline,
.cta-section .btn-outline {
    color: var(--amber-soft);
    border-color: var(--amber-soft);
}

.section-dark .btn-outline:hover,
.cta-section .btn-outline:hover {
    background: var(--amber-soft);
    color: var(--dark);
}

/* CSS button spinner (used by site.js on submit) */
.btn-spinner {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    display: inline-block;
    animation: btn-spin 0.6s linear infinite;
}

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

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card-hover:hover,
a.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.card-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 560;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
}

.card-header i,
.card-header .ph,
.card-header [class^="ph-"] {
    color: var(--forest-mid);
}

.card-body {
    padding: 1.4rem;
}

.card-glass {
    background: var(--surface-warm);
    border: 1px solid var(--line);
}

/* ---------- Badges & Chips ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    line-height: 1.2;
    border: 1px solid transparent;
}

.badge-primary {
    background: var(--forest-tint);
    color: var(--forest-deep);
    border-color: var(--forest-100);
}

.badge-success {
    background: var(--success-tint);
    color: var(--success);
    border-color: #C7DFCF;
}

.badge-warning {
    background: var(--warning-tint);
    color: var(--warning);
    border-color: #EAD9AE;
}

.badge-danger {
    background: var(--danger-tint);
    color: var(--danger);
    border-color: #E9C9BF;
}

.badge-info {
    background: var(--info-tint);
    color: var(--info);
    border-color: #C9DAE6;
}

.badge-secondary {
    background: var(--amber-tint);
    color: var(--amber-deep);
    border-color: #EFD9B4;
}

.badge-gray {
    background: var(--paper-deep);
    color: var(--ink-soft);
    border-color: var(--line-strong);
}

/* Chip / tag — bordered editorial pill */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.32rem 0.7rem;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.catChip {
    margin-bottom: 15px;
}

a.chip:hover {
    border-color: var(--forest);
    color: var(--forest);
    background: var(--forest-tint);
}

.section-dark .chip {
    color: var(--dark-mute);
    border-color: var(--dark-line);
}

/* ---------- Avatars ---------- */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--forest);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar-sm {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 2.2rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Availability dot */
.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: var(--ink-mute);
}

.availability-dot.open {
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-tint);
}

.availability-dot.booked {
    background: var(--warning);
    box-shadow: 0 0 0 3px var(--warning-tint);
}

.availability-dot.not_looking {
    background: var(--ink-mute);
}

/* Verified badge */
.verified-badge {
    color: var(--forest-mid);
    font-size: 0.9em;
    display: inline-flex;
}

.verified-badge i,
.verified-badge .ph,
.verified-badge [class^="ph-"] {
    color: var(--forest-mid);
}

/* ---------- Media Placeholders (dummy graphics) ---------- */
.ph-media {
    position: relative;
    background: var(--forest-tint);
    background-image:
        repeating-linear-gradient(-45deg, transparent, transparent 13px, rgba(31, 74, 58, 0.045) 13px, rgba(31, 74, 58, 0.045) 14px);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--forest-mid);
    text-align: center;
    padding: 1.5rem;
    min-height: 200px;
    overflow: hidden;
}

.ph-media i,
.ph-media .ph,
.ph-media [class^="ph-"] {
    font-size: 2.4rem;
    opacity: 0.8;
}

.ph-media .ph-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.ph-media .ph-dim {
    font-size: 0.72rem;
    color: var(--ink-mute);
    font-family: var(--font-sans);
}

.ph-media.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.ph-media.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.ph-media.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.ph-media.ratio-3-4 {
    aspect-ratio: 3 / 4;
}

.ph-media.dark {
    background: var(--dark-2);
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 13px, rgba(255, 255, 255, 0.04) 13px, rgba(255, 255, 255, 0.04) 14px);
    border-color: var(--dark-line);
    color: var(--amber-soft);
}

.ph-media.dark .ph-dim {
    color: var(--dark-mute);
}

.ph-media.amber {
    background: var(--amber-tint);
    border-color: #E7CFA1;
    color: var(--amber-deep);
}

/* Avatar placeholder circle */
.ph-avatar {
    border-radius: 50%;
    background: var(--forest-tint);
    border: 1.5px dashed var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-mid);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-label,
label.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0.72rem 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-control::placeholder {
    color: var(--ink-mute);
}

.form-control:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px var(--forest-tint);
}

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23524c40' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-top: 0.4rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.4rem;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

/* Search input */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i,
.search-input-wrapper .ph,
.search-input-wrapper [class^="ph-"] {
    position: absolute;
    left: 0.9rem;
    color: var(--ink-mute);
    font-size: 1.05rem;
    pointer-events: none;
}

.search-input-wrapper .form-control {
    padding-left: 2.5rem !important;
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert i,
.alert .ph,
.alert [class^="ph-"] {
    font-size: 1.2rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-tint);
    color: #285A3D;
    border-color: #BFD9C8;
}

.alert-danger {
    background: var(--danger-tint);
    color: #863020;
    border-color: #E6C5BA;
}

.alert-warning {
    background: var(--warning-tint);
    color: #7A5610;
    border-color: #E8D6AC;
}

.alert-info {
    background: var(--info-tint);
    color: #2C5170;
    border-color: #C6D8E4;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    font-size: 1.1rem;
}

.alert-close:hover {
    opacity: 1;
}

/* ---------- Tables ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th,
.table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.table th {
    font-weight: 600;
    color: var(--ink);
    background: var(--paper-alt);
}

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

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.comparison-table thead th {
    font-family: var(--font-display);
    font-weight: 560;
    background: var(--paper-alt);
    color: var(--ink);
}

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
    text-align: center;
}

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

.comparison-table .yes {
    color: var(--success);
    font-weight: 700;
}

.comparison-table .no {
    color: var(--ink-mute);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.pagination li a,
.pagination li span,
nav[role="navigation"] a,
nav[role="navigation"] span[aria-current],
nav[role="navigation"] span.disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
    text-decoration: none;
}

.pagination li a:hover,
nav[role="navigation"] a:hover {
    border-color: var(--forest);
    color: var(--forest);
    background: var(--forest-tint);
}

.pagination li.active span,
.pagination li .active,
nav[role="navigation"] span[aria-current] {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}

.pagination li.disabled span,
nav[role="navigation"] span.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(22, 38, 31, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   HEADER + NAV
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
    box-shadow: 0 6px 24px rgba(33, 28, 21, 0.08);
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: var(--glass-blur);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--forest);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    align-self: stretch;
}

.nav-link,
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-dropdown-trigger:hover {
    color: var(--forest);
    background: var(--forest-tint);
}

.nav-link.active,
.nav-dropdown-trigger.active {
    color: var(--forest);
    font-weight: 600;
}

.nav-dd-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-dd-arrow {
    transform: rotate(180deg);
}

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

.header-user-link {
    display: inline-flex;
}

/* Dropdowns */
.nav-dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.nav-drop-menu,
.nav-mega-menu {
    position: absolute;
    top: calc(100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.nav-dropdown.open .nav-drop-menu,
.nav-dropdown.open .nav-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-menu {
    left: 0;
    min-width: 290px;
    padding: 0.6rem;
}

.nav-drop-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.nav-drop-item:hover {
    background: var(--forest-tint);
    color: var(--ink);
}

.nav-drop-item>i,
.nav-drop-item>.ph,
.nav-drop-item>[class^="ph-"] {
    font-size: 1.15rem;
    color: var(--forest-mid);
    margin-top: 2px;
    width: 1.2rem;
    text-align: center;
}

.nav-drop-divider {
    height: 1px;
    background: var(--line);
    margin: 0.5rem 0.4rem;
}

.nav-mega-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.nav-mega-desc {
    font-size: 0.8rem;
    color: var(--ink-mute);
}

/* Mega menu */
.has-mega {
    position: static;
}

.nav-mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(900px, calc(100vw - 3rem));
    padding: 1.75rem;
}

.nav-dropdown.has-mega.open .nav-mega-menu {
    transform: translateX(-50%) translateY(0);
}

.nav-mega-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 1.75rem;
}

.nav-mega-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 0.9rem;
}

.nav-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.65rem;
    border-radius: var(--radius-sm);
    margin: 0 -0.65rem;
    color: var(--ink);
}

.nav-mega-item:hover {
    background: var(--forest-tint);
    color: var(--ink);
}

.nav-mega-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--forest-tint);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-mega-specialty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.nav-mega-specialty:hover {
    color: var(--forest);
}

.nav-mega-specialty i,
.nav-mega-specialty .ph,
.nav-mega-specialty [class^="ph-"] {
    color: var(--amber);
    width: 1.1rem;
    text-align: center;
}

.nav-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
}

.nav-mega-cta-col {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--dark-ink);
}

.nav-mega-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--amber-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.nav-mega-cta h4 {
    color: var(--dark-ink);
    margin-bottom: 0.4rem;
}

.nav-mega-cta p {
    color: var(--dark-mute);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 1.2rem;
}

/* ---------- Mobile Drawer ---------- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 38, 31, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 88vw);
    background: var(--paper);
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border-left: 1px solid var(--line);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.mobile-drawer-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--ink);
    font-size: 1.3rem;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.mobile-nav-section {
    border-bottom: 1px solid var(--line-soft);
}

.mobile-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 0;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.mobile-nav-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.mobile-nav-toggle span>i,
.mobile-nav-toggle span>.ph,
.mobile-nav-toggle span>[class^="ph-"] {
    color: var(--forest-mid);
}

.mobile-nav-arrow {
    transition: transform var(--transition-fast);
    font-size: 0.85rem;
    color: var(--ink-mute);
}

.mobile-nav-section.open .mobile-nav-arrow {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    padding-bottom: 0;
}

.mobile-nav-section.open .mobile-nav-submenu {
    max-height: 500px;
    padding-bottom: 0.5rem;
}

.mobile-nav-submenu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0 0.6rem 0.5rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.mobile-nav-submenu a:hover {
    color: var(--forest);
}

.mobile-nav-submenu a i,
.mobile-nav-submenu a .ph,
.mobile-nav-submenu a [class^="ph-"] {
    color: var(--amber);
    width: 1.1rem;
    text-align: center;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 0;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
}

.mobile-nav-link i,
.mobile-nav-link .ph,
.mobile-nav-link [class^="ph-"] {
    color: var(--forest-mid);
}

.mobile-drawer-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
    background: var(--paper);
}

.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(214, 138, 56, 0.14), transparent 65%);
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.2rem);
    font-weight: 500;
    line-height: 1.04;
    margin-bottom: 1.4rem;
}

.hero p {
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 560;
    color: var(--forest);
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin-top: 0.35rem;
}

/* Hero split (media on the side) */
.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-split .hero-media {
    position: relative;
}

/* Simple page hero (interior pages) */
.page-hero {
    padding: 4.5rem 0 3rem;
    background: var(--paper);
    position: relative;
    overflow: hidden;
}

.page-hero.centered {
    text-align: center;
}

.page-hero.centered .section-label,
.page-hero.centered .eyebrow {
    justify-content: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 640px;
}

.page-hero.centered p {
    margin-left: auto;
    margin-right: auto;
}

.page-hero.on-dark {
    background: var(--dark);
    color: var(--dark-ink);
}

.page-hero.on-dark h1 {
    color: var(--dark-ink);
}

.page-hero.on-dark p {
    color: var(--dark-mute);
}

.page-hero.on-dark::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -5%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(214, 138, 56, 0.16), transparent 65%);
}

.page-hero.on-dark .container {
    position: relative;
    z-index: 1;
}

/* ---------- Logo / social-proof strip ---------- */
.logo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-strip span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink-mute);
    opacity: 0.6;
}

.strip-label {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 1.75rem;
}

/* ============================================================
   NUMBERED STEPS
   ============================================================ */
.steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem 1.6rem;
    transition: var(--transition);
}

.step:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--amber);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.95rem;
}

.section-dark .step {
    background: var(--dark-2);
    border-color: var(--dark-line);
}

.section-dark .step-num {
    color: var(--amber-soft);
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.7rem;
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--forest-tint);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.feature-item h3 {
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
}

.feature-item p {
    font-size: 0.95rem;
}

.section-dark .feature-item {
    background: var(--dark-2);
    border-color: var(--dark-line);
}

.section-dark .feature-icon {
    background: rgba(214, 138, 56, 0.14);
    color: var(--amber-soft);
}

/* Checklist */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.check-list li,
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--ink-soft);
}

.check-list li i,
.check-item i,
.check-list li .ph,
.check-item .ph {
    color: var(--forest-mid);
    font-size: 1.15rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.section-dark .check-list li,
.section-dark .check-item {
    color: var(--dark-ink);
}

.section-dark .check-list li .ph,
.section-dark .check-list li i {
    color: var(--amber-soft);
}

/* ============================================================
   WRITER CARDS
   ============================================================ */
.writer-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    color: inherit;
    height: 100%;
}

.writer-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--line-strong);
    color: inherit;
}

.writer-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.writer-card-info {
    min-width: 0;
}

.writer-card-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 560;
    font-size: 1.15rem;
    color: var(--ink);
}

.writer-card-headline {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.writer-card-bio {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 1.1rem;
    flex: 1;
}

.writer-card-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.writer-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.writer-card-footer .availability-dot {
    margin-right: 0.4rem;
}

/* ============================================================
   JOB CARDS
   ============================================================ */
.job-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    transition: var(--transition);
    position: relative;
}

.job-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.job-card.featured {
    border-color: var(--amber);
    background: linear-gradient(180deg, var(--amber-tint) 0%, var(--surface) 60%);
}

.job-card.featured::before {
    content: "\2605 Featured";
    position: absolute;
    top: 0;
    right: 1.5rem;
    transform: translateY(-50%);
    background: var(--amber);
    color: #2c1c07;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.job-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 560;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.job-card-title a {
    color: var(--ink);
}

.job-card-title a:hover {
    color: var(--forest);
}

.job-card-company {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--ink-mute);
}

.job-card-pay {
    font-family: var(--font-display);
    font-weight: 560;
    color: var(--forest);
    font-size: 1.05rem;
    white-space: nowrap;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-bottom: 1rem;
}

.job-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.job-card-meta i,
.job-card-meta .ph,
.job-card-meta [class^="ph-"] {
    color: var(--forest-mid);
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 860px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured,
.pricing-card.popular {
    border-color: var(--forest);
    border-width: 1.5px;
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before,
.pricing-card.popular::before {
    content: "Most Popular";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--forest);
    color: var(--paper);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 560;
    margin-bottom: 0.4rem;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.pricing-price .amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 540;
    color: var(--ink);
    line-height: 1;
}

.pricing-price .period {
    font-size: 0.95rem;
    color: var(--ink-mute);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.75rem 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--line);
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.pricing-features li i,
.pricing-features li .ph,
.pricing-features li [class^="ph-"] {
    color: var(--forest-mid);
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-features li.muted {
    color: var(--ink-mute);
}

.pricing-features li.muted i,
.pricing-features li.muted .ph {
    color: var(--ink-mute);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    transition: var(--transition);
}

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

.testimonial-stars {
    display: flex;
    gap: 0.15rem;
    color: var(--amber);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.testimonial-card .quote {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-name,
.testimonial-card .author-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.author-company,
.testimonial-card .author-company {
    font-size: 0.82rem;
    color: var(--ink-mute);
}

.section-dark .testimonial-card {
    background: var(--dark-2);
    border-color: var(--dark-line);
}

.section-dark .testimonial-card .quote {
    color: var(--dark-ink);
}

.section-dark .author-name {
    color: var(--dark-ink);
}

/* Big pull-quote */
.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
}

.section-dark .pull-quote {
    color: var(--dark-ink);
}

.pull-quote .mark {
    color: var(--amber);
}

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    color: inherit;
    height: 100%;
}

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

.blog-card-image {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    background: var(--forest-tint);
    border-bottom: 1px solid var(--line);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-category {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--amber-deep);
    background: var(--amber-tint);
    border: 1px solid rgba(214,138,56,0.2);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.65rem;
    text-decoration: none;
    transition: var(--transition-fast);
}
.blog-card-category:hover { background: rgba(214,138,56,0.18); color: var(--amber-deep); }

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-mute);
    margin-bottom: 0.65rem;
}
.blog-card-date a { color: var(--forest); font-weight: 600; text-decoration: none; }
.blog-card-date a:hover { color: var(--forest-mid); }

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 560;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--forest); }

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--forest);
}

/* Article / prose (blog detail, sample, legal) */
.prose {
    max-width: 760px;
}

.prose>* {
    margin-bottom: 1.3rem;
}

.prose h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin: 2.5rem 0 1rem;
}

.prose h3 {
    margin: 2rem 0 0.75rem;
}

.prose p {
    color: var(--ink-soft);
    line-height: 1.8;
    font-size: 1.05rem;
}

.prose ul,
.prose ol {
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--ink-soft);
}

.prose ul li {
    list-style: disc;
}

.prose ol li {
    list-style: decimal;
}

.prose a {
    color: var(--forest);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose blockquote {
    border-left: 3px solid var(--amber);
    padding-left: 1.25rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
}

.prose img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.prose strong {
    color: var(--ink);
    font-weight: 600;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow);
}

.contact-info-card h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.contact-info-card h4 i,
.contact-info-card h4 .ph {
    color: var(--forest-mid);
}

.contact-dept-email {
    font-weight: 600;
    color: var(--forest);
    font-size: 0.92rem;
}

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

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--forest);
}

.faq-question::after {
    content: "\002B";
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: var(--amber);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    color: var(--ink-soft);
    line-height: 1.7;
    padding-bottom: 1.4rem;
}

/* ============================================================
   FILTER BAR / SEARCH
   ============================================================ */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-xs);
}

.filter-bar-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 140px;
}

.filter-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.filter-group .form-control {
    padding: 0.6rem 0.8rem;
}

.writer-search input {
    padding-left: 2.5rem !important;
}

.writer-search i {
    top: .8rem;
}

/* ============================================================
   FEATURED STRIP
   ============================================================ */
.featured-strip {
    margin-bottom: 2.5rem;
}

.featured-strip-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: 1.25rem;
}

.featured-strip-title i,
.featured-strip-title .ph {
    color: var(--amber);
}

/* ============================================================
   PROFILE (writer + job detail)
   ============================================================ */
.profile-hero {
    background: var(--dark);
    color: var(--dark-ink);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -5%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(214, 138, 56, 0.16), transparent 65%);
}

.profile-hero .container {
    position: relative;
    z-index: 1;
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 108px;
    height: 108px;
    border-radius: var(--radius-full);
    background: var(--forest-mid);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hero h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.4rem);
    color: var(--dark-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.profile-hero h1 .verified-badge {
    color: var(--amber-soft);
    font-size: 0.75em;
}

.profile-hero h1 .verified-badge i,
.profile-hero h1 .verified-badge .ph {
    color: var(--amber-soft);
}

.profile-hero .headline {
    color: var(--dark-mute);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.profile-hero-badges .badge-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-ink);
    border-color: var(--dark-line);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

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

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 96px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.info-row i,
.info-row .ph,
.info-row [class^="ph-"] {
    color: var(--forest-mid);
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

/* Sample cards */
.sample-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    color: inherit;
}

.sample-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: inherit;
}

.sample-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--forest-tint);
    border-bottom: 1px solid var(--line);
}

.sample-card-body {
    padding: 1.25rem;
}

.sample-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 560;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

/* ============================================================
   WRITER PROFILE — detailed sections
   ============================================================ */

/* Hero chips (status + specialties, on the dark hero) */
.profile-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.34rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.07);
    color: var(--dark-ink);
    border: 1px solid var(--dark-line);
    white-space: nowrap;
}

.hero-chip i,
.hero-chip .ph,
.hero-chip [class^="ph-"] {
    color: var(--dark-mute);
    font-size: 0.95em;
}

a.hero-chip {
    text-decoration: none;
    transition: var(--transition-fast);
}

a.hero-chip:hover {
    background: rgba(255, 255, 255, 0.13);
    color: var(--dark-ink);
}

a.hero-chip-accent {
    background: rgba(214, 138, 56, 0.15);
    border-color: rgba(214, 138, 56, 0.38);
    color: var(--amber-soft);
    text-decoration: none;
    transition: var(--transition-fast);
}

a.hero-chip-accent:hover {
    background: rgba(214, 138, 56, 0.26);
}

a.hero-chip-accent i,
a.hero-chip-accent .ph {
    color: var(--amber-soft);
}

/* Muted italic caption under a section */
.section-note {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--ink-mute);
    margin: 1.1rem 0 0;
}

/* Skill / proficiency bars */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.skill-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.skill-score {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--forest-deep);
    font-size: 0.92rem;
}

.skill-score span {
    color: var(--ink-mute);
    font-weight: 400;
}

.skill-track {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--paper-alt);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--forest-mid), var(--amber));
}

/* Tool tag row (uses .chip for each tag) */
.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

/* Experience timeline */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    position: relative;
    padding-left: 1.75rem;
    padding-bottom: 1.6rem;
    border-left: 2px solid var(--line);
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--forest-mid);
    border: 2px solid var(--surface);
}

.timeline-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin: 0.2rem 0 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.timeline-company {
    color: var(--forest-deep);
    font-weight: 600;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

/* Education list (main column) */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.edu-item+.edu-item {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.edu-degree {
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
}

.edu-school {
    color: var(--forest-deep);
    font-weight: 500;
    font-size: 0.92rem;
    margin-top: 0.15rem;
}

.edu-years {
    color: var(--ink-mute);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

/* Published Work & External Samples */
.ext-list {
    display: flex;
    flex-direction: column;
}

.ext-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0;
    border-top: 1px solid var(--line);
}

.ext-item:first-child {
    border-top: none;
    padding-top: 0.35rem;
}

.ext-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.ext-pub {
    font-size: 0.82rem;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ext-read {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--forest-deep);
    background: var(--forest-tint);
    border: 1px solid var(--forest-100);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.ext-read:hover {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}

/* Response time box (sidebar) */
.response-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--forest-tint);
    border: 1px solid var(--forest-100);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
}

.response-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    flex-shrink: 0;
}

.response-title {
    font-weight: 700;
    color: var(--forest-deep);
    font-size: 0.95rem;
}

.response-sub {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* Languages (sidebar) */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.lang-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.92rem;
}

.lang-level {
    font-size: 0.8rem;
    color: var(--ink-mute);
}

.lang-dots {
    display: inline-flex;
    gap: 5px;
    margin-top: 0.4rem;
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.lang-dot.on {
    background: var(--forest-mid);
}

/* Certifications (sidebar) */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.cert-item>i,
.cert-item>.ph,
.cert-item>[class^="ph-"] {
    color: var(--forest-mid);
    font-size: 1.15rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.cert-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.35;
}

.cert-meta {
    font-size: 0.8rem;
    color: var(--ink-mute);
    margin-top: 0.1rem;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.team-card,
.team-member {
    text-align: center;
}

.team-avatar,
.team-member .ph-avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.team-card h4,
.team-member h4 {
    margin-bottom: 0.15rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--amber-deep);
    font-weight: 600;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 540;
    color: var(--forest);
    line-height: 1;
}

.section-dark .stat-value {
    color: var(--amber-soft);
}

.stat-label {
    font-size: 0.88rem;
    color: var(--ink-mute);
    margin-top: 0.4rem;
}

.section-dark .stat-label {
    color: var(--dark-mute);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-section {
    background: var(--dark);
    color: var(--dark-ink);
    border-radius: var(--radius-xl);
    padding: 4rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(214, 138, 56, 0.18), transparent 62%);
}

.cta-section>* {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--dark-ink);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--dark-mute);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.08rem;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
}

.empty-state i,
.empty-state .ph,
.empty-state [class^="ph-"] {
    font-size: 3rem;
    color: var(--line-strong);
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-visual {
    background: var(--dark);
    color: var(--dark-ink);
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(214, 138, 56, 0.18), transparent 65%);
}

.auth-visual>* {
    position: relative;
    z-index: 1;
}

.auth-visual h2 {
    color: var(--dark-ink);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.auth-visual p {
    color: var(--dark-mute);
}

/* Legible text on the dark auth panel (mirror the .section-dark treatment) */
.auth-visual .section-label,
.auth-visual .eyebrow {
    color: var(--amber-soft);
}

.auth-visual .section-label::before,
.auth-visual .eyebrow::before {
    background: var(--amber-soft);
}

.auth-visual .check-list li {
    color: var(--dark-ink);
}

.auth-visual .check-list li i,
.auth-visual .check-list li .ph,
.auth-visual .check-list li [class^="ph-"] {
    color: var(--amber-soft);
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-card h1,
.auth-card h2 {
    margin-bottom: 0.5rem;
}

.auth-card>p {
    margin-bottom: 2rem;
    color: var(--ink-mute);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-mute);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--ink-mute);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--paper-alt);
    padding: 0.35rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.auth-toggle-btn {
    flex: 1;
    padding: 0.7rem;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-soft);
    background: none;
    border: none;
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.auth-toggle-btn.active {
    background: var(--surface);
    color: var(--forest);
    box-shadow: var(--shadow-xs);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-mute);
    font-size: 1.05rem;
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 500;
    color: var(--forest);
    line-height: 1;
}

.error-code .mark {
    color: var(--amber);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-split,
    .split,
    .split.wide-left,
    .split.wide-right {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

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

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

    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

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

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15.5px;
    }

    .header-inner {
        height: 66px;
    }

    .section {
        padding: 3.25rem 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .steps,
    .blog-grid,
    .team-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem 2rem;
    }

    .hero-stat .number {
        font-size: 1.8rem;
    }

    .filter-bar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .cta-section {
        padding: 2.75rem 1.5rem;
    }

    .job-card-header {
        flex-direction: column;
    }

    .job-card-pay {
        align-self: flex-start;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: initial;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .profile-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .profile-hero h1 {
        justify-content: center;
    }

    .profile-hero .headline {
        text-align: center;
    }

    .profile-hero-chips {
        justify-content: center;
    }

    .profile-hero-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.15rem;
    }

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

    .btn {
        width: 100%;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .profile-hero-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
        font-size: 2rem;
    }

    .cta-section .btn {
        width: 100%;
    }

    .logo-strip {
        gap: 1.5rem;
    }

    .logo-strip span {
        font-size: 1.1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--dark-mute);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--dark-line);
}

.footer-brand .logo {
    color: var(--dark-ink);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--dark-mute);
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: var(--dark-ink);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--dark-mute);
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.footer-col a:hover {
    color: var(--amber-soft);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--dark-line);
    color: var(--dark-mute);
    font-size: 1.1rem;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--amber-soft);
    color: var(--amber);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--dark-mute);
    font-size: 0.85rem;
}

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

.footer-bottom-links a {
    color: var(--dark-mute);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--amber-soft);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   DECORATIVE ANIMATED BACKGROUND SHAPES (ambient, behind content)
   ============================================================ */
.has-deco {
    position: relative;
    overflow: hidden;
}

.has-deco>.container {
    position: relative;
    z-index: 1;
}

.deco-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.deco-shape {
    position: absolute;
    opacity: 0.5;
    /* filter: blur(2px); */
    will-change: transform;
}

.deco-shape.circle {
    border-radius: 50%;
}

.deco-shape.blob {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
}

.deco-shape.ring {
    background: transparent;
    border-radius: 50%;
    border: 2px solid var(--forest-100);
    opacity: 0.65;
    filter: none;
}

.deco-shape.c-forest {
    background: var(--forest-tint);
}

.deco-shape.c-amber {
    background: var(--amber-tint);
}

.deco-shape.c-green {
    background: #D9E7DC;
}

@keyframes deco-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(18px, -28px) rotate(10deg);
    }
}

@keyframes deco-drift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-24px, 20px) rotate(-12deg);
    }
}

@keyframes deco-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

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

@media (max-width: 640px) {
    .deco-shape {
        opacity: 0.38;
    }

    .deco-shape.hide-sm {
        display: none;
    }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}