/* ========================================
   SECTIONS.CSS - Hero, Feature Grid, Demo
   ======================================== */

/* ========================================
   HERO
   ======================================== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 32px 24px 40px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.7);
    padding: 8px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 72px;
    max-width: 640px;
}

.hero .subhead {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--slate-600);
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-ph {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid #fed7aa;
    background: rgba(255,255,255,0.8);
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    backdrop-filter: blur(8px);
    margin-top: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-ph:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.hero-ph-icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ff6154;
    color: white;
    font-size: 16px;
    font-weight: 800;
}

.hero-ph-text { text-align: left; }
.hero-ph-text .ph-sub { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-400); }
.hero-ph-text .ph-main { font-size: 14px; font-weight: 800; color: var(--slate-900); }

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.hero-pill {
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.6);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--slate-600);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* Hero phone area title */
.hero-phone-label {
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--slate-400);
}

/* Phone mockup */
.hero-phone-wrap { position: relative; display: flex; justify-content: center; }

.phone-mockup {
    width: 300px;
    border-radius: 3rem;
    border: 10px solid var(--slate-950);
    background: var(--slate-950);
    box-shadow: 0 24px 48px rgba(15,23,42,0.2);
}

.phone-inner {
    overflow: hidden;
    border-radius: 2.35rem;
    background: white;
}

.phone-notch-bar {
    position: relative;
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: white;
}

.phone-notch {
    position: absolute;
    top: 8px;
    height: 20px;
    width: 96px;
    border-radius: var(--radius-pill);
    background: var(--slate-950);
}

.phone-header {
    border-bottom: 1px solid var(--slate-100);
    padding: 8px 20px 16px;
    text-align: center;
}

.phone-header .app-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.phone-header .app-sub {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-400);
}

.phone-body {
    background: linear-gradient(to bottom, #fefce8, white);
    padding: 20px;
}

.phone-transcript-box {
    background: rgba(255,255,255,0.8);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.phone-transcript-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.phone-transcript-text {
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
    color: var(--slate-600);
}

.phone-extracted {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.phone-extracted-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--slate-800);
    font-size: 14px;
}

.phone-extracted-left .check { color: var(--accent); }
.phone-extracted .review { font-size: 12px; font-weight: 800; color: var(--accent); }

/* Phone task cards */
.phone-task {
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 12px;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.phone-task:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.phone-task-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.phone-task-check {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.phone-task-title { font-weight: 800; font-size: 14px; color: var(--slate-800); line-height: 1.3; }
.phone-task-meta { font-size: 12px; font-weight: 700; color: var(--slate-400); margin-top: 2px; }

.phone-task-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; margin-left: 34px; }

.task-tag {
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
}

.task-tag.cat { background: #d1fae5; color: #065f46; }
.task-tag.pri { background: #ffedd5; color: #9a3412; }
.task-tag.dest { background: var(--slate-100); color: var(--slate-600); }

/* Floating cards */
.float-card {
    position: absolute;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    animation: floaty 4s ease-in-out infinite;
}

.float-card-voice {
    left: -32px;
    top: 64px;
    z-index: 10;
}

.float-card-sync {
    right: -32px;
    bottom: 80px;
    z-index: 10;
    animation-delay: 2s;
}

.float-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-bottom: 8px;
}

.float-card-body { font-size: 13px; line-height: 1.6; color: var(--slate-700); max-width: 192px; }

.float-card-sync .sync-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.float-card-sync .sync-item {
    border-radius: 12px;
    background: var(--slate-50);
    padding: 4px 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-600);
}

/* ========================================
   FEATURE GRID
   ======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 24px;
    transition: all 0.2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.feature-card .icon-badge {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(255,104,71,0.2);
}

.feature-card h3 {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--slate-950);
}

.feature-card p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--slate-600);
}

/* ========================================
   DEMO PICKER + PHONE SCREENS
   ======================================== */
.demo-picker {
    margin-top: 32px;
    border-radius: 1.75rem;
    border: 1px solid #fed7aa;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.demo-picker-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-400); }
.demo-picker-desc { font-size: 14px; color: var(--slate-500); margin: 8px 0 16px; line-height: 1.5; }

.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tab { border-radius: var(--radius-pill); padding: 8px 16px; font-size: 13px; font-weight: 800; border: none; cursor: pointer; transition: all 0.2s; background: var(--slate-100); color: var(--slate-600); }
.demo-tab:hover { background: var(--slate-200); }
.demo-tab.active { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(255,104,71,0.25); }

.phone-controls { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* Phone screen phases */
.demo-fade-in { animation: demoFadeIn 280ms ease-out both; }
@keyframes demoFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

#phoneScreen { height: 560px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.ps-record, .ps-transcribing, .ps-tasks { display: flex; flex-direction: column; min-height: 100%; background: #fff9df; }
.ps-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; color: var(--slate-500); font-size: 20px; }
.ps-sub { text-align: center; font-size: 12px; font-weight: 600; color: var(--slate-500); margin-top: 4px; }
.ps-pro { text-align: center; margin: 8px auto; display: inline-flex; border-radius: var(--radius-pill); border: 1px solid #bbf7d0; background: #f0fdf4; padding: 4px 12px; font-size: 12px; font-weight: 800; color: #15803d; }
.ps-timer { text-align: center; margin: 12px auto; background: #ffe7d7; border-radius: 16px; padding: 8px 24px; font-size: 32px; font-weight: 800; color: var(--accent); }
.ps-audio { text-align: center; font-size: 13px; color: var(--slate-400); font-weight: 600; }
.ps-audio-ok { text-align: center; font-size: 13px; font-weight: 800; color: #16a34a; margin-top: 4px; }
.ps-stop-btn { display: flex; width: 100px; height: 100px; margin: 16px auto 0; border-radius: 50%; background: #ef2f32; border: none; cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 0 32px rgba(255,104,71,0.18); transition: transform 0.15s; }
.ps-stop-btn:hover { transform: scale(1.03); }
.ps-stop-inner { width: 28px; height: 28px; border-radius: 8px; background: white; }
.ps-stop-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--slate-500); margin-top: 12px; }

.ps-bottom-tabs { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--slate-100); background: white; padding: 12px; text-align: center; font-size: 12px; font-weight: 800; }
.ps-tab { border: none; background: none; cursor: pointer; color: var(--slate-400); font-weight: 800; font-size: 12px; font-family: inherit; }
.ps-tab-active { color: var(--accent); }

.ps-trans-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
.ps-dots-ring { width: 80px; height: 80px; border-radius: 50%; background: #ffedd5; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ps-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: dotPulse 1s ease-in-out infinite; }
.ps-dot:nth-child(2) { animation-delay: 150ms; }
.ps-dot:nth-child(3) { animation-delay: 300ms; }
@keyframes dotPulse { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ps-trans-title { font-size: 22px; font-weight: 800; color: var(--slate-800); margin-top: 20px; }
.ps-trans-sub { font-size: 13px; color: var(--slate-500); margin-top: 10px; max-width: 220px; text-align: center; line-height: 1.5; }

.ps-review { min-height: 100%; background: #fbfbfb; }
.ps-review-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; color: white; background: var(--accent); font-size: 20px; font-weight: 600; }
.ps-back { background: none; border: none; color: white; font-size: 28px; cursor: pointer; line-height: 1; }
.ps-review-body { padding: 16px; }
.ps-review-transcript { background: var(--slate-50); border-radius: 16px; padding: 12px; margin-bottom: 16px; }
.ps-review-task { border: 2px solid #e5e7eb; border-radius: 20px; background: white; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.03); }
.ps-check-btn { width: 24px; height: 24px; border-radius: 6px; border: 2px solid; font-size: 12px; font-weight: 800; cursor: pointer; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.ps-review-content { flex: 1; min-width: 0; }
.ps-review-content .phone-task-tags { margin-left: 0; }
.ps-task-actions { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--slate-400); }
.ps-task-actions button { background: none; border: none; cursor: pointer; color: inherit; font-size: 14px; }
.ps-sync-btn { width: 100%; margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--accent); color: white; border: none; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(255,104,71,0.2); transition: transform 0.15s; }
.ps-sync-btn:hover { transform: translateY(-2px); }

/* ========================================
   RESPONSIVE - Sections
   ======================================== */
@media (max-width: 968px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; }
    .hero h1 { font-size: 48px; }
    .hero .subhead { font-size: 16px; }
    .hero-ctas { justify-content: center; }
    .hero-pills { justify-content: center; }
    .phone-mockup { width: 260px; }
    .float-card { display: none; }
    .feature-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .demo-picker { text-align: left; }
    .demo-tabs { justify-content: center; }
}
