/* ==========================================================================
   2026 Redesign — Home page (front-page.php)
   --------------------------------------------------------------------------
   Loaded conditionally via inc/enqueue.php only on the front page.
   Foundation tokens + chrome live in marketing.css.
   ========================================================================== */


/* --- HERO (night, starfield, two-column) ----------------------------- */

.home-hero {
    position: relative;
    padding: 160px 48px 120px;
    background:
        radial-gradient(ellipse 1400px 800px at 50% 120%, rgba(244, 168, 92, 0.12), transparent 60%),
        var(--night);
    overflow: hidden;
    color: #fff;
}

.home-hero .stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero .stars canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.6;
}

.home-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1340px;
    margin: 0 auto;
}

.home-hero__left .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sun);
    margin-bottom: 28px;
}

.home-hero__left h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 72px;
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0 0 32px;
    text-wrap: pretty;
    color: #fff;
}

.home-hero__left h1 .strike {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
}

.home-hero__left h1 .strike::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    top: 58%;
    height: 6px;
    background: var(--ember);
    transform: rotate(-3deg);
    border-radius: 3px;
}

.home-hero__left h1 .accent {
    color: var(--sun);
}

.home-hero__lede {
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    max-width: 48ch;
    margin: 0 0 40px;
}

.home-hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.home-hero__sub {
    margin-top: 24px;
    font-size: 13px;
    color: var(--stacks-fg);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.home-hero__right {
    position: relative;
}


/* --- ChatGPT mockup ---------------------------------------------------- */

.home-chat {
    position: relative;
    background: #1E1F26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 14px;
}

.home-chat__chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #16171D;
}

.home-chat__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.home-chat__dot.r { background: #FF5F57; }
.home-chat__dot.y { background: #FEBC2E; }
.home-chat__dot.g { background: #28C840; }

.home-chat__title {
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stacks-fg);
}

.home-chat__body {
    padding: 24px 22px 22px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-chat__input-row {
    display: flex;
    justify-content: flex-end;
}

.home-chat__query {
    background: #373845;
    color: #fff;
    padding: 10px 16px;
    border-radius: 14px 14px 4px 14px;
    font-size: 14px;
    max-width: 80%;
    position: relative;
    min-height: 1.5em;
}

.home-chat__query.typing::after {
    content: "|";
    color: var(--sun);
    animation: home-blink 1s infinite;
    margin-left: 2px;
}

@keyframes home-blink {
    50% { opacity: 0; }
}

.home-chat__answer {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 400ms ease;
}

.home-chat__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #10A37F, #0E8A68);
    display: grid;
    place-items: center;
    font-size: 14px;
}

.home-chat__avatar svg {
    width: 16px;
    height: 16px;
}

.home-chat__msg {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    font-size: 14px;
}

.home-chat__msg p {
    margin: 0 0 12px;
}

.home-chat__biz {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.home-chat__biz .name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.home-chat__biz .meta {
    font-size: 12px;
    color: var(--stacks-fg);
    margin-bottom: 6px;
}

.home-chat__biz .desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.home-chat__footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stacks-fg-2);
}

.home-chat__footer .live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--good);
}

.home-chat__footer .live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--good);
    animation: home-pulse 2s infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Suggestion chips below the chat box */

.home-chips {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: all 150ms ease;
    font-family: var(--font-body);
}

.home-chip:hover {
    background: rgba(244, 168, 92, 0.1);
    border-color: var(--sun);
    color: #fff;
}

.home-chip .prompt {
    color: var(--sun);
    margin-right: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}


/* --- SUNRISE TRANSITION ----------------------------------------------- */

.home-sunrise {
    height: 200px;
    position: relative;
    background: linear-gradient(to bottom,
        var(--night) 0%, #1a1a2e 25%, #3a2838 45%, #7a4028 65%, #C87B3E 82%, var(--sand) 100%);
    overflow: hidden;
}

.home-sunrise::before {
    content: "";
    position: absolute;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 168, 92, 0.6) 0%, rgba(212, 120, 47, 0.3) 30%, transparent 65%);
    filter: blur(30px);
}


/* --- THE SHIFT (sand) ------------------------------------------------- */

.home-shift {
    background: var(--sand);
    color: var(--ink);
    padding: 140px 48px 120px;
    position: relative;
}

.home-shift__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.home-shift__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 20px;
}

.home-shift h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 22ch;
    margin: 0 0 80px;
}

.home-shift h2 em {
    color: var(--ember);
    font-style: italic;
    font-weight: 500;
}

.home-shift__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.home-shift__col {
    background: #fff;
    border: 1px solid rgba(27, 30, 43, 0.08);
    border-radius: 14px;
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.home-shift__col .tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stacks-fg-2);
    margin-bottom: 8px;
}

.home-shift__col .headline {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 6px;
}

.home-shift__col.before {
    opacity: 0.65;
}

.home-shift__col.before .tag {
    color: #a85a2a;
}

.home-shift__col.after .tag {
    color: var(--ember);
    font-weight: 500;
}

.home-shift__col.after {
    border-color: var(--ember);
    box-shadow: 0 12px 40px rgba(212, 120, 47, 0.12);
}

/* "Ten blue links" mock */
.home-goog__row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(27, 30, 43, 0.1);
}

.home-goog__row:last-child {
    border-bottom: none;
}

.home-goog__row .fav {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eee;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.home-goog__row .body {
    flex: 1;
    min-width: 0;
}

.home-goog__row .url {
    font-size: 11px;
    color: #5f6368;
    margin-bottom: 2px;
    font-family: var(--font-mono);
}

.home-goog__row .title-l {
    font-size: 15px;
    color: #1a0dab;
    font-weight: 500;
    margin-bottom: 2px;
}

.home-goog__row .snip {
    font-size: 12px;
    color: #4d5156;
    line-height: 1.4;
}

.home-goog__you {
    background: rgba(244, 168, 92, 0.18);
    border-left: 3px solid var(--sun);
    padding: 10px 12px;
    margin-top: 4px;
    border-radius: 0 6px 6px 0;
}

.home-goog__you .title-l {
    color: var(--ember);
}

.home-goog__you .badge {
    display: inline-block;
    background: var(--ember);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 6px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* AI answer */
.home-ai-ans {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
}

.home-ai-ans .biz {
    background: #FAFAF5;
    border: 1px solid rgba(27, 30, 43, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.home-ai-ans .biz .name {
    font-weight: 600;
    margin-bottom: 2px;
}

.home-ai-ans .biz .detail {
    font-size: 12px;
    color: var(--stacks-fg-2);
}

.home-ai-ans .missing {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1.5px dashed var(--ember);
    border-radius: 8px;
    font-size: 13px;
    color: var(--ember);
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-ai-ans .missing::before {
    content: "?";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ember);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}


/* --- WEEKLY RHYTHM (sand-2) ------------------------------------------ */

.home-rhythm {
    background: var(--sand-2);
    color: var(--ink);
    padding: 140px 48px 160px;
    position: relative;
}

.home-rhythm__inner {
    max-width: 1340px;
    margin: 0 auto;
}

.home-rhythm__head {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: end;
}

.home-rhythm h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0;
}

.home-rhythm h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--ember);
}

.home-rhythm__lede {
    font-size: 18px;
    color: rgba(27, 30, 43, 0.7);
    line-height: 1.55;
    max-width: 52ch;
    padding-bottom: 10px;
    margin: 0;
}

.home-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: rgba(27, 30, 43, 0.08);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(27, 30, 43, 0.08);
}

.home-day {
    background: #fff;
    padding: 24px 20px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
    transition: background 200ms ease;
}

.home-day:hover {
    background: #FEFBF2;
}

.home-day .dow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stacks-fg-2);
}

.home-day .title-d {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 4px;
}

.home-day .desc {
    font-size: 12.5px;
    color: rgba(27, 30, 43, 0.65);
    line-height: 1.5;
}

.home-day .icon {
    height: 44px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 4px;
}

.home-day .icon svg {
    width: 40px;
    height: 40px;
}

.home-day.sunday {
    background: linear-gradient(180deg, #FDF2DC 0%, #fff 100%);
}

.home-day.sunday .dow {
    color: var(--ember);
}

.home-day.sunday::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ember);
}


/* --- PROOF (sand deeper) --------------------------------------------- */

.home-proof {
    background: var(--sand);
    color: var(--ink);
    padding: 140px 48px;
    position: relative;
}

.home-proof__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.home-proof__rule {
    width: 40px;
    height: 2px;
    background: var(--ember);
    margin-bottom: 32px;
}

.home-proof__eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 16px;
}

.home-proof h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    max-width: 26ch;
    margin: 0 0 60px;
}

.home-proof h2 em {
    font-style: italic;
    color: var(--ember);
    font-weight: 500;
}

.home-proof__cmp {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.home-proof__scan {
    background: #fff;
    border: 1px solid rgba(27, 30, 43, 0.1);
    border-radius: 12px;
    padding: 22px 24px;
}

.home-proof__scan .stamp {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stacks-fg-2);
    margin-bottom: 14px;
}

.home-proof__scan .q {
    font-size: 13px;
    color: var(--stacks-fg-2);
    margin-bottom: 12px;
    font-style: italic;
}

.home-proof__scan ol {
    list-style: none;
    counter-reset: r;
    margin: 0;
    padding: 0;
}

.home-proof__scan li {
    counter-increment: r;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(27, 30, 43, 0.08);
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 14px;
}

.home-proof__scan li::before {
    content: counter(r);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--stacks-fg-2);
    width: 14px;
}

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

.home-proof__scan li.you {
    font-weight: 600;
    color: var(--ember);
}

.home-proof__scan.after {
    border-color: var(--ember);
    box-shadow: 0 12px 40px rgba(212, 120, 47, 0.1);
}

.home-proof__arrow {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 13px;
    color: var(--ember);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-proof__arrow svg {
    width: 48px;
    height: 16px;
}

.home-proof__foot {
    font-size: 13px;
    color: var(--stacks-fg-2);
    font-style: italic;
    text-align: center;
    margin: 0;
}


/* --- CLOSING (night returns) ----------------------------------------- */

.home-closing {
    background:
        radial-gradient(ellipse 900px 500px at 50% 0%, rgba(212, 120, 47, 0.18), transparent 60%),
        var(--night);
    color: #fff;
    padding: 160px 48px 140px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.home-closing__stars-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-closing__stars-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.5;
}

.home-closing__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.home-closing__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sun);
    margin-bottom: 32px;
}

.home-closing h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 60px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 32px;
}

.home-closing h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--sun);
}

.home-closing p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 56ch;
    margin: 0 auto 48px;
    line-height: 1.55;
}

.home-closing__cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* --- Mobile breakpoints ---------------------------------------------- */

@media (max-width: 880px) {
    .home-hero {
        padding: 120px 24px 80px;
    }

    .home-hero__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .home-hero__left h1 {
        font-size: 48px;
    }

    .home-hero__lede {
        font-size: 16px;
    }

    .home-chips {
        position: static;
        margin-top: 16px;
    }

    .home-shift,
    .home-rhythm,
    .home-proof {
        padding: 100px 24px;
    }

    .home-shift h2,
    .home-rhythm h2 {
        font-size: 36px;
        margin-bottom: 48px;
    }

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

    .home-rhythm__head {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 56px;
    }

    .home-week {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-day {
        min-height: auto;
    }

    .home-proof h2 {
        font-size: 28px;
    }

    .home-proof__cmp {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-proof__arrow {
        flex-direction: row;
    }

    .home-proof__arrow svg {
        transform: rotate(90deg);
    }

    .home-closing {
        padding: 100px 24px 80px;
    }

    .home-closing h2 {
        font-size: 38px;
    }
}
