:root {
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --text: #1c1d21;
    --muted: #5f6672;
    --accent: #0a7c86;
    --accent-dark: #075f67;
    --border: #e3e5ea;
    --radius: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101114;
        --bg-alt: #181a1f;
        --text: #f1f2f4;
        --muted: #a0a7b3;
        --accent: #3cc3cf;
        --accent-dark: #66d3dc;
        --border: #2a2d34;
    }
}

* { box-sizing: border-box; }

/* scroll-padding keeps in-page anchors from landing under the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header.site {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

header.site .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

nav a {
    margin-left: 22px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

nav a:hover { color: var(--text); }

/* Hero */
.hero-band {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: radial-gradient(120% 140% at 15% 0%, #1239b0 0%, #0a2a96 45%, #061a63 100%);
    color: #ffffff;
}

.container.wide { max-width: 1120px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.hero-copy { padding: 72px 0; }

.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-brand img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-copy h1 .accent { color: #ffc43d; white-space: nowrap; }

.hero-copy .lead {
    max-width: 440px;
    margin: 0 0 32px;
    font-size: 1.25rem;
    color: #bcc8f2;
}

.hero-copy .note { color: #9fb0e8; }

/* Two overlapping phones, cropped by the bottom edge of the band */
.hero-phones {
    position: relative;
    height: 560px;
    align-self: end;
}

/* Soft rounded-square outline behind the phones */
.hero-phones::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 2%;
    top: 22px;
    bottom: -140px;
    border: 40px solid rgba(255, 255, 255, 0.07);
    border-radius: 22%;
}

.hero-phones .phone {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.hero-phones .back { width: 50%; left: 0; top: 70px; }
.hero-phones .front { width: 54%; right: 0; top: 14px; }

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; gap: 0; }
    .hero-copy { padding: 48px 0 32px; text-align: center; }
    .hero-brand { justify-content: center; }
    .hero-copy .lead { margin-left: auto; margin-right: auto; }
    .hero-phones { height: 440px; width: min(100%, 460px); margin: 0 auto; }
}

.badge {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
}

.badge:hover { color: var(--bg); opacity: 0.85; }

.note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 12px;
}

.sub {
    text-align: center;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

section.alt .card { background: var(--bg); }

.card .glyph {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Screenshots */
.shots {
    display: flex;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    /* Room above/below so the hover lift and shadow aren't clipped by the scroller */
    padding: 36px 24px 44px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.shots figure {
    flex: 0 0 240px;
    margin: 0;
    text-align: center;
    scroll-snap-align: center;
}

/* Center the strip when everything fits; stay left-aligned when it scrolls */
@supports (justify-content: safe center) {
    .shots { justify-content: safe center; }
}

.shots img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.2));
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Pop forward when moused over (or keyboard-focused) */
.shots figure:hover img,
.shots figure:focus-within img {
    transform: translateY(-10px) scale(1.06);
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.35));
}

@media (prefers-reduced-motion: reduce) {
    .shots img { transition: none; }
    .shots figure:hover img,
    .shots figure:focus-within img { transform: none; }
}

.shots figcaption {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.plan {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--bg);
}

.plan.pro { border: 2px solid var(--accent); }
.plan h3 { margin: 0; }
.plan .price { font-size: 2rem; font-weight: 700; margin: 6px 0 14px; }
.plan ul { padding-left: 20px; margin: 0; color: var(--muted); }
.plan li { margin-bottom: 6px; }

/* FAQ / legal pages */
.prose { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.prose h1 { font-size: 2.2rem; margin-top: 0; }
.prose h2 { text-align: left; font-size: 1.3rem; margin-top: 36px; }
.prose details {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
}
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { color: var(--muted); margin-bottom: 0; }

/* Footer */
footer.site {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

footer.site a { margin: 0 10px; color: var(--muted); }
footer.site a:hover { color: var(--text); }
footer.site p { margin: 8px 0 0; }

/* App Store badge */
.store-badge {
    display: inline-block;
    line-height: 0;
}

.store-badge img {
    height: 50px;
    width: auto;
}

.store-badge:hover { opacity: 0.85; }

/* Hamburger menu (narrow screens) */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
    .nav-toggle { display: flex; }

    header.site nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 8px 24px 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    header.nav-open nav { display: flex; }

    header.site nav a {
        margin: 0;
        padding: 12px 0;
        font-size: 1.05rem;
        border-top: 1px solid var(--border);
    }

    header.site nav a:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle span { transition: none; }
}
