/* ---- Nasheet product page ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0d0e1f;
    --surface: #16182e;
    --surface-2: #1d1f3a;
    --border: #2a2d55;
    --text: #f3f1ff;
    --muted: #a6a8c8;
    --faint: #6d7096;
    --brand: #667eea;
    --brand-soft: #8f95ff;
    --purple: #764ba2;
    --orange: #fb923c;
    --pink: #ec4899;
    --green: #10b981;
    --gutter: 1.5rem;
    --rail: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 0.5rem 1rem;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---- Top bar ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    margin-left: -0.625rem;
    border-radius: 6px;
    transition: color 200ms ease, background-color 200ms ease;
}

.back-link:hover {
    color: var(--text);
    background: var(--surface);
}

.back-link svg {
    width: 15px;
    height: 15px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.hero-icon {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 1.75rem;
    border-radius: 25px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 60px -12px rgba(102, 126, 234, 0.55);
}

/* ---- Step counter ---- */
.step-counter {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(29, 31, 58, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: transform 400ms ease;
}

.step-counter.visible {
    transform: translate(-50%, 0);
}

.step-counter svg {
    width: 16px;
    height: 16px;
    color: var(--brand-soft);
}

.step-counter small {
    color: var(--muted);
    font-size: inherit;
    font-weight: 400;
}

/* ---- Hero ---- */
.hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    color: var(--brand-soft);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 8vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
    max-width: 880px;
    margin: 0 auto;
    text-wrap: balance;
}

.hero h1 .glow {
    background: linear-gradient(90deg, var(--brand-soft), #b892ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    max-width: 620px;
    margin: 1.5rem auto 0;
}

.stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.stores a {
    display: block;
    border-radius: 9px;
    transition: transform 200ms ease;
}

.stores a:hover {
    transform: translateY(-2px);
}

.stores img {
    height: 48px;
    width: auto;
    display: block;
}

.start-walking {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.start-walking .feet {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.start-walking .feet i {
    width: 8px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    animation: footstep 1.8s ease-in-out infinite;
}

.start-walking .feet i:nth-child(odd) { transform: translateX(-5px); }
.start-walking .feet i:nth-child(even) { transform: translateX(5px); }
.start-walking .feet i:nth-child(2) { animation-delay: 0.3s; }
.start-walking .feet i:nth-child(3) { animation-delay: 0.6s; }

@keyframes footstep {
    0%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

/* ---- The route ---- */
.route {
    position: relative;
    padding-left: var(--rail);
}

.route::before,
.route-fill {
    content: "";
    position: absolute;
    left: calc(var(--rail) / 2 - 1px);
    top: 0;
    width: 2px;
}

.route::before {
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        #34386a 0 6px,
        transparent 6px 14px
    );
}

.route-fill {
    height: 0;
    background: repeating-linear-gradient(
        to bottom,
        var(--brand-soft) 0 6px,
        transparent 6px 14px
    );
}

.stop {
    position: relative;
    padding: 6rem 0;
}

.stop-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stop-label b {
    color: var(--text);
    font-weight: 600;
}

.pin {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(var(--rail) / -2 - 9px);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid #34386a;
    transition: background-color 400ms ease, border-color 400ms ease,
        box-shadow 400ms ease;
}

.stop.reached .pin {
    background: var(--brand);
    border-color: var(--brand-soft);
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.22);
}

.stop-steps {
    margin-left: auto;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.split--flip .split-media {
    order: -1;
}

.split-media {
    display: flex;
    justify-content: center;
}

h2 {
    font-size: clamp(2.125rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-wrap: balance;
}

h2 .dim {
    color: var(--muted);
}

.lead {
    color: var(--muted);
    font-size: 1.1875rem;
    line-height: 1.5;
    margin-top: 1.25rem;
}

.points {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
}

.points li {
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

.points strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.points span {
    color: var(--muted);
}

.quote {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(118, 75, 162, 0.14));
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.quote p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.375rem;
    line-height: 1.35;
    font-style: italic;
}

.quote cite {
    display: block;
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-style: normal;
}

/* ---- Phone ---- */
.phone {
    width: min(290px, 78vw);
    aspect-ratio: 9 / 19.5;
    border-radius: 46px;
    background: #f9fafb;
    border: 10px solid #1f2133;
    box-shadow:
        0 0 0 1px #3a3d66,
        0 50px 100px -30px rgba(102, 126, 234, 0.45);
    position: relative;
    overflow: hidden;
    container-type: inline-size;
    color: #111827;
}

.phone::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 24px;
    border-radius: 999px;
    background: #000;
    z-index: 3;
}

/* Real App Store screenshots, framed */
.phone--shot {
    background: #000;
}

.phone--shot::before {
    display: none;
}

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

.phone-pair {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.phone-pair .phone {
    width: min(250px, 54vw);
}

.phone-pair .phone + .phone {
    margin-left: -64px;
    margin-top: 72px;
}

.statusbar {
    position: absolute;
    top: 0.75em;
    left: 1.6em;
    right: 1.6em;
    display: flex;
    justify-content: space-between;
    font-size: 4cqw;
    font-weight: 600;
    z-index: 2;
}

.statusbar--light {
    color: #fff;
}

.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    padding: 3.5em 0.9em 1em;
    font-size: 5cqw;
}

.bar {
    height: 0.45em;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 0.45em;
}

.bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--purple));
}

/* Streak flame */
.flame {
    width: 1.25em;
    height: 1.25em;
    border-radius: 0.4em;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    display: grid;
    place-items: center;
}

/* Home Screen */
.home-screen {
    background:
        radial-gradient(80% 50% at 0% 0%, #8f95ff, transparent 70%),
        radial-gradient(80% 60% at 100% 100%, #c46ad1, transparent 70%),
        linear-gradient(160deg, #4f46e5, #764ba2);
    padding-top: 3.8em;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1em 0.8em;
}

.app-icon {
    aspect-ratio: 1;
    border-radius: 24%;
    background: rgba(255, 255, 255, 0.28);
}

.widget {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
    border-radius: 1.1em;
    background: #fff;
    padding: 0.75em;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0.5em 1.5em rgba(17, 24, 39, 0.2);
}

.widget-top {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.6em;
    font-weight: 600;
    color: #6b7280;
}

.widget-top svg {
    width: 1.2em;
    height: 1.2em;
    color: var(--brand);
}

.widget-top .flame {
    margin-left: auto;
    width: auto;
    height: auto;
    padding: 0.15em 0.4em;
    border-radius: 999px;
    color: #fff;
    font-size: 0.95em;
}

.widget-steps {
    margin-top: auto;
    font-size: 1.45em;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.widget small {
    font-size: 0.55em;
    color: #6b7280;
    margin-top: 0.3em;
}

.lock-widgets {
    grid-column: span 4;
    display: flex;
    gap: 0.6em;
    margin-top: 0.4em;
}

.ring {
    width: 3.4em;
    height: 3.4em;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(30, 27, 75, 0.85) 76%, transparent 78% 100%),
        conic-gradient(#fff 0 72%, rgba(255, 255, 255, 0.25) 72% 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.6em;
    font-weight: 700;
    flex-shrink: 0;
}

.rect-widget {
    flex: 1;
    border-radius: 0.9em;
    background: rgba(30, 27, 75, 0.55);
    color: #fff;
    padding: 0.55em 0.7em;
    font-size: 0.62em;
    line-height: 1.35;
}

.rect-widget b {
    display: block;
    font-size: 1.15em;
}

.dock {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8em;
    padding: 0.7em;
    border-radius: 1.4em;
    background: rgba(255, 255, 255, 0.22);
}

/* ---- Places grid ---- */
.places {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
    margin-top: 3rem;
}

.place {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.125rem;
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.place-num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--faint);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.place-emoji {
    font-size: 1.5rem;
}

.place h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.place p {
    color: var(--muted);
    font-size: 0.875rem;
}

.place small {
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--brand-soft);
    font-size: 0.8125rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.fact {
    border-radius: 1.125rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.16), rgba(118, 75, 162, 0.16));
    border: 1px solid var(--border);
}

.fact b {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.fact span {
    color: var(--muted);
    font-size: 0.875rem;
}

/* ---- Tiles ---- */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.tile-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.18);
    color: var(--brand-soft);
    margin-bottom: 1rem;
}

.tile-icon svg {
    width: 18px;
    height: 18px;
}

.tile h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.tile p {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ---- Destination ---- */
.destination {
    text-align: center;
    padding-bottom: 7rem;
}

.destination .stop-label {
    justify-content: center;
}

.destination .lead {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.destination .pin {
    width: 26px;
    height: 26px;
    left: calc(var(--rail) / -2 - 13px);
}

.privacy-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.privacy-link:hover {
    color: var(--text);
}

footer {
    border-top: 1px solid #1a1c36;
    padding: 2rem 0;
    color: var(--faint);
    font-size: 0.8125rem;
    text-align: center;
}

/* ---- Scroll reveal ---- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .split--flip .split-media {
        order: 0;
    }
}

@media (max-width: 600px) {
    :root {
        --gutter: 1rem;
        --rail: 32px;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .stop {
        padding: 4.5rem 0;
    }

    .lead {
        font-size: 1.0625rem;
    }

    .facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .pin {
        width: 14px;
        height: 14px;
        left: calc(var(--rail) / -2 - 7px);
    }

    .destination .pin {
        width: 20px;
        height: 20px;
        left: calc(var(--rail) / -2 - 10px);
    }

    .stop-steps {
        display: none;
    }

    .step-counter {
        top: auto;
        bottom: 1rem;
        transform: translate(-50%, 150%);
    }

    .places {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .place {
        padding: 0.875rem;
    }

    .place h3 {
        font-size: 0.9375rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
