/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    width: 100vw;
    font-family: 'Inter', sans-serif;
    background-color: #000;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

/* ============================================
   VÍDEO DE FUNDO
   ============================================ */
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.6) blur(5px);
    transition: opacity 0.4s ease;
    pointer-events: none;
    will-change: opacity;
    transform: scale(1.05);
}

/* ============================================
   GLASS CONTAINER
   ============================================ */
.glass-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 50px 60px;
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 80%; /* menos largo para não bater nas setas */
    max-width: 780px;
    overflow: hidden;
}

/* ============================================
   TIMER
   ============================================ */
#timer {
    color: #fff;
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1;
    white-space: nowrap;
}

/* ============================================
   SLIDER
   ============================================ */
#timeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 40px 0;
    outline: none;
    touch-action: manipulation;
}

#timeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #2ecc71;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #2ecc71;
}

#timeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #2ecc71;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px #2ecc71;
}

/* ============================================
   BOTÕES DE CONTROLE
   ============================================ */
.controls {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    padding: 14px 18px;
    transition: color 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background: #fff;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.btn:hover { color: #fff; }
.btn:hover::after { width: 60%; }

.btn.start { color: #2ecc71; font-weight: 600; }
.btn.start::after { background: #2ecc71; }
.btn.start:hover { text-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }

/* ============================================
   SETAS DE NAVEGAÇÃO
   — ficam na parte INFERIOR da hero, fora do
     caminho do slider e do glass container
   ============================================ */
.nav-arrow {
    position: absolute;
    bottom: 80px; /* abaixo do glass container */
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-arrow:hover {
    color: #2ecc71;
    background: rgba(46,204,113,0.15);
    transform: scale(1.1);
}

.left  { left: calc(50% - 60px); }
.right { left: calc(50% + 16px); }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
    z-index: 100;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
}

#music-name {
    font-weight: 500;
    opacity: 0.8;
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.btn-upload {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.58rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-upload:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #2ecc71;
}

.music-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.music-nav-btn:hover { opacity: 1; transform: scale(1.15); }
.music-nav-btn svg { fill: white; transition: fill 0.2s; }
.music-nav-btn:hover svg { fill: #2ecc71; }

/* ============================================
   SOUND WAVE
   ============================================ */
.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 36px;
    flex-shrink: 0;
}

.sound-wave span {
    display: block;
    width: 3px;
    height: 6px;
    background: #2ecc71;
    border-radius: 3px;
    will-change: height;
}

/* ============================================
   FOOTER LINKS (hero)
   ============================================ */
.footer-links {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.footer-links a:hover { color: #fff; }

/* ============================================
   SCROLL HINT
   ============================================ */
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.58rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 5;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 0.85; transform: translateX(-50%) translateY(7px); }
}

/* ============================================
   AD CONTAINER — full width bottom bar
   ============================================ */
.ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    transition: transform 0.4s ease;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ad-header button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.ad-header button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ad-body {
    padding: 6px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.ad-hidden {
    transform: translateY(100%);
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
    background: #fff;
    color: #2d2d2d;
    padding: 80px 24px 60px;
    position: relative;
    z-index: 10;
}

.info-inner { max-width: 860px; margin: 0 auto; }

.section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2ecc71;
    margin-bottom: 12px;
    display: block;
}

.info-section h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #111;
    line-height: 1.15;
    margin-bottom: 16px;
}

.info-section h2 span { color: #2ecc71; }

.green-bar {
    width: 44px;
    height: 4px;
    background: #2ecc71;
    border-radius: 2px;
    margin: 0 0 24px;
}

.lead {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.feat-card {
    background: #f6faf7;
    border: 1px solid #e2f0e8;
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(46, 204, 113, 0.12);
}

.feat-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.feat-card h3 { font-size: 1rem; font-weight: 800; color: #111; margin-bottom: 10px; }
.feat-card p  { font-size: 0.87rem; color: #666; line-height: 1.7; }

.how-block { margin-bottom: 80px; }
.steps { display: flex; flex-direction: column; gap: 26px; margin-top: 36px; }
.step  { display: flex; gap: 20px; align-items: flex-start; }

.step-num {
    min-width: 42px;
    height: 42px;
    background: #2ecc71;
    color: #fff;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.3);
}

.step-body h4 { font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 5px; }
.step-body p  { font-size: 0.88rem; color: #666; line-height: 1.7; }

.pomodoro-block {
    background: #f6faf7;
    border: 1px solid #e2f0e8;
    border-radius: 24px;
    padding: 44px 40px;
    margin-bottom: 80px;
}

.pomodoro-block h2 { font-size: 1.8rem; font-weight: 900; color: #111; margin-bottom: 10px; }
.pomodoro-block p  { font-size: 0.93rem; color: #555; line-height: 1.8; margin-bottom: 14px; }
.pomodoro-block p:last-of-type { margin-bottom: 0; }

.pomodoro-cycles { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.cycle-chip {
    background: #fff;
    border: 1.5px solid #c8ecd5;
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a7a3c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cycle-chip span {
    background: #2ecc71;
    color: #fff;
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 0.73rem;
}

.faq-block { margin-bottom: 80px; }
.faq-list  { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.faq-item  { border: 1px solid #e8e8e8; border-radius: 14px; overflow: hidden; }

.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.faq-q:hover { background: #f6faf7; }

.faq-q .arrow {
    font-size: 1.1rem;
    color: #2ecc71;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-a {
    display: none;
    padding: 0 22px 18px;
    font-size: 0.87rem;
    color: #666;
    line-height: 1.75;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .arrow { transform: rotate(180deg); }

.cta-block {
    background: linear-gradient(135deg, #111 0%, #1e1e1e 100%);
    border-radius: 24px;
    padding: 46px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.cta-block h3 { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.cta-block p  { font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }

.cta-btn {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    touch-action: manipulation;
}

.cta-btn:hover { background: #27ae60; transform: scale(1.04); }

.info-footer {
    padding-top: 26px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.info-footer p { font-size: 0.77rem; color: #bbb; }
.info-footer-links { display: flex; gap: 18px; }

.info-footer-links a {
    font-size: 0.77rem;
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.info-footer-links a:hover { color: #2ecc71; }

/* ============================================
   PRIVACY / ABOUT PAGES
   ============================================ */
.privacy-body {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    color: white;
}

.privacy-body #bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: scale(1.05);
    z-index: -1;
}

.privacy-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 80px 20px 100px;
    z-index: 10;
    width: 95%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.privacy-title { font-size: 3rem; font-weight: 900; margin-bottom: 5px; text-align: center; }
.update-date   { opacity: 0.8; margin-bottom: 30px; font-size: 0.9rem; }

.privacy-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.privacy-glass-card .section { margin-bottom: 25px; }
.privacy-glass-card h3 { color: #4ade80; font-size: 1.2rem; margin-bottom: 10px; }
.privacy-glass-card p  { color: rgba(255, 255, 255, 0.9); line-height: 1.65; font-size: 0.93rem; }
.privacy-glass-card ul { list-style: none; padding: 0; }
.privacy-glass-card ul li { font-size: 0.85rem; margin-top: 8px; opacity: 0.9; }
.privacy-glass-card a  { color: #4ade80; text-decoration: underline; }

.back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 38px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid #fff;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    touch-action: manipulation;
}

.back-link:hover { background: white; color: black; transform: scale(1.04); }

/* ============================================
   FEEDBACK / CHECKBOX
   ============================================ */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 15px 0 25px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.checkbox-item:hover { background: rgba(74, 222, 128, 0.08); border-color: #4ade80; }
.checkbox-item input { accent-color: #4ade80; width: 17px; height: 17px; }
.checkbox-item span  { font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.8); }

.other-section textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.other-section textarea:focus {
    border-color: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
}

/* ============================================
   MOBILE — até 768px
   ============================================ */
@media (max-width: 768px) {

    #timer {
        font-size: clamp(2.4rem, 12vw, 4.5rem);
        letter-spacing: -0.02em;
    }

    .glass-container {
        border-radius: 32px;
        padding: 28px 20px;
        width: 90%;
        margin-bottom: 80px; /* espaço para as setas embaixo */
    }

    #timeSlider { margin: 28px 0; height: 5px; }
    #timeSlider::-webkit-slider-thumb { width: 18px; height: 18px; }
    #timeSlider::-moz-range-thumb     { width: 18px; height: 18px; }

    .controls { gap: 16px; }

    .btn {
        font-size: 0.7rem;
        padding: 14px 12px;
        letter-spacing: 2px;
    }

    /* Setas menores no mobile, centralizadas embaixo */
    .nav-arrow {
        bottom: 100px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .left  { left: calc(50% - 50px); }
    .right { left: calc(50% + 12px); }

    .top-bar    { padding: 12px 14px; gap: 8px; }
    .music-info { gap: 6px; font-size: 0.58rem; }
    #music-name { max-width: 60px; font-size: 0.58rem; }

    /* ADD MUSIC — ícone compacto no mobile */
    .btn-upload {
        font-size: 0.52rem;
        padding: 5px 8px;
        letter-spacing: 0.5px;
    }

    .music-nav-btn svg { width: 18px; height: 18px; }
    .sound-wave { height: 28px; }

    .footer-links { bottom: 10px; right: 10px; padding: 6px 12px; gap: 10px; }
    .footer-links a { font-size: 11px; }

    /* ad já é full width, nada extra necessário */

    /* Info section */
    .info-section    { padding: 60px 20px 48px; }
    .info-section h2 { font-size: 1.8rem; }
    .lead            { font-size: 0.94rem; margin-bottom: 40px; }
    .features-grid   { grid-template-columns: 1fr; gap: 14px; margin-bottom: 56px; }
    .pomodoro-block  { padding: 28px 20px; margin-bottom: 56px; }
    .pomodoro-block h2 { font-size: 1.4rem; }
    .cta-block       { padding: 30px 22px; flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
    .cta-block h3    { font-size: 1.2rem; }
    .how-block, .faq-block { margin-bottom: 56px; }

    /* Privacy */
    .privacy-title { font-size: 2rem; }
    .privacy-glass-card { padding: 24px 20px; border-radius: 20px; }
    .privacy-wrapper { padding: 60px 16px 80px; }
}

/* ============================================
   MOBILE PEQUENO — até 420px
   ============================================ */
@media (max-width: 420px) {

    #timer {
        font-size: clamp(2rem, 14vw, 3.2rem);
        letter-spacing: -0.01em;
    }

    .glass-container {
        border-radius: 24px;
        padding: 20px 14px;
        width: 92%;
        margin-bottom: 90px;
    }

    #timeSlider::-webkit-slider-thumb { width: 16px; height: 16px; }
    #timeSlider::-moz-range-thumb     { width: 16px; height: 16px; }

    /* ADD MUSIC — mantém visível mas bem compacto */
    .btn-upload {
        font-size: 0.48rem;
        padding: 4px 7px;
    }

    /* Esconde só o nome da música e sound wave */
    #music-name { display: none; }
    .sound-wave { display: none; }

    .top-bar  { padding: 10px 12px; }
    .controls { gap: 10px; }
    .btn      { font-size: 0.65rem; padding: 12px 10px; letter-spacing: 1.5px; }

    .nav-arrow {
        bottom: 110px;
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    /* ad full width no mobile também */

    .info-section h2 { font-size: 1.5rem; }
    .pomodoro-cycles { gap: 8px; }
    .cycle-chip      { font-size: 0.74rem; padding: 7px 13px; }
}

/* ============================================
   REDUCE MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
