:root {
    --bg: #0A0A0A;
    --bg-elevated: #141414;
    --text: #E8E8E8;
    --text-muted: #888;
    --text-active: #E8D5B7;
    --accent: #E8D5B7;
    --accent-dim: #D4B98A;
    --border: #333;
    --radius: 16px;
    --radius-pill: 9999px;
    --chunk-size: 31px;
    --chunk-leading: 1.55;
    --transition-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── LANDING ─── */
.landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 640px;
    width: 100%;
}

.logo {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.tm {
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 3px;
    opacity: 0.6;
}

.tagline {
    font-size: 21px;
    color: var(--accent);
    margin: 0 0 8px;
    font-weight: 600;
}

.subtitle {
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(232, 213, 183, 0.08);
    border: 1px solid rgba(232, 213, 183, 0.18);
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.market-note {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 28px;
    max-width: 520px;
}

.market-note strong {
    color: var(--accent);
}

.input-section label {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
}

textarea {
    width: 100%;
    height: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    color: var(--text);
    font-size: 15.5px;
    resize: vertical;
    margin-bottom: 16px;
    outline: none;
    font-family: inherit;
    line-height: 1.55;
    transition: border-color 0.2s ease;
}

textarea:focus { border-color: #555; }

.script-title-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 16px;
    outline: none;
    font-family: inherit;
}

.script-title-input:focus { border-color: #555; }

.file-upload {
    border: 1.5px dashed #555;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    font-size: 15px;
}

.file-upload:hover {
    border-color: #777;
    background: rgba(255, 255, 255, 0.015);
}

.file-upload.dragover {
    border-color: var(--accent);
    background: rgba(232, 213, 183, 0.04);
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-row .btn-primary { flex: 2; }
.btn-row .btn-secondary { flex: 1; }

.btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    display: inline-block;
    text-align: center;
    font-family: inherit;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover { 
    background: rgba(232, 213, 183, 0.25); 
    transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.985); }

.btn-secondary {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #CCC;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.15); 
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    padding: 8px 14px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
}

.btn-ghost:hover { color: var(--accent); }

/* Samples + Install (landing visibility refresh) */
.samples-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.samples-label {
    font-size: 12.5px;
    color: #888;
    font-weight: 500;
    margin-right: 6px;
    white-space: nowrap;
}

/* Cue insertion toolbar for easy syntax without memorizing */
.cue-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cue-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #CCC;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cue-btn:hover {
    background: rgba(232, 213, 183, 0.18);
    color: var(--accent);
    border-color: rgba(232, 213, 183, 0.4);
    transform: translateY(-1px);
}

.sample-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #CCC;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sample-btn:hover {
    background: rgba(232, 213, 183, 0.18);
    color: var(--accent);
    border-color: rgba(232, 213, 183, 0.4);
    transform: translateY(-1px);
}

.btn-install {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(232, 213, 183, 0.3);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn-install:hover {
    background: rgba(232, 213, 183, 0.22);
    color: #111;
    transform: translateY(-1px);
}

.btn-install:active {
    transform: scale(0.985);
}

/* Demo video section */
.demo-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin: 0 0 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.demo-note {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin: 0 0 10px;
}

/* Saved Scripts Library */
.library-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.library-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin: 0 0 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.library-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
}

.library-item:hover {
    border-color: rgba(232, 213, 183, 0.2);
    background: rgba(232, 213, 183, 0.03);
}

.library-item-title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
}

.library-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.library-empty {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Glasses & Future section */
.glasses-future {
    margin-top: 36px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
}

.glasses-future h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 12px;
}

.glasses-future p, .glasses-future li {
    font-size: 13.5px;
    color: #999;
    line-height: 1.6;
    margin: 0 0 8px;
}

.glasses-future ul {
    padding-left: 18px;
    margin: 8px 0 0;
}

.glasses-future strong { color: #BBB; }

/* ─── GLASSES MODE ─── */
body.glasses {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 24px 28px;
    overflow-x: hidden;
}

.exit-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 50;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #AAA;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    backdrop-filter: blur(8px);
}

.exit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

#script-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 24px;
    min-height: 0;
}

#script-text {
    width: 100%;
    max-width: 820px;
}

.chunk {
    font-size: var(--chunk-size);
    line-height: var(--chunk-leading);
    padding: 28px 0;
    opacity: 0.16;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    transition: opacity 0.55s var(--transition-smooth),
                color 0.45s var(--transition-smooth),
                transform 0.55s var(--transition-smooth);
    will-change: transform, opacity;
}

.chunk.active {
    opacity: 1;
    color: var(--text-active);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Mode-specific typography */
body.comfort-mode .chunk.active {
    font-weight: 400;
    letter-spacing: 0.01em;
}

body.presentation-mode .chunk {
    font-size: calc(var(--chunk-size) * 1.08);
}

body.presentation-mode .chunk.active {
    font-weight: 600;
}

body.focus-mode .chunk.active {
    text-shadow: 0 0 40px rgba(232, 213, 183, 0.08);
}

.cue-emphasis {
    color: var(--text-active);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(232, 213, 183, 0.35);
    text-underline-offset: 4px;
}

.cue-pause {
    display: inline-block;
    margin: 0 4px;
    opacity: 0.55;
    font-size: 0.85em;
}

.chunk.cue-pause-chunk {
    opacity: 0.45;
    font-size: calc(var(--chunk-size) * 0.72);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.mirror-mode #script-container #script-text-wrapper {
    transform: scaleX(-1);
}

body.mirror-mode #script-container .chunk {
    transform: scaleX(-1);
}

/* polish: keep controls and UI not flipped */
body.mirror-mode .customize-panel,
body.mirror-mode .progress-container,
body.mirror-mode .speed-presets,
body.mirror-mode .controls,
body.mirror-mode .mode-switcher,
body.mirror-mode .exit-btn,
body.mirror-mode .hardware-note,
body.mirror-mode .glasses-hw-legend,
body.mirror-mode .bookmarks {
    transform: scaleX(1);
}

/* Customization panel */
.customize-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 24px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.customize-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customize-group label {
    font-size: 12.5px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.customize-group input[type="range"] {
    width: 100px;
    accent-color: var(--accent);
    cursor: pointer;
}

.customize-value {
    font-size: 12px;
    color: var(--accent);
    min-width: 32px;
    font-weight: 500;
}

.toggle-chip {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #AAA;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.toggle-chip.active {
    background: rgba(232, 213, 183, 0.14);
    color: var(--accent);
}

.motion-chip {
    position: fixed;
    top: 14px;
    right: 72px;
    z-index: 20;
}

.motion-chip.hidden {
    display: none;
}

/* Progress + Timer */
.progress-container {
    max-width: 620px;
    margin: 0 auto 10px;
    padding: 0 8px;
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent), var(--accent-dim));
    border-radius: var(--radius-pill);
    transition: width 0.4s var(--transition-smooth);
    box-shadow: 0 0 12px rgba(232, 213, 183, 0.3);
}

.timer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Speed presets */
.speed-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.preset-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #AAA;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    font-family: inherit;
}

.preset-btn:hover { background: rgba(255, 255, 255, 0.09); }

.preset-btn.active {
    background: rgba(232, 213, 183, 0.16);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 20px 0 16px;
}

.control-btn {
    flex: 1;
    max-width: 128px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: inherit;
}

.control-btn:hover { background: rgba(255, 255, 255, 0.12); }
.control-btn:active { transform: scale(0.96); }

#play-btn {
    flex: 1.4;
    max-width: 160px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(232, 213, 183, 0.12);
    color: var(--accent);
}

#play-btn:hover { background: rgba(232, 213, 183, 0.18); }

/* Mode switcher */
.mode-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    padding: 5px;
    margin: 0 auto;
    width: fit-content;
}

.mode-btn {
    padding: 10px 20px;
    background: transparent;
    color: #AAA;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    font-family: inherit;
}

.mode-btn:hover { color: #CCC; }

.mode-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* End screen */
.end-screen {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--transition-smooth);
    backdrop-filter: blur(12px);
}

.end-screen.visible {
    opacity: 1;
    pointer-events: all;
}

.end-screen.hidden { display: flex; }

.end-screen h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.end-screen .subtitle {
    font-size: 16px;
    color: #AAA;
    margin-bottom: 28px;
}

.end-screen .stats {
    display: flex;
    gap: 28px;
    margin-bottom: 36px;
    color: var(--text-muted);
    flex-wrap: wrap;
    justify-content: center;
}

.end-screen .stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
}

.end-screen .stats .value {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.analytics-panel {
    max-width: 420px;
    margin: 0 auto 28px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.analytics-line {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.analytics-line:last-child {
    margin-bottom: 0;
}

.end-screen .stats span:last-child {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.end-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

.end-actions .btn-primary,
.end-actions .btn-secondary { width: 100%; }

/* Utility */
.hidden { opacity: 0; pointer-events: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .chunk { transition: opacity 0.2s ease; }
}

/* Compact HUD sizing for phone-as-companion */
@media (max-width: 480px) {
    body.glasses { padding: 16px 16px 24px; }
    .chunk { padding: 20px 0; }
    .controls { gap: 10px; }
    .control-btn { padding: 16px 12px; }
    .customize-panel { gap: 12px; }
    .glasses-hw-legend { font-size: 10px; padding: 5px 10px; }
}

/* Landing demo visuals responsive */
@media (max-width: 600px) {
    .demo-visuals {
        grid-template-columns: 1fr !important;
    }
}

/* First-time / Comfort discovery tip in player */
.comfort-tip {
    max-width: 620px;
    margin: 8px auto 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comfort-tip.hidden {
    display: none;
}

.comfort-tip button {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(232, 213, 183, 0.3);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
}

.comfort-tip button:hover {
    background: rgba(232, 213, 183, 0.1);
}

/* Persistent glasses hardware controls legend (prominent for button/touch awareness) */
.glasses-hw-legend {
    max-width: 620px;
    margin: 6px auto 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 11px;
    color: #999;
    line-height: 1.35;
    text-align: left;
}

.glasses-hw-legend .hw-title {
    font-weight: 600;
    color: #bbb;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
}

.glasses-hw-legend .hw-detail {
    display: block;
    margin: 2px 0;
}

.glasses-hw-legend .future {
    color: #777;
    font-style: italic;
}

.glasses-hw-legend .hw-other {
    display: block;
    font-size: 10px;
    color: #777;
    margin-top: 2px;
}

.bookmarks span {
    cursor: pointer;
    margin-right: 8px;
}

.bookmarks span:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* For controls fade in player */
.customize-panel, .speed-presets, .controls, .mode-switcher {
    transition: opacity 0.3s ease;
}

/* One-time first-run coach / toast for in-product onboarding */
.first-run-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    background: rgba(232, 213, 183, 0.95);
    color: #111;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: auto;
    cursor: pointer;
}

.first-run-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.first-run-toast strong {
    font-weight: 700;
}

/* History section (recent rehearsals) */
.history-item {
    padding: 6px 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 11px;
}

/* Beta / launch assets section (on landing) */
.beta-section {
    margin-top: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
}

.beta-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 10px;
}

.beta-section p {
    font-size: 13.5px;
    color: #999;
    line-height: 1.5;
    margin: 0 0 12px;
}

.beta-benefits {
    font-size: 13px;
    color: #aaa;
    margin: 0 0 16px;
    padding-left: 18px;
}

.beta-benefits li {
    margin-bottom: 4px;
}

#beta-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#beta-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

#beta-form button {
    padding: 10px 20px;
    background: var(--accent);
    color: #111;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
}

#beta-form button:hover {
    background: var(--accent-dim);
}

#beta-success {
    display: none;
    font-size: 13px;
    color: var(--accent);
    margin-top: 8px;
}