/* GIMME BAD - Mobile-First Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    color: black;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    padding: 20px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    flex-direction: column;
    justify-content: space-between;
}

.screen.active {
    display: flex;
}

/* Logo */
.logo-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.site-logo {
    height: 48px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.site-logo:hover {
    opacity: 1;
}

/* Content Area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.header-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.prompt-text {
    font-size: 24px;
    font-weight: 600;
    margin: 24px 0;
    max-width: 90%;
    line-height: 1.4;
}

.response-text {
    font-size: 32px;
    font-weight: 400;
    margin: 12px 0;
}

.subtext {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
}

.optional-text {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

.thinking {
    font-size: 20px;
    color: #666;
}

.thinking::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.tiny-footer {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 20px 0;
}

/* Buttons */
button {
    border: none;
    background: black;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    opacity: 0.7;
}

.btn-primary {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-large {
    font-size: 18px;
    padding: 18px 24px;
    margin-bottom: 12px;
}

.btn-secondary {
    background: transparent;
    color: black;
    border: 1px solid black;
    flex: 1;
    margin: 0 4px;
}

.btn-sticky {
    position: sticky;
    bottom: 0;
    margin-top: auto;
}

/* Button Stack */
.button-stack {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 20px;
}

.btn-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Modal */
.modal {
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 32px 24px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

/* Inputs */
.email-input,
.text-input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    margin: 20px 0;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.email-input:focus,
.text-input:focus {
    outline: none;
    border-color: black;
}

.text-input {
    min-height: 120px;
    resize: vertical;
}

/* Links */
.skip-link {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.skip-link:active {
    opacity: 0.7;
}

/* Feature List */
.feature-list {
    list-style: none;
    text-align: left;
    margin: 24px 0;
    padding: 0 20px;
}

.feature-list li {
    padding: 8px 0;
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.screen.active {
    animation: fadeIn 0.3s ease-in;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .screen {
        padding: 40px;
    }

    .logo-container {
        top: 30px;
    }

    .site-logo {
        height: 56px;
    }

    h1 {
        font-size: 36px;
    }

    .prompt-text {
        font-size: 32px;
        max-width: 600px;
    }

    .response-text {
        font-size: 40px;
    }

    .content {
        padding: 40px 0;
    }

    .modal-content {
        padding: 48px 40px;
    }

    .btn-primary {
        max-width: 500px;
    }

    .button-stack {
        max-width: 500px;
    }
}

/* Legal Footer */
.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px 20px;
    font-size: 11px;
    color: #999;
    background: white;
    z-index: 100;
    pointer-events: none;
}

.legal-footer a {
    color: #999;
    text-decoration: none;
    pointer-events: auto;
    transition: color 0.2s;
}

.legal-footer a:hover {
    color: #666;
}

.legal-footer span {
    margin: 0 4px;
}

/* Add padding to screens to account for footer */
.screen:not(.modal) {
    padding-bottom: 60px;
}

/* Dark mode support (optional, for future) */
@media (prefers-color-scheme: dark) {
    /* Keep light mode for now per design */
}

