:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --coral: #EF4444;
    --teal: #0EA5E9;
    --sunshine: #FFC857;
    --dark: #1E293B;
}

body {
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark);
    line-height: 1.6;
    background: #fdfcff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > * {
    flex-shrink: 0;
}

header {
    padding: 1.5em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.4em;
}

nav a, nav .nav-link-button {
    margin-left: 1.5em;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    padding: 0.3em 0;
    position: relative;
    transition: color 0.2s ease;
}

nav a::after, nav .nav-link-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    transition: width 0.25s ease;
}

nav a:hover, nav .nav-link-button:hover {
    color: var(--primary);
}

nav a:hover::after, nav .nav-link-button:hover::after {
    width: 100%;
}

main {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    max-width: calc(1100px + 4em);
    margin: 0 auto;
    padding: 3em 2em;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    align-items: stretch;
}

.content-grid .offer {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

main h2 {
    text-align: center;
}

.hero {
    text-align: center;
    padding: 4.5em 1.5em 3.5em;
    background: linear-gradient(135deg, #dbeafe 0%, #fee2e2 60%, #fff7ed 100%);
    border-radius: 24px;
    margin-bottom: 2.5em;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 2.4em;
    margin-bottom: 0.3em;
    letter-spacing: -0.02em;
    color: var(--dark);
    position: relative;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 1.5em;
    color: #5a5675;
    position: relative;
}

.cta {
    display: inline-block;
    margin-top: 1em;
    padding: 0.9em 2em;
    background: linear-gradient(90deg, var(--coral), #ff8a8a);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
    position: relative;
}

.cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.45);
}

.cta:active {
    transform: translateY(0) scale(1);
}

.offer {
    background: white;
    padding: 2em;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    margin-bottom: 2em;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-top: 4px solid var(--primary);
}

.offer:hover {
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.offer h3 {
    margin-top: 0;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
}

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

.offer li {
    padding: 0.6em 0;
    border-bottom: 1px solid #f2f0fa;
    padding-left: 1.8em;
    position: relative;
}

.offer li:last-child {
    border-bottom: none;
}

.offer li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    background: rgba(0, 184, 169, 0.12);
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    top: 0.7em;
}

footer {
    text-align: center;
    padding: 2.5em 2em;
    color: #eee;
    font-size: 0.9em;
    background: var(--dark);
    margin-top: 3em;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    padding: 2em;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

label {
    margin-top: 1em;
    font-weight: 600;
    color: var(--dark);
}

input, textarea, select {
    padding: 0.75em;
    margin-top: 0.4em;
    border: 2px solid #ece9f7;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fbfaff;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

button {
    margin-top: 1.5em;
    border: none;
    cursor: pointer;
}

.success {
    color: var(--teal);
    font-weight: 600;
    text-align: center;
    background: #e6f9f7;
    padding: 1.3em;
    border-radius: 12px;
}

.info-note {
    background: linear-gradient(90deg, #fff5f5, #fffaf0);
    border-left: 4px solid var(--coral);
    border-radius: 10px;
    padding: 1em 1.4em;
    margin: 0 auto 2em;
    max-width: 420px;
    font-size: 0.95em;
    color: #5a5675;
}

.info-note p {
    margin: 0;
}

.info-note a {
    color: var(--coral);
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5em;
    margin-bottom: 2.5em;
}

.price-card {
    background: white;
    border-radius: 18px;
    padding: 2em 1.6em;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--teal);
}

.price-card:hover {
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.price-card.featured {
    border-top: 4px solid var(--coral);
    position: relative;
    transform: scale(1.03);
}

.price-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--coral), #ff8a8a);
    color: white;
    font-size: 0.75em;
    font-weight: 700;
    padding: 0.35em 1em;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.price-card h3 {
    margin-top: 0;
    margin-bottom: 0.2em;
    color: var(--primary-dark);
}

.price-card .price {
    font-size: 2.2em;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0.1em 0;
}

.price-card .price-sub {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em;
    flex-grow: 1;
}

.price-card li {
    padding: 0.4em 0;
    padding-left: 1.6em;
    position: relative;
    font-size: 0.95em;
    border-bottom: 1px solid #f2f0fa;
}

.price-card li:last-child {
    border-bottom: none;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.price-card .price-note {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    margin: 0;
}

.monthly-plan {
    background: linear-gradient(135deg, #dbeafe 0%, #fee2e2 100%);
    border-radius: 18px;
    padding: 2.2em;
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    align-items: start;
}

.monthly-plan h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.monthly-plan ul {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 1em auto;
    text-align: left;
}

.monthly-plan li {
    padding: 0.4em 0;
    padding-left: 1.6em;
    position: relative;
}

.monthly-plan li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 42, 74, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-box {
    background: white;
    padding: 2.5em 2em;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(45, 42, 74, 0.25);
    border-top: 5px solid var(--primary);
}

.modal-box h2 {
    margin-top: 0;
    color: var(--primary-dark);
}

.modal-close {
    position: absolute;
    top: 0.8em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--coral);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .steps-row {
        flex-direction: column;
        gap: 1.5em;
    }

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

    header {
        flex-direction: column;
        gap: 0.5em;
        padding: 1em 0.5em 1.1em;
        border-bottom: 1px solid #eee;
    }

    header img {
        height: 34px !important;
        max-width: 85% !important;
        order: -1;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3em 0.6em;
        margin: 0 !important;
        order: 1;
    }

    nav a, nav .nav-link-button {
        margin-left: 0 !important;
        font-size: 1.05em;
    }    main {
        padding: 2em 1.2em;
    }

    .hero {
        padding: 2.5em 1em 2em;
    }

    .hero h2 {
        font-size: 1.6em;
    }

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

    .price-card.featured {
        transform: none;
    }

    form {
        padding: 1.5em;
    }
}

/* Scroll fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-compact {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex-grow: 1;
    gap: 0.8em;
}

.portfolio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9em 0;
    border-bottom: 1px solid #f0f0f0;
}

.portfolio-row:last-child {
    border-bottom: none;
}

.portfolio-price {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95em;
}

.cta-small {
    display: inline-block;
    padding: 0.6em 1.3em;
    background: linear-gradient(90deg, var(--coral), #ff8a8a);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85em;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-small:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.cta-blue {
    background: linear-gradient(90deg, var(--primary), #4a8ff0);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cta-blue:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.cta-teal {
    background: linear-gradient(90deg, var(--teal), #38bdf8);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.cta-teal:hover {
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

.how-it-works {
    max-width: 700px;
    margin: 2.5em auto 1.5em;
}

.how-it-works h3 {
    margin-top: 0;
    margin-bottom: 1.3em;
}

.steps-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-icon {
    font-size: 1.8em;
    margin-bottom: 0.4em;
}

.step-item h4 {
    margin: 0 0 0.4em;
    color: var(--dark);
    font-size: 1em;
}

.step-item p {
    color: #666;
    font-size: 0.85em;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .steps-row {
        flex-direction: column;
        gap: 1.4em;
    }

    .step-divider {
        display: none;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-top: 1.3em;
    font-weight: 500;
    font-size: 0.9em;
    color: var(--dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    font-weight: 600;
}

.promo-banner {
    background: linear-gradient(90deg, var(--coral), #ff8a5c);
    border: none;
    color: white;
    text-align: center;
    padding: 1.8em 2em;
    border-radius: 16px;
    margin-bottom: 2em;
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.45);
    animation: promoPulse 2s ease-in-out infinite;
}

.promo-banner strong {
    font-size: 1.15em;
}

@keyframes promoPulse {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 32px rgba(239, 68, 68, 0.65);
        transform: scale(1.015);
    }
}

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    z-index: 300;
    transition: width 0.1s ease-out;
}

/* Glassmorphism nav on scroll */
header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Staggered cascading card entrance */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate slide-in direction for variety in grids */
.content-grid .stagger-item:nth-child(odd),
.pricing-grid .stagger-item:nth-child(odd) {
    transform: translateX(-30px);
}

.content-grid .stagger-item:nth-child(even),
.pricing-grid .stagger-item:nth-child(even) {
    transform: translateX(30px);
}

.content-grid .stagger-item.visible,
.pricing-grid .stagger-item.visible {
    transform: translateX(0);
}

/* Icon pop-in animation as cards become visible */
.step-icon {
    display: inline-block;
    transform: scale(0.3) rotate(-15deg);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    transition-delay: 0.15s;
}

.stagger-item.visible .step-icon {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* One-time shine sweep on headings */
.scroll-shine {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.2em;
}

.scroll-shine::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    border-radius: 2px;
    transition: width 0.8s ease;
}

.scroll-shine.shine-play::before {
    width: 100%;
}

.scroll-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(37, 99, 235, 0.35), transparent);
    transform: skewX(-20deg);
}

.scroll-shine.shine-play::after {
    animation: shineSweepLight 1s ease forwards;
}

@keyframes shineSweepLight {
    to {
        left: 130%;
    }
}

/* Magnetic buttons need smooth easing back to place */
.magnetic-btn {
    transition: transform 0.2s ease-out;
}

.promo-subtext {
    display: block;
    margin-top: 0.5em;
    font-size: 0.6em;
    font-weight: 600;
    opacity: 0.95;
}

/* FAQ accordion */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.faq-item {
    background: white;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(37, 99, 235, 0.06);
    border-top: 3px solid var(--primary);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.faq-item:nth-child(3n+2) {
    border-top-color: var(--coral);
}

.faq-item:nth-child(3n) {
    border-top-color: var(--teal);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.2em 1.4em;
    font-size: 1em;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

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

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    color: white;
    font-size: 1.1em;
    font-weight: 400;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 1em;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.4em;
}

.faq-answer p {
    color: #666;
    font-size: 0.95em;
    margin: 0 0 1.2em;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* Shimmering gradient headline */
.hero h2.shimmer-text {
    background: linear-gradient(90deg, var(--dark) 0%, var(--primary) 25%, var(--dark) 50%, var(--coral) 75%, var(--dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerMove 5s linear infinite;
}

@keyframes shimmerMove {
    to {
        background-position: -200% center;
    }
}

/* Animated gradient blob background in hero */
.hero {
    position: relative;
    overflow: hidden;
}

.gradient-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.35;
}

.blob-1 {
    width: 280px;
    height: 280px;
    background: var(--primary);
    top: -60px;
    left: 5%;
    animation: blobFloat1 14s ease-in-out infinite;
}

.blob-2 {
    width: 240px;
    height: 240px;
    background: var(--coral);
    bottom: -60px;
    right: 8%;
    animation: blobFloat2 16s ease-in-out infinite;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--sunshine);
    top: 30%;
    right: 30%;
    animation: blobFloat3 12s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -25px) scale(1.1); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -35px) scale(0.9); }
}

/* Smooth page fade transitions */
body {
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.page-loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}

/* Scrolling marquee banner at the very top of the page */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--primary);
    padding: 0.5em 0;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.marquee-set {
    display: flex;
    flex-shrink: 0;
}

.marquee-track span {
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.15em;
    padding: 0 0.6em;
    flex-shrink: 0;
}

.marquee-track .dot {
    opacity: 0.6;
    font-weight: 400;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2em;
    right: 2em;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    color: white;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

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

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

@media (max-width: 640px) {
    #back-to-top {
        bottom: 1.2em;
        right: 1.2em;
        width: 42px;
        height: 42px;
    }
}

/* Client onboarding / intake form */
.intake-intro {
    text-align: center;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2.2em;
    font-size: 1.05em;
    line-height: 1.7;
}

/* The form itself is just a spacing container; each section below is its own card */
.intake-form {
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 1.8em;
    counter-reset: intake-step;
}

.intake-section {
    background: white;
    border-radius: 18px;
    padding: 2.2em 2.4em;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.intake-section:nth-of-type(3n+2) { border-top-color: var(--coral); }
.intake-section:nth-of-type(3n)   { border-top-color: var(--teal); }

.intake-section h3 {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin: 0 0 0.2em;
    font-size: 1.3em;
    color: var(--dark);
}

/* Small accent dot before each section title (no numbers, so it can't be confused with Step 1 / Step 2) */
.intake-section h3::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    flex-shrink: 0;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em 1.8em;
    align-items: start;
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.intake-form label {
    margin-top: 0;
    margin-bottom: 0.1em;
}

.intake-form input,
.intake-form textarea,
.intake-form select {
    margin-top: 0.5em;
    padding: 0.85em 0.95em;
}

.intake-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.intake-form input[type="file"] {
    padding: 0.8em;
    background: #fbfaff;
    border: 2px dashed #cfd8f6;
    cursor: pointer;
}

.field-hint {
    font-size: 0.85em;
    color: #777;
    margin: 0.6em 0 0;
    line-height: 1.55;
}

.photo-count {
    color: var(--primary-dark);
    font-weight: 600;
}

.req-star {
    color: var(--coral);
    font-weight: 700;
}

.confirm-section {
    padding: 1.6em 2.4em;
}

.confirm-section .checkbox-label {
    margin-top: 0;
    font-size: 0.95em;
}

.intake-form > .cta {
    align-self: center;
    margin: 0.4em 0 0;
    padding: 1em 3.2em;
    font-size: 1.05em;
}

.form-errors {
    background: #fdecea;
    color: #b3261e;
    border-radius: 14px;
    padding: 1.2em 1.6em;
    margin: 0 auto 1.8em;
    max-width: 820px;
}

.form-errors ul {
    margin: 0.5em 0 0.4em 1.2em;
    padding: 0;
}

@media (max-width: 640px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .intake-section {
        padding: 1.6em 1.3em;
    }

    .confirm-section {
        padding: 1.3em;
    }
}

.success-note {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-top: 1em;
}

/* Step 1 / Step 2 progress tracker */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    max-width: 520px;
    margin: 0 auto 1.8em;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 0.6em;
    color: #9ca3af;
    font-weight: 600;
    white-space: nowrap;
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-pill.active,
.step-pill.done {
    color: var(--dark);
}

.step-pill.active .step-dot {
    background: linear-gradient(90deg, var(--primary), var(--coral));
    color: white;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.step-pill.done .step-dot {
    background: var(--teal);
    color: white;
}

.step-line {
    flex: 1;
    height: 3px;
    min-width: 36px;
    max-width: 120px;
    background: #e5e7eb;
    border-radius: 2px;
}

.step-line.filled {
    background: var(--teal);
}

.step-next {
    text-align: center;
    color: #444;
    max-width: 520px;
    margin: 1.4em auto 1.2em;
}

.soft-note {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    max-width: 560px;
    margin: -1em auto 1.6em;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .steps-indicator {
        gap: 0.5em;
    }

    .step-pill {
        font-size: 0.85em;
        gap: 0.4em;
    }

    .step-dot {
        width: 30px;
        height: 30px;
    }

    .step-line {
        min-width: 16px;
    }
}

/* Photo uploads on the Step 2 page */
.photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.8em;
    margin-top: 1em;
}

.photo-list:empty {
    display: none;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e5e7eb;
}

.photo-thumb {
    height: 90px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
}

.photo-status {
    font-size: 0.72em;
    padding: 0.4em 0.5em;
    color: #666;
    min-height: 2.3em;
    line-height: 1.3;
    word-break: break-word;
}

.photo-item.ok {
    border-color: var(--teal);
}

.photo-item.ok .photo-status {
    color: var(--teal);
    font-weight: 700;
}

.photo-item.error {
    border-color: #e57373;
}

.photo-item.error .photo-status {
    color: #b3261e;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-remove:hover {
    background: var(--coral);
}

/* The "heads up" box shown before submitting with fewer photos than the package has room for */
.photo-nudge {
    background: #fff8e1;
    border: 1px solid #f0d98c;
    color: #665108;
    border-radius: 14px;
    padding: 1.3em 1.5em;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.photo-nudge[hidden] {
    display: none;
}

.photo-nudge p {
    margin: 0;
    line-height: 1.55;
}

.nudge-actions {
    display: flex;
    gap: 0.8em;
    justify-content: center;
    flex-wrap: wrap;
}

.nudge-btn {
    margin: 0;
    padding: 0.7em 1.5em;
    border-radius: 30px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95em;
}

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

/* Collapsible "What's this?" explainers on the Step 2 page */
.help-box {
    background: #f0f6ff;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 0.9em 1.2em;
}

.help-box summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-dark);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.help-box summary::-webkit-details-marker {
    display: none;
}

.help-box summary::before {
    content: "?";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-box[open] summary::before {
    content: "\2212";
}

.help-content {
    margin-top: 0.8em;
    color: #444;
    font-size: 0.95em;
    line-height: 1.6;
}

.help-content p {
    margin: 0 0 0.7em;
}

.help-content p:last-child {
    margin-bottom: 0;
}

/* Step 1 success screen: make "Continue to Step 2" impossible to miss */
.next-step-card {
    background: white;
    border-radius: 18px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.14);
    padding: 2em 2em 1.6em;
    max-width: 560px;
    margin: 1.8em auto 0;
    text-align: center;
}

.next-step-card .next-step-label {
    display: inline-block;
    max-width: none;
    margin: 0 0 0.6em;
    padding: 0.3em 1em;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--primary), var(--coral));
    color: white;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.next-step-card h3 {
    margin: 0.2em 0 0.5em;
    font-size: 1.5em;
    color: var(--dark);
}

.next-step-card p {
    color: #555;
    line-height: 1.6;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.next-step-btn {
    font-size: 1.2em;
    padding: 1.05em 2.6em;
    margin: 0.8em 0 0.4em;
    animation: nextPulse 1.8s ease-in-out infinite;
}

.next-step-btn .arrow {
    display: inline-block;
    animation: arrowNudge 1.2s ease-in-out infinite;
}

@keyframes nextPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35), 0 0 0 0 rgba(37, 99, 235, 0.45); }
    50% { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35), 0 0 0 14px rgba(37, 99, 235, 0); }
}

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

/* The Step 2 dot in the tracker pulses too */
.steps-indicator.attention .step-pill.active .step-dot {
    animation: dotRing 1.6s ease-out infinite;
}

@keyframes dotRing {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    100% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .next-step-btn,
    .next-step-btn .arrow,
    .steps-indicator.attention .step-pill.active .step-dot {
        animation: none;
    }
}

@media (max-width: 640px) {
    .next-step-card {
        padding: 1.6em 1.2em 1.3em;
    }

    .next-step-btn {
        font-size: 1.1em;
        padding: 1em 1.8em;
    }
}

/* Terms of Service box on the quote form: checkboxes stay locked until the Terms link is opened */
.terms-box {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    padding: 1.1em 1.3em;
    border: 2px dashed #cfd8f6;
    border-radius: 12px;
    background: #fbfaff;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.terms-box .field-hint {
    margin: 0;
}

.terms-box .checkbox-label {
    margin-top: 0;
}

.terms-open {
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
}

.terms-open span {
    font-weight: 400;
    font-size: 0.85em;
    color: #777;
}

.terms-box.locked .checkbox-label {
    opacity: 0.45;
    cursor: not-allowed;
}

.terms-box.locked .checkbox-label input {
    cursor: not-allowed;
}

.terms-box.unlocked {
    border-style: solid;
    border-color: var(--teal);
    background: #f2fbfa;
}

.terms-box.unlocked .field-hint {
    color: #0b7f74;
    font-weight: 600;
}

.terms-box.attention {
    border-color: var(--coral);
    animation: termsShake 0.45s ease;
}

.terms-box.attention .field-hint {
    color: #b3261e;
    font-weight: 600;
}

@keyframes termsShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ---- Step 2: tick-box choices + labels ---- */
.label-like{display:block;font-weight:700;margin-bottom:.5em}
.choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.6em}
.choice{display:flex;align-items:center;gap:.6em;padding:.7em .9em;border:2px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;font-weight:600;line-height:1.3;transition:border-color .2s,background .2s,opacity .2s}
.choice:hover{border-color:#bfd2fb}
.choice input{width:1.15em;height:1.15em;margin:0;flex:0 0 auto;accent-color:var(--primary)}
.choice:has(input:checked){border-color:var(--primary);background:#f4f8ff}
.choice.dim{opacity:.45;cursor:not-allowed}
