/* RoamMotion marketing site — brand palette extracted directly from the
   real logo (site/assets/logo.png), sampled pixel-for-pixel: near-black
   ink #0E141D and bright cyan #00B5FC, both verified against ~230K/46K
   fully-opaque pixels respectively. Supersedes the earlier placeholder
   navy #1B2A4A / teal #14C7B8 palette. See site/README.md for the full
   extraction method and derived supporting ramp. Mobile-first: written
   for a phone screen first, widened with min-width media queries. */

:root {
  --rm-ink: #0e141d;        /* brand ink — extracted, near-black */
  --rm-ink-hover: #1c2634;  /* button hover state only, not a brand color */
  --rm-cyan: #00b5fc;       /* brand cyan — extracted */
  --rm-cyan-deep: #007dad;  /* text-safe cyan (4.65:1 on white) for links/eyebrows/numbers */

  --rm-page-bg: #ffffff;
  --rm-alt-bg: #f5f7fa;
  --rm-gray: #52627a;        /* secondary/body-secondary text — derived from ink's hue, lightened */
  --rm-hairline: #eaecf1;    /* hairlines, alt-section backgrounds — derived from ink's hue, lightened */
  --rm-cyan-tint: #e7f4f9;   /* announcement banner wash — derived from cyan's hue, lightened */

  --rm-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rm-space-2: 8px;
  --rm-space-3: 12px;
  --rm-space-4: 16px;
  --rm-space-5: 24px;
  --rm-space-6: 32px;
  --rm-space-7: 48px;
  --rm-space-8: 72px;
  --rm-space-9: 112px;

  --rm-radius-sm: 8px;
  --rm-radius-md: 14px;
  --rm-max-width: 1120px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--rm-page-bg);
  color: var(--rm-ink);
  font-family: var(--rm-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

a {
  color: inherit;
}

img, svg {
  max-width: 100%;
  display: block;
}

.rm-skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--rm-ink);
  color: #fff;
  padding: var(--rm-space-3) var(--rm-space-4);
  z-index: 100;
  border-radius: var(--rm-radius-sm);
}
.rm-skip-link:focus {
  left: var(--rm-space-4);
  top: var(--rm-space-4);
}

/* ---------------------------------------------------------------------- */
/* Nav                                                                     */
/* ---------------------------------------------------------------------- */

.rm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rm-hairline);
}

.rm-nav__inner {
  max-width: var(--rm-max-width);
  margin: 0 auto;
  padding: var(--rm-space-3) var(--rm-space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Icon mark (site/assets/logo-mark.svg, vector) + the real wordmark image
   (site/assets/wordmark.png, cropped straight from logo.png — see
   site/README.md), side by side. The full stacked lockup (logo.svg) is
   reserved for places with room to show it properly (the hero); a nav bar
   needs a compact horizontal treatment, which the real lockup's
   proportions don't give. */
.rm-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  min-width: 0; /* lets __type shrink below its intrinsic width if the flex parent runs out of room */
}
.rm-wordmark__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.rm-wordmark__type {
  height: 32px;
  width: auto;
  min-width: 0;
}
.rm-wordmark--footer .rm-wordmark__mark {
  width: 28px;
  height: 28px;
}
.rm-wordmark--footer .rm-wordmark__type {
  height: 28px;
}

/* Measured, not guessed: icon + gap + wordmark image is a fixed 193px
   from the nav's left padding; the hamburger's left edge is (viewport -
   64px). They'd only actually collide below 257px viewport width — no
   real phone goes that narrow (320px, iPhone SE 1st-gen, is the practical
   floor and clears this by 63px). This is a safety margin for an
   artificially narrow desktop browser window, not a real-device fallback. */
@media (max-width: 300px) {
  .rm-nav .rm-wordmark__type {
    display: none;
  }
}

.rm-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.rm-nav__toggle span {
  display: block;
  height: 2px;
  background: var(--rm-ink);
  border-radius: 2px;
}

.rm-nav__links {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--rm-hairline);
  flex-direction: column;
  padding: var(--rm-space-4) var(--rm-space-5) var(--rm-space-5);
  gap: var(--rm-space-4);
  display: none;
}
.rm-nav__links.is-open {
  display: flex;
}
.rm-nav__links a {
  text-decoration: none;
  color: var(--rm-gray);
  font-weight: 600;
  font-size: 15px;
}
.rm-nav__links a:hover {
  color: var(--rm-ink);
}
.rm-nav__cta {
  color: var(--rm-cyan-deep) !important;
}

@media (min-width: 860px) {
  .rm-nav__toggle {
    display: none;
  }
  .rm-nav__links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    gap: var(--rm-space-6);
  }
}

/* ---------------------------------------------------------------------- */
/* Announcement banner — content set by site/assets/main.js (ANNOUNCEMENT  */
/* constant); empty by default. :empty keeps it at zero visual trace even  */
/* if JS never runs, not just when ANNOUNCEMENT.text is "".                */
/* ---------------------------------------------------------------------- */

.rm-banner {
  display: none;
}
.rm-banner:not(:empty) {
  display: block;
  background: var(--rm-cyan-tint);
  border-bottom: 1px solid var(--rm-hairline);
  padding: 9px var(--rm-space-5);
  text-align: center;
}
.rm-banner__content {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: bottom;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rm-cyan-deep);
  text-decoration: none;
}
a.rm-banner__content:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Shared section chrome                                                  */
/* ---------------------------------------------------------------------- */

.rm-section__inner {
  max-width: var(--rm-max-width);
  margin: 0 auto;
  padding: var(--rm-space-8) var(--rm-space-5);
}

.rm-section__inner--narrow {
  max-width: 640px;
}

.rm-section--alt {
  background: var(--rm-alt-bg);
}

.rm-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cyan-deep);
  margin-bottom: var(--rm-space-3);
}
.rm-eyebrow--on-dark {
  color: var(--rm-cyan);
}

h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--rm-ink);
  max-width: 22ch;
  margin-bottom: var(--rm-space-6);
}

.rm-prose {
  display: flex;
  flex-direction: column;
  gap: var(--rm-space-4);
  max-width: 62ch;
  color: var(--rm-gray);
  font-size: 17px;
}
.rm-prose strong {
  color: var(--rm-ink);
}

.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--rm-radius-sm);
  border: 1.5px solid transparent;
}
.rm-btn--primary {
  background: var(--rm-ink);
  color: #ffffff;
}
.rm-btn--primary:hover {
  background: var(--rm-ink-hover);
}
.rm-btn--ghost {
  border-color: var(--rm-hairline);
  color: var(--rm-ink);
  background: #ffffff;
}
.rm-btn--ghost:hover {
  border-color: var(--rm-ink);
}

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

.rm-hero__inner {
  max-width: var(--rm-max-width);
  margin: 0 auto;
  padding: var(--rm-space-8) var(--rm-space-5) var(--rm-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--rm-space-7);
}

.rm-hero__copy h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--rm-ink);
  max-width: 16ch;
}

.rm-hero__positioning {
  margin-top: var(--rm-space-5);
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--rm-gray);
  max-width: 44ch;
}

/* Supporting line, not a fresh paragraph — tighter margin than
   .rm-hero__positioning on purpose, reads as a continuation of it. Sized
   to hold one line at the desktop widths the hero is designed for; wraps
   normally on narrow viewports rather than being force-nowrapped and
   risking clipped/overflowing text. */
.rm-hero__service-line {
  margin-top: var(--rm-space-3);
  font-size: 15px;
  color: var(--rm-gray);
  max-width: 520px; /* px, not ch — the text was measured to need ~490px; ch units ran narrower than expected here */
}

.rm-hero__actions {
  margin-top: var(--rm-space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--rm-space-3);
}

/* The real lockup (site/assets/logo.svg — vector mark + wordmark) shown at
   a fixed, centered size rather than stretched full-width: it's a logo,
   not a decorative graphic, and its own internal proportions (stacked
   mark-over-wordmark) need to stay intact. */
.rm-hero__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}
.rm-hero__logo {
  width: 100%;
  max-width: 340px;
  height: auto;
}

@media (min-width: 900px) {
  .rm-hero__inner {
    flex-direction: row;
    align-items: center;
    padding-top: var(--rm-space-9);
    padding-bottom: var(--rm-space-9);
  }
  .rm-hero__copy {
    /* 1.3:0.7 rather than the old 1.1:0.9 — gives the copy column enough
       width for .rm-hero__service-line to hold one line right at this
       breakpoint (900px), not just at wider ones; verified empirically,
       not assumed. The logo (capped at max-width:340px anyway) just has
       a bit less spare room in its own column at this exact width. */
    flex: 1.3;
  }
  .rm-hero__visual {
    flex: 0.7;
  }
}

/* ---------------------------------------------------------------------- */
/* Problem — stat card                                                    */
/* ---------------------------------------------------------------------- */

.rm-stat-card {
  margin-top: var(--rm-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--rm-space-2);
  max-width: 480px;
  padding: var(--rm-space-6);
  border-radius: var(--rm-radius-md);
  border: 1.5px solid var(--rm-hairline);
  background: var(--rm-alt-bg);
}
.rm-stat-card__number {
  font-size: 44px;
  font-weight: 800;
  color: var(--rm-cyan-deep);
  letter-spacing: -0.02em;
}
.rm-stat-card__label {
  color: var(--rm-gray);
  font-size: 15px;
}

/* ---------------------------------------------------------------------- */
/* Product — steps                                                        */
/* ---------------------------------------------------------------------- */

.rm-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rm-space-6);
}
.rm-step {
  padding: var(--rm-space-6);
  background: #ffffff;
  border: 1.5px solid var(--rm-hairline);
  border-radius: var(--rm-radius-md);
}
.rm-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--rm-ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: var(--rm-space-4);
}
.rm-step h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--rm-ink);
  margin-bottom: var(--rm-space-2);
}
.rm-step p {
  color: var(--rm-gray);
  font-size: 15.5px;
  max-width: 52ch;
}

@media (min-width: 860px) {
  .rm-steps {
    flex-direction: row;
  }
  .rm-step {
    flex: 1;
  }
}

/* Full-width note below the 3-step row, not a 4th step in the flow —
   cyan left accent ties it to the brand accent used elsewhere (banner,
   eyebrows) without competing with the numbered-step cards above it. */
.rm-service-note {
  margin-top: var(--rm-space-6);
  padding: var(--rm-space-6);
  border-radius: var(--rm-radius-md);
  border: 1.5px solid var(--rm-hairline);
  border-left: 4px solid var(--rm-cyan);
  background: #ffffff;
}
.rm-service-note h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--rm-ink);
  margin-bottom: var(--rm-space-2);
}
.rm-service-note p {
  color: var(--rm-gray);
  font-size: 15.5px;
  max-width: 68ch;
}

/* ---------------------------------------------------------------------- */
/* Privacy — dark block, given real weight                                */
/* ---------------------------------------------------------------------- */

.rm-privacy {
  background: var(--rm-ink);
  color: #ffffff;
}
.rm-privacy h2 {
  color: #ffffff;
}
.rm-privacy__lead {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 600;
  color: var(--rm-cyan);
  max-width: 34ch;
  margin-bottom: var(--rm-space-6);
}
.rm-privacy__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rm-space-4);
  max-width: 62ch;
}
.rm-privacy__list li {
  position: relative;
  padding-left: var(--rm-space-5);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}
.rm-privacy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rm-cyan);
}

/* ---------------------------------------------------------------------- */
/* Who it's for — cards                                                   */
/* ---------------------------------------------------------------------- */

.rm-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rm-space-5);
}
.rm-card {
  padding: var(--rm-space-6);
  border-radius: var(--rm-radius-md);
  border: 1.5px solid var(--rm-hairline);
  background: #ffffff;
}
.rm-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--rm-ink);
  margin-bottom: var(--rm-space-2);
}
.rm-card p {
  color: var(--rm-gray);
  font-size: 15px;
}

@media (min-width: 620px) {
  .rm-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 980px) {
  .rm-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------------- */
/* Contact                                                                 */
/* ---------------------------------------------------------------------- */

.rm-contact {
  text-align: center;
}
.rm-contact h2 {
  max-width: none;
}
.rm-contact p {
  color: var(--rm-gray);
  font-size: 17px;
  margin-top: var(--rm-space-3);
}
.rm-contact__email {
  display: inline-block;
  margin-top: var(--rm-space-6);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--rm-ink);
  text-decoration: none;
  border-bottom: 3px solid var(--rm-cyan);
  padding-bottom: 4px;
}
.rm-contact__email:hover {
  color: var(--rm-cyan-deep);
}

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

.rm-footer {
  border-top: 1px solid var(--rm-hairline);
}
.rm-footer__inner {
  max-width: var(--rm-max-width);
  margin: 0 auto;
  padding: var(--rm-space-6) var(--rm-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--rm-space-3);
}
.rm-wordmark--footer {
  font-size: 16px;
}
.rm-footer__copy {
  color: var(--rm-gray);
  font-size: 13px;
}

@media (min-width: 620px) {
  .rm-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
