/* Apple-style system font stack — matches what iOS users already read in. */
html {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ───────────────────────── iPhone 16 Pro Max mockup ─────────────────────────
   Pure CSS device frame — rounded corners, Dynamic Island, subtle bezel,
   drop shadow. Wraps any <img> inside .device-screen and clips it to the
   real iPhone screen radius. Scales cleanly from 220px (grid tiles) up to
   340px (hero) by using aspect-ratio instead of fixed dimensions.
   ─────────────────────────────────────────────────────────────────────────── */

.device-frame {
    position: relative;
    width: 280px;
    aspect-ratio: 9 / 19.5;
    border-radius: 48px;
    padding: 10px;
    /* Natural titanium-ish frame gradient */
    background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 45%, #1c1c1e 100%);
    box-shadow:
        0 0 0 2px #0a0a0a,
        0 30px 60px -10px rgba(0, 0, 0, 0.35),
        0 15px 30px -10px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Hero slot is a touch larger so it anchors the fold */
.hero-device .device-frame,
section:first-of-type .device-frame {
    width: 320px;
}

/* Screen cutout — clips the screenshot into the exact rounded-rect iPhone
   display. Slight inset bezel = the black border between the chrome and
   the pixels. */
.device-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

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

/* Dynamic Island — the black pill at the top of modern iPhones. Positioned
   over the screen, z-indexed above it, so it reads as part of the device. */
.dynamic-island {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 26px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

/* Responsive scaling on small screens so the mockups don't overflow. */
@media (max-width: 640px) {
    .device-frame {
        width: 240px;
    }
    .dynamic-island {
        width: 76px;
        height: 22px;
        top: 18px;
    }
}

/* ───────────────────────── Typography polish ───────────────────────── */

h1, h2, h3 {
    letter-spacing: -0.02em;
}

/* Prose for legal / long-form pages */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #4b5563;
}
.prose ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: #4b5563;
}
.prose ul li {
    margin-bottom: 0.5rem;
}
.prose a {
    color: #2563eb;
    text-decoration: underline;
}

/* FAQ details chevron animation */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* ───────────── Numbered step circles ───────────── */

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

/* Respect user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-pulse { animation: none; }
}
