:root {
    /* Color Palette — Orange / Black / Soft Yellow */
    --bg-light: #fdf8f1;          /* warm cream */
    --bg-card: #ffffff;
    --text-main: #141414;          /* near black */
    --text-muted: #6b6560;
    --primary: #FF7A00;            /* brand orange */
    --primary-hover: #e66e00;
    --primary-dark: #b35500;       /* deep burnt orange */
    --secondary: #ffd166;          /* soft yellow */
    --accent-light: #ffe8d1;       /* light peach */
    --accent-yellow: #fff2c2;      /* butter */
    --accent-coral: #ffd4c2;       /* warm coral */
    --accent-cream: #f5ede0;       /* sand cream */
    --border-color: rgba(0, 0, 0, 0.06);
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

p {
    color: var(--text-muted);
}

.gradient-text {
    color: var(--primary-hover);
    font-style: italic;
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Utilities */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent-light);
    color: var(--primary-hover);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

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

.btn-primary {
    background: var(--text-main);
    color: white;
}

.btn-primary:hover {
    background: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 1rem;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}
.footer-brand .logo-img { height: 44px; }

/* Brand lockup: orange mark + "Hire Wilfred" wordmark */
.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}
.logo-lockup .logo-mark {
    height: 38px;
    width: auto;
    display: block;
}
.logo-lockup .logo-text {
    font-family: 'Poppins', 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--text-main);
    line-height: 1;
}
.logo-lockup .logo-text .accent { color: var(--primary); }
.footer-brand .logo-lockup .logo-mark { height: 44px; }
.footer-brand .logo-lockup .logo-text { font-size: 1.5rem; }

.logo-w {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero — Framed (Patria-style) */
.hero-frame {
    background: var(--text-main);
    padding: 6rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.hero-panel {
    position: relative;
    background: var(--accent-light);
    border-radius: 2rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 540px;
    align-items: stretch;
}
.hero-portrait {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffd9b8 0%, var(--accent-light) 100%);
}
.hero-portrait img,
.hero-portrait video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-doodle {
    position: absolute;
    top: 18%;
    right: -40px;
    width: 180px;
    height: 180px;
    z-index: 2;
    opacity: 0.85;
    pointer-events: none;
}

.hero-copy {
    padding: 4rem 4.5rem 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}
.hero-copy h1 {
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.inline-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 0.4rem;
}
.inline-icon svg {
    height: 0.7em;
    width: auto;
}
.hero-copy .hero-subtitle {
    font-size: 1.05rem;
    color: rgba(20,20,20,0.75);
    max-width: 520px;
    margin: 0 0 2.25rem 0;
    text-align: left;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    background: var(--secondary);
    color: var(--text-main);
    padding: 1.1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid var(--text-main);
    transition: transform 0.2s, background 0.2s;
}
.hero-cta:hover {
    background: var(--primary);
    color: var(--text-main);
    transform: translateY(-2px);
}
.hero-cta span { font-size: 1rem; }

/* Hero contrast cards */
.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 1.25rem;
}
.hero-card {
    border-radius: 2rem;
    padding: 2rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.card-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    opacity: 0.7;
    color: var(--text-main);
}
.card-eyebrow.light { color: rgba(255,255,255,0.7); }

.hero-card-rating {
    background: var(--primary);
    color: var(--text-main);
}
.rating-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.rating-number {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: var(--text-main);
}
.rating-star {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}
.rating-foot {
    border-top: 1px solid rgba(20,20,20,0.15);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rating-avatars {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.rating-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    margin-right: -10px;
}
.arrow-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 14px;
}
.rating-foot p {
    font-size: 0.85rem;
    color: rgba(20,20,20,0.8);
    margin: 0;
}

.hero-card-video {
    background: white;
    color: var(--text-main);
}
.hero-card-video h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.play-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-light);
    padding: 0.5rem 1.25rem 0.5rem 0.5rem;
    border-radius: 9999px;
    text-decoration: none;
    align-self: flex-start;
    border: 1px solid var(--border-color);
}
.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-main);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.play-label {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-card-stat {
    background: #1f1f1f;
    color: white;
}

@keyframes floatStatElements {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12%); }
}
.hero-card-stat .stat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-pill {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}
.stat-number {
    font-size: 4rem;
    animation: floatStatElements 4s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: white;
    line-height: 1;
    margin: 0.5rem 0 0.5rem;
}
.stat-chart {
    width: 100%;
    height: 60px;
    margin-bottom: 0.75rem;
    animation: floatStatElements 4s ease-in-out infinite;
    overflow: visible;
}
.stat-chart path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawChart 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.stat-chart path:nth-child(1) {
    filter: drop-shadow(0 4px 8px rgba(255, 107, 26, 0.4));
}
.stat-chart path:nth-child(2) {
    animation-delay: 0.4s;
    filter: drop-shadow(0 4px 8px rgba(255, 209, 102, 0.4));
}
@keyframes drawChart {
    to { stroke-dashoffset: 0; }
}
.stat-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}
.stat-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.dot-orange { background: var(--primary); }
.dot-yellow { background: var(--secondary); }

@media (max-width: 992px) {
    .hero-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-portrait {
        height: 360px;
    }
    .hero-copy {
        padding: 2.5rem;
    }
    .hero-cards {
        grid-template-columns: 1fr;
    }
}

/* Legacy hero (kept to avoid breaking older sections) */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10rem 5% 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative curved text element */
.hero-curve-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -1;
    pointer-events: none;
}

.hero-curve-bg svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Dynamic Hero Visuals */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-portrait {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    z-index: 5;
    border: 8px solid white;
}

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

.status-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.floating-role {
    position: absolute;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 6;
}

.floating-role img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.role-tag {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pos-1 { top: 5%; left: 0%; width: 110px; height: 110px; }
.pos-2 { top: 40%; right: -5%; width: 140px; height: 140px; }
.pos-3 { bottom: 10%; left: 5%; width: 120px; height: 120px; }

.task-card {
    position: absolute;
    bottom: 5%;
    right: 0%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    z-index: 6;
    border-radius: 1.5rem;
    min-width: 200px;
}

.task-card .task-icon { font-size: 1.5rem; }
.task-card strong { display: block; font-size: 0.95rem; }
.task-card p { margin: 0; font-size: 0.8rem; }

/* Sections General */
section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.benefits {
    list-style: none;
    margin-top: 3rem;
}

.benefits li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefits .icon {
    font-size: 1.5rem;
    background: var(--accent-light);
    color: var(--primary-hover);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--text-main);
    font-weight: 700;
}

.stat-card:last-child {
    grid-column: span 2;
    background: var(--accent-light);
}

/* Candidate Cards (Yoga Style) */
.candidates-section {
    padding: 6rem 5%;
    background: var(--bg-light);
}

.candidates-intro {
    max-width: 1200px;
    margin: 0 auto 3rem;
}
.candidates-intro h2 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}
.candidates-intro p {
    max-width: 560px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.roster-mosaic {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.25rem;
}

.roster-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 1.75rem;
    display: flex;
    align-items: stretch;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    grid-column: span 1;
}
.roster-card.wide { grid-column: span 2; }

.roster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* All roster card tints unified to the same solid brand peach */
.tint-peach,
.tint-butter,
.tint-cream,
.tint-orange,
.tint-yellow,
.tint-coral { background: var(--accent-light); }

.roster-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    max-width: 60%;
}
.roster-card.wide .roster-text { max-width: 55%; }

.roster-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}
.roster-card.wide .roster-text h3 { font-size: 1.85rem; }

.roster-sub {
    font-size: 0.95rem;
    color: rgba(20,20,20,0.7);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.pill-cta {
    align-self: flex-start;
    background: var(--text-main);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.2s;
}
.pill-cta:hover {
    background: var(--primary);
    transform: translateX(2px);
}

.roster-img {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    width: 55%;
    z-index: 1;
    overflow: hidden;
}
.roster-card.wide .roster-img { width: 50%; }

.roster-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 992px) {
    .roster-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    .roster-card.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
    .roster-mosaic {
        grid-template-columns: 1fr;
    }
    .roster-card,
    .roster-card.wide { grid-column: span 1; }
    .roster-text, .roster-card.wide .roster-text { max-width: 60%; }
}


/* Testimonials Grid Section */
.testimonials-section {
    padding: 6rem 5%;
    background: #f4f7fb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testi-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testi-header h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-main);
    line-height: 1.2;
}

.testi-button {
    display: inline-flex;
    align-items: center;
    background: #f17833;
    color: white;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    gap: 1rem;
}

.testi-button:hover {
    transform: translateY(-2px);
    background: #d86422;
}

.testi-arrow {
    background: white;
    color: #f17833;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.testimonial-card.wide {
    width: calc(50% - 0.75rem);
}

.testimonial-card.narrow {
    width: calc(33.333% - 1rem);
}

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

.testi-card-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-user strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.testi-stars {
    color: #111;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testi-footer {
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 1024px) {
    .testimonial-card.wide { width: calc(50% - 0.75rem); }
    .testimonial-card.narrow { width: calc(50% - 0.75rem); }
}

@media (max-width: 768px) {
    .testimonial-card.wide, 
    .testimonial-card.narrow { width: 100%; }
}

/* Comparison Section */
.comparison-section {
    background: var(--accent-light);
    border-radius: 3rem;
    margin: 0 5%;
    padding: 6rem 5%;
}

.comparison-table-wrapper {
    background: white;
    padding: 0;
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

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

.comparison-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: #fafafa;
}

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

/* Salary table extras */
.scroll-x { overflow-x: auto; }
.comparison-table .muted {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}
.savings {
    display: inline-block;
    background: #e8f7ee;
    color: #1f7a3d;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ROI Calculator */
.calculator-section {
    padding: 6rem 5%;
    background: var(--bg-light);
}
.calculator {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem;
}
.calc-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.calc-field span {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}
.calc-field select,
.calc-field input {
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
    transition: border-color 0.2s;
}
.calc-field select:focus,
.calc-field input:focus {
    outline: none;
    border-color: var(--primary);
}
.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.calc-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.calc-card-hero {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}
.calc-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.calc-card-hero .calc-label {
    color: rgba(255,255,255,0.7);
}
.calc-value {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.calc-card-hero .calc-value {
    color: #a3e9b9;
}
.calc-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}
.calc-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.calc-fineprint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .calc-controls,
    .calc-results {
        grid-template-columns: 1fr;
    }
    .calculator {
        padding: 2rem 1.5rem;
    }
}

/* Industries Section */
.industries-section {
    padding: 6rem 5%;
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.industry-card {
    padding: 2rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.industry-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.industry-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.industry-card p {
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.popular {
    background: var(--text-main);
    color: white;
    transform: scale(1.02);
}

.popular p, .popular th, .popular td, .popular .desc {
    color: rgba(255,255,255,0.8);
}

.popular .btn-primary {
    background: white;
    color: var(--text-main);
}

.popular .btn-primary:hover {
    background: #eee;
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tier {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.price span {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-card .desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.features li {
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-light);
    color: var(--primary-hover);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.popular .features li::before {
    background: rgba(255,255,255,0.2);
    color: white;
}

.pricing-card .btn {
    width: 100%;
}

/* Footer */
.footer {
    padding: 6rem 5% 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.link-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.link-col a:hover {
    color: var(--primary-hover);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero {
        padding-top: 8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .popular {
        transform: scale(1);
    }

    .comparison-section {
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}

/* ============================================================
   AGENT PROFILE PAGES
   ============================================================ */

.agent-hero {
    background: var(--text-main);
    padding: 6rem 1.25rem 1.25rem;
}
.agent-hero-panel {
    background: var(--accent-light);
    border-radius: 2rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 520px;
}
.agent-portrait {
    position: relative;
    background: linear-gradient(180deg, #ffd9b8 0%, var(--accent-light) 100%);
    overflow: hidden;
}
.agent-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.4s ease-in-out;
}
.agent-portrait .img-cyborg {
    opacity: 0;
}
.agent-portrait:hover .img-normal {
    opacity: 0;
}
.agent-portrait:hover .img-cyborg {
    opacity: 1;
}
.agent-meta {
    padding: 4rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.agent-meta .badge {
    align-self: flex-start;
    margin-bottom: 1rem;
}
.agent-meta h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 0.5rem;
}
.agent-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.agent-tagline {
    font-size: 1.05rem;
    color: rgba(20,20,20,0.75);
    max-width: 520px;
    margin-bottom: 2rem;
}
.agent-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(20,20,20,0.12);
    padding-top: 1.5rem;
}
.agent-quick-stats > div {
    display: flex;
    flex-direction: column;
}
.agent-quick-stats strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.agent-quick-stats span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.agent-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}
.agent-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.agent-section .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 2rem;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.cap-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.cap-item .cap-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.cap-item p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0;
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.time-table th,
.time-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.time-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.time-table tr:last-child td { border-bottom: none; }
.time-table .time-saved {
    color: var(--primary-dark);
    font-weight: 700;
}

.agent-calc {
    background: var(--bg-light);
    border-radius: 2rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.agent-calc-inputs label {
    display: block;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
}
.agent-calc-inputs input {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    background: white;
    text-transform: none;
    letter-spacing: 0;
}
.agent-calc-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}
.agent-calc-output {
    background: var(--text-main);
    color: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
}
.agent-calc-output .out-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
    display: block;
}
.agent-calc-output .out-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.04em;
    line-height: 1;
    display: block;
}
.agent-calc-output .out-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.75rem;
    display: block;
}

.agent-cta-band {
    background: var(--primary);
    border-radius: 2rem;
    padding: 4rem 3rem;
    text-align: center;
    margin: 0 1.5rem 5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.agent-cta-band h2 { color: var(--text-main); margin-bottom: 1rem; }
.agent-cta-band p { color: rgba(20,20,20,0.8); max-width: 600px; margin: 0 auto 2rem; }

@media (max-width: 992px) {
    .agent-hero-panel { grid-template-columns: 1fr; }
    .agent-portrait { height: 360px; }
    .agent-meta { padding: 2.5rem; }
    .agent-quick-stats { grid-template-columns: 1fr; gap: 0.75rem; }
    .cap-grid { grid-template-columns: 1fr; }
    .agent-calc { grid-template-columns: 1fr; padding: 2rem; }
}

/* ============================================================
   FLOATING CONSULT BUTTON (vanilla port of FloatingConsultButton.tsx)
   ============================================================ */

.fcb-wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}
.fcb-btn {
    position: relative;
    width: 128px;
    height: 128px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.fcb-btn:hover { transform: scale(1.05); }

.fcb-text-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: fcb-rotate 10s linear infinite;
}
@keyframes fcb-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.fcb-text-svg text {
    font-family: 'Poppins', 'Outfit', sans-serif;
    font-size: 20.4px;
    fill: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fcb-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.fcb-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--text-main);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: box-shadow 0.3s ease;
}
.fcb-btn:hover .fcb-avatar { box-shadow: 0 14px 30px rgba(0,0,0,0.22); }
.fcb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (min-width: 1024px) {
    .fcb-btn    { width: 160px; height: 160px; }
    .fcb-avatar { width: 96px;  height: 96px;  }
}

/* Backdrop + popup */
.fcb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.fcb-backdrop.open { opacity: 1; pointer-events: auto; }

.fcb-popup {
    position: fixed;
    bottom: 12rem;
    right: 2rem;
    z-index: 60;
    background: white;
    border-radius: 1.75rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    padding: 2.5rem;
    max-width: 28rem;
    width: calc(100vw - 4rem);
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.fcb-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fcb-close {
    position: absolute;
    top: -3rem;
    right: -0.5rem;
    background: transparent;
    border: 0;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
}
.fcb-close:hover { color: #d1d5db; }

.fcb-popup-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.fcb-popup h3 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0;
}
.fcb-popup .fcb-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-main);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    flex-shrink: 0;
    margin-bottom: 0;
    background: transparent;
}
.fcb-popup p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.fcb-popup .fcb-cta {
    display: block;
    width: 100%;
    background: var(--text-main);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fcb-popup .fcb-cta:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

@media (min-width: 1024px) {
    .fcb-popup h3 { font-size: 3rem; }
    .fcb-popup p  { font-size: 1.1rem; }
}

/* Quinn — QuickBooks bookkeeper card (hero) */
.hero-card-quinn { gap: 0.75rem; }
.hero-card-quinn h3 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0;
}
.quinn-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.quinn-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.quinn-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quinn-id { display: flex; flex-direction: column; line-height: 1.2; }
.quinn-id strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}
.quinn-id span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.quinn-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}
.qb-logo {
    height: 22px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.hero-card-quinn .play-row {
    padding-left: 0.4rem;
    padding-right: 1rem;
}

/* Quinn Featured-Hire row inside roster mosaic */
.roster-feature {
    grid-column: 1 / -1;          /* span the full row */
    background: var(--text-main);
    color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    align-items: stretch;
    min-height: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.roster-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.18);
}
.roster-feature .feature-img {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2a2a 0%, var(--text-main) 100%);
}
.roster-feature .feature-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.roster-feature .feature-text {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.roster-feature .feature-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--primary);
    font-weight: 600;
}
.roster-feature h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}
.roster-feature .feature-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
    margin: 0;
    max-width: 56ch;
}
.roster-feature .feature-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.roster-feature .qb-logo {
    /* QuickBooks logo on dark — invert the black text portion to white */
    height: 28px;
    width: auto;
    filter: invert(1) hue-rotate(180deg);
}
.roster-feature .feature-cta {
    background: var(--primary);
    color: var(--text-main);
}
.roster-feature .feature-cta:hover {
    background: var(--primary-hover);
    color: white;
}

@media (max-width: 768px) {
    .roster-feature {
        grid-template-columns: 1fr;
    }
    .roster-feature .feature-img { height: 240px; }
    .roster-feature .feature-text { padding: 2rem; }
}

/* ============================================================
   OFFER CAROUSEL (vanilla port of OfferCarousel.tsx)
   Used in "Industries we staff" section
   ============================================================ */

.industries-section .offer-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.offer-card {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    height: 380px;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: white;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    scroll-snap-align: start;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    display: block;
}
.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px rgba(0,0,0,0.12);
}

.offer-img {
    height: 50%;
    overflow: hidden;
}
.offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.offer-card:hover .offer-img img { transform: scale(1.08); }

.offer-body {
    height: 50%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
}

.offer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.offer-tag svg { color: var(--primary); }

.offer-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
.offer-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.offer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-light);
    padding: 4px;
    flex-shrink: 0;
}
.brand-info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-info strong {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
}
.brand-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.offer-card:hover .arrow-circle {
    background: var(--primary);
    color: white;
    transform: rotate(-45deg);
}

/* Scroll buttons — appear on hover of the carousel */
.carousel-btn {
    position: absolute;
    top: calc(50% - 0.75rem);
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.industries-section .offer-carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
}
.carousel-btn-left  { left: -0.5rem; }
.carousel-btn-right { right: -0.5rem; }

@media (hover: none) {
    /* Always visible on touch devices */
    .carousel-btn { opacity: 1; }
}

@media (max-width: 600px) {
    .offer-card { width: 260px; height: 340px; }
}

/* ============================================================
   CARD STACK (vanilla port of CardStack.tsx)
   3D fan/stack carousel for "What can [agent] do" section
   ============================================================ */

.card-stack-section { padding-bottom: 7rem; }

.card-stack {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.card-stack-stage {
    position: relative;
    height: 420px;
    perspective: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Spotlight glow under the stack */
.card-stack-stage::before,
.card-stack-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 9999px;
    filter: blur(40px);
    z-index: 0;
}
.card-stack-stage::before {
    top: 1rem;
    left: 15%;
    right: 15%;
    height: 12rem;
    background: rgba(0,0,0,0.04);
}
.card-stack-stage::after {
    bottom: -1rem;
    left: 12%;
    right: 12%;
    height: 10rem;
    background: rgba(255,122,0,0.10);
}

.card-stack-card {
    position: absolute;
    bottom: 1rem;
    width: 460px;
    height: 300px;
    border-radius: 1.25rem;
    border: 4px solid rgba(0,0,0,0.08);
    background: var(--accent-light);
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease,
                background 0.4s ease,
                box-shadow 0.5s ease,
                color 0.4s ease;
    transform-style: preserve-3d;
    transform-origin: 50% 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    user-select: none;
    will-change: transform;
}
.card-stack-card .cs-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.card-stack-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.card-stack-card p {
    font-size: 0.95rem;
    color: rgba(20,20,20,0.7);
    line-height: 1.5;
    margin: 0;
}

/* Active card — dark, lifted, more shadow */
.card-stack-card[data-active="true"] {
    background: var(--text-main);
    color: white;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.22);
    cursor: grab;
}
.card-stack-card[data-active="true"] .cs-icon {
    background: var(--primary);
    color: white;
}
.card-stack-card[data-active="true"] h4 { color: white; }
.card-stack-card[data-active="true"] p  { color: rgba(255,255,255,0.78); }

/* Dots */
.card-stack-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.card-stack-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(20,20,20,0.22);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.card-stack-dot:hover { background: rgba(20,20,20,0.45); }
.card-stack-dot.active {
    background: var(--text-main);
    transform: scale(1.25);
}

/* Mobile — less aggressive fan, smaller cards */
@media (max-width: 768px) {
    .card-stack-card { width: 320px; height: 260px; padding: 1.5rem; }
    .card-stack-stage { height: 360px; }
    .card-stack-card h4 { font-size: 1.15rem; }
    .card-stack-card p  { font-size: 0.88rem; }
}

/* ============================================================
   FEATURES-4 GRID (vanilla port of features-4.tsx)
   Replaces the card-stack on agent profile pages
   ============================================================ */

.features-grid {
    margin: 2rem auto 0;
    max-width: 1024px;
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 0;
    overflow: hidden;
}
@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-cell {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.feature-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}
.feature-cell h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.01em;
}
.feature-cell p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   STICKY SCROLL CARDS (vanilla port of sticky-scroll-cards-section.tsx)
   Replaces the features-4 grid on agent profile pages
   ============================================================ */

.sticky-section {
    padding-bottom: 8rem;
}

.sticky-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}
.sticky-header h2,
.sticky-header .lead {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.sticky-header h2.in-view,
.sticky-header .lead.in-view {
    opacity: 1;
    transform: translateY(0);
}
.sticky-header .lead { transition-delay: 0.15s; }

.sticky-stack {
    max-width: 1100px;
    margin: 0 auto;
}

.sticky-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 3.5rem;
    border-radius: 1.75rem;
    margin-bottom: 4rem;
    position: sticky;
    top: 6rem; /* sits just below the fixed navbar */
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

/* Alternating warm tints — peach / butter / coral / soft-orange */
.sticky-card:nth-child(4n+1) { background: var(--accent-light); }
.sticky-card:nth-child(4n+2) { background: var(--accent-yellow); }
.sticky-card:nth-child(4n+3) { background: var(--accent-coral); }
.sticky-card:nth-child(4n+4) { background: #ffd9b8; }

.sticky-text h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.sticky-text p {
    font-size: 1.05rem;
    color: rgba(20,20,20,0.78);
    line-height: 1.6;
    margin: 0;
}

.sticky-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 1.25rem;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.sticky-icon .big-emoji {
    font-size: 5.5rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .sticky-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 1.5rem;
    }
    .sticky-icon { aspect-ratio: 16 / 9; }
    .sticky-icon .big-emoji { font-size: 4rem; }
}
