/* ================================================
   BASE & RESET
================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0d0d;
    color: #d8d8d8;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ================================================
   LAYOUT
================================================ */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}

.divider {
    border: none;
    border-top: 1px solid #1e1e1e;
}

/* ================================================
   TYPOGRAPHY
================================================ */
h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    color: #f0f0f0;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    color: #f0f0f0;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

p {
    margin-bottom: 20px;
    color: #c8c8c8;
}

p:last-child {
    margin-bottom: 0;
}

/* ================================================
   SECTION LABEL (eyebrow text)
================================================ */
.section-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    color: #00c896;
    margin-bottom: 18px;
}

/* ================================================
   SITE HEADER
================================================ */
/* ---- Large header (scrolls away) ---- */
.site-header-large {
    background: #000;
    border-bottom: 1px solid #1a1a1a;
}

.site-header-inner {
    display: flex;
    align-items: flex-end;
    max-width: none;
    padding: 0 28px;
    height: 300px;
}

.site-logo {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    text-decoration: none;
    color: #f0f0f0;
}

.site-logo:visited,
.site-logo:hover,
.site-logo:active {
    color: #f0f0f0;
}

.site-logo img {
    display: block;
    height: 300px;
    width: auto;
}

.site-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 6.5rem;
    font-weight: 800;
    color: #f0f0f0;
    letter-spacing: -0.02em;
    line-height: 1;
    padding-bottom: 0.08em;
}

.site-name-run {
    font-style: normal;
}

.site-name-without {
    font-style: italic;
}

/* ---- Small header (slides in on scroll) ---- */
.site-header-small {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header-small.visible {
    transform: translateY(0);
}

.site-header-small-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    padding: 0 28px;
    height: 70px;
}

.site-logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f0f0f0;
}

.site-logo-small:visited,
.site-logo-small:hover,
.site-logo-small:active {
    color: #f0f0f0;
}

.site-logo-small img {
    display: block;
    height: 50px;
    width: auto;
}

.site-logo-small .site-name {
    font-size: 1.6rem;
    padding-bottom: 0;
}

/* ---- Header nav (shown in the scrolled compact bar; also used on blog pages) ---- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #f0f0f0;
}

/* ================================================
   HERO
================================================ */
.hero {
    padding: 110px 0 90px;
    text-align: center;
}

.hero .section-label {
    margin-bottom: 24px;
}

.subhead {
    font-size: 1.15rem;
    color: #888;
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

/* ================================================
   BUTTON
================================================ */
.btn {
    display: inline-block;
    background: #00c896;
    color: #0d0d0d;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 16px 44px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    background: #00b384;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* ================================================
   STORY / STANDARD SECTIONS
================================================ */
.story,
.problem,
.cost,
.why-now,
.outcome,
.what-we-do,
.who,
.how {
    padding: 80px 0;
}

/* ================================================
   PULL QUOTE
================================================ */
.pull-quote {
    border-left: 3px solid #00c896;
    padding: 14px 28px;
    margin: 44px 0;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    color: #f0f0f0;
    line-height: 1.5;
}

/* ================================================
   MID-PAGE CTA BREAK
================================================ */
.cta-break {
    padding: 72px 0;
    text-align: center;
}

.cta-break p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 28px;
}

/* ================================================
   QUALIFIER LIST
================================================ */
.qualifier-list {
    list-style: none;
    margin-bottom: 36px;
}

.qualifier-list li {
    position: relative;
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid #1a1a1a;
    color: #c8c8c8;
}

.qualifier-list li::before {
    content: "→";
    color: #00c896;
    position: absolute;
    left: 0;
    font-weight: 600;
}

.qualifier-list li:first-child {
    border-top: 1px solid #1a1a1a;
}

.anti-qualifier {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

/* ================================================
   STEPS LIST
================================================ */
.steps {
    list-style: none;
    counter-reset: steps;
    margin-top: 8px;
}

.steps li {
    counter-increment: steps;
    position: relative;
    padding: 0 0 28px 56px;
    color: #c8c8c8;
}

.steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    background: #00c896;
    color: #0d0d0d;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps li:last-child {
    padding-bottom: 0;
}

/* ================================================
   WAITLIST FORM
================================================ */
.form-section {
    background: #111;
    padding: 90px 0;
}

.form-subhead {
    color: #666;
    margin-bottom: 40px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #f0f0f0;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    padding: 14px 18px;
    border-radius: 4px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s ease;
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
    border-color: #00c896;
}

.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder {
    color: #444;
}

.waitlist-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.waitlist-form select option {
    background: #1a1a1a;
    color: #f0f0f0;
}

.form-note--success {
    color: #f0f0f0;
    font-size: 1.15rem;
    line-height: 1.7;
    padding: 28px 0 8px;
}

.waitlist-form textarea {
    resize: vertical;
    min-height: 110px;
}

.waitlist-form .btn {
    align-self: flex-start;
    margin-top: 6px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row > input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 540px) {
    .form-row {
        flex-direction: column;
    }
}

.contact-pref {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 12px 16px 14px;
    margin: 0;
}

.contact-pref legend {
    color: #888;
    font-size: 0.82rem;
    padding: 0 6px;
}

.contact-pref label {
    color: #f0f0f0;
    margin-right: 18px;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-pref input[type="radio"] {
    accent-color: #00c896;
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-error {
    color: #ff8b8b;
    background: rgba(255, 107, 107, 0.08);
    border-left: 3px solid #ff6b6b;
    padding: 10px 14px;
    margin: 0;
    font-size: 0.92rem;
    border-radius: 2px;
}

.form-note {
    color: #444;
    font-size: 0.88rem;
    margin-top: 20px;
}

/* ================================================
   FINAL CLOSE
================================================ */
.final-close {
    padding: 110px 0;
    text-align: center;
}

.final-close p {
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto 20px;
    color: #c8c8c8;
}

.final-close .btn {
    margin-top: 20px;
}

/* ================================================
   FOOTER
================================================ */
footer {
    border-top: 1px solid #1a1a1a;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-mark img {
    display: block;
    height: 40px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #f0f0f0;
}

.footer-copy {
    color: #383838;
    font-size: 0.8rem;
    margin: 0;
}

/* ================================================
   ASSESSMENT FORM
================================================ */
.assessment-hero {
    padding-bottom: 60px;
}

.field-label {
    display: block;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: -6px;
}

.prefilled-note {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.prefilled-note strong {
    color: #00c896;
    font-weight: 600;
}

/* ================================================
   HOME PAGE - HERO CAROUSEL
================================================ */
.home-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
}

.home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.1s ease;
}

.home-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.home-slide-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.home-slide-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(13,13,13,0.95) 0%,
        rgba(13,13,13,0.86) 20%,
        rgba(13,13,13,0.55) 38%,
        rgba(13,13,13,0.12) 52%,
        rgba(13,13,13,0) 64%);
}

.home-slide-scrim::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,13,13,0.35) 0%, rgba(13,13,13,0) 22%, rgba(13,13,13,0) 70%, rgba(13,13,13,0.5) 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(28px, 6vw, 84px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-slide-content {
    max-width: 560px;
    opacity: 0;
    transform: translateY(14px);
}

.home-slide.active .home-slide-content {
    animation: homeSlideRise 0.9s cubic-bezier(.2,.7,.2,1) 0.18s forwards;
}

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

.home-hero-headline {
    color: #f0f0f0;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    text-wrap: balance;
}

.home-hero-subhead {
    color: #9a9a9a;
    font-size: 1.15rem;
    line-height: 1.65;
    margin: 0 0 36px;
    max-width: 500px;
}

.home-hero .section-label {
    margin-bottom: 22px;
}

.home-hero-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.home-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(240,240,240,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.home-dot:hover {
    background: rgba(240,240,240,0.55);
}

.home-dot.active {
    background: #00c896;
    width: 26px;
    border-radius: 5px;
}

/* ================================================
   HOME PAGE - WHY / MATH / BUILD / WHO / CTA
================================================ */
.home-why,
.home-math,
.home-build,
.home-who {
    padding: 80px 0;
}

.home-cta {
    background: #111;
    padding: 80px 0;
}

/* ---- The Math ---- */
.math-block {
    margin-top: 6px;
}

.bar-row {
    margin-bottom: 30px;
}

.bar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bar-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #888;
}

.bar-total {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c8c8c8;
}

.bar-total strong {
    color: #f0f0f0;
    font-weight: 700;
}

.math-bar {
    display: flex;
    height: 62px;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
}

.seg {
    height: 100%;
    width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d0d0d;
    font-weight: 700;
    font-size: 0.95rem;
    transition: width 1.1s cubic-bezier(.65,0,.35,1);
    overflow: hidden;
    white-space: nowrap;
}

.math-bar.animate .seg {
    width: var(--w);
}

.seg-before { background: #4f4442; color: #d8c8c4; }
.seg-auto { background: #00c896; }
.seg-deleg { background: #0099a8; color: #001f23; }
.seg-elim { background: #666; color: #1a1a1a; }
.seg-owner { background: #d4a843; }

.math-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 32px;
    margin: 30px 0 0;
}

.legend-item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.legend-swatch {
    flex: none;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    margin-top: 7px;
}

.legend-text {
    line-height: 1.45;
}

.legend-title {
    display: block;
    color: #f0f0f0;
    font-weight: 600;
    font-size: 1rem;
}

.legend-hrs {
    color: #888;
    font-weight: 500;
    margin-left: 8px;
    font-size: 0.92rem;
}

.legend-desc {
    display: block;
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
}

.math-closer {
    color: #c8c8c8;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 40px 0 10px;
    letter-spacing: -0.01em;
}

.math-sub {
    color: #888;
    font-size: 1rem;
    margin: 0;
}

/* ---- What We Build Cards ---- */
.home-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 4px;
}

.home-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    padding: 28px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.home-card:hover {
    border-color: #2c4a42;
    background: #131615;
}

.home-card h3 {
    color: #f0f0f0;
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.home-card p {
    color: #c8c8c8;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Who Checklist ---- */
.home-checklist {
    margin: 4px 0 0;
    border-top: 1px solid #1a1a1a;
}

.check-item {
    display: flex;
    gap: 20px;
    align-items: baseline;
    padding: 24px 4px;
    border-bottom: 1px solid #1a1a1a;
    transition: padding-left 0.25s ease;
}

.check-item:hover {
    padding-left: 12px;
}

.check-arrow {
    color: #00c896;
    font-size: 1.3rem;
    font-weight: 700;
    flex: none;
    line-height: 1.4;
}

.check-text {
    color: #f0f0f0;
    font-size: 1.16rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ---- CTA Split ---- */
.home-cta-head {
    text-align: center;
    color: #f0f0f0;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.018em;
    margin: 0 0 44px;
}

.home-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-cta-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-cta-card h3 {
    color: #f0f0f0;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.015em;
}

.home-cta-card p {
    color: #c8c8c8;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 30px;
    max-width: 260px;
}

.home-cta-card .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: #00c896;
    border: 1px solid #00c896;
}

.btn-outline:hover {
    background: rgba(0, 200, 150, 0.1);
}

/* ================================================
   MOBILE
================================================ */
@media (max-width: 640px) {
    .hero {
        padding: 72px 0 64px;
    }

    .story,
    .problem,
    .cost,
    .why-now,
    .outcome,
    .what-we-do,
    .who,
    .how {
        padding: 60px 0;
    }

    .form-section {
        padding: 64px 0;
    }

    .final-close {
        padding: 72px 0;
    }

    .pull-quote {
        font-size: 1.05rem;
        padding: 12px 20px;
    }

    .site-header-inner {
        height: 120px;
    }

    .site-logo img {
        height: 120px;
    }

    .site-logo {
        gap: 10px;
    }

    .site-name {
        font-size: 2rem;
    }

    .site-header-small-inner {
        height: 50px;
        padding: 0 16px;
    }

    .site-logo-small img {
        height: 36px;
    }

    .site-logo-small .site-name {
        display: none;
    }

    .site-nav {
        gap: 10px;
    }

    .site-nav a {
        font-size: 0.72rem;
    }

    .assessment-hero {
        padding-bottom: 40px;
    }

    .waitlist-form .btn {
        align-self: stretch;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-nav {
        gap: 20px;
    }

    /* Home page mobile */
    .home-hero {
        height: auto;
        min-height: 0;
    }

    .home-hero-inner {
        padding-top: 88px;
        padding-bottom: 96px;
    }

    .home-slide {
        position: absolute;
    }

    .home-slide.active {
        position: relative;
    }

    .home-slide-bg {
        background-image: var(--bg-m);
        background-attachment: scroll;
    }

    .home-slide-scrim {
        background: linear-gradient(90deg, rgba(13,13,13,0.8) 0%, rgba(13,13,13,0.55) 50%, rgba(13,13,13,0.35) 100%);
    }

    .home-why,
    .home-math,
    .home-build,
    .home-who {
        padding: 60px 0;
    }

    .home-cta {
        padding: 60px 0;
    }

    .home-card-grid,
    .home-cta-grid,
    .math-legend {
        grid-template-columns: 1fr;
    }

    .home-cta-card {
        padding: 32px 24px;
    }

    .seg {
        font-size: 0.8rem;
    }
}
