:root {
    --navy: #0a3161;
    --navy-deep: #071525;
    --red: #b31942;
    --red-deep: #8c1233;
    --paper: #f6f1e8;
    --white: #fffdf9;
    --ink: #142033;
    --muted: #5d6b7c;
    --line: rgba(10, 49, 97, 0.12);
    --shadow: 0 24px 60px rgba(7, 21, 37, 0.16);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --brand: "Montserrat", "Outfit", sans-serif;
}

* { box-sizing: border-box; }

html { 
    scroll-padding-top: 100px;
    scroll-behavior: smooth; 
}


body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: #fff;
    padding: 0.5rem 0.8rem;
    z-index: 20;
}

.skip-link:focus { top: 1rem; }

.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 6vw;
    background: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy);
    text-decoration: none;
}

.brand img {
    width: 46px;
    height: 46px;
}

.brand strong {
    font-family: var(--brand);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.nav-links a[aria-current="page"] { color: var(--red); }

.nav-toggle { display: none; }

.btn-hoa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-hoa:hover { transform: translateY(-1px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid rgba(10, 49, 97, 0.25);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: stretch;
    min-height: 480px;
    padding: 0;
    color: #fff;
    background: #071525;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.6rem 4vw 1.6rem 6vw;
    text-align: left;
}

.hero-media {
    position: relative;
    height: 400px;
    min-height: 400px;
    background: #071525;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-plate {
    width: min(312px, 80.6vw);
    margin: 0 auto 1.2rem;
    padding: 0.6rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 0.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f3c1cc;
}

.hero h1,
.section h2,
.auth-card h1,
.page-head h1 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero h1 {
    margin: 0.85rem 0 0;
    max-width: 12em;
    font-family: var(--brand);
    font-weight: 800;
    font-size: clamp(2.05rem, 4vw, 3.15rem);
    text-wrap: balance;
}

.lede {
    width: min(34rem, 100%);
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.15rem;
}

.hero-badge {
    display: inline-block;
    margin: 0;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.trust-line {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.sub-cta {
    display: inline-block;
    margin-top: 0.85rem;
    color: #fff;
    font-weight: 700;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(520px, 100%);
    margin: 1.4rem 0 0.6rem;
}

.count-box {
    padding: 0.9rem 0.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.count-box strong {
    display: block;
    font-family: var(--brand);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
}

.count-box span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.opening-label {
    min-height: 1.5rem;
    margin: 0.35rem 0 0;
    color: #ffe14a;
    font-size: 1.575rem;
    font-weight: 700;
}

.nav-enter {
    margin-left: auto;
    flex: 0 0 auto;
    border: 2px solid var(--navy);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    animation: nav-enter-pulse 1.8s ease-in-out infinite;
}

.nav-enter:hover { color: var(--red); }

@keyframes nav-enter-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(179, 25, 66, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(179, 25, 66, 0); }
}

.chat-page { display: flex; justify-content: flex-start; }
.chat-panel {
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    height: min(70vh, 640px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
}
.chat-log { flex: 1; overflow: auto; padding: 1rem; background: #efeae2; display: flex; flex-direction: column; gap: 0.55rem; }
.chat-bubble { max-width: 85%; padding: 0.55rem 0.75rem; border-radius: 16px; background: #fff; }
.chat-bubble.mine { align-self: flex-end; background: #d9fdd3; }
.chat-bubble p { margin: 0; white-space: pre-wrap; }
.chat-bubble time { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.75rem; }
.chat-bubble img, .chat-bubble video { display: block; max-width: 100%; border-radius: 12px; margin-bottom: 0.35rem; }
.chat-bubble audio { width: 220px; margin-bottom: 0.35rem; }
.chat-form { display: grid; gap: 0.45rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.chat-composer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: end;
}
.chat-icon-btn {
    width: 2.55rem;
    height: 2.55rem;
    border: 0;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #eef2f6;
    color: var(--navy, #0a3161);
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
    padding: 0;
}
.chat-icon-btn svg { width: 1.2rem; height: 1.2rem; display: block; }
.chat-send-btn { background: var(--navy, #0a3161); color: #fff; }
.chat-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 0;
}
.chat-composer-input {
    min-height: 2.55rem;
    max-height: 8rem;
    resize: none;
    overflow-y: auto;
}
.chat-file-name {
    margin: 0;
    color: var(--muted, #66788a);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fine { color: var(--muted); font-size: 0.92rem; }

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: min(1180px, 100%);
    margin: 2rem auto 0;
}
.activity-grid .card {
    min-height: 100%;
    background:
        linear-gradient(165deg, rgba(255, 253, 249, 0.96), rgba(246, 241, 232, 0.92)),
        radial-gradient(circle at top right, rgba(179, 25, 66, 0.12), transparent 55%);
}
.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: min(1080px, 100%);
    margin: 2rem auto 0;
}
.proof-strip article {
    padding: 1.2rem 1.3rem;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--line);
}
.proof-strip strong {
    display: block;
    font-family: var(--brand);
    font-size: 1.35rem;
    color: var(--navy);
}
.proof-strip span { color: var(--muted); font-size: 0.95rem; }
.proof-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
}
.proof-quotes blockquote {
    margin: 0;
    padding: 1.3rem;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--line);
}
.proof-quotes p {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.45;
}
.proof-quotes cite {
    display: block;
    margin-top: 0.9rem;
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}
.season-block { margin-top: 3rem; }
.season-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.4rem;
}
.season-grid article {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(10, 49, 97, 0.95), rgba(7, 21, 37, 0.92)),
        radial-gradient(circle at 20% 0%, rgba(179, 25, 66, 0.35), transparent 50%);
    min-height: 100%;
}
.season-grid h3 {
    margin: 0 0 0.55rem;
    font-family: var(--brand);
    font-size: 1.05rem;
}
.season-grid ul {
    margin: 0;
    padding-left: 1.05rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}
.season-grid li + li { margin-top: 0.25rem; }
.hero-actions .sub-cta { align-self: center; }

.mission-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.mission-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    text-align: left;
    cursor: pointer;
}
.mission-card[disabled] { opacity: 0.55; cursor: not-allowed; }
.mission-card.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(179, 25, 66, 0.18); }
.mission-timer {
    font-family: var(--brand);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--navy);
}
.mission-detail {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1.3rem;
    border-radius: 24px;
    background: #efeae2;
}
.mission-detail ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.group-list { display: grid; gap: 0.65rem; }
.group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--line);
}
.group-row code {
    font-size: 0.78rem;
    word-break: break-all;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.section { padding: 5rem 6vw; }

.section-narrow { width: min(1080px, 100%); margin: 0 auto; }

.section h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.8rem; }

.kicker {
    margin: 0 0 0.4rem;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.task-grid, .step-grid, .split, .pain-grid, .track-grid {
    display: grid;
    gap: 1rem;
}

.task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; }
.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
.pain-grid { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
.track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }

.card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.3rem;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(20, 32, 51, 0.04);
}

.task-card { min-height: 100%; }

.task-index {
    font-family: var(--brand);
    font-weight: 800;
    color: var(--red);
}

.minutes {
    display: inline-block;
    margin: 0.7rem 0;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(10, 49, 97, 0.08);
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
}

.passport {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    background: var(--navy);
    color: #fff;
    border-radius: 32px;
    padding: clamp(1.4rem, 4vw, 3rem);
}

.passport h2 { color: #fff; }

.price {
    font-family: var(--brand);
    font-weight: 800;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 0.95;
}

.passport .price { font-size: clamp(1.20rem, 1.4vw, 1.2rem); }

.pack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.pack-grid article, .pack-option {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 0.9rem;
}

.pack-grid-light article {
    background: rgba(255, 255, 255, 0.08);
}

.pack-grid h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.pack-grid p { margin: 0.2rem 0 0; }

.pack-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    background: #fff;
    border-color: var(--line);
    cursor: pointer;
}

.pack-option strong, .pack-option b, .pack-option small { display: block; }
.pack-option b { font-size: 1.15rem; color: var(--navy); }
.pack-option small { color: #66788a; }
.pack-option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(10, 49, 97, 0.15); }

.timeline {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.timeline li {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.2rem;
}

.timeline time {
    font-family: var(--brand);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.compare-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.compare {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.compare th, .compare td {
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.compare th { font-size: 0.92rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare .pick {
    background: rgba(10, 49, 97, 0.06);
    color: var(--navy);
    font-weight: 700;
}

.lead-band {
    background: #fff;
    border-top: 8px solid var(--red);
}

.form-grid { display: grid; gap: 0.8rem; }

.alert-hoa {
    border-radius: 14px;
    padding: 0.8rem 1rem;
    background: #e8f6ee;
    color: #0f6b3c;
}

.alert-hoa.error { background: #fde8ec; color: var(--red-deep); }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 6vw 6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer a { color: var(--muted); }

.page {
    width: min(1080px, calc(100% - 2rem));
    margin: 2rem auto 5rem;
}

.page > h2 {
    margin: 1.6rem 0 0.8rem;
    font-family: var(--serif);
    font-size: 1.7rem;
}

.auth-card, .panel {
    width: min(560px, 100%);
    margin: 0 auto;
    background: var(--white);
    border-radius: 28px;
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.wide-panel { width: min(860px, 100%); }

.page-head { margin-bottom: 1.2rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }

.slot-list { display: grid; gap: 0.8rem; }

.slot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--line);
}

.slot strong { display: block; }

.pay-box {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.pix-image {
    width: min(240px, 70%);
    background: #fff;
    border-radius: 16px;
    padding: 0.6rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.avatar-preview {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(10, 49, 97, 0.08);
    display: grid;
    place-items: center;
    font-family: var(--brand);
    font-weight: 800;
    color: var(--navy);
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.danger-zone { border-color: rgba(179, 25, 66, 0.35); }

.mobile-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.96);
    border-top: 1px solid var(--line);
    z-index: 25;
}

.form-control, .form-select {
    border-radius: 14px;
    border-color: rgba(10, 49, 97, 0.18);
    padding: 0.8rem 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 0.2rem rgba(10, 49, 97, 0.15);
}

@media (max-width: 980px) {
    .task-grid, .passport, .account-grid, .pain-grid, .pack-grid,
    .activity-grid, .proof-strip, .proof-quotes, .season-grid, .mission-board { grid-template-columns: 1fr; }
    .step-grid { grid-template-columns: 1fr; }
    .track-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .site-nav .nav-links { display: none; }
    body[data-api="app/backend"] .site-nav { flex-wrap: wrap; }
    body[data-api="app/backend"] .site-nav .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        order: 3;
        width: 100%;
        gap: 0.45rem 0.9rem;
    }
    body[data-api="app/backend"] .nav-enter { order: 2; }
    .site-nav .nav-links.app-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
    }
    .offcanvas .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
    .nav-toggle { display: inline-flex; }
    .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slot { flex-direction: column; align-items: stretch; }
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-copy { padding: 1.6rem 1.15rem 1.4rem; }
    .hero-media { height: 248px; min-height: 248px; order: 2; }
    .hero h1 { font-size: clamp(1.85rem, 7vw, 2.45rem); }
    .timeline li { grid-template-columns: 1fr; }
    .lede { font-size: 1.02rem; }
    .site-footer { padding-bottom: 2rem; }
}

.password-field { position: relative; }
.password-field input { width: 100%; box-sizing: border-box; padding-right: 6.5rem; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: .45rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: .85rem;
    font-weight: 700;
}
.passport-code {
    font-family: "Outfit", sans-serif;
    font-size: 2.4rem;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--navy);
}
.passport-card {
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    padding: 1.2rem;
    background: #fff;
    margin-bottom: 1rem;
}

