/* ================================
   360 CHARTER RATE GUARANTEE PAGE STYLES
   Scroll-tracked orb · Gradient pricing · Ecosystem
   All colors via design tokens from critical.css
   ================================ */

/* ── Page Basics ── */
.page-charter-rate .crg-banner { display: none; }
[data-region="us"] { display: none; }

/* ── Hero Counter ── */
.crg-counter {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: rgba(204, 251, 241, 0.9);
    margin-top: 1.5rem;
}
.crg-counter-number {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: #EDEDF0;
}

/* ── Typography ── */
.crg-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-teal-700);
    margin-bottom: 0.75rem;
}
.crg-heading-xl {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.crg-body-lg {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 38rem;
}

/* ═══════════════════════════════════
   PROGRESS TRACK SYSTEM
   Rail · Fill · Orb · Card Lighting
   ═══════════════════════════════════ */
.track-container {
    background: var(--bg-page);
    padding: 6rem 0 4rem;
}
.track-rail-container {
    position: relative;
}

/* Background rail */
.progress-track {
    position: absolute;
    left: 28px;
    top: 0;
    width: 4px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.progress-track .rail {
    position: absolute;
    inset: 0;
    background: var(--color-gray-200);
    border-radius: 2px;
}
.progress-track .fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--color-teal-700), var(--color-teal-400));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(2, 115, 115, 0.3);
}

/* Travelling orb */
.progress-orb {
    position: absolute;
    left: 30px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-teal-700);
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    box-shadow:
        0 0 12px rgba(2, 115, 115, 0.5),
        0 0 30px rgba(2, 115, 115, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.progress-orb::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(2, 115, 115, 0.25);
    animation: orb-pulse 2s ease-out infinite;
}
@keyframes orb-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Orb flare when near a stop */
.progress-orb.on-target {
    background: #EDEDF0;
    transform: translate(-50%, -50%) scale(1.35);
    box-shadow:
        0 0 18px rgba(2, 115, 115, 0.7),
        0 0 50px rgba(2, 115, 115, 0.35),
        0 0 80px rgba(2, 115, 115, 0.15);
}

/* ── Track Sections (Stops) ── */
.track-section {
    position: relative;
    padding-left: 80px;
    margin-bottom: 5rem;
    opacity: 0.3;
    transform: translateY(16px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Intro section (before pricing) — always visible, no dot */
.track-section.track-section-intro {
    opacity: 1;
    transform: none;
}
.track-section.track-section-intro::before {
    display: none;
}

/* Increased spacing for sections after pricing cards (200px+) */
.track-section-heading,
.track-section-heading ~ .track-section {
    margin-bottom: 12.5rem;
}

/* Section heading stops — breathing room between groups */
.track-section-heading {
    margin-top: 12.5rem;
}
.track-section-centered {
    margin-top: 12.5rem;
}

/* No bottom margin on last section */
.track-section:last-child { margin-bottom: 0; }

/* Dot on the rail */
.track-section::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-gray-200);
    border: 3px solid var(--bg-page);
    z-index: 5;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Lit state */
.track-section.lit {
    opacity: 1;
    transform: none;
}
.track-section.lit::before {
    background: var(--color-teal-700);
    box-shadow: 0 0 12px rgba(2, 115, 115, 0.4);
}

/* Centered variant (ecosystem) */
.track-section-centered { text-align: center; }
.track-section-centered .crg-body-lg { margin: 0 auto; }

/* ═══════════════════════════════════
   PRICING CARDS (Gradient)
   ═══════════════════════════════════ */
.crg-pricing-card-gradient {
    background: linear-gradient(135deg,
        var(--color-teal-700),
        var(--color-teal-800),
        var(--color-teal-900));
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    color: #EDEDF0;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 28rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}
.track-section.lit .crg-pricing-card-gradient {
    box-shadow:
        0 8px 32px rgba(2, 115, 115, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}
.crg-pricing-card-gradient:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(2, 115, 115, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* "Most Popular" badge */
.crg-pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0;
}
.crg-pricing-card-featured { padding-top: 3.25rem; }

.crg-pricing-card-gradient .crg-pricing-plan {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: 0.75rem;
    color: #EDEDF0;
}
.crg-pricing-card-gradient .crg-pricing-compare {
    margin-bottom: 0.25rem;
}
.crg-pricing-card-gradient .price-strike {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--text-base);
    position: relative;
    display: inline-block;
}
.crg-pricing-card-gradient .price-strike::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #fca5a5;
    transition: width 0.6s ease 0.3s;
}
.track-section.lit .price-strike::after {
    width: 100%;
}
.crg-pricing-card-gradient .crg-pricing-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: var(--weight-bold);
    color: #EDEDF0;
    margin: 0.5rem 0;
    line-height: 1.2;
}
.crg-pricing-card-gradient .crg-pricing-amount small {
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    color: rgba(255, 255, 255, 0.65);
}
.crg-pricing-save {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: var(--weight-bold);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin: 0.5rem 0;
    letter-spacing: 0.02em;
}
.crg-pricing-card-gradient .crg-pricing-setup {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.75rem;
}
.crg-pricing-card-gradient .crg-pricing-setup strong {
    color: var(--color-green-400);
    font-weight: var(--weight-bold);
}
.crg-pricing-card-gradient .btn {
    background: #EDEDF0;
    color: var(--color-teal-700);
    border-color: #EDEDF0;
    font-weight: var(--weight-semibold);
}
.crg-pricing-card-gradient .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Pricing notes */
.crg-pricing-notes { margin-top: 1.25rem; }
.crg-pricing-note {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
.crg-pricing-note a {
    color: var(--color-teal-700);
    text-decoration: underline;
}
.crg-pricing-ecosystem { margin-top: 0.75rem; }
.crg-pricing-ecosystem a {
    color: var(--color-teal-700);
    text-decoration: underline;
    font-weight: var(--weight-medium);
}

/* ═══════════════════════════════════
   HOW IT WORKS — Step Cards
   ═══════════════════════════════════ */
.crg-step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.crg-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-teal-700);
    color: #EDEDF0;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
}
.crg-step-card h3 {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}
.crg-step-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ═══════════════════════════════════
   GUARANTEE (Dark Cards)
   ═══════════════════════════════════ */
.crg-guarantee-item {
    padding: 1.75rem;
    background: var(--bg-dark);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s ease;
}
.track-section.lit .crg-guarantee-item {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.crg-guarantee-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(2, 115, 115, 0.2);
    color: var(--color-teal-400);
}
.crg-guarantee-item h3 {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    margin-bottom: 0.5rem;
    color: #EDEDF0;
    font-size: var(--text-base);
}
.crg-guarantee-item p {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ═══════════════════════════════════
   360 ECOSYSTEM CIRCLE
   ═══════════════════════════════════ */
.crg-eco-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 340px;
    height: 340px;
    margin: 2.5rem auto;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.crg-eco-ring:hover { transform: scale(1.04); }
.crg-eco-ring::before {
    content: '';
    position: absolute;
    width: 78%;
    height: 78%;
    border: 2px dashed var(--color-gray-200);
    border-radius: 50%;
    opacity: 0.5;
}
.crg-eco-centre {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.eco-icon-centre { width: 80px; height: 80px; }
.crg-eco-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.eco-icon-orbit {
    position: absolute;
    width: 44px;
    height: 44px;
}

/* Circular positions — 9 icons, 40° apart, trigonometric from 12 o'clock
   Container 340×340, centre (170,170), radius 148px, icon 44×44
   Formula: left = (170 + 148·cos(θ) - 22) / 340 × 100%
            top  = (170 + 148·sin(θ) - 22) / 340 × 100%  */
.eco-icon-orbit[data-position="1"] { top: 0%;     left: 43.5%; }
.eco-icon-orbit[data-position="2"] { top: 10.2%;  left: 71.5%; }
.eco-icon-orbit[data-position="3"] { top: 36%;    left: 86.4%; }
.eco-icon-orbit[data-position="4"] { top: 65.3%;  left: 81.2%; }
.eco-icon-orbit[data-position="5"] { top: 84.4%;  left: 58.4%; }
.eco-icon-orbit[data-position="6"] { top: 84.4%;  left: 28.6%; }
.eco-icon-orbit[data-position="7"] { top: 65.3%;  left: 5.8%;  }
.eco-icon-orbit[data-position="8"] { top: 36%;    left: 0.7%;  }
.eco-icon-orbit[data-position="9"] { top: 10.2%;  left: 15.6%; }

.eco-icon { opacity: 0; transform: scale(0); }
.eco-icon.is-popped {
    opacity: 1;
    transform: scale(1);
    animation: iconPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes iconPop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.crg-eco-label {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-top: 1.25rem;
}
.crg-eco-sublabel {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════ */
.crg-faq-item {
    background: #EDEDF0;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
    max-width: 44rem;
}
.crg-faq-item[open] { border-color: var(--color-teal-700); }
.crg-faq-question {
    padding: 1.125rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-base);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    transition: color 0.2s ease;
}
.crg-faq-item[open] .crg-faq-question { color: var(--color-teal-700); }
.crg-faq-question::-webkit-details-marker { display: none; }
.crg-faq-question::after {
    content: '+';
    font-size: var(--text-xl);
    color: var(--color-teal-700);
    font-weight: var(--weight-bold);
    flex-shrink: 0;
    margin-left: 1rem;
    line-height: 1;
}
.crg-faq-item[open] .crg-faq-question::after { content: '\2212'; }
.crg-faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-sm);
}
.crg-faq-answer p { margin: 0; }

/* ═══════════════════════════════════
   FINAL CTA (Gradient)
   ═══════════════════════════════════ */
.crg-final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg,
        var(--color-teal-700),
        var(--color-teal-800),
        var(--color-teal-900));
    text-align: center;
    color: #EDEDF0;
}
.crg-final-cta .crg-counter {
    color: rgba(204, 251, 241, 0.85);
    margin-bottom: 1rem;
}
.crg-final-cta .crg-counter-number {
    color: #EDEDF0;
    font-size: var(--text-3xl);
}
.crg-final-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--weight-bold);
    color: #EDEDF0;
    margin-bottom: 0.75rem;
}
.crg-final-cta p {
    color: rgba(204, 251, 241, 0.85);
    font-size: var(--text-lg);
    margin-bottom: 2rem;
}
.crg-final-cta .btn { font-size: var(--text-lg); }

/* ── Screen Reader ── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ═══════════════════════════════════
   MOBILE
   ═══════════════════════════════════ */
@media (max-width: 768px) {
    .track-container { padding: 4rem 0 3rem; }
    .progress-track { left: 14px; }
    .progress-orb { left: 16px; width: 16px; height: 16px; }
    .track-section { padding-left: 48px; margin-bottom: 4rem; }
    .track-section::before { left: 8px; width: 14px; height: 14px; }
    .track-section-heading,
    .track-section-heading ~ .track-section { margin-bottom: 12.5rem; }
    .track-section-heading { margin-top: 12.5rem; }
    .track-section-centered { margin-top: 12.5rem; }
    .crg-pricing-card-gradient { padding: 2rem 1.5rem; max-width: none; }
    .crg-eco-ring { width: 260px; height: 260px; }
    .eco-icon-centre { width: 56px; height: 56px; }
    .eco-icon-orbit { width: 34px; height: 34px; }
    .crg-counter { font-size: var(--text-base); }
    .crg-counter-number { font-size: var(--text-xl); }
    .crg-final-cta { padding: 3.5rem 0; }
    .crg-final-cta .crg-counter-number { font-size: var(--text-2xl); }
}

/* ═══════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .track-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .track-section::before {
        background: var(--color-teal-700) !important;
        transition: none !important;
    }
    .progress-orb { display: none; }
    .progress-track .fill { height: 100% !important; }
    .progress-orb::after { animation: none; }
    .price-strike::after { width: 100% !important; transition: none !important; }
    .eco-icon { opacity: 1 !important; transform: scale(1) !important; animation: none !important; }
    .crg-eco-ring:hover { transform: none; }
    .crg-pricing-card-gradient:hover { transform: none; }
}
