:root {
    --brand-green: #0B4A2C;
    --brand-green-light: #14613c;
    --brand-black: #000000;
    --brand-gray: #1a1a1a;
    --brand-white: #ffffff;
    --bg-gradient: linear-gradient(180deg, #0B4A2C 0%, #000000 100%);
    --accent-color: #f1c40f;
    /* Gold for subtle accents if needed */
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--brand-black);
    color: var(--brand-white);
    overflow: hidden;
    /* Prevent scrolling between steps */
    height: 100vh;
    width: 100vw;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 450px;
    /* Mobile width cap for desktop preview */
    margin: 0 auto;
    background: var(--bg-gradient);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

header {
    padding: 20px 20px 10px;
    z-index: 10;
}

#progress-container {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.progress-bar {
    height: 3px;
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: var(--brand-white);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar.active .progress-filled {
    width: 100%;
}

.progress-bar.current .progress-filled {
    width: 0%;
    /* Animation for current bar will be handled in JS if needed, 
       or just statically for this manual-step form */
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    height: 50px;
    object-fit: contain;
}

#story-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.step.prev {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50px);
}

.step.next-anim {
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
}

.step-content {
    width: 100%;
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.option-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--brand-white);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
}

.option-card i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--brand-white);
}

.option-card:hover,
.option-card:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.option-card.selected {
    background: var(--brand-white);
    color: var(--brand-green);
}

.option-card.selected i {
    background: var(--brand-green);
    color: var(--brand-white);
}

/* Inputs */
.input-group {
    margin: 30px 0;
}

input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    font-size: 1.5rem;
    color: var(--brand-white);
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input:focus {
    border-color: var(--brand-white);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.next-btn,
.finish-btn {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    border: none;
    background: var(--brand-white);
    color: var(--brand-green);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.next-btn:disabled,
.finish-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
}

.next-btn:not(:disabled):hover,
.finish-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Lucide icons scale */
[data-lucide] {
    width: 24px;
    height: 24px;
}

.option-card [data-lucide] {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content>* {
    animation: fadeIn 0.6s ease forwards;
}

.step-content>*:nth-child(2) {
    animation-delay: 0.1s;
}

.step-content>*:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 450px) {
    #app {
        max-width: 100%;
        box-shadow: none;
    }
}
/* Rodapé — volta ao site institucional */
.app-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.app-footer a {
    font-size: .85rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s ease;
}

.app-footer a:hover {
    color: #0b5033;
}
