/* Stravient: everything it needs lives in static/stravient, nothing shared with any other site */

@font-face {
    font-family: "Montserrat";
    src: url("/static/stravient/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/static/stravient/fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --sv-bg: #070c17;
    --sv-bg-alt: #0b1221;
    --sv-surface: #0f1829;
    --sv-surface-raised: #131e33;
    --sv-border: rgba(148, 170, 210, 0.14);
    --sv-border-strong: rgba(148, 170, 210, 0.28);
    --sv-text: #eef2f8;
    --sv-muted: #a3b0c6;
    --sv-subtle: #7d8aa3;
    --sv-accent: #4f8cff;
    --sv-accent-strong: #2f6ff0;
    --sv-accent-light: #8fd3fa;
    --sv-gradient: linear-gradient(120deg, #2f6ff0 0%, #4f8cff 45%, #8fd3fa 100%);
    --sv-error: #ff8a8a;
    --sv-radius: 14px;
    --sv-radius-small: 10px;
    --sv-heading: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --sv-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --sv-header-height: 68px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--sv-header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--sv-bg);
    color: var(--sv-text);
    font-family: var(--sv-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--sv-accent-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--sv-accent-light);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3 {
    font-family: var(--sv-heading);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.6rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

.sv-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.sv-narrow {
    max-width: 760px;
}

.sv-skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--sv-surface-raised);
    border-radius: var(--sv-radius-small);
}

.sv-skip:focus {
    left: 16px;
}

/* Header */

.sv-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 12, 23, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--sv-border);
}

.sv-header-inner {
    height: var(--sv-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sv-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--sv-text);
}

.sv-brand:hover {
    text-decoration: none;
}

.sv-brand img {
    width: 40px;
    height: 24px;
}

.sv-wordmark {
    font-family: var(--sv-heading);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

/* Buttons */

.sv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--sv-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-button:hover {
    text-decoration: none;
}

.sv-button-primary {
    background: var(--sv-accent-strong);
    color: #ffffff;
    box-shadow: 0 8px 24px -10px rgba(47, 111, 240, 0.7);
}

.sv-button-primary:hover {
    background: #3d7cf6;
    transform: translateY(-1px);
}

.sv-button-primary:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.sv-button-outline {
    border-color: var(--sv-border-strong);
    color: var(--sv-text);
}

.sv-button-outline:hover {
    border-color: var(--sv-accent);
}

.sv-button-ghost {
    color: var(--sv-text);
}

.sv-button-ghost:hover {
    color: var(--sv-accent-light);
}

.sv-button-small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.92rem;
}

.sv-button-block {
    width: 100%;
}

/* Shared text */

.sv-eyebrow {
    font-family: var(--sv-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sv-accent-light);
    margin-bottom: 1rem;
}

.sv-lead {
    font-size: 1.15rem;
    color: var(--sv-muted);
}

.sv-note {
    color: var(--sv-subtle);
    font-size: 0.95rem;
    text-align: center;
    margin-top: 32px;
}

/* Hero */

.sv-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 12vw, 140px) 0 clamp(72px, 10vw, 120px);
    border-bottom: 1px solid var(--sv-border);
}

.sv-hero::before {
    /* A soft glow behind the headline, the same blues as the logo */
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle at center, rgba(79, 140, 255, 0.18) 0%, rgba(79, 140, 255, 0) 62%);
    pointer-events: none;
}

.sv-hero .sv-container {
    position: relative;
}

.sv-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.sv-hero-mark {
    width: 100%;
    max-width: 380px;
    height: auto;
    justify-self: center;
    opacity: 0.9;
    filter: drop-shadow(0 30px 60px rgba(47, 111, 240, 0.35));
}

.sv-hero-title {
    font-size: clamp(2.5rem, 5.6vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.sv-hero-lead {
    max-width: 680px;
    margin-bottom: 36px;
}

.sv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sv-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    margin-bottom: 28px;
    border: 1px solid var(--sv-border-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--sv-muted);
}

.sv-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sv-accent-light);
    box-shadow: 0 0 0 4px rgba(143, 211, 250, 0.15);
}

/* Sections */

.sv-section {
    padding: clamp(72px, 10vw, 120px) 0;
}

.sv-section-alt {
    background: var(--sv-bg-alt);
    border-top: 1px solid var(--sv-border);
    border-bottom: 1px solid var(--sv-border);
}

.sv-section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.sv-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    padding: 28px;
}

/* How it works */

.sv-steps {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sv-step-number {
    display: inline-block;
    font-family: var(--sv-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    background: var(--sv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}

.sv-quotes, .sv-ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--sv-muted);
}

.sv-quotes li {
    font-style: italic;
    padding: 4px 0;
}

.sv-ticks li {
    position: relative;
    padding: 4px 0 4px 26px;
}

.sv-ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--sv-accent-light);
    border-bottom: 2px solid var(--sv-accent-light);
    transform: rotate(-45deg);
}

.sv-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 0;
}

.sv-flow li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

/* The connecting line before each step */
.sv-flow li::before {
    content: "";
    width: 28px;
    height: 1px;
    margin: 0 10px;
    background: var(--sv-border-strong);
}

.sv-flow li:first-child::before {
    display: none;
}

.sv-flow li:last-child {
    color: var(--sv-accent-light);
}

/* Vision */

.sv-vision {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Body text in the vision and status sections, leaving eyebrows and the statement their own colours */
.sv-vision > div > p:not(.sv-eyebrow), #status p:not(.sv-eyebrow):not(.sv-lead) {
    color: var(--sv-muted);
}

#status .sv-lead {
    color: var(--sv-text);
}

.sv-vision strong {
    color: var(--sv-text);
}

.sv-statement {
    font-family: var(--sv-heading);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: var(--sv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

/* Capabilities */

.sv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sv-capability {
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sv-capability:hover {
    border-color: var(--sv-border-strong);
    transform: translateY(-2px);
}

.sv-capability p {
    color: var(--sv-muted);
    margin: 0;
}

.sv-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-bottom: 18px;
    border-radius: var(--sv-radius-small);
    background: rgba(79, 140, 255, 0.12);
    fill: none;
    stroke: var(--sv-accent-light);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Deployment options */

.sv-deploy-intro {
    color: var(--sv-muted);
}

.sv-deploy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sv-deploy {
    display: flex;
    flex-direction: column;
}

.sv-deploy h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3em;
}

.sv-deploy p {
    color: var(--sv-muted);
}

.sv-deploy .sv-deploy-tagline {
    color: var(--sv-accent-light);
    font-weight: 600;
    margin-bottom: 20px;
}

.sv-deploy .sv-ticks {
    padding-top: 8px;
    border-top: 1px solid var(--sv-border);
}

/* The diagrams: boxes joined by arrows, the agent in blue and anything in your own environment dashed */
.sv-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px;
    margin-bottom: 22px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-small);
    background: var(--sv-bg);
}

.sv-node {
    width: 100%;
    max-width: 220px;
    padding: 10px 12px;
    border: 1px solid var(--sv-border-strong);
    border-radius: 8px;
    background: var(--sv-surface-raised);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.sv-node span {
    display: block;
    color: var(--sv-subtle);
    font-size: 0.78rem;
    font-weight: 400;
}

.sv-node-agent {
    border-color: var(--sv-accent);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
}

.sv-node-yours {
    border-style: dashed;
}

.sv-arrow {
    position: relative;
    width: 2px;
    height: 26px;
    margin: 4px 0 10px;
    background: var(--sv-accent);
}

.sv-arrow::after {
    content: "";
    position: absolute;
    left: -4px;
    bottom: -6px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--sv-accent);
}

.sv-arrow-labelled {
    height: 36px;
}

.sv-arrow span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: var(--sv-subtle);
    font-size: 0.78rem;
}

.sv-deploy-closing {
    max-width: 720px;
    margin: 56px auto 0;
    text-align: center;
}

.sv-deploy-closing h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
}

.sv-deploy-closing p {
    color: var(--sv-muted);
}

/* Engagement levels: the same cards as the deployment options, with a journey line above them */

.sv-engage-journey {
    margin-bottom: 40px;
}

.sv-engage-journey li {
    font-family: var(--sv-heading);
    font-weight: 600;
}

.sv-engage .sv-engage-label {
    margin: 8px 0 4px;
    color: var(--sv-text);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sv-dots {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--sv-muted);
}

.sv-dots li {
    position: relative;
    padding: 4px 0 4px 26px;
}

.sv-dots li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.95em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sv-accent);
}

.sv-deploy-closing .sv-engage-statement {
    font-family: var(--sv-heading);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--sv-text);
}

/* Join */

.sv-join {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.sv-form-card {
    padding: 32px;
    background: var(--sv-surface-raised);
}

.sv-field {
    margin-bottom: 18px;
}

.sv-field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.sv-optional {
    font-weight: 400;
    color: var(--sv-subtle);
}

.sv-field input, .sv-field select, .sv-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--sv-radius-small);
    border: 1px solid var(--sv-border-strong);
    background: var(--sv-bg);
    color: var(--sv-text);
    font-family: var(--sv-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sv-field textarea {
    resize: vertical;
}

.sv-field input::placeholder, .sv-field textarea::placeholder {
    color: var(--sv-subtle);
}

.sv-field input:focus, .sv-field select:focus, .sv-field textarea:focus {
    outline: none;
    border-color: var(--sv-accent);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.25);
}

.sv-field input[aria-invalid="true"] {
    border-color: var(--sv-error);
}

.sv-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sv-form-error {
    color: var(--sv-error);
    font-size: 0.95rem;
    min-height: 1.4em;
    margin-bottom: 10px;
}

.sv-form-error:empty {
    min-height: 0;
    margin: 0;
}

.sv-privacy {
    color: var(--sv-subtle);
    font-size: 0.85rem;
    margin: 14px 0 0;
}

.sv-thanks h3 {
    font-size: 1.5rem;
}

.sv-thanks p {
    color: var(--sv-muted);
    margin: 0;
}

.sv-thanks:focus {
    outline: none;
}

/* Quick check popup */

.sv-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 6, 12, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sv-modal[hidden] {
    display: none;
}

.sv-modal-box {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 28px;
    border-radius: var(--sv-radius);
    border: 1px solid var(--sv-border-strong);
    background: var(--sv-surface-raised);
    text-align: center;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

.sv-modal-box h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.sv-modal-text {
    color: var(--sv-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.sv-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    color: var(--sv-subtle);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.sv-modal-close:hover {
    color: var(--sv-text);
}

.sv-captcha-frame {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 280 / 90;
    margin: 0 auto 6px;
    border-radius: var(--sv-radius-small);
    background: var(--sv-bg);
    overflow: hidden;
}

.sv-captcha-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-subtle);
    font-size: 0.95rem;
}

.sv-captcha-loading[hidden] {
    display: none;
}

.sv-captcha-image {
    display: block;
    width: 100%;
    height: 100%;
}

.sv-captcha-image[hidden] {
    display: none;
}

.sv-link-button {
    border: none;
    background: none;
    padding: 4px;
    margin-bottom: 14px;
    color: var(--sv-accent-light);
    font-family: var(--sv-body);
    font-size: 0.88rem;
    cursor: pointer;
}

.sv-link-button:hover {
    text-decoration: underline;
}

.sv-captcha-input {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: var(--sv-radius-small);
    border: 1px solid var(--sv-border-strong);
    background: var(--sv-bg);
    color: var(--sv-text);
    font-family: var(--sv-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.sv-captcha-input:focus {
    outline: none;
    border-color: var(--sv-accent);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.25);
}

/* 404 */

.sv-not-found {
    min-height: calc(100vh - var(--sv-header-height) - 160px);
    display: flex;
    align-items: center;
}

.sv-not-found h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.sv-not-found .sv-lead {
    margin-bottom: 32px;
}

/* Footer */

.sv-footer {
    border-top: 1px solid var(--sv-border);
    padding: 40px 0;
    color: var(--sv-subtle);
    font-size: 0.92rem;
}

.sv-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.sv-footer-statement {
    margin: 10px 0 0;
}

.sv-footer-meta {
    text-align: right;
}

.sv-footer-meta p {
    margin: 6px 0 0;
}

/* Gentle fade in as sections scroll into view (only when the script has run and motion is welcome) */

@media (prefers-reduced-motion: no-preference) {
    .sv-js .sv-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .sv-js .sv-reveal.sv-visible {
        opacity: 1;
        transform: none;
    }
}

/* Smaller screens */

@media (max-width: 900px) {
    .sv-steps, .sv-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sv-hero-inner, .sv-deploy-grid {
        grid-template-columns: 1fr;
    }

    .sv-hero-mark {
        display: none;
    }

    .sv-vision, .sv-join {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .sv-container {
        padding: 0 16px;
    }

    .sv-steps, .sv-grid {
        grid-template-columns: 1fr;
    }

    .sv-flow {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .sv-flow li {
        flex-direction: column;
        align-items: flex-start;
    }

    .sv-flow li::before {
        width: 1px;
        height: 18px;
        margin: 6px 0 6px 12px;
    }

    .sv-header .sv-wordmark {
        font-size: 0.95rem;
        letter-spacing: 0.24em;
    }

    .sv-header .sv-button-small {
        padding: 0 14px;
        font-size: 0.85rem;
    }

    .sv-form-card {
        padding: 22px;
    }

    .sv-footer-meta {
        text-align: left;
    }
}
