/* Orasync - Centered Layout */

:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #0a0a0f;
    --accent: #00e676;
    --accent-glow: rgba(0, 230, 118, 0.3);
    --accent-soft: rgba(0, 230, 118, 0.1);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-dim: #8a8a9a;
    --danger: #ff4466;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-dim: #606070;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Prevent scroll on main app page only */
body:has(.app-container) {
    overflow: hidden;
}

/* Allow scroll when more-info section is open */
body:has(.more-info-section[open]) {
    overflow: auto;
}

body:has(.more-info-section[open]) .app-container {
    height: auto;
    min-height: 100vh;
}

/* Allow scroll on legal pages */
body:has(.legal-page) {
    overflow: auto;
}

/* ==================== Ad Overlay (Welcome Interstitial) ==================== */
.ad-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ad-overlay.visible {
    display: flex;
}

.ad-overlay-content {
    background: var(--bg-card);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ad-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.ad-close-btn {
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ad-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.ad-overlay-slot {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 1rem;
}

.ad-interstitial {
    width: 100%;
    min-height: 250px;
}

/* ==================== Banner Ad ==================== */
.ad-banner {
    margin: 0.75rem 0;
    min-height: 90px;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-banner .adsbygoogle {
    width: 100%;
}

/* ==================== App Container ==================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    position: relative;
}

.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ==================== Header ==================== */
.header {
    text-align: center;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.tagline {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ==================== Settings Panel ==================== */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

/* ==================== Input Sections ==================== */
.input-section {
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* ==================== Text Input ==================== */
.text-area-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.text-input {
    flex: 1;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.text-input::placeholder {
    color: var(--text-dim);
}

/* ==================== File Drop ==================== */
.file-drop {
    width: 50px;
    height: 100px;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    flex-shrink: 0;
    position: relative;
}

.file-drop:hover, .file-drop.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.file-drop.dragover {
    animation: pulseGlow 1s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 30px var(--accent-glow), 0 0 40px var(--accent-glow);
    }
}

.file-drop-icon {
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.file-drop:hover .file-drop-icon,
.file-drop.dragover .file-drop-icon {
    color: var(--accent);
    transform: scale(1.2);
}

/* Block textarea visual feedback when dragging */
.text-input.drag-reject {
    border-color: var(--danger) !important;
    background: rgba(255, 68, 102, 0.15) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    box-shadow: inset 0 0 20px rgba(255, 68, 102, 0.2);
}

/* ==================== Settings Grid ==================== */
.settings-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.settings-list.settings-single {
    grid-template-columns: 1fr;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-value {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px var(--accent-glow);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}


/* ==================== Action Buttons ==================== */
.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.start-btn {
    flex: 1;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.start-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.fullscreen-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.fullscreen-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pause-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.pause-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pause-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ==================== Prompter Panel ==================== */
.prompter-panel {
    flex: 1;
    background: var(--bg-dark);
    border-radius: 0.75rem;
    margin-top: 1rem;
    display: none;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.prompter-panel.visible {
    display: flex;
}

.prompter-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.prompter-placeholder.hidden {
    display: none;
}

.prompter-content {
    display: none;
    flex-direction: column;
    height: 100%;
}

.prompter-content.active {
    display: flex;
}

/* ==================== Status Bar ==================== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.status-dot.listening {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.progress-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
}

/* ==================== Text Viewport ==================== */
.text-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.text-container {
    position: absolute;
    width: 100%;
    padding: 0 8%;
    transition: transform 0.18s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.prompter-word {
    display: inline;
    transition: color 0.08s ease-out, text-shadow 0.08s ease-out;
    line-height: 1.5;
}

.prompter-word.read {
    color: rgba(255, 255, 255, 0.15);
}

.prompter-word.current {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.prompter-word.upcoming {
    color: #ffffff;
}

/* ==================== Gradients & Center Line ==================== */
.center-line {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    pointer-events: none;
    z-index: 5;
}

.gradient-top, .gradient-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 10;
}

.gradient-top {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
}

.gradient-bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

/* ==================== Footer ==================== */
.site-footer {
    padding: 0.75rem 0 0.25rem;
    text-align: center;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* ==================== Fullscreen Prompter ==================== */
.fullscreen-prompter {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 1000;
    flex-direction: column;
}

.fullscreen-prompter.active {
    display: flex;
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fullscreen-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.control-btn.danger {
    background: var(--danger);
    border-color: var(--danger);
}

.control-btn.danger:hover {
    background: #ff2244;
}

.fullscreen-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.fullscreen-content .text-container {
    padding: 0 10%;
}

.fullscreen-content .gradient-top,
.fullscreen-content .gradient-bottom {
    height: 100px;
}

/* ==================== Fullscreen Bottom Bar ==================== */
.fullscreen-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 2rem 1.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 20;
}

.fullscreen-bottom-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.bottom-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.bottom-bar-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.bottom-bar-value {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 50px;
}

.fullscreen-bottom-bar input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.fullscreen-bottom-bar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* ==================== Browser Warning ==================== */
.browser-warning {
    background: var(--danger);
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    display: none;
}

.browser-warning.visible {
    display: block;
}

/* ==================== Theme Switch ==================== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.theme-setting {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.theme-switch-track {
    display: flex;
    align-items: center;
    width: 56px;
    height: 30px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    transition: all 0.3s ease;
}

.theme-switch:hover .theme-switch-track {
    border-color: var(--accent);
}

.theme-switch-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFD93D, #FF9500);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
}

.theme-switch-thumb svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* Light mode - sun visible */
.theme-switch-thumb .icon-sun {
    display: block;
}

.theme-switch-thumb .icon-moon {
    display: none;
}

/* Dark mode - moon visible, thumb moves right */
[data-theme="dark"] .theme-switch-thumb {
    transform: translateX(26px);
    background: linear-gradient(135deg, #7C83FD, #4A4E9E);
    box-shadow: 0 2px 8px rgba(124, 131, 253, 0.4);
}

[data-theme="dark"] .theme-switch-thumb .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-switch-thumb .icon-moon {
    display: block;
}

/* ==================== Tutorial Modal ==================== */
.tutorial-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.tutorial-overlay.visible {
    display: flex;
}

.tutorial-content {
    background: var(--bg-card);
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: tutorialSlideIn 0.3s ease-out;
}

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

.tutorial-header {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.tutorial-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tutorial-header p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.tutorial-body {
    padding: 1.5rem;
}

.tutorial-section {
    margin-bottom: 1.5rem;
}

.tutorial-section:last-child {
    margin-bottom: 0;
}

.tutorial-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tutorial-section h3 svg {
    width: 16px;
    height: 16px;
}

.tutorial-list {
    list-style: none;
}

.tutorial-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tutorial-list .key {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.tutorial-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tutorial-btn {
    background: var(--accent);
    color: #0a0a0f;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.tutorial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.tutorial-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.tutorial-checkbox input {
    accent-color: var(--accent);
}

.help-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10;
}

.help-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

/* ==================== Responsive ==================== */
@media (max-width: 700px) {
    .app-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .text-input {
        height: 80px;
        min-height: 80px;
        max-height: 80px;
        font-size: 0.8rem;
    }

    .file-drop {
        width: 45px;
        height: 80px;
    }

    .input-section {
        padding: 0.75rem 1rem;
    }

    .ad-banner {
        min-height: 60px;
    }

    .ad-overlay-content {
        max-width: 95%;
        border-radius: 0.75rem;
    }

    .ad-overlay-slot {
        min-height: 200px;
    }

    .help-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .theme-setting {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .tutorial-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .tutorial-header h2 {
        font-size: 1.25rem;
    }

    .tutorial-list li {
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    .app-container {
        padding: 0.5rem 0.75rem;
    }

    .header {
        padding: 0.25rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .text-input {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
        font-size: 0.75rem;
    }

    .file-drop {
        width: 40px;
        height: 70px;
    }

    .input-section {
        padding: 0.6rem 0.75rem;
    }

    .section-title {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .start-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .prompter-panel.visible {
        margin-top: 0.75rem;
        min-height: 150px;
    }

    .site-footer {
        padding: 0.5rem 0 0;
    }

    .footer-links a {
        font-size: 0.65rem;
    }
}

@media (max-height: 700px) {
    .header {
        padding: 0.25rem 0;
    }

    .settings-panel {
        gap: 0.75rem;
    }

    .text-input {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
    }

    .file-drop {
        height: 70px;
    }

    .prompter-panel.visible {
        margin-top: 0.75rem;
    }
}

@media (max-height: 550px) {
    .tagline {
        display: none;
    }

    .input-section {
        padding: 0.5rem 0.75rem;
    }

    .text-input {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }

    .file-drop {
        height: 60px;
    }

    .site-footer {
        display: none;
    }

    .prompter-panel.visible {
        min-height: 120px;
    }

    .ad-banner {
        display: none;
    }
}

/* ==================== Collapsible More Info Section ==================== */
.more-info-section {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.more-info-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.more-info-toggle::-webkit-details-marker {
    display: none;
}

.more-info-toggle:hover {
    color: var(--accent);
}

.toggle-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.more-info-section[open] .toggle-arrow {
    transform: rotate(180deg);
}

.more-info-section[open] .toggle-text {
    color: var(--accent);
}

.more-info-content {
    animation: slideDown 0.3s ease;
    padding-bottom: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Info Sections (SEO Content) ==================== */
.info-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.info-section:first-child {
    border-top: none;
}

.section-heading {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.section-intro {
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.feature-item h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Steps Container */
.steps-container {
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #0a0a0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.use-case {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.use-case h3 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.use-case p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Blog CTA */
.blog-cta {
    text-align: center;
}

.blog-link {
    display: inline-block;
    background: var(--accent);
    color: #0a0a0f;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.blog-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Responsive for info sections */
@media (max-width: 700px) {
    .info-section {
        padding: 1.5rem 0;
    }

    .section-heading {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .feature-item {
        padding: 0.75rem;
    }

    .feature-item h3 {
        font-size: 0.85rem;
    }

    .feature-item p {
        font-size: 0.75rem;
    }

    .more-info-toggle {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}
