/**
 * Tokens visuais compartilhados (alinhados a web/privacy e tema escuro do app).
 */
:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --border: #1e1e2e;
    --text: #e4e4ef;
    --text-secondary: #9494a8;
    --accent: #7c5cfc;
    --accent-hover: #9178fd;
    --accent-glow: rgba(124, 92, 252, 0.15);
    --error: #ff5555;
    --success: #50fa7b;
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.top-bar-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.lang-switch .lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-switch:hover {
    color: var(--accent);
    text-decoration: none;
    border-color: var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 9px;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo-text span {
    color: var(--accent);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
    text-decoration: none;
}

main {
    max-width: 480px;
    margin: 0 auto;
    padding: 88px 20px 48px;
}

main.home {
    max-width: 560px;
}

.home-kicker {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--accent);
    margin: 0 0 20px;
    line-height: 1.2;
}

@media (min-width: 400px) {
    .home-kicker {
        font-size: 28px;
    }
}

.home-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 18px;
    padding: 12px 14px;
    background: var(--accent-glow);
    border-radius: 10px;
    border: 1px solid rgba(124, 92, 252, 0.25);
    line-height: 1.45;
}

.home-lead {
    font-size: 17px;
    color: var(--text);
    margin: 0 0 20px;
    line-height: 1.55;
}

.home-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.home-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.home-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.home-foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-foot a {
    font-weight: 500;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0 0 8px;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    min-height: 52px;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

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

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.field input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

.field input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.checkbox-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-row input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.5;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(255, 85, 85, 0.12);
    border: 1px solid rgba(255, 85, 85, 0.35);
    color: #ffb4b4;
}

.alert-success {
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid rgba(80, 250, 123, 0.35);
    color: #9cf5b8;
}

.steps {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.steps li {
    margin-bottom: 8px;
}

footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.hidden {
    display: none !important;
}

@media (min-width: 400px) {
    h1 {
        font-size: 28px;
    }
}
