/*
 * Kairos Verse landing page.
 * Colors come from the app's asset catalog (KairosPrimary, KairosGold, …) so the page
 * matches the screenshots in both light and dark mode.
 */

:root {
    --background: #F5F7F8;
    --surface: #FFFFFF;
    --primary: #1F5E77;
    --secondary: #5B8982;
    --gold: #C8A866;
    --text: #18242B;
    --muted: #606B70;
    --stroke: rgba(91, 137, 130, 0.18);
    --tint: rgba(31, 94, 119, 0.06);
    --shadow: 0 18px 40px rgba(31, 94, 119, 0.14);

    --radius-card: 24px;
    --radius-phone: 44px;
    --max-width: 1120px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #10181F;
        --surface: #1C272F;
        --primary: #7DBFD8;
        --secondary: #91C4B6;
        --gold: #E3D09B;
        --text: #EFF4F7;
        --muted: #B6B9B8;
        --stroke: rgba(145, 196, 182, 0.18);
        --tint: rgba(125, 191, 216, 0.07);
        --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
}

h1,
h2,
h3 {
    font-family: var(--font-rounded);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(100% - 2.5rem, var(--max-width));
    margin-inline: auto;
}

.narrow {
    width: min(100% - 2.5rem, 760px);
}

.center {
    text-align: center;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75em;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 34em;
}

.fine-print {
    font-size: 0.9rem;
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--surface);
    border-radius: 8px;
    z-index: 10;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--background) 85%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--stroke);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-rounded);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    border-radius: 9px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Stays visible on phones, where the section links are hidden. */
.language-switch {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}

.language-switch:hover {
    background: var(--tint);
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }
}

/* Hero */

.hero {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(60rem 30rem at 85% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
        radial-gradient(40rem 24rem at 0% 90%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-visual {
    position: relative;
    justify-self: center;
}

.hero-lion {
    position: absolute;
    width: clamp(120px, 16vw, 200px);
    left: -18%;
    bottom: -6%;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin: 2rem 0 1rem;
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.app-store-badge {
    display: inline-block;
    min-width: 160px;
    min-height: 54px;
    border-radius: 12px;
    line-height: 0;
}

/* Until the official badge is added, the alt text shows inside a visible outline. */
.app-store-badge img {
    min-height: 54px;
    font: 600 0.9rem/54px var(--font);
    color: var(--primary);
    text-align: center;
    border-radius: 12px;
    outline: 1px dashed var(--stroke);
}

@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lead {
        margin-inline: auto;
    }

    .cta-row {
        justify-content: center;
    }

    .hero-lion {
        left: -10%;
    }
}

/* Phone frames and screenshot markers */

.phone {
    margin: 0;
    width: clamp(220px, 26vw, 300px);
}

.phone-small {
    width: clamp(200px, 22vw, 260px);
    justify-self: center;
}

.phone img,
.screenshot-slot {
    width: 100%;
    aspect-ratio: 1206 / 2622;
    border-radius: var(--radius-phone);
    box-shadow: var(--shadow);
    border: 8px solid var(--text);
    object-fit: cover;
    background: var(--surface);
}

/* Visible placeholder so a missing capture is obvious. Replace with an <img> (see comments in index.html). */
.screenshot-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    background:
        repeating-linear-gradient(135deg, var(--tint) 0 12px, transparent 12px 24px),
        var(--surface);
    outline: 2px dashed var(--gold);
    outline-offset: -18px;
}

.screenshot-slot::after {
    content: attr(data-screenshot);
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted);
    word-break: break-all;
}

.phone figcaption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

/* Hero highlight: the one-line promise about alarms */

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    background: color-mix(in srgb, var(--gold) 14%, transparent);
    font-family: var(--font-rounded);
    font-weight: 800;
    color: var(--text);
}

/* Alarms, not notifications */

.alarms-section {
    border-bottom: 1px solid var(--stroke);
}

.alarms-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.compare-card {
    padding: 1.75rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.compare-card h3 {
    margin-bottom: 1rem;
}

.compare-card ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.compare-card-muted {
    color: var(--muted);
    background: transparent;
}

.compare-card-muted li::marker {
    content: "✕  ";
    color: var(--muted);
}

.compare-card-highlight {
    border: 2px solid var(--gold);
    box-shadow: var(--shadow);
}

.compare-card-highlight li::marker {
    content: "✓  ";
    color: var(--gold);
    font-weight: 800;
}

.alarms-kinds {
    max-width: 44rem;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--muted);
}

.alarms-kinds strong {
    color: var(--text);
}

@media (max-width: 960px) {
    .alarms-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 640px) {
    .compare {
        grid-template-columns: 1fr;
    }
}

/* Meaning */

.meaning {
    padding: 2.5rem 0;
    text-align: center;
    border-block: 1px solid var(--stroke);
    background: var(--surface);
}

.meaning-word {
    font-family: var(--font-rounded);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25em;
}

.meaning p:last-child {
    color: var(--muted);
    margin: 0;
}

/* Sections */

.section {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-tinted {
    background: var(--tint);
}

.section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3rem;
}

.section-header p:last-child {
    color: var(--muted);
}

/* Features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-card {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(31, 94, 119, 0.06);
}

.feature-card img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.feature-card .feature-icon-rounded {
    width: 72px;
    height: 72px;
    margin: 8px 8px 1.5rem;
    border-radius: 16px;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
}

/* The alarms card leads the grid and carries the gold accent, like the comparison above. */
.feature-card-highlight {
    border: 2px solid var(--gold);
}

/* Gallery */

/* Five phones fit in one centered row on wide screens; narrower screens swipe through them. */
.gallery {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 1.5rem;
}

.gallery .phone {
    width: 200px;
}

@media (max-width: 1140px) {
    .gallery {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .gallery li {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    .gallery .phone {
        width: clamp(200px, 60vw, 240px);
    }
}

/* Split */

.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.split p {
    color: var(--muted);
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Privacy */

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
    text-align: left;
}

.privacy-list li {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    color: var(--muted);
}

.privacy-list strong {
    color: var(--text);
}

/* Premium */

.offer {
    font-family: var(--font-rounded);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

#premium .app-store-badge {
    margin-top: 1rem;
}

/* FAQ */

details {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 0.75rem;
}

summary {
    cursor: pointer;
    font-weight: 700;
    list-style-position: outside;
}

details p {
    color: var(--muted);
    margin: 0.75rem 0 0;
}

/* Support */

.support-email {
    margin: 1.5rem 0;
}

.support-email a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gold);
    border-radius: 999px;
    font-family: var(--font-rounded);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    word-break: break-all;
}

.support-email a:hover {
    background: color-mix(in srgb, var(--gold) 14%, transparent);
}

/* Closing */

.closing {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.closing-icon {
    margin: 0 auto 1.5rem;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

/* Footer */

.site-footer {
    padding: 3rem 0 2.5rem;
    border-top: 1px solid var(--stroke);
    background: var(--surface);
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    width: 150px;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright-notices p {
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 0.6em;
}
