:root {
    --ink: #09111f;
    --ink-soft: #1c2b3f;
    --muted: #64748b;
    --muted-dark: #40516a;
    --tina-pink: #f43098;
    --tina-pink-deep: #c70d72;
    --accent: var(--tina-pink);
    --accent-strong: var(--tina-pink-deep);
    --aqua: #18c8d2;
    --gold: #f2c16b;
    --rose: var(--tina-pink);
    --bg: #f7f4ee;
    --paper: #fffaf1;
    --card: rgba(255, 255, 255, 0.74);
    --line: rgba(15, 23, 42, 0.11);
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
    --radius-lg: 34px;
    --radius-md: 22px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(244, 48, 152, 0.17), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(24, 200, 210, 0.18), transparent 30rem),
        linear-gradient(135deg, #fffdf7 0%, var(--bg) 45%, #eef7ff 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(9, 17, 31, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(9, 17, 31, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 70%);
}

.site-header {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 3;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-logo {
    display: block;
    height: 30px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.92rem;
}

.site-nav a {
    color: var(--muted-dark);
    text-decoration: none;
    font-weight: 650;
}

.site-nav a:hover { color: var(--accent-strong); }

.nav-cta {
    padding: 0.65rem 0.95rem;
    color: #fff !important;
    border-radius: 999px;
    background: var(--ink);
}

.page {
    flex: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 96px;
    position: relative;
    z-index: 1;
}

.hero-shell {
    min-height: 670px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: clamp(36px, 7vw, 86px);
    align-items: center;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.19em;
    font-size: 0.74rem;
    font-weight: 850;
    color: var(--accent-strong);
    margin: 0 0 0.9rem;
}

.eyebrow.code-404 {
    font-size: 1rem;
    color: var(--muted);
}

h1, h2, h3, p { margin-top: 0; }

.hero-copy h1,
.hero h1 {
    font-size: clamp(3.25rem, 8vw, 6.9rem);
    line-height: 0.9;
    /* sub-1 line-height clips the last line's descenders ("g" in
       "brokerage"); padding-bottom extends the (clipped) gradient paint
       area to cover them. */
    padding-bottom: 0.12em;
    margin: 0 0 0.9rem;
    letter-spacing: -0.075em;
    max-width: 10ch;
}

.hero-copy h1 {
    background: linear-gradient(120deg, #07101f 0%, #26395d 42%, var(--tina-pink-deep) 78%, var(--tina-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: clamp(1.1rem, 2vw, 1.38rem);
    color: var(--ink-soft);
    max-width: 42rem;
    margin: 0 0 1.7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 1.6rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.82rem 1.12rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 780;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tina-pink-deep), var(--tina-pink) 55%, var(--aqua));
    box-shadow: 0 18px 40px rgba(244, 48, 152, 0.3);
}

.button.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.1rem;
    margin-top: 0.2rem;
    color: var(--muted-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.trust-strip span::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 999px;
    background: var(--tina-pink);
    box-shadow: 0 0 0 3px rgba(244, 48, 152, 0.14);
}

.trust-strip span:nth-child(2)::before {
    background: var(--aqua);
    box-shadow: 0 0 0 3px rgba(24, 200, 210, 0.14);
}

.trust-strip span:nth-child(3)::before {
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(242, 193, 107, 0.16);
}

.hero-visual {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.9;
}

.orb-one {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(24, 200, 210, 0.7), transparent 68%);
    top: 22px;
    right: 24px;
}

.orb-two {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(244, 48, 152, 0.48), transparent 68%);
    bottom: 2px;
    left: -20px;
}

.glass-card {
    width: min(100%, 470px);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.46));
    backdrop-filter: blur(26px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 48, 152, 0.15), transparent 38%, rgba(24, 200, 210, 0.18));
    pointer-events: none;
}

.command-card > * { position: relative; }

.card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted-dark);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.card-topline strong {
    width: 100%;
    color: var(--ink);
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.progress-map {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.progress-map span {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.1);
}

.progress-map .done { background: var(--aqua); }
.progress-map .active { background: linear-gradient(90deg, var(--tina-pink), var(--gold)); }

.task-row {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    margin-bottom: 12px;
}

.task-row.highlighted {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
}

.task-row .icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tina-pink), var(--aqua));
}

.task-row strong { display: block; letter-spacing: -0.02em; }
.task-row p { color: var(--muted-dark); margin: 3px 0 0; font-size: 0.93rem; }

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.mini-grid div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(9, 17, 31, 0.9);
    color: #fff;
}

.mini-grid span, .mini-grid small { display: block; color: rgba(255,255,255,0.66); }
.mini-grid strong { display: block; font-size: 1.7rem; letter-spacing: -0.05em; margin: 3px 0; }

.section {
    margin-top: 92px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 6vw, 70px);
    align-items: end;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(18px);
}

.section h2,
.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
    margin-bottom: 0;
}

.split p:last-child,
.proof-panel p {
    font-size: 1.08rem;
    color: var(--muted-dark);
    margin-bottom: 0;
}

.product-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    min-height: 260px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.07);
}

.feature-primary {
    background: linear-gradient(150deg, #101827 0%, var(--tina-pink-deep) 58%, #0e9aa5 100%);
    color: #fff;
}

.feature-card h3 {
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: -0.045em;
    margin-bottom: 0.65rem;
}

.feature-card p {
    color: var(--muted-dark);
    margin-bottom: 0;
}

.feature-primary p,
.feature-primary .feature-kicker { color: rgba(255, 255, 255, 0.76); }

.feature-kicker {
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: auto;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.timeline-step {
    position: relative;
    min-height: 230px;
    padding: 24px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    border-top: 3px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(9, 17, 31, 0.35);
}

.timeline-step::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: rgba(24, 200, 210, 0.22);
}

.step-collect { border-top-color: var(--aqua); }
.step-collect::after { background: rgba(24, 200, 210, 0.3); }
.step-collect span { border-color: var(--aqua); color: var(--aqua); }

.step-coordinate { border-top-color: var(--gold); }
.step-coordinate::after { background: rgba(242, 193, 107, 0.3); }
.step-coordinate span { border-color: var(--gold); color: var(--gold); }

.step-trigger { border-top-color: var(--tina-pink); }
.step-trigger::after { background: rgba(244, 48, 152, 0.3); }
.step-trigger span { border-color: var(--tina-pink); color: var(--tina-pink); }

.step-defend { border-top-color: var(--tina-pink-deep); }
.step-defend::after { background: rgba(199, 13, 114, 0.3); }
.step-defend span { border-color: var(--tina-pink-deep); color: var(--tina-pink-deep); }

.timeline-step span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 850;
    margin-bottom: 58px;
}

.timeline-step h3 {
    font-size: 1.24rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.timeline-step p { color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }

.proof-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: stretch;
    padding: 46px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.44)),
        radial-gradient(circle at 100% 0%, rgba(242, 193, 107, 0.5), transparent 42%);
    border: 1px solid var(--line);
}

/* proof-panel stacks h2 directly above a paragraph; the section default
   margin-bottom:0 + tight line-height let the "gg" descenders crowd it. */
.proof-panel h2 {
    margin-bottom: 1rem;
}

.values-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(145deg, #111827, #25304a);
    box-shadow: var(--shadow);
}

.values-card span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    font-weight: 850;
    margin-bottom: 14px;
}

.values-card strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    margin-bottom: 16px;
}

.values-card p { color: rgba(255,255,255,0.72); margin-bottom: 0; }

.hero {
    max-width: 42rem;
    text-align: center;
    margin: 0 auto;
}

.muted {
    font-size: 0.95rem;
    color: var(--muted);
}

code {
    font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.1em 0.4em;
}

.link {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 650;
}
.link:hover { text-decoration: underline; }

.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 24px;
    text-align: center;
    padding: 1.2rem;
    font-size: 0.84rem;
    color: var(--muted-dark);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}
.site-footer p { margin: 0; }
.footer-legal { margin-top: 0.5rem; font-size: 0.8rem; }
.footer-legal a { color: var(--muted-dark); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* Long-form legal pages (Privacy Policy, Terms of Service). A readable
   prose column, distinct from the oversized marketing section headings. */
.legal {
    width: min(760px, calc(100% - 40px));
    margin: 64px auto 0;
}
.legal h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}
.legal h2 {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin: 2.2rem 0 0.6rem;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

/* SMS opt-in / messaging program page. Built for A2P 10DLC carrier review:
   a public page that documents the opt-in workflow, exact consent language,
   sample messages, and a screenshot of the in-app consent screen. */
.disclosure-callout {
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    margin: 1rem 0 1.6rem;
    font-size: 0.97rem;
}
.disclosure-callout .checkbox-line { font-weight: 650; color: var(--ink); }
.sms-samples { list-style: none; padding-left: 0; }
.sms-samples li {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}
.screenshot-slot {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 1rem 0 1.6rem;
}
.screenshot-slot img {
    max-width: min(100%, 520px);
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 0.9rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}
.screenshot-slot figcaption { margin-top: 0.2rem; color: var(--muted); }

@media (max-width: 980px) {
    .hero-shell,
    .split,
    .proof-panel {
        grid-template-columns: 1fr;
    }

    .hero-shell { min-height: auto; }
    .hero-visual { min-height: 500px; }
    .product-grid,
    .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        border-radius: 26px;
    }

    .site-nav {
        display: none;
    }

    .page {
        width: min(100% - 28px, 1180px);
        padding-top: 48px;
    }

    .hero-copy h1,
    .hero h1 {
        max-width: none;
        font-size: clamp(2.9rem, 16.5vw, 4.35rem);
        line-height: 0.96;
        letter-spacing: -0.048em;
    }

    .section h2,
    .section-heading h2,
    .feature-card h3,
    .timeline-step h3,
    .values-card strong {
        letter-spacing: -0.04em;
    }

    .hero-visual { min-height: auto; }
    .trust-strip { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
    .glass-card { padding: 16px; }
    .mini-grid,
    .product-grid,
    .timeline { grid-template-columns: 1fr; }
    .split,
    .proof-panel { padding: 28px; }
    .feature-card,
    .timeline-step { min-height: 210px; }
    .site-footer { border-radius: 24px; }
}

/* ---------------------------------------------------------------------------
   Request-a-demo: narrow result pages + modal
--------------------------------------------------------------------------- */

.section.narrow {
    max-width: 56rem;
}

button.nav-cta,
button.button {
    font: inherit;
    border: none;
    cursor: pointer;
}

.demo-modal[hidden] { display: none; }

.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 17, 31, 0.55);
    backdrop-filter: blur(4px);
}

.demo-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.demo-modal-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin: 0 0 0.5rem;
}

.demo-modal-sub {
    color: var(--ink-soft);
    margin: 0 0 1.4rem;
}

.demo-modal-x {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.demo-modal-x:hover { color: var(--ink); }

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 650;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.demo-form .opt {
    font-weight: 450;
    color: var(--muted);
}

.demo-form input,
.demo-form textarea {
    font: inherit;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    width: 100%;
}

.demo-form input:focus,
.demo-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

.demo-form textarea { resize: vertical; }

.demo-submit { margin-top: 4px; }

/* Honeypot — visually hidden, still submitted if a bot fills it. */
.demo-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.demo-form-error {
    color: var(--tina-pink-deep);
    font-size: 0.9rem;
    margin: 0;
}

.demo-modal-success h2 { margin-top: 0.3rem; }
.demo-modal-success .button { margin-top: 1rem; }
