/* TuningTech rebrand landing — modal layout */

:root {
    --royal-blue: #1d4ed8;
    --royal-blue-dark: #1e3a8a;
    --text-muted: #64748b;
    --text-body: #334155;
    --timer-accent: #ea580c;
    --check-green: #16a34a;
    --features-bg: #f1f5f9;
    --features-border: #e2e8f0;
    --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    --shadow-button: 0 10px 25px -5px rgba(29, 78, 216, 0.45);
}

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

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-body);
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 45%, #dbeafe 100%);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--royal-blue);
    border-radius: 8px;
    z-index: 10000;
    box-shadow: var(--shadow-modal);
}

.page-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.25);
    pointer-events: none;
}

#main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.rebrand-shell {
    width: 100%;
    max-width: 32rem;
}

.rebrand-popup {
    background: #fff;
    border-radius: 26px;
    padding: 2rem 1.75rem 2.25rem;
    box-shadow: var(--shadow-modal);
    text-align: center;
}

.rebrand-logo {
    display: block;
    margin: 0 auto 1rem;
    max-width: 140px;
    height: auto;
}

.rebrand-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--royal-blue-dark);
}

.rebrand-message {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rebrand-brand {
    color: var(--royal-blue);
    font-weight: 700;
}

.rebrand-features {
    text-align: left;
    background: var(--features-bg);
    border: 1px solid var(--features-border);
    border-radius: 16px;
    padding: 1.25rem 1.35rem 1.35rem;
    margin-bottom: 1.5rem;
}

.rebrand-features-heading {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--royal-blue);
    text-align: center;
}

.rebrand-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rebrand-features li {
    position: relative;
    padding-left: 1.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
}

.rebrand-features li:last-child {
    margin-bottom: 0;
}

.rebrand-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--check-green);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rebrand-countdown {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--royal-blue);
}

.rebrand-timer {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--timer-accent);
}

.rebrand-button {
    appearance: none;
    width: 100%;
    max-width: 100%;
    border: none;
    cursor: pointer;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    background: var(--royal-blue);
    color: #fff;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-button);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.rebrand-button:hover {
    filter: brightness(1.06);
}

.rebrand-button:active {
    transform: scale(0.98);
}

.rebrand-button:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.45);
    outline-offset: 3px;
}

.noscript-fallback {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem;
    background: #fef3c7;
    border-top: 1px solid #f59e0b;
    text-align: center;
    font-size: 0.9rem;
}

.noscript-fallback a {
    color: var(--royal-blue);
    font-weight: 700;
}

@media (max-width: 380px) {
    .rebrand-popup {
        padding: 1.5rem 1.25rem 1.75rem;
        border-radius: 20px;
    }
}
