/* The RIFTLINE pages (/riftline/ and /riftline/it/): the app's own colour tokens and display
   face over style.css. One file for both languages, so the two pages cannot drift apart. */

/* Cinzel — self-hosted, no third-party font requests.
   Source: @fontsource/cinzel 5.3.0 (npm), SIL Open Font License 1.1.
   Licence text: /assets/fonts/LICENSE
   Only the weights the pages use are shipped: 600, 700 (latin + latin-ext, upright only). */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cinzel-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cinzel-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cinzel-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cinzel-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
    --rl-background: #010A13;
    --rl-ambient: #0A1C33;
    --rl-panel: #0B1524;
    --rl-gold: #C8AA6E;
    --rl-hairline: rgba(200, 170, 110, 0.22);
    --rl-text: #F0E6D2;
    --rl-text-secondary: #8FA3B8;
    --rl-muted: #5B6B80;
    --rl-cyan: #0AC8B9;
}

body {
    background: var(--rl-background);
    color: var(--rl-text);
}

/* The ambient glow lives on a fixed pseudo-element: iOS Safari ignores
   background-attachment: fixed, and this page's audience arrives from a QR code on an iPhone. */
body::before {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 75% -10%, var(--rl-ambient), var(--rl-background) 60%);
}

main {
    flex: 1;
}

.gold {
    color: var(--rl-gold);
}

.display {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rl-gold);
}

/* ─── Hero ─── */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

.brand span {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--rl-gold);
    letter-spacing: 0.16em;
}

.hero h1 {
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.15;
    margin: 0.5rem 0 1rem;
    font-weight: 700;
}

.hero-sub {
    color: var(--rl-text-secondary);
    font-size: 1.1rem;
    max-width: 34rem;
}

.facts {
    margin: 1.25rem 0 1.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* The store badges side by side: Apple's first, as Apple asks when other stores' badges are
   shown; both at one height, as Google asks of its badge ("the same size or larger"); a quarter
   of that height apart, the clear space both require. */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    --badge-height: 54px;
    gap: calc(var(--badge-height) / 4);
}

.store-badges img {
    height: var(--badge-height);
    width: auto;
    display: block;
}

/* ─── Phone mockup ──────────────────────────────────
   The company bezel (1350×2760): its screen opening is exactly a
   1206×2622 iPhone screenshot at left 5.33%, top 2.50%.
──────────────────────────────────────────────────── */
.phone-mockup {
    position: relative;
    aspect-ratio: 1350 / 2760;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(200, 170, 110, 0.18));
}

.phone-mockup .screen-img {
    position: absolute;
    left: 5.33%;
    top: 2.5%;
    width: 89.33%;
    height: 95%;
    border-radius: 13% / 6%;
    object-fit: cover;
}

.phone-mockup .bezel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ─── Sections ─── */
.lp-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.lp-section h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    margin: 0.5rem 0 2rem;
}

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

.feature {
    background: linear-gradient(var(--rl-panel), #081120);
    border: 1px solid var(--rl-hairline);
    border-radius: 8px;
    padding: 1.5rem;
}

.feature h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--rl-gold);
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--rl-text-secondary);
}

.screens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.screens figcaption {
    margin-top: 1rem;
    color: var(--rl-text-secondary);
}

.faq details {
    border-bottom: 1px solid var(--rl-hairline);
    padding: 1rem 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq p {
    color: var(--rl-text-secondary);
    margin: 0.75rem 0 0;
}

.cta {
    text-align: center;
    padding: 3.5rem 1.5rem 4rem;
}

.cta h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    margin: 0 0 1.5rem;
}

.cta .store-badges {
    justify-content: center;
}

.cta .facts {
    margin: 1rem 0 0;
    color: var(--rl-text-secondary);
    font-weight: 500;
}

/* ─── Hand-off QR ────────────────────────────────────
   riftline.js fills and shows it on computers only. The code keeps the
   library's dark-on-white: a QR needs that contrast to scan from a screen. */
.handoff-qr {
    margin: 1.25rem 0 0;
    max-width: 21rem;
    color: var(--rl-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.handoff-qr:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 132px keeps a module about 3px wide for these pages' URLs, quiet zone included;
   crisp edges keep fractional modules sharp on non-Retina screens. */
.handoff-qr-code svg {
    display: block;
    width: 132px;
    height: 132px;
    border-radius: 6px;
    shape-rendering: crispEdges;
}

.cta .handoff-qr {
    margin: 1.5rem auto 0;
    text-align: left;
}

.legal {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--rl-muted);
}

.legal a:link,
.legal a:visited {
    color: var(--rl-text-secondary);
    text-decoration: underline;
}

.lang-switch {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 600;
}

hr.lp-divider {
    border: 0;
    border-top: 1px solid var(--rl-hairline);
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .brand,
    .hero .store-badges {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-sub {
        margin: 0 auto;
    }

    .hero .handoff-qr {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .screens {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        max-width: 260px;
    }

    footer {
        padding: 20px 24px;
    }
}
