:root {
    color-scheme: light dark;
    /* Apple's system orange, matching the app. Orange is too light for text on white,
       so text uses the darker --accent-text. */
    --accent: #ff9500;
    --accent-dark: #e08300;
    --accent-text: #b35900;
    --on-accent: #fff;
    --text: #1c1c1e;
    --muted: #6c6c70;
    --bg: #ffffff;
    --card: #f2f2f7;
    --border: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f2f2f7;
        --muted: #a1a1a6;
        --bg: #0b0b0d;
        --card: #1c1c1e;
        --border: rgba(255, 255, 255, 0.1);
        --accent: #ff9f0a;
        --accent-text: #ff9f0a;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }
.muted { color: var(--muted); }

/* ---------- Simple pages (privacy, support) ---------- */

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

main header a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

main h1 { font-size: 36px; line-height: 1.2; margin: 32px 0 8px; }
main h2 { font-size: 22px; margin-top: 40px; }

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0;
}

main footer {
    margin-top: 64px;
    font-size: 14px;
    color: var(--muted);
}

main footer a { color: var(--muted); margin-right: 16px; }

/* ---------- Landing page ---------- */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
}

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

.brand img { border-radius: 11px; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
}

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

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 149, 0, 0.14);
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.lead {
    font-size: 20px;
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 34em;
}

.cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
    cursor: default;
}

.store-button small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}

.cta-note { margin: 0; color: var(--muted); font-size: 15px; }

/* Phone mockup with a lock-screen notification */

.phone {
    justify-self: center;
    width: 300px;
    padding: 12px;
    border-radius: 48px;
    background: #1c1c1e;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #3a3a3c;
}

.phone-screen {
    height: 560px;
    border-radius: 38px;
    padding: 56px 14px 20px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 149, 0, 0.5), transparent 55%),
        radial-gradient(circle at 80% 90%, rgba(80, 80, 200, 0.45), transparent 50%),
        #101014;
    color: #fff;
    text-align: center;
}

.phone-time {
    margin: 0;
    font-size: 72px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.phone-date { margin: 4px 0 40px; font-size: 16px; opacity: 0.85; }

.notification {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: left;
    animation: drop-in 0.8s ease-out 0.4s both;
}

.notification img { border-radius: 8px; flex-shrink: 0; }
.notification p { margin: 0; font-size: 13px; line-height: 1.35; }
.notification-title { font-weight: 600; display: flex; justify-content: space-between; }
.notification-title span { font-weight: 400; opacity: 0.7; }

.voice-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    font-size: 13px;
    text-align: left;
    animation: drop-in 0.8s ease-out 1.2s both;
}

.wave { display: inline-flex; gap: 3px; align-items: center; height: 16px; }

.wave i {
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
    animation: wave 1s ease-in-out infinite;
}

.wave i:nth-child(2) { animation-delay: 0.15s; }
.wave i:nth-child(3) { animation-delay: 0.3s; }
.wave i:nth-child(4) { animation-delay: 0.45s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

@keyframes drop-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .notification, .voice-bubble, .wave i { animation: none; }
    html { scroll-behavior: auto; }
}

/* Stats strip */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.stats div {
    padding: 24px;
    border-radius: 20px;
    background: var(--card);
    text-align: center;
}

.stats strong { display: block; font-size: 36px; color: var(--accent-text); line-height: 1.2; }
.stats span { color: var(--muted); font-size: 15px; }

/* Sections */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 88px 24px 0;
}

.section h2 {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -0.01em;
    text-align: center;
    margin: 0 0 40px;
}

.section h3 { margin: 0 0 6px; font-size: 19px; }
.section p { margin: 0; color: var(--muted); }

.steps, .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step, .feature {
    padding: 28px;
    border-radius: 20px;
    background: var(--card);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
}

/* Pricing */

.price-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 36px;
    border-radius: 24px;
    background: var(--card);
    border: 2px solid var(--accent);
    text-align: center;
}

.pricing .price-label { font-weight: 600; color: var(--text); }
.pricing .price { margin: 8px 0 0; font-size: 20px; }
.price strong { font-size: 56px; color: var(--text); letter-spacing: -0.02em; }
.price-sub { margin-bottom: 24px !important; }

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.price-card li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--border); }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-text); font-weight: 700; }

.price-compare { font-size: 15px; }

.fine-print {
    max-width: 560px;
    margin: 20px auto 0 !important;
    font-size: 13px;
    text-align: center;
}

/* FAQ */

.faq details {
    max-width: 760px;
    margin: 0 auto 12px;
    padding: 18px 24px;
    border-radius: 16px;
    background: var(--card);
}

.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin-top: 12px; }

/* Footer */

.site-footer {
    max-width: 1100px;
    margin: 96px auto 0;
    padding: 32px 24px 48px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}

.site-footer p { margin: 0 0 12px; }
.site-footer a, .site-footer span { color: var(--muted); margin-right: 20px; }

/* Small screens */

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; padding-top: 24px; text-align: center; }
    .lead { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
    .nav-links { display: none; }
    .stats, .steps, .features { grid-template-columns: 1fr; }
    .section { padding-top: 64px; }
}

/* ---------- Camera map page ---------- */

.camera-page { padding-top: 32px; }

.camera-page h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.camera-page h2 { text-align: left; font-size: 24px; margin: 0 0 12px; }
.camera-page .lead { font-size: 18px; margin-bottom: 28px; }

.info-card, .cta-card {
    padding: 24px 28px;
    border-radius: 20px;
    background: var(--card);
    margin-bottom: 28px;
}

.info-card { border-left: 4px solid var(--accent); }
.info-card p + p, .cta-card p + p { margin-top: 10px; }
.info-card strong { color: var(--text); }
.info-card .source { font-size: 14px; }

.camera-map {
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    z-index: 0;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 12px 0 32px !important;
    font-size: 14px;
}

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.dot:first-child { margin-left: 0; }
.dot.live, .badge.live { background: #e3262f; }
.dot.construction { background: #f2a33a; }
.dot.planned { background: #8e8e93; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.filters input {
    flex: 1 1 260px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font: inherit;
}

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

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.camera-list { list-style: none; padding: 0; margin: 0 0 40px; }

.camera {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px 16px;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
}

.camera[hidden] { display: none; }
.camera strong { display: block; color: var(--text); }
.camera div span { color: var(--muted); font-size: 15px; }

.badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}

.badge.construction { background: rgba(242, 163, 58, 0.18); color: #c77a12; }
.badge.planned { background: rgba(142, 142, 147, 0.18); color: var(--muted); }

.camera-links { display: flex; gap: 12px; font-size: 14px; white-space: nowrap; }

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    text-decoration: none;
}

.button:hover { background: var(--accent-dark); }

@media (max-width: 820px) {
    .camera { grid-template-columns: 1fr auto; }
    .camera-links { grid-column: 1 / -1; }
    .camera-map { height: 360px; }
}
.map-link { margin: 20px 0 0; font-size: 16px; }

/* ---------- Homepage map and camera list ---------- */

.landing main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.landing .nav { padding-top: 12px; padding-bottom: 12px; }
.site-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2px 24px 18px;
}

.hero-copy { max-width: 1120px; }
.hero-copy .eyebrow { margin-bottom: 6px; padding-top: 3px; padding-bottom: 3px; }
.hero-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.025em;
}
.hero-copy .lead {
    max-width: 105ch;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.camera-count {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 15px;
}
.camera-count strong { color: var(--text); font-weight: 600; }

.site-hero .cta-row { gap: 10px; }
.store-button {
    min-height: 44px;
    padding: 7px 16px;
    border: 0;
    border-radius: 12px;
    background: #1c1c1e;
    color: #fff;
    text-align: left;
    font: inherit;
    font-size: 16px;
    line-height: 1.1;
    opacity: 0.78;
}
.store-button small { font-size: 11px; }
.store-button.play-store { background: #343437; }
.cta-note { font-size: 14px; }

.map-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.8fr);
    gap: 16px;
    width: min(1440px, 100%);
    height: min(72vh, 780px);
    min-height: 560px;
    margin: 0 auto;
    padding: 0 24px;
}

.map-panel, .camera-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
    overflow: hidden;
}

.map-panel { display: flex; flex-direction: column; }
.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
}
.map-toolbar p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.dot {
    width: 10px;
    height: 10px;
    margin: 0 1px 0 8px;
    background: #8e8e93;
}
.dot.live { background: #e3262f; }
.dot.coming-soon { background: #8e8e93; }
.near-me-button, .share-button {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.near-me-button:hover, .share-button:hover { border-color: var(--accent-text); }

.camera-map {
    position: relative;
    flex: 1;
    min-height: 0;
    height: auto;
    border: 0;
    border-radius: 0;
    background: #e7e5df;
}
.map-message {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    max-width: 360px;
    margin: auto;
    padding: 24px;
    color: #3a3a3c;
    text-align: center;
    font-size: 15px;
}
.camera-map.map-ready .map-message { display: none; }

.camera-panel {
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.list-heading h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}
.list-heading p { margin: 3px 0 12px; color: var(--muted); font-size: 13px; }
.new-locations {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg);
}
.new-locations[hidden] { display: none; }
.new-locations h3 { margin: 0 0 5px; font-size: 14px; }
.new-locations ul { margin: 0; padding: 0; list-style: none; }
.new-locations li { color: var(--muted); font-size: 13px; }

.camera-controls { flex: 0 0 auto; }
.camera-controls input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
.camera-controls input:focus { border-color: var(--accent-text); }
.chips { gap: 6px; margin: 9px 0 10px; }
.chip {
    min-height: 34px;
    padding: 5px 12px;
    border-color: var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
}
.chip.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #1c1c1e;
}

.camera-list {
    min-height: 0;
    flex: 1 1 auto;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.camera-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 5px;
    border-bottom: 1px solid var(--border);
}
.camera-row[hidden] { display: none; }
.camera-row.selected {
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 15%, var(--bg));
    box-shadow: inset 3px 0 var(--accent);
}
.camera-select {
    display: block;
    min-width: 0;
    padding: 0 0 0 6px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.camera-select strong, .camera-select > span {
    display: block;
}
.camera-select strong { font-size: 14px; line-height: 1.35; }
.camera-select > span:not(.camera-row-meta) { color: var(--muted); font-size: 12px; line-height: 1.4; }
.camera-row-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 5px; }
.badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
}
.badge.live { background: #e3262f; color: #fff; }
.badge.construction, .badge.planned {
    background: rgba(142, 142, 147, 0.18);
    color: var(--text);
}
.camera-limit { color: var(--muted); font-size: 12px; }
.share-button { padding: 6px 9px; font-size: 12px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid var(--accent-text);
    outline-offset: 3px;
}

.content-sections { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.notice-card { margin: 72px 0 0; }
.notice-card h2, .goal-card h2 { margin: 0 0 12px; font-size: 24px; }
.notice-card p + p { margin-top: 10px; }
.notice-card .source { font-size: 14px; }
.goal-card { margin: 0; }
.goal-card p { color: var(--muted); }
.content-sections .section { padding-right: 0; padding-left: 0; }
.content-sections .step-number { color: #1c1c1e; }

@media (prefers-color-scheme: dark) {
    .camera-map { background: #252528; }
    .map-message { color: #f2f2f7; }
    .store-button { background: #343437; }
    .store-button.play-store { background: #48484a; }
}

@media (max-width: 820px) {
    .site-hero { min-height: 0; padding: 0 20px 24px; text-align: left; }
    .hero-copy { max-width: 680px; }
    .hero-copy h1 { font-size: clamp(34px, 9vw, 48px); }
    .hero-copy .lead { font-size: 16px; }
    .camera-count { flex-wrap: wrap; font-size: 14px; }
    .site-hero .cta-row { justify-content: flex-start; }
    .map-workspace {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        padding: 0 12px;
    }
    .map-panel { flex: 0 0 auto; height: 54vh; min-height: 380px; }
    .camera-panel { flex: 0 0 auto; height: 54vh; min-height: 380px; padding: 14px; }
    .camera-list { max-height: none; flex: 1 1 0; }
    .notice-card { margin-top: 48px; }
    .content-sections { padding: 0 20px; }
    .content-sections .section { padding-top: 56px; }
}

@media (max-width: 420px) {
    .nav { padding: 14px 16px; }
    .brand { font-size: 18px; }
    .site-hero { padding-right: 16px; padding-left: 16px; }
    .site-hero .cta-row { gap: 8px; }
    .store-button { min-height: 44px; padding: 6px 11px; font-size: 14px; }
    .cta-note { width: 100%; }
    .map-toolbar { padding-right: 10px; padding-left: 10px; }
    .map-toolbar p { gap: 4px; font-size: 12px; }
    .near-me-button { padding: 6px 9px; }
    .content-sections { padding: 0 16px; }
}
