/* Kovi marketing site — custom styling layered on top of Ignite's Bootstrap base. */

:root {
    --kovi-blue: #0088ff;
    --kovi-blue-dark: #0070db;
    --kovi-ink: #14181f;
    --kovi-muted: #5b6470;
    --kovi-bg-soft: #f4f8ff;
    --kovi-border: #e6ebf2;
}

body {
    color: var(--kovi-ink);
    -webkit-font-smoothing: antialiased;
}

/* ----- Header ----- */

.site-header {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: block;
}

.brand-word {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--kovi-ink);
}

/* ----- Layout sections ----- */

.hero,
.features,
.screenshots,
.legal {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

/* ----- Hero ----- */

.pill {
    display: inline-block;
    background: var(--kovi-bg-soft);
    color: var(--kovi-blue-dark);
    border: 1px solid var(--kovi-border);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-weight: 850;
    letter-spacing: -0.03em;
    max-width: 16ch;
    margin: 0 auto 1rem;
    line-height: 1.05;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--kovi-muted);
    max-width: 44ch;
    margin: 0 auto 2rem;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--kovi-muted);
    margin-top: 1rem;
}

/* ----- Waitlist form ----- */

.waitlist-form {
    max-width: 420px;
    margin: 0 auto;
}

.waitlist-form .btn {
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.waitlist-status {
    max-width: 420px;
    margin: 0.85rem auto 0;
    min-height: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--kovi-blue-dark);
}

.waitlist-status.is-error {
    color: #c0392b;
}

/* ----- Features ----- */

.features {
    background: var(--kovi-bg-soft);
    max-width: none;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.features > .section-title,
.features-grid {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 0 1rem;
}

.feature-icon {
    font-size: 2.25rem;
    color: var(--kovi-blue);
    line-height: 1;
    display: inline-block;
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 750;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--kovi-muted);
    margin: 0;
}

/* ----- Screenshots ----- */

.screenshots {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.phone {
    width: 100%;
    max-width: 250px;
    text-align: center;
}

/* iPhone-style frame around each screenshot. */
.phone-screen {
    position: relative;
    aspect-ratio: 9 / 19.5;
    border-radius: 2rem;
    background: #fff;
    border: 10px solid #14181f;
    box-shadow: 0 18px 40px rgba(20, 24, 31, 0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The notch. */
.phone-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 18px;
    background: #14181f;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

.phone-shot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder shown until a real screenshot is dropped in. */
.phone-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    background: repeating-linear-gradient(
        135deg,
        var(--kovi-bg-soft),
        var(--kovi-bg-soft) 12px,
        #eaf2ff 12px,
        #eaf2ff 24px
    );
    color: var(--kovi-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.phone-caption {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--kovi-ink);
}

/* ----- Footer ----- */

.site-footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--kovi-border);
    color: var(--kovi-muted);
    font-size: 0.9rem;
}

.footer-copy {
    margin: 0;
}

.footer-link {
    color: var(--kovi-muted);
}

/* ----- Legal pages ----- */

.legal {
    min-height: 50vh;
    padding-top: 3rem;
}

.legal .section-title {
    margin-bottom: 1rem;
}

.legal-meta {
    text-align: center;
    color: var(--kovi-blue-dark);
    margin-bottom: 2.5rem;
}

.legal p {
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.legal-heading {
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.legal-list {
    line-height: 1.7;
    margin-bottom: 1.1rem;
    padding-left: 1.25rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}
