/* ── VARIABLES ───────────────────────────────────────────── */
:root {
    --bg:          #090909;
    --bg-card:     #0f0f0f;
    --bg-card-2:   #131313;
    --border:      #1c1c1c;
    --border-mid:  #282828;
    --accent:      #46a5ce;
    --accent-glow: rgba(70,165,206,0.2);
    --text:        #efefef;
    --text-mid:    #888;
    --text-dim:    #5d5d5d;
    --icon-filter: sepia(1) hue-rotate(170deg) saturate(320%) brightness(0.90);
    --font-head:   'Outfit', sans-serif;
    --font-body:   'DM Sans', sans-serif;
}

/* ── BASE & RESET ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background: var(--bg); 
    color: var(--text);
    font-family: var(--font-body); 
    font-weight: 300; 
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* START MODAL POP-UP CSS */
.hidden, .modal-hidden {
    display: none !important;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.accent {
    color: var(--accent);
    margin-left: 0;
}

.text-center { text-align: center; }

.section-container {
    width: 100%;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-inner { 
    width: 100%; 
    max-width: 1060px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* -- LOGO -- */
.logo-text {
    display: inline-flex;
    align-items: center;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.overline {
    font-family: var(--font-head); font-size: 1rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
    display: block; margin-bottom: 14px; text-align: center;
}
.h-large { 
    font-family: var(--font-head); font-size: clamp(2.5rem, 7vw, 5.5rem); 
    font-weight: 800; line-height: 1.05; 
    margin-bottom: 20px; text-align: center;
}
.h-medium { 
    font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); 
    font-weight: 800; margin-bottom: 16px;
    text-align: center;
}
.p-main { 
    font-size: 1.2rem; color: var(--text-mid); line-height: 1.75; 
    max-width: 480px; margin: 0 auto 32px auto; text-align: center; 
}

/* ── BUTTONS & FORMS ─────────────────────────────────────── */
.btn {
    font-family: var(--font-head); font-weight: 700; border-radius: 8px;
    cursor: pointer; transition: all 0.15s; display: inline-block; border: none;
    text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; padding: 14px 32px; font-size: 0.95rem; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-text { color: var(--text-mid); padding: 14px 16px; font-size: 0.95rem; }
.btn-text:hover { color: var(--text); }

.input-field { 
    background: #111; border: 1px solid var(--border); color: #fff; 
    padding: 14px 18px; border-radius: 8px; outline: none; font-family: var(--font-body);
}
.input-field:focus { border-color: var(--accent); }

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 40px; background: rgba(9,9,9,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;}
.nav-brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; color: var(--text-mid); }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 16px; border-radius: 6px; font-weight: 600; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px; /* This controls space between ICON and TEXT */
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    animation: fadeUp 0.8s ease-out forwards;
}
.hero-cta-group {
    display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 60px;
}

/* SPRITE BOXES */
.sprite-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.sprite-box {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border);
}
.sprite-box:first-child { border-radius: 12px 0 0 12px; }
.sprite-box:last-child { border-radius: 0 12px 12px 0; border-right: 1px solid var(--border); }
.sprite-box + .sprite-box { border-left: none; }
.sprite-icon {
    width: 52px;
    height: 52px;
    image-rendering: pixelated;
    background-size: auto 100%;
    background-repeat: no-repeat;
    filter: var(--icon-filter);
    display: block;
}
.sprite-label { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-dim); letter-spacing: 1px;}

/* ── DIVIDER ────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); width: 100%; }

/* ── FEATURES GRID ──────────────────────────────────────── */
.features-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1px; background: var(--border); border: 1px solid var(--border); 
    border-radius: 12px; overflow: hidden; margin-top: 40px;
}
.feature-card { background: var(--bg-card); padding: 40px 32px; text-align: center; }
.f-icon { margin-bottom: 20px; }
.f-icon img { width: 32px; height: 32px; filter: var(--icon-filter); display: block; margin: 0 auto; }
.f-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.f-desc { font-size: 1.1rem; color: var(--text-mid); line-height: 1.6; }

/* ── HOW IT WORKS (THE GRID) ────────────────────────────── */
.how-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.how-text { text-align: left; }
.how-text .h-medium, .how-text .p-main, .how-text .overline { text-align: left; margin-left: 0; }

.mini-day-grid {
    display: grid; gap: 6px; padding: 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 16px;
    grid-template-columns: repeat(4, 1fr); /* Mobile default */
}
@media (min-width: 861px) {
    .mini-day-grid { grid-template-columns: repeat(6, 1fr); } /* Desktop */
}
.mini-hour {
    aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--border);
    background: #0a0a0a; display: flex; align-items: center; justify-content: center;
}
.mini-hour img { width: 28px; height: 28px; filter: var(--icon-filter); image-rendering: pixelated; }

.mini-hour.current {
    border-color: var(--accent); 
    background: rgba(70,165,206,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-hour .animated {
    display: block;
    width: 28px !important;
    height: 28px !important;
    background-repeat: no-repeat;
    background-size: auto 28px; /* Critical for frame height alignment */
    filter: var(--icon-filter);
    image-rendering: pixelated;
}
.mini-hour.past { filter: grayscale(1) opacity(0.3); }
.mini-hour.future { filter: opacity(0.6); }

/* ── PRO / WAITLIST ─────────────────────────────────────── */
.final-cta { position: relative; }
.glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 400px; pointer-events: none; z-index: -1;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
}
.waitlist-form-container {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; 
    max-width: 500px; margin: 0 auto; width: 100%;
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 40px 24px; margin-top: auto; }
.footer-inner { max-width: 1060px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;}
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1rem;}
.footer-links { display: flex; gap: 24px; list-style: none; font-size: 0.85rem; color: var(--text-mid); }
.footer-copy { font-size: 0.9rem; color: var(--text-dim); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ADJUSTMENTS ─────────────────────────────────── */
@media (max-width: 860px) {
    /* in header nav, just display the open app button */
    .nav-links { display: flex; gap: 12px; }
    .nav-links li:not(:last-child) { display: none; }
    /* end nav links */

    /* display how it works headers above the 24 boxes */
    .how-inner { grid-template-columns: 1fr; text-align: center; display: flex; flex-direction: column-reverse; }

    .how-text .h-medium, .how-text .p-main, .how-text .overline { text-align: center; margin-left: auto; margin-right: auto; }
    .sprite-box:first-child, .sprite-box:last-child { border-radius: 0; border-right: none; }
    .sprite-box { border-bottom: none; width: 50%; }
}