:root {
    --pk-ink: #0f172a;
    --pk-line: #e2e8f0;
    --pk-card: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--pk-ink);
    background: #fff;
}

::selection {
    background: #e0e7ff;
    color: #1e1b4b;
}

.container-pk {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

@media (min-width:640px) {
    .container-pk {
        width: min(1120px, calc(100% - 48px));
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4f46e5;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.pk-card {
    border: 1px solid var(--pk-line);
    background: var(--pk-card);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.pk-card-hover {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pk-card-hover:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.phone-frame {
    position: relative;
    border: 8px solid #0f172a;
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 25px 55px rgba(15, 23, 42, .22);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-grid {
    background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.gradient-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(79, 70, 229, .16), rgba(79, 70, 229, 0) 70%);
    pointer-events: none;
}

.hero-rating-card,
.hero-award-card {
    transform: rotate(-2deg);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hero-rating-card:hover,
.hero-award-card:hover {
    transform: rotate(0) translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .17);
}

@media (max-width:639px) {

    .hero-rating-card,
    .hero-award-card {
        transform: rotate(-1deg);
    }
}

.theme-toggle-icon {
    transition: transform .25s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(18deg);
}

.screenshot-track {
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    cursor: grab;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.screenshot-track.dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

.screenshot-track img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.screenshot-track:active {
    cursor: grabbing;
}

.screenshot-track::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 78%;
    scroll-snap-align: center;
}

@media (min-width:640px) {
    .screenshot-item {
        flex-basis: 42%;
    }
}

@media (min-width:1024px) {
    .screenshot-item {
        flex-basis: 29%;
    }
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}

.faq-answer>div {
    overflow: hidden;
}

.faq.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-icon {
    transition: transform .25s ease;
}

.faq.open .faq-icon {
    transform: rotate(45deg);
}

.fade-up {
    animation: fadeUp .65s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Download CTA */
.cta-card {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #4338ca 100%);
    box-shadow: 0 30px 60px -24px rgba(79, 70, 229, .6);
}

.cta-ring {
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .18);
    pointer-events: none;
}

.cta-ring-1 {
    width: 520px;
    height: 520px;
    right: -140px;
    top: -200px;
}

.cta-ring-2 {
    width: 340px;
    height: 340px;
    right: -50px;
    top: -110px;
}

.cta-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(120deg, transparent 35%, black);
    mask-image: linear-gradient(120deg, transparent 35%, black);
}

.cta-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .8125rem;
    font-weight: 600;
    color: #fff;
}

.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: #fff;
    color: #0f172a;
    border-radius: .75rem;
    padding: .7rem 1.25rem;
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .25);
}

.btn-light small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 500;
    color: #64748b;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    border-radius: .75rem;
    padding: .9rem 1.25rem;
    font-weight: 700;
    font-size: .875rem;
    transition: background .2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.star-off {
    color: #cbd5e1;
}

.q-mark {
    color: #e0e7ff;
}

html.dark .star-off {
    color: #334155;
}

html.dark .q-mark {
    color: #312e81;
}

/* Decorative background shapes (blobs, rings, dots, patches) */
body {
    overflow-x: hidden;
}

.deco-host {
    position: relative;
    isolation: isolate;
}

.deco {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    --a: rgba(129, 140, 248, .5);
    --b: rgba(99, 102, 241, 0);
    --k: #818cf8;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.d-s {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    max-width: 62vw;
    aspect-ratio: 1;
    transform: rotate(var(--r, 0deg));
    animation: dFloat var(--t, 11s) ease-in-out infinite;
}

@keyframes dFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -16px;
    }
}

.d-c1 {
    --a: rgba(129, 140, 248, .5);
    --b: rgba(99, 102, 241, 0);
    --k: #818cf8;
}

.d-c2 {
    --a: rgba(56, 189, 248, .42);
    --b: rgba(14, 165, 233, 0);
    --k: #38bdf8;
}

.d-c3 {
    --a: rgba(45, 212, 191, .36);
    --b: rgba(20, 184, 166, 0);
    --k: #2dd4bf;
}

.d-c4 {
    --a: rgba(232, 121, 249, .3);
    --b: rgba(217, 70, 239, 0);
    --k: #e879f9;
}

.d-blob {
    border-radius: 62% 38% 54% 46% / 55% 45% 55% 45%;
    background: radial-gradient(circle at 30% 30%, var(--a), var(--b) 72%);
}

.d-ring {
    border-radius: 50%;
    border: 2px solid var(--k);
    opacity: .35;
}

.d-dots {
    border-radius: 24px;
    background-image: radial-gradient(var(--k) 1.6px, transparent 1.8px);
    background-size: 16px 16px;
    opacity: .45;
}

.d-sq {
    border-radius: 26%;
    border: 2px solid var(--k);
    opacity: .4;
    background: linear-gradient(135deg, var(--a), transparent);
}

.d-pill {
    aspect-ratio: 3/1;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--a), transparent);
}

.d-dot {
    border-radius: 50%;
    background: var(--k);
    opacity: .55;
}

.d-plus {
    background: linear-gradient(var(--k), var(--k)) center/100% 3px no-repeat, linear-gradient(var(--k), var(--k)) center/3px 100% no-repeat;
    opacity: .5;
}

@media (max-width:639px) {
    .d-hm {
        display: none;
    }
}

@media (prefers-reduced-motion:reduce) {
    .d-s {
        animation: none !important;
    }
}

/* on the solid indigo section */
.on-accent .d-c1 {
    --a: rgba(255, 255, 255, .24);
    --b: rgba(255, 255, 255, 0);
    --k: #fff;
}

.on-accent .d-c2 {
    --a: rgba(56, 189, 248, .5);
    --b: rgba(56, 189, 248, 0);
    --k: #bae6fd;
}

.on-accent .d-c3 {
    --a: rgba(45, 212, 191, .38);
    --b: rgba(45, 212, 191, 0);
    --k: #99f6e4;
}

.on-accent .d-c4 {
    --a: rgba(232, 121, 249, .35);
    --b: rgba(232, 121, 249, 0);
    --k: #f5d0fe;
}

/* dark mode */
html.dark .d-ring,
html.dark .d-dots,
html.dark .d-sq {
    opacity: .5;
}

html.dark .d-plus,
html.dark .d-dot {
    opacity: .65;
}

/* Text on solid indigo sections (screenshots + CTA) */
.on-accent .text-slate-400,
.on-accent .text-indigo-300 {
    color: #e0e7ff;
}

/* ---------- Dark mode ---------- */
html.dark {
    color-scheme: dark;
    --pk-line: #2a364b;
    --pk-card: #131b2b;
}

html.dark body {
    background: #0b1120;
    color: #e2e8f0;
}

/* surfaces ([class*=] also catches opacity variants like bg-white/90) */
html.dark [class*="bg-white"] {
    background-color: #131b2b !important;
}

html.dark header[class] {
    background-color: rgba(11, 17, 32, .9) !important;
}

html.dark [class*="bg-slate-50"] {
    background-color: #0f172a !important;
}

html.dark [class*="bg-indigo-50"],
html.dark [class*="bg-indigo-100"] {
    background-color: rgba(99, 102, 241, .14) !important;
}

/* text */
html.dark .text-slate-950,
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-slate-700 {
    color: #f1f5f9 !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500 {
    color: #a3b1c6 !important;
}

html.dark .text-indigo-600,
html.dark .text-indigo-500 {
    color: #818cf8 !important;
}

html.dark .text-indigo-700 {
    color: #a5b4fc !important;
}

html.dark .hover\:text-slate-950:hover,
html.dark .hover\:text-slate-900:hover {
    color: #fff !important;
}

html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-100:hover {
    background-color: #1e293b !important;
}

/* borders */
html.dark [class*="border-slate-"],
html.dark [class*="border-indigo-100"] {
    border-color: #2a364b !important;
}

html.dark .divide-slate-200>*+* {
    border-color: #2a364b !important;
}

html.dark .pk-card-hover:hover {
    border-color: #475569;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .4);
}

html.dark .hero-grid {
    background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
}

html.dark .gradient-orb {
    background: radial-gradient(circle, rgba(99, 102, 241, .22), transparent 70%);
}

html.dark .phone-frame {
    border-color: #1e293b;
}

html.dark ::selection {
    background: #3730a3;
    color: #fff;
}
