/* REVO Legal - Shared CSS Variables and Styles */
:root {
    /* Foundations */
    --bg: #FBF6EE;
    --bg-elev: #FFFFFF;
    --bg-subtle: #F5EFE5;
    --surface-dark: #000000;

    /* Text */
    --text-primary: #000000;
    --text-secondary: #a38111;
    --text-muted: #4A3F36;
    --text-on-dark: rgba(255, 255, 255, 0.85);
    --text-on-accent: #FFFFFF;

    /* Borders */
    --border: #EBE2D2;
    --border-strong: #C9BAA8;
    --border-focus: #EFE0C2;

    /* Brand */
    --brand-primary: #00af95;
    --brand-secondary: #a38111;
    --brand-secondary-soft: #EFE0C2;

    /* Action */
    --action-primary: #00af95;
    --action-primary-hover: #009a83;
    --action-primary-active: #008472;

    /* Semantic */
    --success: #1a7f4b;
    --warning: #c27d10;
    --error: #c9372c;
    --info: #0055cc;

    /* Typography */
    --font-serif: Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --serif-weight: 500;
}

html {
    font-family: var(--font-sans);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: var(--serif-weight);
    letter-spacing: -0.02em;
    margin: 0;
}

h1 {
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.2;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav */
.nav {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: 0.18em;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 4px;
}

.brand .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--brand-primary);
    transform: translateY(-2px);
    flex-shrink: 0;
}

.brand .legal {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 17px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a:not(#mobile-login-btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:not(#mobile-login-btn):hover {
    color: var(--text-primary);
    border-bottom-color: var(--brand-primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile menu login — hidden on desktop, shown in burger menu on mobile */
#mobile-login-btn {
    display: none;
}

/* Legacy nav support for estate agent page */
#topnav {
    font-weight: 300;
}

/* Hero Section */
.hero {
    padding: 90px 0 80px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Right-side hero photo panel */
.hero-img-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
}

/* Left-edge blend into page background */
.hero-img-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            var(--bg) 0%,
            rgba(251, 246, 238, 0.7) 0.5%,
            transparent 1%);
    pointer-events: none;
}

.hero-img-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
}

.hero-img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.7;
}

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

.hero .row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Centre quote form in the right (image) half, nudged toward the photo */
.hero-quote-col {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding-left: 40px;
}

.hero .quote-card {
    margin-top: 0;
    width: 100%;
    max-width: 480px;
    background: var(--bg-elev) !important;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.03),
        0 28px 70px -28px rgba(28, 26, 23, 0.32) !important;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 22px;
}

.hero h1 .accent-mark {
    color: var(--brand-primary);
    font-style: italic;
    font-weight: 500;
}

.hero .lede {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-muted);
    margin-top: 26px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* Shared button styles (used in hero CTAs and sections) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, transform 0.1s ease;
    letter-spacing: 0.005em;
}

.btn-primary {
    background: var(--action-primary);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    background: var(--action-primary-hover);
    transform: translateY(-2px);
}

.btn-primary:active {
    background: var(--action-primary-active);
    transform: translateY(0);
}

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

.btn-ghost:hover {
    background: var(--bg-elev);
}

/* Quote card (hero right column) */
.quote-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 14px 40px -20px rgba(28, 26, 23, 0.18);
    margin-top: -10px;
}

@keyframes quote-card-bounce {

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

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

.quote-card.quote-card--bounce {
    animation: quote-card-bounce 0.65s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
    .quote-card.quote-card--bounce {
        animation: none;
    }
}

.quote-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.quote-card .sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 2-column form grid inside the card */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Row containers participate directly in the grid */
.form-grid #defaultRow1,
.form-grid #buyingRow2,
.form-grid #buyingRow3,
.form-grid #bothRow2,
.form-grid #bothRow3,
.form-grid #bothRow4 {
    display: contents;
}

.form-group.full {
    grid-column: 1 / -1;
}

/* Price input with prefix badge */
.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-prefix {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 14.5px;
    font-weight: 500;
    flex-shrink: 0;
    line-height: 1;
}

.price-row input {
    flex: 1;
}

/* Checkbox group inside form */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--action-primary);
    flex-shrink: 0;
}

/* Submit button */
.quote-submit {
    grid-column: 1 / -1;
    background: var(--action-primary);
    color: var(--text-on-accent);
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
    margin-top: 8px;
    width: 100%;
}

.quote-submit:hover {
    background: var(--action-primary-hover);
}

.quote-submit:active {
    background: var(--action-primary-active);
}

/* Wave Support for Estate Agent Page */
.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
}

/* Text Colors */
.text-primary {
    color: var(--brand-primary);
}

/* Background Colors */
.bg-primary {
    background-color: var(--brand-primary);
}

.bg-primary-light {
    background-color: var(--border-focus);
}

/* Border Colors */
.border-primary {
    border-color: var(--brand-primary);
}

/* Dashboard and Card Styles */
.dashboard-preview {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.quote-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.progress-item {
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.progress-item:hover {
    transform: translateY(-3px);
    border-top: 3px solid var(--brand-primary);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ and List Styles */
.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

.feature-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-bullets li:last-child {
    margin-bottom: 0;
}

/* Quote Tool Styles */
.quote-tool {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: both;
}

/* Dynamic form field transitions - use display: contents so children participate in parent grid */
#singlePropertyFields,
#buyingSellingFields,
#buyingSellingRow2 {
    display: contents;
    /* Allow children to participate in parent grid */
}

.quote-tool h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.quote-form {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevents flex items from overflowing grid cells */
}

/* Button spans full width */
.quote-button {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    margin-bottom: 0;
}

.form-group input,
.form-group select {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: var(--bg-elev);
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--action-primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.quote-button {
    background: var(--action-primary);
    color: var(--text-on-accent);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    grid-column: 1 / -1;
}

.quote-button:hover {
    background: var(--action-primary-hover);
    transform: translateY(-2px);
}

.quote-button:active {
    background: var(--action-primary-active);
    transform: translateY(0);
}

.quote-result {
    display: none;
    background: linear-gradient(135deg, var(--action-primary) 0%, var(--action-primary-active) 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-top: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-result.show {
    display: block;
}

.quote-price {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.quote-details {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 20px;
    color: white;
}

.quote-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: white;
}

.quote-breakdown div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.quote-cta {
    background: white;
    color: var(--brand-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.quote-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Dashboard Layout for larger components */
.dashboard-layout {
    position: relative;
}

.dashboard-preview {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dashboard-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 960px) {
    .hero-img-bg {
        display: none;
    }

    .hero-quote-col {
        padding: 0;
        justify-content: stretch;
    }

    .hero .quote-card {
        max-width: none;
    }

    .hero .row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero .lede {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0 50px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 1000;
    }

    .nav-links.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a:not(#mobile-login-btn) {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        text-align: left;
        color: var(--text-primary);
    }

    .nav-links a:not(#mobile-login-btn):last-of-type {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn.mobile-menu-active {
        transform: rotate(90deg);
    }

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

    /* Mobile login button — match desktop .btn.btn-ghost */
    #mobile-login-btn {
        display: inline-flex;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
        padding: 12px 22px;
        border: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        color: var(--text-primary);
        text-align: center;
    }
}

/* Responsive adjustments for dashboard layout */
@media (max-width: 1023px) {
    .dashboard-layout {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .dashboard-layout>div:nth-child(2) {
        grid-column: span 2;
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 639px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-layout>div:nth-child(2) {
        grid-column: span 1;
    }
}

/* Testimonials */
.reviews {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5rem 0 6rem;
}

.reviews .section-head {
    max-width: 640px;
    margin-bottom: 0rem;
}

.reviews .eyebrow {
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.reviews h2 {
    color: var(--text-primary);
    line-height: 1.12;
    margin: 0;
}

.reviews .section-head>p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 18px;
}

.reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rev-controls {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-bottom: 0.25rem;
}

.rev-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 2px solid var(--action-primary);
    background: transparent;
    color: var(--action-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.rev-btn:hover:not(:disabled) {
    background: var(--action-primary-hover);
    border-color: var(--action-primary-hover);
    color: #fff;
}

.rev-btn:active:not(:disabled) {
    background: var(--action-primary-active);
    border-color: var(--action-primary-active);
    color: #fff;
}

.rev-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.rev-viewport {
    overflow: hidden;
}

.rev-track {
    display: grid;
    grid-template-columns: repeat(6, calc((100% - 3rem) / 3));
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.rev-card {
    background: var(--bg);
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.rev-stars {
    color: var(--brand-primary);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.rev-quote {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0 0 22px;
    flex: 1;
}

.rev-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: auto;
}

.rev-avatar {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--brand-secondary-soft);
    color: var(--brand-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.rev-meta .who {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.3;
}

.rev-meta .what {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rev-controls {
        display: none;
    }

    .rev-viewport {
        overflow: visible;
    }

    .rev-track {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        transform: none !important;
    }

    .rev-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 640px) {
    .reviews {
        padding: 3.5rem 0 4rem;
    }

    .reviews .section-head {
        margin-bottom: 0;
    }

    .rev-card {
        padding: 1.5rem;
    }
}

/* =========================
   PILLARS — Why Revo
   ========================= */
.pillars {
    padding: 100px 0;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head .eyebrow {
    margin-bottom: 16px;
}

.section-head h2 {
    color: var(--text-primary);
    margin-bottom: 0;
}

.section-head>p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
    margin-top: 18px;
    max-width: 580px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.pillar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pillar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -16px rgba(28, 26, 23, 0.18);
}

.pillar .num {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.pillar h3 {
    margin-bottom: 14px;
    font-size: clamp(18px, 1.5vw, 22px);
}

.pillar>p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

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

.pillar ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 6px 0;
    line-height: 1.45;
}

.pillar ul li .tick {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--brand-secondary-soft);
    color: var(--brand-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.pillar-icon--blue {
    background: rgba(29, 40, 141, 0.08);
    color: var(--brand-primary);
}

.pillar-icon--gold {
    background: rgba(160, 116, 50, 0.10);
    color: var(--brand-secondary);
}

.pillars-cta {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

/* =========================
   DASHBOARD
   ========================= */
.dashboard {
    padding: 100px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.dash-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: center;
}

.dash-text h2 {
    margin-bottom: 22px;
}

.dash-text>p {
    color: var(--text-muted);
    font-size: 16.5px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.dash-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dash-features li {
    padding: 14px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.dash-features .ft-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dash-features .ft-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.dash-mock {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 30px 60px -30px rgba(28, 26, 23, 0.25);
}

.browser-chrome {
    padding: 0 !important;
    overflow: hidden;
}

.browser-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.browser-dots span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots .dot-r {
    background: #ff5f57;
}

.browser-dots .dot-y {
    background: #febc2e;
}

.browser-dots .dot-g {
    background: #28c840;
}

.browser-address {
    flex: 1;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
}

.browser-address i {
    font-size: 9px;
    color: var(--success);
}

.browser-content {
    padding: 24px;
}

.browser-content--image {
    padding: 0;
    line-height: 0;
    background: var(--bg-subtle);
}

.dash-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Dashboard mock: desktop browser vs mobile image */
.dash-mock--mobile {
    /* hidden by default (desktop) */
    display: none;

    /* override `.dash-mock` "card" styling */
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .dash-mock--desktop {
        display: none;
    }

    .dash-mock--mobile {
        display: block;
    }
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.dash-header .title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.dash-header .sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dash-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-secondary-soft);
    color: var(--brand-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    position: relative;
}

.step .bullet {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.step.done .bullet {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #fff;
}

.step.current .bullet {
    background: var(--action-primary);
    border-color: var(--action-primary);
    color: #fff;
}

.step.current .stepname {
    color: var(--text-primary);
    font-weight: 600;
}

.step .line {
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 1.5px;
    background: var(--border);
}

.step.done .line {
    background: var(--brand-secondary);
}

.step:last-child .line {
    display: none;
}

.activity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.activity-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.activity-card .ac-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.activity-card .ac-value {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-card .ac-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

@media (max-width: 960px) {
    .dash-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dash-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard {
        padding: 70px 0;
    }
}

/* =========================
   FOOTER
   ========================= */
footer {
    padding: 64px 0 32px;
    background: var(--surface-dark);
    color: var(--text-on-dark);
}

footer h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 10px;
    font-size: 13.5px;
}

footer a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

footer a:hover {
    color: #fff;
}

.footer-brand .brand {
    color: #fff;
}

.footer-brand .brand .legal {
    color: rgba(255, 255, 255, 0.55);
}

.footer-brand .brand .dot {
    background: var(--brand-primary);
}

.footer-brand .desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 14px;
    max-width: 320px;
}

.footer-bottom {
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
}

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .pillars {
        padding: 70px 0;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--action-primary);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top:hover {
    background-color: var(--action-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    background-color: var(--action-primary-active);
    transform: translateY(0);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 1.2rem;
}