/* =========================================================
   Replace Spreadsheets — High-converting landing page
   ========================================================= */

:root {
    --rs-accent: #2563eb;
    --rs-accent-2: #06b6d4;
    --rs-accent-3: #a78bfa;
    --rs-warn: #f59e0b;
    --rs-danger: #ef4444;
    --rs-success: #10b981;
    --rs-card: #111827;
    --rs-card-2: #0b1220;
    --rs-border: rgba(255, 255, 255, 0.08);
}

.spreadsheets-page {
    overflow-x: hidden;
}

.spreadsheets-page .py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.spreadsheets-page .min-vh-90 {
    min-height: 90vh;
}

/* ---------- Shared bits ---------- */
.spreadsheets-page .gradient-text {
    background: linear-gradient(90deg, #60a5fa 0%, #06b6d4 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spreadsheets-page .text-strike {
    text-decoration: line-through;
    text-decoration-thickness: 4px;
    text-decoration-color: rgba(239, 68, 68, 0.7);
    color: rgba(248, 250, 252, 0.55);
    font-weight: 700;
    margin-right: 0.25rem;
}

.spreadsheets-page .section-headline {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.spreadsheets-page .section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.75rem;
}

.spreadsheets-page .btn-xl {
    padding: 1rem 1.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: -0.005em;
}

.spreadsheets-page .btn-ghost {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.spreadsheets-page .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section-spreadsheets {
    position: relative;
    padding-top: 130px;
    padding-bottom: 4rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(167, 139, 250, 0.12) 0%, transparent 55%),
        var(--dark);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 40px); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-light);
}

.hero-subhead {
    font-size: 1.2rem;
    color: rgba(248, 250, 252, 0.78);
    line-height: 1.55;
    max-width: 540px;
}

.hero-trust {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: rgba(248, 250, 252, 0.72);
}

.hero-trust-stars i {
    color: #fbbf24;
    font-size: 0.95rem;
}

/* ---------- Hero Visual: Before/After ---------- */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    perspective: 1500px;
    min-height: 460px;
}

.visual-card {
    position: relative;
    background: var(--rs-card);
    border-radius: 14px;
    border: 1px solid var(--rs-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    flex: 1;
    max-width: 47%;
    transition: transform 0.4s ease;
}

.visual-before {
    transform: rotate(-3deg) translateY(10px);
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.visual-before:hover {
    transform: rotate(-1deg) translateY(0);
}

.visual-after {
    transform: rotate(3deg) translateY(-10px);
    background: linear-gradient(180deg, #0b1220 0%, #0a0f1d 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.25), 0 0 60px rgba(6, 182, 212, 0.1);
}

.visual-after:hover {
    transform: rotate(1deg) translateY(-15px);
}

.visual-card-tab {
    background: #1f2937;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--rs-border);
}

.visual-card-tab-light {
    background: #0f172a;
}

.tab-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.tab-dot-red { background: #ef4444; }
.tab-dot-yellow { background: #f59e0b; }
.tab-dot-green { background: #10b981; }

.tab-title {
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.55);
    margin-left: 0.5rem;
    font-family: 'Fira Code', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spreadsheet body */
.sheet-toolbar {
    background: #111827;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--rs-border);
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
}

.sheet-cell-ref {
    background: #0b1220;
    border: 1px solid var(--rs-border);
    padding: 0.15rem 0.5rem;
    color: rgba(248, 250, 252, 0.7);
    border-radius: 3px;
    min-width: 38px;
    text-align: center;
}

.sheet-formula {
    color: rgba(248, 250, 252, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.sheet-grid {
    background: #0b1220;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.85);
}

.sheet-row {
    display: grid;
    grid-template-columns: 28px 1.5fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sheet-row span {
    padding: 0.4rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-row span:first-child {
    background: #111827;
    color: rgba(248, 250, 252, 0.45);
    text-align: center;
}

.sheet-row-header {
    background: #111827;
    color: #60a5fa;
    font-weight: 600;
}

.sheet-row-header span {
    color: #60a5fa;
}

.sheet-row-edit {
    background: rgba(245, 158, 11, 0.08);
    box-shadow: inset 0 0 0 2px var(--rs-warn);
}

.cell-error {
    color: var(--rs-danger);
    background: rgba(239, 68, 68, 0.1);
    font-weight: 600;
}

.cell-warn {
    color: var(--rs-warn);
}

.sheet-tabs {
    background: #111827;
    padding: 0.35rem 0.4rem;
    display: flex;
    gap: 0.25rem;
    border-top: 1px solid var(--rs-border);
    overflow: hidden;
}

.sheet-tab {
    background: #0b1220;
    color: rgba(248, 250, 252, 0.55);
    padding: 0.25rem 0.5rem;
    border-radius: 3px 3px 0 0;
    font-size: 0.62rem;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sheet-tab-active {
    background: #1f2937;
    color: var(--text-light);
}

.visual-stamp {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(-12deg);
    background: var(--rs-danger);
    color: white;
    padding: 0.4rem 0.9rem;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 2;
}

.visual-stamp-good {
    background: var(--rs-success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    right: auto;
    left: -10px;
    transform: translateY(-50%) rotate(12deg);
}

/* Dashboard body */
.dash-body {
    padding: 1rem;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dash-kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    padding: 0.6rem 0.5rem;
    text-align: left;
}

.dash-kpi-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.5);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.dash-kpi-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.dash-kpi-trend {
    font-size: 0.65rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

.dash-kpi-trend.up { color: var(--rs-success); }

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 110px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--rs-border);
}

.dash-chart .bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.2s ease-out backwards;
}

.dash-chart .bar:nth-child(1) { animation-delay: 0.05s; }
.dash-chart .bar:nth-child(2) { animation-delay: 0.10s; }
.dash-chart .bar:nth-child(3) { animation-delay: 0.15s; }
.dash-chart .bar:nth-child(4) { animation-delay: 0.20s; }
.dash-chart .bar:nth-child(5) { animation-delay: 0.25s; }
.dash-chart .bar:nth-child(6) { animation-delay: 0.30s; }
.dash-chart .bar:nth-child(7) { animation-delay: 0.35s; }

.dash-chart .bar-active {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

@keyframes barGrow {
    from { height: 0; opacity: 0; }
    to { height: var(--h); opacity: 1; }
}

.visual-arrow {
    color: #60a5fa;
    font-size: 1.6rem;
    z-index: 3;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
    flex-shrink: 0;
    animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

/* =========================================================
   SCOPE CARDS (whether it's...)
   ========================================================= */
.scope-card {
    background: linear-gradient(180deg, var(--rs-card) 0%, var(--rs-card-2) 100%);
    border: 1px solid var(--rs-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scope-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rs-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scope-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.scope-card:hover::before {
    opacity: 1;
}

.scope-card-featured {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.scope-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: white;
}

.scope-icon-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.scope-icon-2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.scope-icon-3 { background: linear-gradient(135deg, #a78bfa, #ec4899); }

.scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scope-list li {
    padding: 0.4rem 0;
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.scope-list li i {
    color: var(--rs-success);
    font-size: 0.8rem;
}

/* =========================================================
   STAT BAND
   ========================================================= */
.stat-band-section {
    padding: 5rem 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.04) 50%, transparent 100%);
    border-top: 1px solid var(--rs-border);
    border-bottom: 1px solid var(--rs-border);
}

.stat-card {
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-4px);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
}

.stat-label {
    font-size: 0.92rem;
    color: rgba(248, 250, 252, 0.65);
    line-height: 1.4;
}

/* =========================================================
   CASE STUDIES
   ========================================================= */
.case-card {
    background: linear-gradient(180deg, var(--rs-card) 0%, var(--rs-card-2) 100%);
    border: 1px solid var(--rs-border);
    border-radius: 16px;
    padding: 1.85rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--rs-accent), var(--rs-accent-2));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.case-card:hover::after {
    transform: scaleY(1);
}

.case-card-tag {
    display: inline-block;
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.case-card-result {
    color: var(--rs-success);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.case-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rs-border);
}

.case-stack span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rs-border);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.case-stack i {
    color: #60a5fa;
    font-size: 0.75rem;
}

a.case-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.case-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.case-card-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rs-border);
    color: #60a5fa;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

a.case-card-link:hover .case-card-cta {
    gap: 0.7rem;
}

/* =========================================================
   TRACK RECORD: more we've shipped
   ========================================================= */
.track-record {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.track-record-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.track-record-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mini-case {
    background: var(--rs-card-2);
    border: 1px solid var(--rs-border);
    border-radius: 14px;
    padding: 1.4rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    transition: all 0.25s ease;
}

.mini-case:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.mini-case-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    font-size: 1.1rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.mini-case-body h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.mini-case-body p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 0.7rem;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mini-tags span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rs-border);
    padding: 0.25rem 0.55rem;
    border-radius: 5px;
    font-size: 0.74rem;
    color: rgba(248, 250, 252, 0.78);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.mini-tags i {
    color: #60a5fa;
    font-size: 0.7rem;
}

/* =========================================================
   INTEGRATIONS STRIP
   ========================================================= */
.integrations-section {
    padding: 5rem 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.04) 50%, transparent 100%);
    border-top: 1px solid var(--rs-border);
    border-bottom: 1px solid var(--rs-border);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.integration-chip {
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.25s ease;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.92rem;
}

.integration-chip:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

.integration-chip i {
    color: #60a5fa;
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

/* =========================================================
   POSITIONING QUOTE
   ========================================================= */
.positioning-section {
    padding: 5rem 0;
    background:
        radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
}

.positioning-quote {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.45;
    letter-spacing: -0.015em;
    font-style: italic;
}

/* =========================================================
   STEP CARDS
   ========================================================= */
.step-card {
    background: linear-gradient(180deg, var(--rs-card) 0%, var(--rs-card-2) 100%);
    border: 1px solid var(--rs-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.3);
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* =========================================================
   REVIEWS (shared reviews.php — Bootstrap card defaults are light)
   ========================================================= */
.spreadsheets-page .reviews-section-wrapper {
    border-top: 1px solid var(--rs-border);
    border-bottom: 1px solid var(--rs-border);
    background:
        linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.04) 50%, transparent 100%);
}

.spreadsheets-page .reviews-section-wrapper .review-card {
    background: linear-gradient(180deg, var(--rs-card) 0%, var(--rs-card-2) 100%);
    border: 1px solid var(--rs-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.spreadsheets-page .reviews-section-wrapper .review-card .card-body {
    color: rgba(248, 250, 252, 0.88);
}

.spreadsheets-page .reviews-section-wrapper .review-card p.text-muted {
    color: rgba(248, 250, 252, 0.7) !important;
}

.spreadsheets-page .reviews-section-wrapper .review-card p.text-muted i {
    color: rgba(248, 250, 252, 0.55);
}

.spreadsheets-page .reviews-section-wrapper > .container > .row > .col-12 > h2.text-light {
    color: var(--text-light) !important;
}

/* =========================================================
   AUDIT FORM
   ========================================================= */
.audit-section {
    padding: 5rem 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.06) 100%);
}

.audit-card {
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.audit-card-left {
    background: linear-gradient(135deg, #1e3a8a 0%, #0c4a6e 100%);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.audit-card-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.audit-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    position: relative;
}

.audit-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
}

.audit-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    position: relative;
}

.audit-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.audit-bullets li {
    padding: 0.5rem 0;
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
}

.audit-bullets i {
    color: #34d399;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.audit-card-right {
    padding: 3rem 2.5rem;
    background: var(--rs-card);
}

.audit-form .form-label {
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.audit-form .form-control {
    background: var(--dark);
    border: 1px solid var(--rs-border);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.audit-form .form-control:focus {
    background: var(--dark);
    border-color: var(--rs-accent);
    color: var(--text-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.audit-form textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.audit-form .form-control.is-invalid {
    border-color: var(--rs-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.55);
    text-align: center;
    margin-top: 0.5rem;
}

.form-status {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.form-status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-status-error a { color: #fca5a5; text-decoration: underline; }

#lead-submit {
    position: relative;
    overflow: hidden;
}

#lead-submit.is-loading .btn-label { display: none; }
#lead-submit.is-loading .btn-spinner { display: inline-flex !important; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-accordion .accordion-item {
    background: var(--rs-card);
    border: 1px solid var(--rs-border) !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: var(--rs-card);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.02rem;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(37, 99, 235, 0.08);
    color: var(--text-light);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button::after {
    filter: invert(1) brightness(2);
    opacity: 0.7;
}

.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.97rem;
    line-height: 1.65;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta-section {
    padding: 6rem 0;
    background:
        radial-gradient(ellipse at center, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
        var(--dark);
    border-top: 1px solid var(--rs-border);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .hero-section-spreadsheets {
        padding-top: 110px;
        text-align: left;
    }

    .hero-visual {
        margin-top: 2.5rem;
        min-height: 380px;
    }

    .audit-card-left,
    .audit-card-right {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .spreadsheets-page .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .hero-headline {
        font-size: 2.4rem;
    }

    .hero-subhead {
        font-size: 1.05rem;
    }

    .hero-visual {
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
    }

    .visual-card {
        max-width: 100%;
        transform: none !important;
    }

    .visual-arrow {
        transform: rotate(90deg);
    }

    .visual-stamp {
        right: 10px;
    }

    .visual-stamp-good {
        left: 10px;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .audit-title {
        font-size: 1.6rem;
    }

    .positioning-quote {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .spreadsheets-page .btn-xl {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .hero-trust {
        font-size: 0.85rem;
    }
}
