/* ── 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; }

/* ── UTILITIES ───────────────────────────────────────────── */
.hidden, .modal-hidden { display: none !important; }

.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);
    font-size: 1rem; width: 100%;
}
.input-field:focus { border-color: var(--accent); }

/* ── EMAIL US BUTTON ─────────────────────────────────────── */
.btn-email-us { display: block; margin: 0 auto; }

/* ── 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; }

/* ── 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 ──────────────────────────────────────── */
/* Flexbox so rows center naturally with no empty ghost cells */
.features-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1px; background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-top: 40px;
}
.feature-card-wizard { display: none; }

/* Desktop: each card takes 1/3 width */
.feature-card { flex: 0 0 calc(33.333% - 1px); }

/* Tablet (541px–860px): 2 per row, show wizard */
@media (max-width: 860px) and (min-width: 541px) {
    .feature-card { flex: 0 0 calc(50% - 1px); }
    .feature-card-wizard { display: block; }
}

/* Mobile (<=540px): full width stack, wizard hidden */
@media (max-width: 540px) {
    .feature-card { flex: 0 0 100%; }
    .feature-card-wizard { display: none; }
}

.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);
}
@media (min-width: 861px) {
    .mini-day-grid { grid-template-columns: repeat(6, 1fr); }
}
.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;
    filter: var(--icon-filter); image-rendering: pixelated;
}
.mini-hour.past { filter: grayscale(1) opacity(0.3); }
.mini-hour.future { filter: opacity(0.6); }

/* ── PRO SECTION ────────────────────────────────────────── */
.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%);
}

/* ── PRO SPLIT CARDS ────────────────────────────────────────── */
.pro-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; margin-top: 52px;
}
.pro-card {
    background: var(--bg-card); padding: 48px 40px 40px;
    display: flex; flex-direction: column; align-items: flex-start;
}
.pro-card--therapist { background: var(--bg-card-2); }
.pro-card-icon-wrap { width: 48px; height: 48px; margin-bottom: 20px; }
.pro-card-icon { width: 48px; height: 48px; image-rendering: pixelated; filter: var(--icon-filter); }
.pro-card-role {
    font-family: var(--font-head); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
    margin-bottom: 12px; display: block;
}
.pro-card-headline {
    font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 24px; color: var(--text);
}
.pro-card-benefits {
    list-style: none; padding: 0; margin: 0 0 32px 0;
    display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.pro-card-benefits li {
    font-size: 0.95rem; color: var(--text-mid);
    padding-left: 18px; position: relative; line-height: 1.5;
}
.pro-card-benefits li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pro-card-cta { font-size: 0.9rem; padding: 12px 24px; }
@media (max-width: 700px) {
    .pro-split { grid-template-columns: 1fr; }
    .pro-card { padding: 36px 28px 32px; }
}

/* ── CONTACT SECTION ────────────────────────────────────── */
.form-group { margin-bottom: 12px; }
.contact-textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }
.modal-intro-text { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 20px; text-align: center; }

/* ── MODAL (app pattern) ─────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: flex-start;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
    padding: 20px 0; z-index: 1000;
}
.modal-content {
    background: #121212; border: 1px solid #333;
    border-radius: 12px; box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; margin: auto;
}
.modal-content-narrow { width: 90%; max-width: 450px; }
.modal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 1.5rem 2rem 0 2rem;
}
.modal-header-title { font-size: 1.5rem; margin: 0; color: #fff; font-family: var(--font-head); }
.close-button {
    background: transparent; border: none; color: rgba(255,255,255,0.5);
    font-size: 1.25rem; cursor: pointer; line-height: 1; padding: 0; margin-top: -4px;
}
.close-button:hover { color: #fff; }
.modal-body { padding: 1rem 2rem 2rem 2rem; }
.modal-actions { margin-top: 8px; }

/* ── 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) {
    /* nav: only show Open App button */
    .nav-links { display: flex; gap: 12px; }
    .nav-links li:not(:last-child) { display: none; }

    /* how it works: stack, text above grid */
    .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 boxes: 2-up */
    .sprite-box:first-child, .sprite-box:last-child { border-radius: 0; border-right: none; }
    .sprite-box { border-bottom: none; width: 50%; }

    /* email us button: full width */
    .btn-email-us { width: 100%; }
}