/* ==========================================================================
   Sections - Header, hero, how-it-works accordion, involvement, footer, burger menu
   ========================================================================== */


/* --- Header --- */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,1));
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 60px;
    height: 2px;
    background: #000;
    transform: translateX(-50%);
}

.logo {
    font-family: "Special Gothic Expanded One", sans-serif;
    font-size: 3rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -2px;
    margin-bottom: 10px;
    color: #000;
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.tagline {
    font-size: 1.2rem;
    color: #555;
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
}

.tagline::before,
.tagline::after {
    content: '—';
    color: #ccc;
    margin: 0 10px;
}


/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 30px 0;
    position: relative;
    background: #fff;
}

.hero::before {
    content: none;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #0a0a0a;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    color: #4a4a4a;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 1.6;
    letter-spacing: 0.25px;
}

.hero .hero-tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #4a4a4a;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0;
}

/* Mobile break - hidden on desktop, shows as line break on mobile */
.mobile-break {
    display: none;
}

.sector-demo {
    margin: 32px auto;
    max-width: 100%;
    text-align: center;
}

#territory-demo-map {
    width: 100%;
    max-width: 600px;
    height: 340px;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
    overflow: hidden;
    position: relative;
    background: #fff;
    pointer-events: none;
}

#territory-demo-map::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background:
        linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 12%, rgba(255,255,255,0) 88%, #fff 100%),
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 12%, rgba(255,255,255,0) 88%, #fff 100%);
}

#territory-demo-map .leaflet-interactive {
    transition: fill 0.15s ease, fill-opacity 0.15s ease, stroke 0.15s ease;
}

@media (max-width: 768px) {
    #territory-demo-map { height: 260px; }
}
@media (max-width: 480px) {
    #territory-demo-map { height: 220px; }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    padding: 0 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    cursor: default;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    height: 48px;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 4px;
    height: 4px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.status-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 4px;
    height: 4px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.why-actions {
    margin-top: 28px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    padding: 0 24px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition:
        background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        letter-spacing 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.hero-actions .action-button {
    width: 172px;
}

.action-button-secondary {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: left;
}

.action-button:hover {
    background: #333;
    letter-spacing: 1px;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.action-button-secondary:hover {
    background: #f7f7f7;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.action-button:hover::before {
    left: 100%;
}

/* Hero CTA pulsing glow */
.hero-cta.glow-active {
    animation: none;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-cta.glow-active:hover {
    animation: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}


/* --- Why Section --- */
.why-it-matters {
    padding: 28px 0 40px;
    border-top: 1px solid #e5e5e5;
    position: relative;
    background: #fff;
}

.why-it-matters::before {
    content: '\25C6';
    position: absolute;
    top: -6px;
    left: 50%;
    background: #fff;
    color: #ccc;
    padding: 0 10px;
    transform: translateX(-50%);
    font-size: 0.8rem;
}

.why-it-matters h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    color: #000;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.why-it-matters h2::after {
    content: none;
    display: none;
}

.why-intro {
    max-width: 620px;
    margin: 0 auto 28px;
    padding: 0 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    text-align: center;
    color: #555;
    letter-spacing: 0;
}

.why-intro-emphasis {
    color: #16a34a;
    font-style: italic;
    font-weight: 500;
}

.why-accordion {
    max-width: 680px;
    margin: 0 auto;
    border-top: 1px solid #e5e5e5;
}

.why-accordion__item {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: relative;
    transition:
        background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-accordion__item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #22c55e;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;
}

.why-accordion__item:hover,
.why-accordion__item[open] {
    background: rgba(34, 197, 94, 0.04);
}

.why-accordion__item.is-closing {
    background: #fff;
}

.why-accordion__item:hover::before,
.why-accordion__item[open]::before {
    transform: scaleY(1);
}

.why-accordion__item.is-closing::before {
    transform: scaleY(0);
}

.why-accordion__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 18px 18px 18px 20px;
    color: #000;
    cursor: pointer;
    list-style: none;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.1px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: letter-spacing 0.2s ease;
}

.why-accordion__item summary::-webkit-details-marker {
    display: none;
}

.why-accordion__item summary::after {
    content: '\2304';
    color: #ccc;
    flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1;
    transition:
        color 0.2s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-accordion__item summary:hover {
    letter-spacing: 0.15px;
}

.why-accordion__item summary:hover::after,
.why-accordion__item[open] summary::after {
    color: #22c55e;
}

.why-accordion__item.is-closing summary::after {
    color: #ccc;
}

.why-accordion__item[open] summary::after {
    transform: rotate(180deg);
}

.why-accordion__item.is-closing summary::after {
    transform: rotate(0deg);
}

.why-accordion__body {
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.68s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.42s ease,
        padding-bottom 0.42s ease;
}

.why-accordion__item[open] .why-accordion__body {
    opacity: 1;
    padding-bottom: 30px;
}

.why-accordion__item.is-closing .why-accordion__body {
    opacity: 0;
    padding-bottom: 0;
}

.why-accordion__body p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #666;
    letter-spacing: 0;
    margin: 0;
}

.why-accordion__body p strong {
    color: #333;
    font-weight: 600;
}

.why-accordion__body p + p {
    margin-top: 12px;
}

.why-accordion__source {
    font-size: 14px;
    color: #666;
    padding-bottom: 4px;
}

.why-accordion__source a {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.why-accordion__source a:hover,
.why-accordion__source a:focus-visible {
    color: #16a34a;
}

.why-visual {
    position: relative;
    height: 148px;
    margin: 2px 0 18px;
    border: 1px solid #ededed;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,1), rgba(250,250,250,1)),
        radial-gradient(circle at 20% 20%, rgba(34,197,94,0.06), transparent 32%);
    overflow: hidden;
}

.why-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
}

.why-node,
.why-line,
.why-goal-label,
.why-effort-badge,
.why-pap-badge,
.why-streak-label,
.why-loop-ring,
.why-loop-dot,
.why-loop-step,
.why-day {
    position: absolute;
    z-index: 1;
}

/* Shared goals: connected runners move toward a center goal. */
.why-node {
    width: 22px;
    height: 22px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.why-node--center {
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    background: #22c55e;
    border-color: #16a34a;
    transform: translate(-50%, -50%) scale(0.86);
}

.why-node--top { top: 22px; left: 50%; transform: translateX(-50%); }
.why-node--right { top: 50%; right: 88px; transform: translateY(-50%); }
.why-node--bottom { bottom: 22px; left: 50%; transform: translateX(-50%); }
.why-node--left { top: 50%; left: 88px; transform: translateY(-50%); }

.why-line {
    top: 50%;
    left: 50%;
    background: #d8d8d8;
    transform-origin: center;
    opacity: 0.7;
}

.why-line--vertical {
    width: 1px;
    height: 82px;
    transform: translate(-50%, -50%) scaleY(0);
}

.why-line--horizontal {
    width: 190px;
    height: 1px;
    transform: translate(-50%, -50%) scaleX(0);
}

.why-goal-label {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0;
}

.why-accordion__item.is-visual-active .why-line--vertical {
    animation: whyLineY 0.75s ease forwards;
}

.why-accordion__item.is-visual-active .why-line--horizontal {
    animation: whyLineX 0.75s ease 0.08s forwards;
}

.why-accordion__item.is-visual-active .why-node--center {
    animation: whyCenterPulse 0.85s ease 0.18s both;
}

.why-accordion__item.is-visual-active .why-goal-label {
    animation: whyFadeUp 0.55s ease 0.35s forwards;
}

/* Friendly competition: two progress bars animate forward. */
.why-bar-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.why-bar-row:first-child { padding-top: 44px; }
.why-bar-row + .why-bar-row { margin-top: 18px; }

.why-bar-label {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: #555;
}

.why-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #ececec;
    overflow: hidden;
}

.why-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
}

.why-bar-fill--black { background: #111; }
.why-bar-fill--green { background: #22c55e; }

.why-effort-badge {
    right: 36px;
    bottom: 18px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: #16a34a;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    opacity: 0;
}

.why-accordion__item.is-visual-active .why-bar-fill--black {
    animation: whyBarBlack 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.why-accordion__item.is-visual-active .why-bar-fill--green {
    animation: whyBarGreen 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.why-accordion__item.is-visual-active .why-effort-badge {
    animation: whyFadeUpFree 0.5s ease 0.55s forwards;
}

/* Visible progress: sectors are captured one by one. */
.why-visual--progress {
    display: grid;
    grid-template-columns: repeat(4, 46px);
    grid-template-rows: repeat(3, 24px);
    gap: 7px;
    align-content: start;
    justify-content: center;
    padding-top: 16px;
}

.why-visual--progress span:not(.why-pap-badge):not(.why-map-label) {
    position: relative;
    z-index: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: rgba(255,255,255,0.92);
}

.why-accordion__item.is-visual-active .why-visual--progress span:nth-child(2),
.why-accordion__item.is-visual-active .why-visual--progress span:nth-child(6),
.why-accordion__item.is-visual-active .why-visual--progress span:nth-child(7),
.why-accordion__item.is-visual-active .why-visual--progress span:nth-child(10) {
    animation: whyTileCapture 0.45s ease forwards;
}

.why-accordion__item.is-visual-active .why-visual--progress span:nth-child(6) { animation-delay: 0.1s; }
.why-accordion__item.is-visual-active .why-visual--progress span:nth-child(7) { animation-delay: 0.2s; }
.why-accordion__item.is-visual-active .why-visual--progress span:nth-child(10) { animation-delay: 0.3s; }

.why-pap-badge {
    right: 38px;
    top: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    opacity: 0;
}

.why-accordion__item.is-visual-active .why-pap-badge {
    animation: whyFadeUpFree 0.5s ease 0.48s forwards;
}

/* Accountability: a weekly streak lights up. */
.why-visual--streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 22px;
}

.why-day {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #777;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
}

.why-streak-label {
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0;
}

.why-accordion__item.is-visual-active .why-day {
    animation: whyDayFill 0.36s ease forwards;
}

.why-accordion__item.is-visual-active .why-day:nth-child(2) { animation-delay: 0.08s; }
.why-accordion__item.is-visual-active .why-day:nth-child(3) { animation-delay: 0.16s; }
.why-accordion__item.is-visual-active .why-day:nth-child(4) { animation-delay: 0.24s; }
.why-accordion__item.is-visual-active .why-day:nth-child(5) { animation-delay: 0.32s; }
.why-accordion__item.is-visual-active .why-day:nth-child(6) { animation-delay: 0.4s; }
.why-accordion__item.is-visual-active .why-day:nth-child(7) { animation-delay: 0.48s; }
.why-accordion__item.is-visual-active .why-streak-label {
    animation: whyFadeUp 0.45s ease 0.58s forwards;
}

/* Gamification: a small points loop. */
.why-loop-ring {
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    border: 1px dashed #cfcfcf;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.why-loop-dot {
    top: calc(50% - 50px);
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    transform-origin: 5px 50px;
}

.why-loop-step {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e1e1e1;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.why-loop-step--run { top: 18px; left: 50%; transform: translateX(-50%); }
.why-loop-step--pap { top: 50%; right: 62px; transform: translateY(-50%); }
.why-loop-step--sector { bottom: 18px; left: 50%; transform: translateX(-50%); }
.why-loop-step--reward { top: 50%; left: 62px; transform: translateY(-50%); }

.why-accordion__item.is-visual-active .why-loop-dot {
    animation: whyLoop 1.1s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.why-accordion__item.is-visual-active .why-loop-step {
    animation: whyStepGlow 0.45s ease forwards;
}

.why-accordion__item.is-visual-active .why-loop-step--pap { animation-delay: 0.22s; }
.why-accordion__item.is-visual-active .why-loop-step--sector { animation-delay: 0.44s; }
.why-accordion__item.is-visual-active .why-loop-step--reward { animation-delay: 0.66s; }

/* Revised Why visuals */
.why-team-goal,
.why-team-label,
.why-member,
.why-accountability-member,
.why-accountability-label,
.why-contest-pill,
.why-contest-label,
.why-map-label {
    position: absolute;
    z-index: 1;
}

.why-team-goal {
    top: 50%;
    width: 46px;
    height: 46px;
    border: 2px solid #d8d8d8;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-50%);
}

.why-team-goal--left { left: 27%; }
.why-team-goal--right { right: 27%; }

.why-team-label {
    top: calc(50% + 54px);
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.why-team-label--left {
    left: calc(27% + 23px);
    transform: translateX(-50%);
}

.why-team-label--right {
    right: calc(27% + 23px);
    transform: translateX(50%);
}

.why-member {
    width: 14px;
    height: 14px;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.why-member--l1 { top: calc(50% - 47px); left: calc(27% + 16px); }
.why-member--l2 { top: calc(50% + 13px); left: calc(27% - 19px); }
.why-member--l3 { top: calc(50% + 13px); left: calc(27% + 51px); }
.why-member--r1 { top: calc(50% - 47px); left: calc(73% - 30px); }
.why-member--r2 { top: calc(50% - 19px); left: calc(73% + 8px); }
.why-member--r3 { top: calc(50% + 25px); left: calc(73% - 6px); }
.why-member--r4 { top: calc(50% + 25px); left: calc(73% - 54px); }
.why-member--r5 { top: calc(50% - 19px); left: calc(73% - 68px); }

.why-accordion__item.is-visual-active .why-member--l1 { animation: whyApproachLeft1 0.92s ease forwards, whyMemberGlow 0.68s ease 1.48s forwards; }
.why-accordion__item.is-visual-active .why-member--l2 { animation: whyApproachLeft2 0.92s ease 0.06s forwards, whyMemberGlow 0.68s ease 1.22s forwards; }
.why-accordion__item.is-visual-active .why-member--l3 { animation: whyApproachLeft3 0.92s ease 0.12s forwards, whyMemberGlow 0.68s ease 1.76s forwards; }
.why-accordion__item.is-visual-active .why-member--r1 { animation: whyApproachRight1 0.92s ease forwards, whyMemberGlow 0.68s ease 1.62s forwards; }
.why-accordion__item.is-visual-active .why-member--r2 { animation: whyApproachRight2 0.92s ease 0.06s forwards, whyMemberGlow 0.68s ease 1.36s forwards; }
.why-accordion__item.is-visual-active .why-member--r3 { animation: whyApproachRight3 0.92s ease 0.12s forwards, whyMemberGlow 0.68s ease 1.84s forwards; }
.why-accordion__item.is-visual-active .why-member--r4 { animation: whyApproachRight4 0.92s ease 0.18s forwards, whyMemberGlow 0.68s ease 1.14s forwards; }
.why-accordion__item.is-visual-active .why-member--r5 { animation: whyApproachRight5 0.92s ease 0.24s forwards, whyMemberGlow 0.68s ease 1.7s forwards; }

.why-bar-track--team-b {
    position: relative;
    overflow: visible;
}

.why-bar-fill--team-a,
.why-bar-fill--team-b {
    background: #111;
    width: 50%;
}

.why-effort-badge {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 24px;
    padding: 0 9px;
    line-height: 1;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

.why-accordion__item.is-visual-active .why-bar-fill--team-a {
    animation: whyEqualBar 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.why-accordion__item.is-visual-active .why-bar-fill--team-b {
    animation: whyAheadBar 2.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.why-accordion__item.is-visual-active .why-effort-badge {
    animation: whyEffortFollow 2.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.why-visual--progress span:not(.why-pap-badge):not(.why-map-label) {
    position: relative;
    z-index: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: rgba(255,255,255,0.92);
}

.why-map-label {
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    opacity: 0;
}

.why-accordion__item.is-visual-active .why-map-label {
    animation: whyFadeUp 0.45s ease 0.48s forwards;
}

.why-visual--streak {
    display: block;
    padding-bottom: 0;
}

.why-accountability-member {
    top: 50%;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: translate(-50%, -50%);
}

.why-accountability-member:nth-child(1) { left: 20%; }
.why-accountability-member:nth-child(2) { left: 32%; }
.why-accountability-member:nth-child(3) { left: 44%; }
.why-accountability-member:nth-child(4) { left: 56%; }
.why-accountability-member:nth-child(5) { left: 68%; }
.why-accountability-member:nth-child(6) { left: 80%; }

.why-accountability-label {
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    opacity: 0;
}

.why-accordion__item.is-visual-active .why-accountability-member {
    animation: whyMemberCascade 0.78s ease forwards;
}

.why-accordion__item.is-visual-active .why-accountability-member:nth-child(1) { animation-delay: 0s; }
.why-accordion__item.is-visual-active .why-accountability-member:nth-child(2) { animation-delay: 0.18s; }
.why-accordion__item.is-visual-active .why-accountability-member:nth-child(3) { animation-delay: 0.34s; }
.why-accordion__item.is-visual-active .why-accountability-member:nth-child(4) { animation-delay: 0.5s; }
.why-accordion__item.is-visual-active .why-accountability-member:nth-child(5) { animation-delay: 0.66s; }
.why-accordion__item.is-visual-active .why-accountability-member:nth-child(6) { animation-delay: 0.82s; }

.why-accordion__item.is-visual-active .why-accountability-label {
    animation: whyFadeUp 0.45s ease 1.05s forwards;
}

.why-visual--contest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.why-contest-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 34px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform-origin: center bottom;
    will-change: transform;
}

.why-contest-label {
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    opacity: 0;
}

.why-accordion__item.is-visual-active .why-contest-pill--a { animation: whyContestBumpA 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) 0.72s forwards; }
.why-accordion__item.is-visual-active .why-contest-pill--b { animation: whyContestBumpB 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) 0.98s forwards; }
.why-accordion__item.is-visual-active .why-contest-pill--c { animation: whyContestBumpC 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) 1.24s forwards; }
.why-accordion__item.is-visual-active .why-contest-pill--d { animation: whyContestBumpD 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s forwards; }
.why-accordion__item.is-visual-active .why-contest-label {
    animation: whyFadeUp 0.45s ease 2.1s forwards;
}

@keyframes whyLineY {
    to { transform: translate(-50%, -50%) scaleY(1); }
}

@keyframes whyLineX {
    to { transform: translate(-50%, -50%) scaleX(1); }
}

@keyframes whyCenterPulse {
    0% { transform: translate(-50%, -50%) scale(0.86); }
    55% { transform: translate(-50%, -50%) scale(1.08); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes whyFadeUp {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes whyFadeUpFree {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes whyBarBlack {
    to { width: 70%; }
}

@keyframes whyBarGreen {
    to { width: 84%; }
}

@keyframes whyTileCapture {
    to {
        background: rgba(34, 197, 94, 0.7);
        border-color: #16a34a;
    }
}

@keyframes whyDayFill {
    to {
        background: #22c55e;
        border-color: #16a34a;
        color: #fff;
        transform: translateY(-2px);
    }
}

@keyframes whyLoop {
    to { transform: rotate(360deg); }
}

@keyframes whyStepGlow {
    50% {
        border-color: #22c55e;
        box-shadow: 0 4px 16px rgba(34,197,94,0.16);
        color: #111;
    }
    100% {
        border-color: #e1e1e1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        color: #555;
    }
}

@keyframes whyApproachLeft1 {
    from { transform: translate(var(--why-approach-left-start-x, 140px), -8px); }
    to { transform: translate(0, 0); }
}

@keyframes whyApproachLeft2 {
    from { transform: translate(var(--why-approach-left-start-x, 112px), 28px); }
    to { transform: translate(0, 0); }
}

@keyframes whyApproachLeft3 {
    from { transform: translate(var(--why-approach-left-start-x, 112px), -28px); }
    to { transform: translate(0, 0); }
}

@keyframes whyApproachRight1 {
    from { transform: translate(var(--why-approach-right-start-x, -112px), 28px); }
    to { transform: translate(0, 0); }
}

@keyframes whyApproachRight2 {
    from { transform: translate(var(--why-approach-right-start-x, -140px), 12px); }
    to { transform: translate(0, 0); }
}

@keyframes whyApproachRight3 {
    from { transform: translate(var(--why-approach-right-start-x, -156px), 0); }
    to { transform: translate(0, 0); }
}

@keyframes whyApproachRight4 {
    from { transform: translate(var(--why-approach-right-start-x, -140px), -12px); }
    to { transform: translate(0, 0); }
}

@keyframes whyApproachRight5 {
    from { transform: translate(var(--why-approach-right-start-x, -112px), -28px); }
    to { transform: translate(0, 0); }
}

@keyframes whyMemberGlow {
    0% {
        background: #fff;
        border-color: #d4d4d4;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    68% {
        background: #22c55e;
        border-color: #16a34a;
        box-shadow: 0 0 0 4px rgba(34,197,94,0.12), 0 5px 14px rgba(34,197,94,0.14);
    }
    100% {
        background: #22c55e;
        border-color: #16a34a;
        box-shadow: 0 0 0 2px rgba(34,197,94,0.07), 0 3px 12px rgba(34,197,94,0.1);
    }
}

@keyframes whyEqualBar {
    0% { width: 0; background: #111; }
    100% { width: 50%; background: #111; }
}

@keyframes whyAheadBar {
    0% { width: 0; background: #111; box-shadow: none; }
    46% { width: 50%; background: #111; box-shadow: none; }
    66% { width: 50%; background: #111; box-shadow: none; }
    100% {
        width: 80%;
        background: #22c55e;
        box-shadow: 0 0 16px rgba(34,197,94,0.45);
    }
}

@keyframes whyEffortFollow {
    0%, 68% {
        left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.94);
    }
    100% {
        left: 80%;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        color: #16a34a;
        box-shadow: 0 4px 18px rgba(34,197,94,0.22);
    }
}

@keyframes whyMemberCascade {
    0% {
        background: #fff;
        border-color: #ddd;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transform: translate(-50%, -50%) scale(1);
    }
    58% {
        background: #22c55e;
        border-color: #16a34a;
        box-shadow: 0 4px 12px rgba(34,197,94,0.12);
        transform: translate(-50%, -50%) scale(1.06);
    }
    100% {
        background: #22c55e;
        border-color: #16a34a;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes whyContestBumpA {
    0%, 100% { transform: translateX(0) rotate(0deg); border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    34% { transform: translateX(8px) rotate(5deg); border-color: #e34234; box-shadow: 0 0 15px rgba(227,66,52,0.2); color: #111; }
    52% { transform: translateX(-3px) rotate(-2deg); border-color: #e34234; box-shadow: 0 0 10px rgba(227,66,52,0.14); color: #111; }
    70% { transform: translateX(1px) rotate(1deg); }
}

@keyframes whyContestBumpB {
    0%, 100% { transform: translateX(0) rotate(0deg); border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    30% { transform: translateX(7px) rotate(4deg); border-color: #e34234; box-shadow: 0 0 15px rgba(227,66,52,0.2); color: #111; }
    50% { transform: translateX(-3px) rotate(-2deg); border-color: #e34234; box-shadow: 0 0 10px rgba(227,66,52,0.14); color: #111; }
    68% { transform: translateX(1px) rotate(1deg); }
}

@keyframes whyContestBumpC {
    0%, 100% { transform: translateX(0) rotate(0deg); border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    30% { transform: translateX(7px) rotate(4deg); border-color: #e34234; box-shadow: 0 0 15px rgba(227,66,52,0.2); color: #111; }
    50% { transform: translateX(-3px) rotate(-2deg); border-color: #e34234; box-shadow: 0 0 10px rgba(227,66,52,0.14); color: #111; }
    68% { transform: translateX(1px) rotate(1deg); }
}

@keyframes whyContestBumpD {
    0%, 100% { transform: translateX(0) rotate(0deg); border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    30% { transform: translateX(6px) rotate(4deg); border-color: #e34234; box-shadow: 0 0 15px rgba(227,66,52,0.2); color: #111; }
    52% { transform: translateX(-3px) rotate(-2deg); border-color: #e34234; box-shadow: 0 0 10px rgba(227,66,52,0.14); color: #111; }
    70% { transform: translateX(1px) rotate(1deg); }
}


/* --- How It Works Accordion Section --- */
.how-it-works {
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
    position: relative;
    background: #fff;
}

.how-it-works::before {
    content: '\25C6';
    position: absolute;
    top: -6px;
    left: 50%;
    background: #fff;
    color: #ccc;
    padding: 0 10px;
    transform: translateX(-50%);
    font-size: 0.8rem;
}

.how-it-works h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: #000;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.how-it-works h2::after {
    content: '\25CA';
    display: block;
    color: #ddd;
    font-size: 0.5em;
    margin-top: 10px;
}

.accordion {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    --green-height: 0px;
}

/* Grey base line — spans from circle 01 to circle 04 center (height set by JS) */
.accordion::before {
    content: '';
    position: absolute;
    left: 18px; /* 4px header-padding + 14px (half of 28px circle) */
    top: 32px;  /* 18px header-padding + 14px half-circle */
    height: var(--grey-line-height, 200px);
    width: 1px;
    background: #e5e5e5;
    z-index: 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Green progress overlay — grows from first to active circle */
.accordion::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 32px;
    height: var(--green-height);
    width: 1px;
    background: #22c55e;
    z-index: 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.accordion-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
}

.step-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    position: relative;
    z-index: 1;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.accordion-number {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #bbb;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: color 0.25s ease;
    user-select: none;
}

.accordion-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    flex: 1;
    letter-spacing: -0.1px;
    transition: letter-spacing 0.2s ease;
}

.accordion-arrow {
    font-size: 1.1rem;
    color: #ccc;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    line-height: 1;
    user-select: none;
}

.accordion-header:hover .step-marker {
    border-color: #22c55e;
}

.accordion-header:hover .accordion-number {
    color: #22c55e;
}

.accordion-header:hover .accordion-title {
    letter-spacing: 0.15px;
}

.accordion-header:hover .accordion-arrow {
    color: #22c55e;
}

/* Completed steps — circles 1 through N turn green */
.accordion-item.completed .step-marker {
    background: #22c55e;
    border-color: #22c55e;
}

.accordion-item.completed .accordion-number {
    color: #fff;
}

/* Open item: header + body both get the green tint, arrow flips green */
.accordion-item.open .accordion-header {
    background: rgba(34, 197, 94, 0.04);
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
    color: #22c55e;
}

.accordion-item.open .accordion-body {
    background: rgba(34, 197, 94, 0.04);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-body {
    max-height: 540px;
}

.accordion-body p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #000;
    /* align with title: 4px header-padding + 28px marker + 16px gap = 48px */
    padding: 0 4px 22px 48px;
    margin: 0;
    letter-spacing: 0.15px;
}

.accordion-body p a {
    color: inherit;
    text-decoration: underline;
}


/* --- Step Visuals --- */

.step-visual {
    padding: 12px 16px 6px 48px;
}

.accordion-body .step-caption {
    font-size: 0.8rem;
    color: #000;
}

/* -- Step 01: Connect -- */

.sv-01 {
    display: flex;
    justify-content: flex-start;
}

/* Row is always horizontal. On narrow screens the stems drop below each chip
   and the h-bar connects them at the bottom. */
.sv01-col {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    position: relative;
    padding-bottom: 22px; /* room for the vertical stems below chips */
}

.sv01-pa-logo {
    font-family: "Special Gothic Expanded One", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    line-height: 1;
    padding: 8px 14px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    white-space: nowrap;
    animation: paNodeGlow 2s ease-in-out infinite;
    animation-play-state: paused;
    position: relative; /* anchor for the bottom-center stem pseudo-element */
}

.sv01-brand-pace  { color: #000; }
.sv01-brand-arena { color: #000; }

.accordion-item.open .sv01-pa-logo {
    animation-play-state: running;
}

/* Narrow default: stems on each chip + horizontal bar at the bottom */

/* Stem from bottom-center of Strava chip */
.sv-01 .sv-chip {
    position: relative;
}
.sv-01 .sv-chip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 2px;
    height: 22px;
    background: repeating-linear-gradient(180deg, #22c55e 0px, #22c55e 4px, transparent 4px, transparent 10px);
    background-size: 2px 14px;
    animation: syncScrollV 0.8s linear infinite;
    animation-play-state: paused;
}
.accordion-item.open .sv-01 .sv-chip::after {
    animation-play-state: running;
}

/* Stem from bottom-center of pacearena logo */
.sv01-pa-logo::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 2px;
    height: 22px;
    background: repeating-linear-gradient(180deg, #22c55e 0px, #22c55e 4px, transparent 4px, transparent 10px);
    background-size: 2px 14px;
    animation: syncScrollVR 0.8s linear infinite;
    animation-play-state: paused;
}
.accordion-item.open .sv01-pa-logo::after {
    animation-play-state: running;
}

/* Horizontal bar connecting the two stem bottoms */
.sv01-vline {
    position: absolute;
    left: 46px;    /* ≈ half width of Strava chip */
    right: 59px;   /* measured half width of pacearena logo */
    bottom: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, #22c55e 0px, #22c55e 4px, transparent 4px, transparent 10px);
    background-size: 14px 2px;
    animation: syncScrollH 0.8s linear infinite;
    animation-play-state: paused;
}

.accordion-item.open .sv01-vline {
    animation-play-state: running;
}

@keyframes syncScrollV {
    to { background-position: 0 14px; }
}
@keyframes syncScrollVR {
    to { background-position: 0 -14px; }
}

@keyframes syncScrollH {
    to { background-position: 14px 0; }
}

.sv-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 4px 10px 4px 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
}

/* Inside sv01-col, make the Strava chip match the PA logo box size */
.sv01-col .sv-chip {
    padding: 8px 14px 8px 8px;
    font-size: 0.85rem;
    border-radius: 8px;
    gap: 8px;
}

/* Wide: straight horizontal animated dashed line, stems hidden */
@media (min-width: 500px) {
    .sv01-col {
        align-items: center;
        justify-content: flex-start;
        padding-bottom: 0;
        width: auto;
    }

    /* Hide the bottom-center stems */
    .sv-01 .sv-chip::after,
    .sv01-pa-logo::after {
        display: none;
    }

    /* Restore connector as an inline flex item */
    .sv01-vline {
        position: static;
        flex: none;
        width: 40px;
        height: 2px;
        left: auto; right: auto; bottom: auto;
        background: repeating-linear-gradient(
            90deg,
            #22c55e 0px, #22c55e 4px,
            transparent 4px, transparent 10px
        );
        background-size: 14px 2px;
        animation: syncScrollH 0.8s linear infinite;
        animation-play-state: paused;
    }
}

.sv-chip-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    flex-shrink: 0;
    line-height: 1;
}

@keyframes paNodeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    50%       { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.22); }
}

/* -- Step 02: Team -- */
.sv-team-card {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 190px;
}

.sv-team-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sv-team-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sv-team-name-text {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.2px;
}

.sv-team-members {
    display: flex;
    gap: 6px;
}

.sv-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.sv-avatar-join {
    background: transparent !important;
    border: 1.5px dashed #22c55e;
    color: #22c55e;
    font-size: 1.1rem;
    font-weight: 400;
    font-family: sans-serif;
    animation: joinPulse 2s ease-in-out infinite;
    animation-play-state: paused;
}

.accordion-item.open .sv-avatar-join {
    animation-play-state: running;
}

@keyframes joinPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    50%       { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
}

.sv-team-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.sv-team-stat-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.68rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-team-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.sv-team-pap-pulse {
    animation: teamPapPulse 0.55s ease-out forwards;
}
@keyframes teamPapPulse {
    0%   { color: #000; }
    35%  { color: #22c55e; }
    100% { color: #000; }
}

/* -- Step 03: Run & Earn -- */
.sv-03 {
    display: flex;
    flex-direction: column;
}

.sv-run-card {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 220px;
}

.sv-run-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv-run-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sv-run-val {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.sv-run-unit {
    font-family: 'Roboto', sans-serif;
    font-size: 0.62rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-run-sep {
    width: 1px;
    height: 28px;
    background: #ebebeb;
    flex-shrink: 0;
}

.sv-pap-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.sv-pap-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.68rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-pap-counter {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #22c55e;
    line-height: 1;
    min-width: 4ch;
    text-align: right;
}

.sv-run-val {
    transition: background 0.25s, color 0.25s, padding 0.25s, border-radius 0.25s;
}

.sv-run-val.sv-run-highlight {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border-radius: 3px;
    padding: 0 3px;
}

.sv-calc-link {
    display: inline-block;
    margin-top: 7px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sv-calc-link:hover {
    color: #000;
}

/* -- Step 04: Territory mini map -- */
.sv04-map {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    margin-bottom: 8px;
    background: #e8e8e8;
}

.sv-tlegend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
}

.sv-tleg {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.76rem;
    color: #444;
}

.sv-tleg::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.sv-tleg-g::before { background: rgba(0, 200, 83, 0.65); }
.sv-tleg-r::before { background: rgba(227, 66, 52, 0.6); }
.sv-tleg-p::before { background: rgba(139, 92, 246, 0.6); }
.sv-tleg-b::before { background: rgba(59, 130, 246, 0.55); }
.sv-tleg-y::before { background: rgba(234, 179, 8, 0.6); }
.sv-tleg-n::before { background: rgba(0, 0, 0, 0.12); }


/* --- Involvement / Getting Involved Section --- */
.involvement {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    position: relative;
    background:
        linear-gradient(45deg, transparent 0%, transparent 45%, rgba(252,252,252,0.3) 45.1%, rgba(252,252,252,0.3) 55%, transparent 55.1%),
        radial-gradient(ellipse at 30% 70%, rgba(248,248,248,0.4) 0%, transparent 30%),
        radial-gradient(ellipse at 70% 30%, rgba(250,250,250,0.3) 0%, transparent 25%);
}

.involvement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e5e5 30%, #e5e5e5 70%, transparent 100%);
}

.involvement::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background:
        linear-gradient(90deg, transparent 0%, rgba(230,230,230,0.3) 15%, transparent 30%, rgba(230,230,230,0.5) 50%, transparent 70%, rgba(230,230,230,0.3) 85%, transparent 100%);
}

.involvement p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 48px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    letter-spacing: 0.25px;
}

.seeking-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.seeking-item {
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.seeking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: #000;
    transition: all 0.4s ease;
}

.seeking-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 0%, transparent 70%, rgba(248,248,248,0.2) 70.1%, rgba(248,248,248,0.2) 80%, transparent 80.1%),
        radial-gradient(circle at 80% 20%, rgba(250,250,250,0.3) 0%, transparent 30%);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.seeking-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.seeking-item:hover::before {
    left: 0;
}

.seeking-item:hover::after {
    opacity: 1;
}

.seeking-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
    position: relative;
}

.seeking-item h3::after {
    content: '\25B8'; /* ▸ */
    position: absolute;
    right: 0;
    color: #ddd;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.seeking-item:hover h3::after {
    opacity: 1;
    transform: translateX(0);
}

.seeking-item p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}


/* --- Footer --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    color: #888;
    font-size: 0.9rem;
    position: relative;
    background: linear-gradient(to top, rgba(248,248,248,1), rgba(255,255,255,1));
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

footer::before {
    content: '\25C6 \25C6 \25C6'; /* ◆ ◆ ◆ */
    position: absolute;
    top: -8px;
    left: 50%;
    background: #fff;
    color: #ddd;
    padding: 0 15px;
    transform: translateX(-50%);
    font-size: 0.6rem;
    letter-spacing: 5px;
}

.footer-note {
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
}


/* --- Burger Menu --- */
.burger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.burger-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.burger-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.burger-button.active {
    background: #000;
}

.burger-line {
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2px 0;
}

.burger-button.active .burger-line {
    background: #fff;
}

.burger-button.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-button.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-button.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.burger-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.burger-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.burger-menu-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.burger-menu-item {
    margin: 0;
}

.burger-menu-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.burger-menu-item:last-child .burger-menu-link {
    border-bottom: none;
}

.burger-menu-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
    transform: translateX(4px);
}

.burger-menu-link.logout {
    color: #dc3545;
}

.burger-menu-link.logout:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.burger-menu-link:hover .menu-icon {
    opacity: 1;
}


/* ==========================================================================
   Sections Responsive
   ========================================================================== */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 0 24px;
    }

    .seeking-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 20px 0;
    }

    .logo {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.0625rem;
        margin-bottom: 20px;
        line-height: 1.55;
    }

    .sector-demo {
        margin: 24px auto;
    }

    .sector-demo img {
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        mask:
            radial-gradient(ellipse 60px 45px at 0% 0%, transparent 0%, transparent 60%, white 100%),
            radial-gradient(ellipse 60px 45px at 100% 0%, transparent 0%, transparent 60%, white 100%),
            radial-gradient(ellipse 60px 45px at 0% 100%, transparent 0%, transparent 60%, white 100%),
            radial-gradient(ellipse 60px 45px at 100% 100%, transparent 0%, transparent 60%, white 100%),
            linear-gradient(90deg, transparent 0%, white 8%, white 92%, transparent 100%),
            linear-gradient(0deg, transparent 0%, white 8%, white 92%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask:
            radial-gradient(ellipse 60px 45px at 0% 0%, transparent 0%, transparent 60%, white 100%),
            radial-gradient(ellipse 60px 45px at 100% 0%, transparent 0%, transparent 60%, white 100%),
            radial-gradient(ellipse 60px 45px at 0% 100%, transparent 0%, transparent 60%, white 100%),
            radial-gradient(ellipse 60px 45px at 100% 100%, transparent 0%, transparent 60%, white 100%),
            linear-gradient(90deg, transparent 0%, white 8%, white 92%, transparent 100%),
            linear-gradient(0deg, transparent 0%, white 8%, white 92%, transparent 100%);
        -webkit-mask-composite: source-in;
    }

    .status-badge {
        padding: 0 20px;
        font-size: 0.85rem;
        margin-bottom: 24px;
        height: 48px;
    }

    .button-container {
        gap: 16px;
        margin-top: 24px;
    }

    .action-button {
        padding: 0 20px;
        font-size: 0.95rem;
        height: 48px;
        border-radius: 20px;
    }

    .why-it-matters {
        padding: 28px 0 40px;
    }

    .why-it-matters h2 {
        font-size: 1.75rem;
    }

    .why-intro {
        font-size: 16px;
        margin-bottom: 24px;
        padding: 0 8px;
    }

    .why-accordion {
        max-width: 100%;
    }

    .why-accordion__item summary {
        min-height: 60px;
        padding: 17px 14px 17px 16px;
        font-size: 16px;
    }

    .why-accordion__body {
        padding: 0 16px 20px 16px;
    }

    .why-accordion__item[open] .why-accordion__body {
        padding-bottom: 30px;
    }

    .why-accordion__body p {
        font-size: 14px;
    }

    .why-visual {
        height: 132px;
        margin-bottom: 16px;
        --why-approach-left-start-x: 72px;
        --why-approach-right-start-x: -72px;
    }

    .why-team-goal {
        width: 40px;
        height: 40px;
    }

    .why-team-goal--left { left: 24%; }
    .why-team-goal--right { right: 24%; }
    .why-team-label--left { left: calc(24% + 20px); }
    .why-team-label--right { right: calc(24% + 20px); }
    .why-team-label { top: calc(50% + 48px); }

    .why-member {
        width: 12px;
        height: 12px;
    }

    .why-team-label {
        top: calc(50% + 48px);
    }

    .why-member--l1 { top: calc(50% - 42px); left: calc(24% + 14px); }
    .why-member--l2 { top: calc(50% + 12px); left: calc(24% - 17px); }
    .why-member--l3 { top: calc(50% + 12px); left: calc(24% + 45px); }
    .why-member--r1 { top: calc(50% - 42px); left: calc(76% - 26px); }
    .why-member--r2 { top: calc(50% - 17px); left: calc(76% + 8px); }
    .why-member--r3 { top: calc(50% + 23px); left: calc(76% - 5px); }
    .why-member--r4 { top: calc(50% + 23px); left: calc(76% - 47px); }
    .why-member--r5 { top: calc(50% - 17px); left: calc(76% - 60px); }

    .why-bar-row {
        grid-template-columns: 52px 1fr;
        max-width: 360px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .why-bar-row:first-child {
        padding-top: 38px;
    }

    .why-effort-badge {
        min-width: 54px;
        height: 22px;
        padding: 0 8px;
        font-size: 11px;
    }

    .why-visual--progress {
        grid-template-columns: repeat(4, 42px);
        grid-template-rows: repeat(3, 22px);
        gap: 6px;
        padding-top: 14px;
    }

    .why-map-label {
        bottom: 14px;
    }

    .why-accountability-member {
        width: 30px;
        height: 30px;
    }

    .why-contest-pill {
        min-width: 58px;
        height: 32px;
        font-size: 12px;
    }

    .why-visual--contest {
        gap: 6px;
    }

    .how-it-works {
        padding: 40px 0;
    }

    .how-it-works h2 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .involvement {
        padding: 48px 0;
    }

    .involvement p {
        font-size: 1.0625rem;
        margin-bottom: 36px;
    }

    .seeking-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 32px 0;
    }

    .seeking-item {
        padding: 20px 18px;
    }

    .seeking-item h3 {
        font-size: 1.05rem;
    }

    .seeking-item p {
        font-size: 0.85rem;
    }

    footer {
        padding: 32px 0;
    }

    .footer-note {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .burger-menu {
        top: 15px;
        right: 15px;
    }

    .burger-dropdown {
        min-width: 200px;
    }
}

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 2.25rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .mobile-break {
        display: block;
    }

    .hero p {
        font-size: 1rem;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .action-button {
        width: auto;
        text-align: center;
        padding: 0 24px;
    }

    .hero-actions .action-button {
        width: min(100%, 172px);
    }

    .why-accordion__item summary {
        gap: 12px;
        min-height: 58px;
        font-size: 16px;
    }

    .why-accordion__body p {
        font-size: 14px;
    }

    .why-accordion__source {
        font-size: 14px;
    }

    .why-visual {
        height: 124px;
    }

    .why-visual--community {
        height: 132px;
    }

    .why-visual--progress {
        grid-template-columns: repeat(4, 36px);
        grid-template-rows: repeat(3, 18px);
        gap: 5px;
        padding-top: 12px;
    }

    .why-map-label {
        bottom: 12px;
        font-size: 11px;
    }

    .why-loop-step--pap { right: 34px; }
    .why-loop-step--reward { left: 34px; }

    .why-team-label,
    .why-accountability-label,
    .why-contest-label {
        font-size: 11px;
    }

    .seeking-list {
        gap: 16px;
    }

    .seeking-item {
        padding: 18px 16px;
    }

}

.why-accordion__item.is-closing .why-accordion__body {
    padding-bottom: 0;
}
