:root {
    --brand: #ff764d;
    --brand-dark: #e85f36;
    --ink: #1f2430;
    --muted: #5d6475;
    --line: #e6e8ee;
    --soft: #fff6f2;
}

body.landing,
body.auth-page {
    background: linear-gradient(180deg, #fff6f2 0%, #ffffff 420px);
    color: var(--ink);
}

html, body.landing, body.landing main {
    height: auto;
}

.landing-main {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

.hero {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto;
}

.hero-logo {
    width: 6.5rem;
    height: auto;
    margin-bottom: 1rem;
}

.free-badge {
    display: inline-block;
    background: #e6f6ec;
    color: #237a49;
    border: 1px solid #bfe6cd;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 auto 1.75rem;
    max-width: 32rem;
}

.cta-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
    padding: 1.5rem;
    max-width: 24rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border: 1px solid #d5d9e2;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.oauth-btn:hover {
    background: #f7f8fa;
    border-color: #c4c9d4;
    box-shadow: 0 2px 6px rgba(31, 36, 48, 0.08);
    text-decoration: none;
    color: var(--ink);
}

.oauth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9aa0ad;
    font-size: 0.85rem;
    margin: 0.35rem 0;
}

.oauth-divider::before,
.oauth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.cta-primary {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cta-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-link {
    text-align: center;
    color: var(--muted);
}

.cta-login {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

.cta-login a {
    color: var(--brand-dark);
    font-weight: 600;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-top: 3.5rem;
}

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--soft);
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem 2rem;
    margin-top: 2.5rem;
    padding: 1.5rem 0.25rem;
    border-top: 1px solid var(--line);
}

.feature strong {
    display: block;
    margin-bottom: 0.15rem;
}

.feature span {
    color: var(--muted);
    font-size: 0.93rem;
}

.disclaimer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
    background: #fffaf0;
    border: 1px solid #f1e3c4;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.disclaimer summary {
    cursor: pointer;
    font-weight: 600;
    color: #8a6a1f;
}

.disclaimer p {
    margin: 0.6rem 0 0;
}

/* auth stranice (signup, login, odabir imena) */
.auth-main {
    max-width: 26rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

.auth-main h1 {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.4rem;
}

.auth-main .auth-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.auth-main .cta-card {
    max-width: none;
}

.auth-main label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.auth-main input[type="email"],
.auth-main input[type="password"],
.auth-main input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d5d9e2;
    border-radius: 8px;
    font: inherit;
}

.auth-main input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 118, 77, 0.15);
}

.auth-field {
    margin-bottom: 0.9rem;
}

.auth-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.name-input {
    display: flex;
    align-items: center;
    border: 1px solid #d5d9e2;
    border-radius: 8px;
    overflow: hidden;
}

.name-input input[type="text"] {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.name-input input[type="text"]:focus {
    box-shadow: none;
}

.name-input:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 118, 77, 0.15);
}

.name-input span {
    padding: 0 0.75rem;
    color: var(--muted);
    background: #f6f7f9;
    align-self: stretch;
    display: flex;
    align-items: center;
    border-left: 1px solid #e3e6ec;
}

.auth-main button.cta-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.auth-main button.cta-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

@media (max-width: 40rem) {
    .hero h1 {
        font-size: 1.7rem;
    }
    .landing-main {
        padding-top: 1.5rem;
    }
}

/* Buy me a coffee (PayPal) */
.coffee {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.coffee-text {
    flex: 1 1 18rem;
}

.coffee-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.coffee-text p {
    margin: 0;
    color: var(--muted);
}

.coffee-button {
    flex: 0 1 18rem;
    min-width: 12rem;
}
