/* ==========================================================================
   Roadie, marketing site
   Tokens come straight from 03_PRODUCT_AND_TECH_DOCS/01-product-design-system.md.
   The "hygienic" surface rule applies: flat fills, no glow, no decorative
   gradients, no watermark letters. Hierarchy is built with space and weight,
   and `acid` is spent on one thing per viewport.
   ========================================================================== */

:root {
    --bg: #080908;
    --surface: #151614;
    --surface-raised: #1d1f1b;
    --line: #2c2e29;
    --line-soft: #202220;
    --text: #f5f3ec;
    --muted: #a4a79e;
    --muted-dim: #74776f;

    --acid: #d7ff45;
    --violet: #a77bff;
    --blue: #65c9ff;
    --gold: #ffc75b;
    --coral: #ff7968;

    --r-sm: 12px;
    --r-control: 16px;
    --r-card: 20px;
    --r-hero: 24px;
    --r-pill: 999px;

    --shell: 1160px;
    --gutter: 24px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    /* The sticky header would otherwise cover the top of an anchored section. */
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 450;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    /* Without this the HTML height attribute wins and portrait screenshots stretch. */
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.08;
    font-weight: 800;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px;
    border-radius: 6px;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--acid);
    color: #0a0b09;
    padding: 12px 20px;
    border-radius: 0 0 var(--r-sm) 0;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}

.eyebrow--acid {
    color: var(--acid);
}

.display {
    font-size: clamp(34px, 6.4vw, 62px);
    letter-spacing: -0.035em;
}

.h2 {
    font-size: clamp(26px, 3.8vw, 40px);
    letter-spacing: -0.03em;
}

.h3 {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.lede {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--muted);
    max-width: 56ch;
}

.small {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.section {
    padding-block: clamp(64px, 9vw, 120px);
    border-top: 1px solid var(--line-soft);
}

.section__head {
    max-width: 62ch;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section__head .lede {
    margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
        color 0.18s var(--ease), transform 0.12s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--acid);
    color: #0a0b09;
}

.btn--primary:hover {
    background: #e4ff6d;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface);
    border-color: #3b3e37;
}

.btn--sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 9, 8, 0.86);
    /* Functional, not decorative: the nav sits over scrolling content. */
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}

.header.is-stuck {
    border-bottom-color: var(--line-soft);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.04em;
    margin-right: auto;
}

.brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    font-size: 14px;
    font-weight: 550;
    color: var(--muted);
    transition: color 0.16s var(--ease);
}

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

.header__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav,
    .header__cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header__inner.is-open + .mobile-nav {
        display: block;
    }
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line-soft);
    padding: 12px var(--gutter) 24px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--line-soft);
}

.mobile-nav .btn {
    width: 100%;
    margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero__copy .display {
    margin-bottom: 22px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted-dim);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 44px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    overflow: hidden;
}

.hero__stat {
    background: var(--bg);
    padding: 18px 20px;
}

.hero__stat b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero__stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.phone {
    position: relative;
    margin-inline: auto;
    max-width: 340px;
}

.phone img {
    width: 100%;
    border-radius: 30px;
}

@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__visual {
        order: -1;
    }

    .phone {
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    .hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Problem strip
   -------------------------------------------------------------------------- */

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

.problem__item {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    padding: 24px;
}

.problem__item .h3 {
    margin-bottom: 10px;
}

.problem__item p {
    color: var(--muted);
    font-size: 14px;
}

.problem__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: var(--surface-raised);
    border: 1px solid var(--line);
    color: var(--coral);
    font-weight: 800;
    margin-bottom: 18px;
}

@media (max-width: 860px) {
    .problem {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Split feature (image + copy)
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.split--flip .split__visual {
    order: 2;
}

.split__list {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.split__list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.split__list .tick {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--acid);
}

.split__list b {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}

.split__list span {
    color: var(--muted);
    font-size: 14px;
}

.version-demo {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 22px;
    max-width: 420px;
    margin-inline: auto;
}

.version-demo__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 11px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface-raised);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.chip--acid {
    color: #0a0b09;
    background: var(--acid);
    border-color: var(--acid);
}

.chip--gold {
    color: var(--gold);
    border-color: #4a4128;
}

.chip--blue {
    color: var(--blue);
    border-color: #26404c;
}

.chip--violet {
    color: var(--violet);
    border-color: #3a3152;
}

.version-demo__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}

.version-demo__row:last-of-type {
    border-bottom: 0;
}

.version-demo__row .was {
    color: var(--muted-dim);
    text-decoration: line-through;
}

.version-demo__row .now {
    font-weight: 700;
    color: var(--acid);
}

.version-demo__ack {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.avatars {
    display: flex;
}

.avatars span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    background: var(--surface-raised);
    margin-left: -8px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
}

.avatars span:first-child {
    margin-left: 0;
}

.avatars span.ok {
    background: var(--acid);
    color: #0a0b09;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .split--flip .split__visual {
        order: 0;
    }
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

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

.feature {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 26px 24px 28px;
}

.feature__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    margin-bottom: 20px;
}

.feature .h3 {
    margin-bottom: 10px;
}

.feature p {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .features {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 26px;
    border-top: 2px solid var(--line);
}

.step:first-child {
    border-top-color: var(--acid);
}

.step__no {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--muted-dim);
    margin-bottom: 12px;
}

.step .h3 {
    margin-bottom: 10px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Screen tour
   -------------------------------------------------------------------------- */

.tour {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-block: 8px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    /* Bleed past the shell so the strip reads as a rail, not a boxed row. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
}

.tour::-webkit-scrollbar {
    height: 6px;
}

.tour::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: var(--r-pill);
}

.tour__item {
    flex: 0 0 auto;
    width: 230px;
    scroll-snap-align: start;
}

.tour__item img {
    width: 100%;
    border-radius: var(--r-card);
    border: 1px solid var(--line);
}

.tour__item figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.tour__item figcaption b {
    display: block;
    color: var(--text);
    font-weight: 650;
    font-size: 14px;
    margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Roles
   -------------------------------------------------------------------------- */

.roles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.role {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 24px;
}

.role .h3 {
    margin-bottom: 10px;
}

.role p {
    font-size: 14px;
    color: var(--muted);
}

.role .chip {
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    .roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .roles {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
    max-width: 820px;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.015em;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.faq details[open] summary::after {
    content: "−";
    color: var(--acid);
    border-color: #4a5a24;
}

.faq p {
    color: var(--muted);
    font-size: 15px;
    padding-bottom: 24px;
    max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Waitlist
   -------------------------------------------------------------------------- */

.waitlist {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-hero);
    padding: clamp(28px, 5vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    color: var(--text);
    font: inherit;
    /* 16px keeps iOS from zooming the viewport on focus. */
    font-size: 16px;
    transition: border-color 0.16s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #4a5a24;
    outline: none;
}

.field--row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form .btn {
    width: 100%;
    margin-top: 4px;
}

.form__consent {
    font-size: 12px;
    color: var(--muted-dim);
    line-height: 1.5;
}

.form__consent a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form__status {
    font-size: 14px;
    padding: 12px 14px;
    border-radius: var(--r-control);
    border: 1px solid var(--line);
    background: var(--surface-raised);
}

.form__status[data-state="ok"] {
    color: var(--acid);
    border-color: #4a5a24;
}

.form__status[data-state="error"] {
    color: var(--coral);
    border-color: #5a3630;
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .waitlist {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .field--row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--line-soft);
    padding-block: 56px 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}

.footer__brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
    max-width: 34ch;
}

.footer h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin: 0 0 16px;
}

.footer li {
    margin-bottom: 11px;
}

.footer li a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.16s var(--ease);
}

.footer li a:hover {
    color: var(--text);
}

.footer__bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted-dim);
}

@media (max-width: 860px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal {
    padding-block: clamp(48px, 7vw, 88px);
}

.legal__body {
    max-width: 76ch;
}

.legal__body h2 {
    font-size: 22px;
    margin: 44px 0 14px;
    letter-spacing: -0.02em;
}

.legal__body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.legal__body p,
.legal__body li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.legal__body p {
    margin-bottom: 14px;
}

.legal__body ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 18px;
}

.legal__body li {
    margin-bottom: 8px;
}

.legal__body a {
    color: var(--acid);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal__meta {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted-dim);
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.legal__table th,
.legal__table td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--line);
    color: var(--muted);
    vertical-align: top;
}

.legal__table th {
    color: var(--text);
    font-weight: 700;
    background: var(--surface);
}

.legal__scroll {
    overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Scroll reveal, opt-in, and fully skipped when motion is reduced
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
