/* =====================================================
   clean.css  —  Clean: Health Starts In The Home
   ===================================================== */

/* ---- Three.js canvas background ---- */

#canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ---- Page container ---- */

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
}

/* ---- Header ---- */

header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.3s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

h1 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.25;
    margin-bottom: 0.5rem;
    line-height: 0.9;
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.4;
    text-transform: uppercase;
}

/* ---- Breadcrumb ---- */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    font-size: 1.225rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
    flex-wrap: wrap;
    text-transform: uppercase;
}

.breadcrumb-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.breadcrumb-item:hover { opacity: 1; }
.breadcrumb-item.active { opacity: 0.8; }
.breadcrumb-separator { opacity: 0.25; }

/* ---- Animated content area ---- */

.content {
    opacity: 0;
    animation: slideUp 0.8s ease 0.5s forwards;
}

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

/* ---- Section title ---- */

.section-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ---- Phase badge ---- */

.phase-badge {
    display: inline-block;
    background: rgba(247,244,239,0.08);
    border: 1px solid rgba(247,244,239,0.2);
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 1.225rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ---- Products hint ---- */

.products-hint {
    background: rgba(247,244,239,0.04);
    border-left: 2px solid rgba(247,244,239,0.2);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.325rem;
    line-height: 1.6;
    opacity: 0.7;
}

.products-title {
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ---- Options grid ---- */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ---- Option card ---- */

.option-card {
    background: rgba(247,244,239,0.02);
    border: 1px solid rgba(247,244,239,0.08);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.option-card.turbo-card {
    background: rgba(247,244,239,0.04);
    border-color: rgba(247,244,239,0.15);
    grid-column: 1 / -1;
}

.option-card.turbo-card .option-number { font-size: 2rem; opacity: 0.6; }
.option-card.turbo-card:hover { background: rgba(247,244,239,0.08); border-color: rgba(247,244,239,0.3); }

.option-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247,244,239,0.06), transparent);
    transition: left 0.7s ease;
}

.option-card:hover::before { left: 100%; }

.option-card:hover {
    background: rgba(247,244,239,0.05);
    border-color: rgba(247,244,239,0.2);
    transform: translateY(-2px);
}

.option-number {
    font-size: 1.075rem;
    letter-spacing: 0.25em;
    opacity: 0.3;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.option-title {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.option-description {
    font-size: 1.325rem;
    line-height: 1.5;
    opacity: 0.5;
    letter-spacing: 0.03em;
}

/* ---- Checklist ---- */

.checklist {
    max-width: 650px;
    margin: 0 auto;
}

.checklist-item {
    background: rgba(247,244,239,0.02);
    border-left: 2px solid rgba(247,244,239,0.15);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checklist-item:hover {
    background: rgba(247,244,239,0.04);
    border-left-color: rgba(247,244,239,0.4);
    padding-left: 2rem;
}

.checklist-item.completed {
    opacity: 0.35;
    border-left-color: rgba(247,244,239,0.5);
}

.checklist-item.completed::after {
    content: '✓';
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0.5;
}

.checklist-label {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checklist-description {
    font-size: 1.325rem;
    opacity: 0.45;
    line-height: 1.4;
}

/* ---- Help icon ---- */

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid rgba(247,244,239,0.3);
    border-radius: 50%;
    font-size: 1.275rem;
    opacity: 0.5;
    cursor: help;
    transition: all 0.3s ease;
}

.help-icon:hover {
    opacity: 1;
    border-color: rgba(247,244,239,0.6);
    background: rgba(247,244,239,0.05);
}

/* ---- Details overlay / modal ---- */

.details-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(9,9,9,0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.details-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.details-content {
    background: rgba(247,244,239,0.03);
    border: 1px solid rgba(247,244,239,0.15);
    padding: 2.5rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.details-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: transparent;
    border: 1px solid rgba(247,244,239,0.3);
    color: var(--text-light);
    width: 2rem; height: 2rem;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.details-close:hover {
    background: rgba(247,244,239,0.1);
    border-color: rgba(247,244,239,0.6);
}

.details-title {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.details-text {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.8;
}

.details-text ul { margin-top: 1rem; padding-left: 1.5rem; }
.details-text li { margin-bottom: 0.75rem; }

/* ---- Buttons ---- */

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.back-button, .next-button, .done-button {
    background: transparent;
    border: 1px solid rgba(247,244,239,0.25);
    color: var(--text-light);
    padding: 0.9rem 1.75rem;
    cursor: pointer;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.325rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.back-button:hover, .next-button:hover, .done-button:hover {
    background: rgba(247,244,239,0.08);
    border-color: rgba(247,244,239,0.5);
}

.next-button, .done-button { border-color: rgba(247,244,239,0.35); }
.next-button:hover, .done-button:hover { transform: translateX(3px); }
.back-button:hover { transform: translateX(-3px); }

/* ---- Completion screen ---- */

.completion-screen {
    text-align: center;
    padding: 3rem 2rem;
}

.completion-icon    { font-size: 3.5rem; margin-bottom: 1.5rem; opacity: 0.7; }
.completion-title   { font-size: 2.5rem; letter-spacing: 0.12em; margin-bottom: 0.75rem; text-transform: uppercase; }
.completion-message { font-size: 1.15rem; opacity: 0.55; letter-spacing: 0.06em; margin-bottom: 2.5rem; line-height: 1.6; }

/* ---- Flash / countdown overlay ---- */

.flash-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255,255,255,0);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.flash-overlay.active { display: flex; }
.flash-overlay.flash  { animation: flashWhite 0.3s ease-out; }

@keyframes flashWhite {
    0%   { background: rgba(255,255,255,0); }
    50%  { background: rgba(255,255,255,0.95); }
    100% { background: rgba(255,255,255,0); }
}

.countdown-number {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 15rem;
    color: var(--text-light);
    opacity: 0;
    animation: countdownPop 0.8s ease-out;
    font-weight: 900;
    letter-spacing: 0.1em;
}

@keyframes countdownPop {
    0%   { opacity: 0; transform: scale(0.5); }
    30%  { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1); }
}

/* ---- Turbo Speed Run UI ---- */

.turbo-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 2rem;
}

.turbo-info-badge {
    display: inline-block;
    background: rgba(247,244,239,0.05);
    border: 1px solid rgba(247,244,239,0.25);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.325rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    position: relative;
    transition: all 0.3s ease;
}

.turbo-arrow {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: arrowBobUp 1s ease-in-out infinite;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes arrowBobUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.turbo-focal {
    margin: 3rem 0;
    position: relative;
}

.turbo-focal-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 10rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.3;
    line-height: 0.9;
    margin-bottom: 1rem;
}

.turbo-timer-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 8rem;
    opacity: 0.8;
    line-height: 1;
    pointer-events: none;
    margin-top: -1.5rem;
    white-space: nowrap;
}

.turbo-focal-subtitle {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    opacity: 0.4;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.turbo-badges-bottom {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.turbo-progress {
    width: 100%;
    height: 4px;
    background: rgba(247,244,239,0.1);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.turbo-progress-bar {
    height: 100%;
    background: rgba(247,244,239,0.4);
    transition: width 0.1s linear;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    h1 { font-size: 4rem; }
    .section-title { font-size: 1.6rem; }
    .options-grid { grid-template-columns: 1fr; }
    .button-group { flex-direction: column; }
    .back-button, .next-button, .done-button { width: 100%; }
    .details-content { padding: 2rem 1.5rem; max-width: 90%; }
    .turbo-focal-title { font-size: 5rem; }
    .turbo-timer-overlay { font-size: 4rem; margin-top: -0.75rem; }
    .turbo-info-badge { font-size: 0.9rem; padding: 0.75rem 1rem; }
    .turbo-badges-bottom { flex-direction: column; }
}
