:root {
    --bg: #0d1824;
    --card: #14263a;
    --line: #26405a;
    --ink: #eaf0f6;
    --mute: #9fb2c6;
    --red: #e0605c;
    --navy: #2e4157;
    --f1: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --f2: "DM Sans", system-ui, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px
}

body {
    margin: 0;
    font: 400 1rem/1.6 var(--f2);
    color: var(--ink);
    background: var(--bg);
    background-image: radial-gradient(60rem 40rem at -10% -5%, rgba(224, 96, 92, .2), transparent 60%), radial-gradient(50rem 40rem at 110% 60%, rgba(60, 110, 170, .22), transparent 60%);
    background-attachment: fixed
}

a {
    color: inherit
}

img {
    max-width: 100%
}

.skip {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 1100;
    background: var(--red);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px
}

.skip:focus {
    top: 12px
}

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 1000;
    background: linear-gradient(90deg, var(--red), #ffc857);
    transform-origin: 0 50%;
    transform: scaleX(0)
}

/* top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(13, 24, 36, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font: 700 1.25rem var(--f1)
}

.brand .r {
    color: var(--red)
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 999px;
    font: inherit
}

.links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center
}

.links a {
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--mute);
    font-size: .95rem
}

.links a:hover,
.links a.is-current {
    color: #fff;
    background: rgba(255, 255, 255, .08)
}

.links .cta {
    background: var(--red);
    color: #fff
}

@media(max-width:900px) {
    .nav-toggle {
        display: block
    }

    .links {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #101f31;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 8px
    }

    .links.open {
        display: flex
    }

    .links a {
        padding: 12px 14px
    }
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px 40px
}

/* feature card: phone + copy in one unit */
.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(20px, 4vw, 52px);
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 26px 0;
    padding: clamp(22px, 4vw, 44px);
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #182d44, #0f1d2d)
}

.feature::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -120px;
    top: 50%;
    translate: 0 -50%;
    background: radial-gradient(closest-side, rgba(224, 96, 92, .28), transparent);
    pointer-events: none
}

.feature.flip {
    grid-template-columns: 1fr auto
}

.feature.flip::before {
    left: auto;
    right: -120px
}

.feature.flip .shot {
    order: 2
}

.shot {
    display: flex;
    justify-content: center;
    position: relative;
    --phone-w: min(60vw, 236px)
}

.shot.duo {
    --phone-w: min(42vw, 206px)
}

.duo .phone+.phone {
    margin-left: -44px;
    margin-top: 44px
}

.phone {
    box-shadow: 0 0 0 2px #3a5069, 0 26px 60px rgba(0, 0, 0, .55);
    cursor: zoom-in
}

.phone:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px
}

.copy {
    position: relative
}

h1,
h2 {
    font-family: var(--f1);
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -.02em
}

h1 {
    font-size: clamp(2.1rem, 5.4vw, 3.6rem)
}

h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem)
}

.accent {
    color: var(--red)
}

.lead {
    color: var(--mute);
    font-size: 1.05rem;
    margin: 0 0 14px
}

ul.pts {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 8px
}

.pts li {
    padding-left: 22px;
    position: relative;
    color: #cfdbe8
}

.pts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 9px;
    height: 9px;
    border-radius: 50% 50% 50% 0;
    rotate: -45deg;
    background: var(--red)
}

.hero {
    margin-top: 18px;
    padding-block: clamp(26px, 5vw, 56px)
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1.5px solid var(--red)
}

.btn.solid {
    background: var(--red);
    color: #fff
}

.btn:hover {
    filter: brightness(1.1)
}

.chips span {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .85rem
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    background: #000;
    border: 1px solid #444;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.1
}

.badge svg {
    width: 24px;
    height: 24px;
    fill: #fff
}

.badge small {
    display: block;
    font-weight: 400;
    font-size: .7rem;
    opacity: .8
}

.badge.soon {
    opacity: .6
}

.support {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center
}

.support .pts {
    text-align: left
}

.support .row {
    justify-content: center
}

.email {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 12px 18px;
    margin: 6px 0 18px;
    border-radius: 999px;
    border: 1px dashed var(--red);
    background: rgba(224, 96, 92, .1);
    color: #fff;
    font: inherit;
    cursor: pointer
}

.email b {
    font-weight: 400;
    color: var(--red)
}

footer {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0 28px;
    color: var(--mute);
    font-size: .9rem
}

@media(max-width:720px) {

    .feature,
    .feature.flip {
        grid-template-columns: 1fr;
        text-align: left
    }

    .feature .shot,
    .feature.flip .shot {
        order: 0
    }

    .feature::before,
    .feature.flip::before {
        left: 50%;
        right: auto;
        top: 0;
        translate: -50% -15%
    }
}

/* reveal + viewer */
.js .reveal {
    transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1)
}

.js .reveal:not(.in) {
    opacity: 0;
    translate: 0 26px
}

.viewer {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100dvh
}

.viewer::backdrop {
    background: rgba(5, 10, 16, .88);
    backdrop-filter: blur(6px)
}

.viewer[open] {
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100dvh
}

.viewer figure {
    margin: 0;
    text-align: center;
    color: #fff
}

.viewer img {
    height: min(80dvh, 820px);
    width: auto;
    max-width: 92vw;
    border-radius: 28px
}

.viewer span {
    display: block;
    opacity: .75;
    font-size: .9rem
}

.viewer button {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0d1824;
    font-size: 1.5rem;
    cursor: pointer
}

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

    .js .reveal {
        transition: none
    }

    .js .reveal:not(.in) {
        opacity: 1;
        translate: none
    }
}

/* ---- trending patterns: ticker, bento, spotlight, scroll-driven phones ---- */
.ticker {
    overflow: hidden;
    margin: 4px 0 26px;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
}

.track {
    display: flex;
    width: max-content;
    animation: tick 34s linear infinite
}

.ticker:hover .track {
    animation-play-state: paused
}

.track span {
    padding: 13px 26px;
    white-space: nowrap;
    color: var(--mute)
}

.track b {
    margin-left: 10px;
    color: #ffc857;
    font: 700 1.05rem var(--f1)
}

@keyframes tick {
    to {
        translate: -50% 0
    }
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 26px 0
}

.b {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #182d44, #0f1d2d);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px
}

.b.lg {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 300px;
    background: linear-gradient(150deg, #e0605c, #8e2f3b)
}

.b strong {
    font: 700 clamp(2rem, 5vw, 3.4rem)/1 var(--f1);
    letter-spacing: -.03em;
    color: #fff
}

.b.lg strong {
    font-size: clamp(5rem, 14vw, 9rem)
}

.b p {
    margin: 8px 0 0;
    color: var(--mute);
    font-size: .95rem
}

.b.lg p {
    color: #ffe3e0;
    font-size: 1.05rem;
    max-width: 18ch
}

@media(max-width:720px) {
    .bento {
        grid-template-columns: 1fr 1fr
    }

    .b.lg {
        grid-column: span 2;
        grid-row: auto;
        min-height: 220px
    }
}

/* cursor spotlight (mouse devices only) */
.b::after,
.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .1), transparent 62%)
}

@media(hover:hover) {

    .b:hover::after,
    .feature:hover::after {
        opacity: 1
    }
}

/* hero highlighter sweep */
.hero .accent {
    background: linear-gradient(rgba(224, 96, 92, .35), rgba(224, 96, 92, .35)) 0 88%/0% .32em no-repeat;
    animation: sweep .9s .6s ease-out forwards
}

@keyframes sweep {
    to {
        background-size: 100% .32em
    }
}

/* phones rise and straighten as they scroll in (Chrome/Safari; ignored elsewhere) */
@supports (animation-timeline:view()) {
    .phone {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 90%
    }

    .flip .phone {
        --tilt: -5deg
    }

    @keyframes rise {
        from {
            transform: translateY(70px) rotate(var(--tilt, 5deg)) scale(.92)
        }

        to {
            transform: none
        }
    }
}

@media(prefers-reduced-motion:reduce) {
    .track {
        animation: none
    }

    .phone {
        animation: none
    }

    .hero .accent {
        animation: none;
        background-size: 100% .32em
    }
}

/* ---- white menu bar (logo + name keep original colours) ---- */
.topbar {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid #e3e8ee;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .18)
}

.brand {
    color: #2e4157
}

.brand .r {
    color: #c95353
}

.links a {
    color: #4a5d72
}

.links a:hover,
.links a.is-current {
    color: #2e4157;
    background: #eef2f6
}

.links .cta,
.links .cta:hover {
    background: #c95353;
    color: #fff
}

.nav-toggle {
    color: #2e4157;
    border-color: #cfd8e2;
    background: #fff
}

@media(max-width:900px) {
    .links {
        background: #fff;
        border-color: #e3e8ee;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .25)
    }
}

/* ---- legal pages (terms / privacy) ---- */
.legal {
    max-width: 820px;
    padding-top: 36px
}

.legal h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 6px
}

.legal .meta {
    color: var(--mute);
    margin: 0 0 18px;
    font-size: .95rem
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px
}

.toolbar button {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--ink);
    font: inherit;
    font-size: .9rem;
    cursor: pointer
}

.toolbar button:hover {
    border-color: var(--red)
}

.legal details {
    margin: 10px 0;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(160deg, #182d44, #0f1d2d)
}

.legal details[open] {
    border-color: #3a5878
}

.legal summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    font: 600 1.08rem var(--f1)
}

.legal summary::-webkit-details-marker {
    display: none
}

.legal summary::after {
    content: "+";
    color: var(--red);
    font-size: 1.5rem;
    line-height: 1
}

.legal details[open] summary::after {
    content: "–"
}

.legal summary:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
    border-radius: 8px
}

.legal details p {
    margin: 0 0 18px;
    color: #cfdbe8
}

.legal details a {
    color: #ff9a96
}

.legal-badges {
    margin-top: 26px
}

footer a {
    text-decoration: none
}

footer a:hover {
    color: #fff
}

/* ---- legal v2: boxed Q&A with mild answer panel, link-style toolbar ---- */
.toolbar {
    align-items: center;
    gap: 8px;
    color: var(--mute)
}

.toolbar button {
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: none;
    color: #ff9a96;
    font-size: .95rem;
    text-decoration: underline;
    text-underline-offset: 3px
}

.toolbar button:hover {
    color: #fff
}

.toolbar i {
    font-style: normal
}

.legal details {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #2f4a66;
    background: #14263a
}

.legal summary {
    padding: 16px 20px;
    color: #fff
}

.legal summary::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border: solid var(--red);
    border-width: 0 2.5px 2.5px 0;
    rotate: 45deg;
    translate: 0 -2px;
    transition: rotate .2s
}

.legal details[open] summary::after {
    content: "";
    rotate: 225deg;
    translate: 0 2px
}

.legal details[open] summary {
    border-bottom: 1px solid #2f4a66
}

.legal details p {
    margin: 0;
    padding: 18px 20px 20px;
    background: #e9eff6;
    color: #22344a;
    line-height: 1.7
}

.legal details a {
    color: #b23a36;
    font-weight: 600
}

@media(prefers-reduced-motion:reduce) {
    .legal summary::after {
        transition: none
    }
}

/* ---- animated road background (road.js) ---- */
#fd-road {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .9
}

.wrap,
footer {
    position: relative;
    z-index: 1
}