/* Landing page. Self-contained: the panel stylesheet is not loaded here. */

:root {
    --red: #c81e1e;
    --red-dark: #9b1515;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #5b6474;
    --line: #e2e8f0;
    --bg-soft: #f6f7f9;
    --dark: #111827;
    --dark-2: #1b2433;
    --ok: #15803d;
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
figure { margin: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
section { padding: 80px 0; scroll-margin-top: 64px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 720px; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255,255,255,.08); }

/* Header */
.top {
    position: sticky; top: 0; z-index: 10;
    background: rgba(17, 24, 39, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { white-space: nowrap; color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo { width: 30px; height: 30px; display: block; flex: none; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a:not(.btn) { color: #cbd5e1; text-decoration: none; font-size: 15px; }
.top-nav a:not(.btn):hover { color: #fff; }

/* Hero */
.hero {
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(200,30,30,.28), transparent 60%),
        linear-gradient(180deg, var(--dark), #0b1020);
    color: #e2e8f0;
    padding: 72px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.kicker { color: #fca5a5; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; }
.lead { font-size: 20px; color: #cbd5e1; max-width: 620px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; color: #94a3b8; font-size: 15px; }
.hero-points li::before { content: "✓"; color: #4ade80; font-weight: 800; margin-right: 6px; }

.phone img, .shot-pair img {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    border-radius: 28px;
    border: 8px solid #1f2937;
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
}

/* Problem */
.problem { background: var(--bg-soft); text-align: center; }
.problem p { font-size: 19px; color: var(--muted); }

/* Steps */
.steps-section .wrap { display: grid; grid-template-columns: 1.4fr .6fr; gap: 0 56px; align-items: start; }
.steps-section h2 { grid-column: 1 / -1; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
.steps .num {
    grid-row: span 2;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--red); color: #fff; font-weight: 800; font-size: 22px;
    display: grid; place-items: center;
}
.steps h3 { margin: 4px 0 4px; }
.steps p { color: var(--muted); margin: 0; }
.shot-pair img { max-width: 250px; }
.steps { margin-top: 12px; }

/* Features */
.features-section { background: var(--bg-soft); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.features article {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 22px;
}
.features p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Screens */
.browser {
    margin: 20px 0 48px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(15,23,42,.12);
    background: #fff;
}
.browser::before {
    content: "";
    display: block;
    height: 30px;
    background: #eef0f3 radial-gradient(circle at 18px 15px, #f87171 5px, transparent 6px),
                #eef0f3;
    border-bottom: 1px solid var(--line);
}
.browser-dark { background: var(--dark); max-width: 920px; }
.browser-dark::before { background-color: #1f2937; border-bottom-color: #2b3546; }
.browser:last-child { margin-bottom: 0; }

/* Modules */
.modules-section { background: var(--bg-soft); }
.events-shot { margin: 0; justify-self: start; width: min(300px, 100%); }
.events-shot img { display: block; width: 100%; height: auto; }
.events-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.modules { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.module-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.module-card .module-tag {
    display: inline-block;
    margin: 0 0 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fdecec;
    color: var(--red);
    font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.module-card h3 { font-size: 24px; }
.module-card p { color: var(--muted); font-size: 16px; }
.module-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 15.5px; }
.module-points li { position: relative; padding-left: 26px; }
.module-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Screenshot carousel: a scroll-snap strip; landing/carousel.js only adds the arrows. */
.carousel { min-width: 0; }
.carousel-track {
    position: relative;
    display: flex; align-items: flex-start; gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    /* Room for the shadows, which the scroll box would clip. */
    padding: 4px 4px 22px;
    margin: -4px;
    scroll-padding-inline: 4px;
}
.carousel-track:focus-visible { outline: 3px solid rgba(200,30,30,.35); outline-offset: 2px; border-radius: var(--radius); }
.carousel-slide { flex: none; width: min(640px, 100%); margin: 0; scroll-snap-align: start; }
.carousel-slide a { display: block; border-radius: 12px; }
.carousel-slide a:focus-visible { outline: 3px solid rgba(200,30,30,.35); outline-offset: 3px; }
.carousel-slide img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15,23,42,.12);
}
/* A phone shot in a phone frame, as tall as a desktop shot beside it. */
.carousel-slide.slide-phone { width: 206px; }
.slide-phone img { border: 6px solid #1f2937; border-radius: 24px; }
.carousel-slide figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.carousel-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0 0 3px;
    border: 1px solid var(--line); border-radius: 50%;
    background: #fff; color: var(--ink);
    font: inherit; font-size: 28px; line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
    transition: color .15s, border-color .15s;
}
.carousel-btn[hidden] { display: none; }
.carousel-btn:hover:not(:disabled) { color: var(--red); border-color: var(--red); }
.carousel-btn:focus-visible { outline: 3px solid rgba(200,30,30,.35); outline-offset: 2px; }
.carousel-btn:disabled { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

.modules + .modules { margin-top: 56px; }
.modules[id] { scroll-margin-top: 80px; }
/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.price-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.price-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 .6em; }
.price-card .price { color: var(--ink); font-size: 32px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 10px; }
.price-card .price span { color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.price-card .price-includes { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.price-terms { margin: 28px 0 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.aux-notice {
    margin: 16px 0 0;
    padding: 14px 18px;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    color: #78350f;
    font-size: 15.5px;
}

/* Rollout */
.rollout { background: var(--dark); color: #cbd5e1; }
.rollout h2 { color: #fff; }
.rollout-list { counter-reset: r; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.rollout-list li {
    counter-increment: r;
    background: var(--dark-2);
    border-radius: 12px;
    padding: 16px 18px 16px 62px;
    position: relative;
}
.rollout-list li::before {
    content: counter(r);
    position: absolute; left: 16px; top: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--red); color: #fff; font-weight: 800;
    display: grid; place-items: center;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
    cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink);
    list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Contact form */
.contact { background: var(--bg-soft); }
.form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,30,30,.15); }
.hint { display: none; color: var(--red); font-size: 14px; margin-top: 4px; }
.field-error input, .field-error textarea { border-color: var(--red); }
.field-error .hint { display: block; }
.form .btn { width: 100%; padding: 16px; font-size: 18px; }
.privacy { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; text-align: center; }

/* Kept out of sight and out of the tab order, but not display:none, which bots skip. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 12px; padding: 16px 18px; margin-top: 24px; }
.notice-ok { background: #ecfdf3; border: 1px solid #a7f3d0; color: #14532d; font-size: 18px; }
.notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }

/* Footer */
.footer { background: var(--dark); color: #94a3b8; padding: 40px 0 24px; font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 6px 0 0; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer nav a { color: #cbd5e1; text-decoration: none; }
.footer nav a:hover { color: #fff; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* Tablet */
@media (max-width: 980px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .steps-section .wrap { grid-template-columns: 1fr; }
    .shot-pair { display: none; }
    .modules { grid-template-columns: 1fr; }
    .prices { grid-template-columns: 1fr; max-width: 560px; }
}

/* Phone */
@media (max-width: 640px) {
    body { font-size: 16px; }
    section { padding: 56px 0; }
    .wrap { padding: 0 16px; }
    .top-nav a:not(.btn):not(.top-panel) { display: none; }
    .top-nav { gap: 14px; }
    .long { display: none; }
    .brand { font-size: 18px; }
    .hero { padding: 44px 0 56px; }
    .lead { font-size: 18px; }
    .cta .btn { flex: 1 1 100%; text-align: center; }
    .phone img { max-width: 260px; }
    .features { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form { padding: 20px; }
    .module-card { padding: 22px; }
    .carousel-track { gap: 14px; }
    .carousel-slide { width: 86%; }
    .carousel-slide.slide-phone { width: 42%; }
    /* The phone shots make the strip taller than a desktop shot; arrows on top stay next to what
       is on screen instead of below an empty band. */
    .carousel { display: flex; flex-direction: column; }
    .carousel-nav { order: -1; margin: 0 0 12px; }
}

/* Messenger contact: secondary button and floating button (plain link, no Meta scripts) */
.contact-alt { margin: 24px 0 0; text-align: center; }
.btn-messenger { background: #fff; color: #0866ff; box-shadow: inset 0 0 0 2px #0866ff; display: inline-flex; align-items: center; gap: 10px; }
.btn-messenger:hover, .btn-messenger:focus-visible { background: #eef4ff; }
.messenger-fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 50;
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #0866ff; color: #fff;
    box-shadow: 0 6px 18px rgba(15,23,42,.3);
}
.messenger-fab:hover, .messenger-fab:focus-visible { background: #0753d1; }
.footer { padding-bottom: 88px; }
@media print { .messenger-fab { display: none; } }
