/* ROAM — marketing site
   Built on the same system popcorn.space uses: one serif + one grotesque,
   pastel neutrals, breakpoint-driven type vars, expo easing, soft layered
   gradients instead of borders. Fonts are free substitutes (theirs are
   licensed): Newsreader for headings, Hanken Grotesk for body. */

:root {
  /* neutrals */
  --bg: #f7f7f7;
  --white: #fff;
  --mist: #f0efef;
  --mist-deep: #ededed;
  --sand: #e7e7e3;
  --ink: #222;
  --ink-deep: #0a0a0a;
  --muted: #888787;

  /* roam */
  --blue: #1034a6;
  --blue-bright: #2e5bff;
  --blue-wash: #eaeffb;
  --sky: #d8e5f0;
  --sky-soft: #dde6ef;
  --sky-deep: #c7dbed;

  --primary: #393737;
  --primary-hover: #232121;

  --radius: 0.625rem;
  --radius-lg: 1.25rem;

  --font-heading: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --page-gutter: 1.5rem;
  --shell: 77rem; /* 1232px content width, matching the reference grid */

  --hero-display: 5.25rem;
  --hero-description: 1.25rem;
  --section-title: 3.625rem;
  --section-subtitle: 1.25rem;

  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --quint: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) and (max-width: 1023px) {
  :root {
    --hero-display: 4.5rem;
    --section-title: 3rem;
    --page-gutter: 1.75rem;
  }
}

@media (max-width: 639px) {
  :root {
    --hero-display: 3.75rem;
    --section-title: 2.5rem;
    --hero-description: 1.125rem;
    --section-subtitle: 1.125rem;
  }
}

@media (max-width: 475px) {
  :root {
    --hero-display: 2.75rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-gutter: 2rem;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

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

/* the globe grid needs 332 + 664 + 332 + 64 of gaps */
.shell-wide {
  max-width: calc(1392px + var(--page-gutter) * 2);
}

/* ---------- type ---------- */

.display {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}

.hero-display {
  font-size: var(--hero-display);
}

.section-title {
  font-size: var(--section-title);
}

.lede {
  font-size: var(--hero-description);
  color: var(--muted);
  line-height: 1.5;
  margin: 1.25rem auto 0;
  max-width: 34rem;
}

.section-sub {
  font-size: var(--section-subtitle);
  color: var(--muted);
  margin: 1rem auto 0;
  max-width: 36rem;
  line-height: 1.5;
}

.center {
  text-align: center;
}

/* ---------- badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.badge::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.18);
}

/* a light band sweeping across the badge, on a long cycle so it reads as a
   glint rather than a loader */
.badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(46, 91, 255, 0.16) 50%,
    transparent 62%
  );
  background-size: 400% 100%;
  animation: shimmer 2s linear 0.3s infinite;
}

.badge {
  position: relative;
  overflow: hidden;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: 0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.975rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s var(--expo), transform 0.25s var(--expo);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-quiet {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.btn-quiet:hover {
  background: var(--mist);
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 247, 247, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-head .shell {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.15rem;
}

.site-head .mark {
  width: 96px;
  flex: none;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-right: auto;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--expo);
}

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

@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .site-head .shell {
    justify-content: space-between;
  }
  .site-head .mark {
    width: 84px;
  }
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* Motion, per the reference system: a long reveal on quint easing rather than
   a quick ease-out. The slowness is the point, it reads as calm. */

@keyframes reveal-on-load {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* the pop-in variant, for objects rather than text */
@keyframes materialise {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* idle float — every element gets its own duration and delay so a group
   never bobs in lockstep */
@keyframes bob {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(var(--bob-reach, -8px));
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

.hero .badge,
.hero .hero-display,
.hero .lede,
.hero .btn {
  animation: reveal-on-load var(--reveal-duration, 1.7s) var(--quint) both;
}

.hero .badge {
  animation-delay: 0.05s;
}

.hero .hero-display {
  animation-delay: 0.14s;
  margin-top: 1.75rem;
}

.hero .lede {
  animation-delay: 0.24s;
}

.hero .btn {
  animation-delay: 0.34s;
  margin-top: 2rem;
}

/* quiet hero CTA — a link, not a slab */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--expo), gap 0.25s var(--expo);
  animation: reveal-on-load var(--reveal-duration, 1.7s) 0.34s var(--quint) both;
}

.hero-link::after {
  content: '\2192';
  transition: transform 0.25s var(--expo);
}

.hero-link:hover {
  border-color: currentColor;
}

.hero-link:hover::after {
  transform: translateX(2px);
}

/* the glowing stage the phone sits on */
.stage {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(78rem, 130vw);
  height: 105%;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(199, 219, 237, 0.85) 0%,
    rgba(216, 229, 240, 0.5) 45%,
    rgba(247, 247, 247, 0) 72%
  );
  pointer-events: none;
}

/* two tilted phones, overlapping, each drifting at its own rate */
.phones {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.ph {
  will-change: transform;
}

.ph-front {
  position: relative;
  z-index: 2;
  rotate: -9deg;
  animation: materialise 0.9s 0.42s ease-out both;
}

/* sits behind and to the right, tipped the other way, slightly smaller and
   dropped so both devices read as separate objects */
.ph-back {
  position: relative;
  z-index: 1;
  margin-left: -13%;
  margin-top: 3.5rem;
  scale: 0.94;
  rotate: 11deg;
  animation: materialise 0.9s 0.32s ease-out both;
}

.phone {
  width: min(17rem, 46vw);
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: linear-gradient(165deg, #2b2b2b, #0d0d0d);
  box-shadow: 0 40px 60px -30px rgba(10, 18, 40, 0.45), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
  overflow: hidden;
}

.phone img {
  border-radius: 1.95rem;
}

/* soft clouds, pure CSS, no assets */
.cloud {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 72%);
  filter: blur(2px);
  will-change: transform;
  pointer-events: none;
}

.cloud-back {
  width: 30rem;
  height: 13rem;
  left: 50%;
  top: 12%;
  margin-left: -15rem;
  opacity: 0.85;
}

.cloud-left {
  width: 22rem;
  height: 9rem;
  left: 4%;
  top: 46%;
}

.cloud-right {
  width: 19rem;
  height: 8rem;
  right: 3%;
  top: 34%;
}

@media (max-width: 700px) {
  .cloud-left,
  .cloud-right {
    width: 13rem;
    height: 6rem;
  }
}

.phone img {
  border-radius: 2.1rem;
}

/* ---------- fact row ---------- */

.facts {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  text-align: center;
}

@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fact svg {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 auto 0.9rem;
  display: block;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact b {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

/* ---------- sections ---------- */

/* Vertical rhythm, per the reference: tops around 80–128px, bottoms much
   deeper at 128–192px. The asymmetry is what makes sections breathe. */
.section {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.section-deep {
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(6.5rem, 11vw, 12rem);
}

.section-head {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.band {
  background: linear-gradient(
    to bottom,
    rgba(158, 202, 236, 0.22) 0%,
    rgba(176, 212, 240, 0.11) 30%,
    var(--mist-deep) 55%,
    rgba(199, 219, 237, 0.4) 100%
  );
}

.band-plain {
  background: var(--white);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1.5rem; /* 24px, per the reference */
}

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

/* two large cards side by side, 20px apart */
.cards-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-lg {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s var(--expo), box-shadow 0.4s var(--expo);
}

.card-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.28);
}

.card-lg h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.card-lg p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  max-width: 26rem;
}

.card-lg .shot-frame {
  margin-top: 2rem;
  border-radius: 1.1rem 1.1rem 0 0;
  overflow: hidden;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 24px 40px -28px rgba(0, 0, 0, 0.4);
  background: var(--mist);
}

.card-lg .shot-frame img {
  width: 100%;
  display: block;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--expo), box-shadow 0.4s var(--expo);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.28);
}

/* real product screens, not drawn placeholders */
.card-art {
  height: 9.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky-soft), var(--mist));
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s var(--expo);
}

.card:hover .card-art img {
  transform: scale(1.04);
}

.card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* ---------- phone carousel ---------- */

/* in the hero it rides the same scroll-drifting stage the phones used to */
.hero-carousel {
  position: relative;
  z-index: 2;
  will-change: transform;
}

.hero-carousel .carousel {
  height: clamp(22rem, 42vw, 32rem);
}

.carousel {
  position: relative;
  height: clamp(24rem, 46vw, 34rem);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.cslide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(11rem, 20vw, 15rem);
  transition: transform 0.7s var(--expo), opacity 0.7s var(--expo), filter 0.7s var(--expo);
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.cslide .frame {
  border-radius: 1.9rem;
  padding: 0.45rem;
  background: linear-gradient(165deg, #2b2b2b, #0d0d0d);
  box-shadow: 0 30px 50px -26px rgba(10, 18, 40, 0.5);
}

.cslide .frame img {
  width: 100%;
  border-radius: 1.55rem;
  display: block;
}

/* positions relative to the active slide */
.cslide[data-pos='0'] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 5;
}

.cslide[data-pos='-1'],
.cslide[data-pos='1'] {
  opacity: 0.72;
  z-index: 4;
  filter: saturate(0.75);
}

.cslide[data-pos='-1'] {
  transform: translate(-96%, -50%) scale(0.84) rotateY(14deg);
}

.cslide[data-pos='1'] {
  transform: translate(-4%, -50%) scale(0.84) rotateY(-14deg);
}

.cslide[data-pos='-2'],
.cslide[data-pos='2'] {
  opacity: 0.38;
  z-index: 3;
  filter: saturate(0.5);
}

.cslide[data-pos='-2'] {
  transform: translate(-138%, -50%) scale(0.7) rotateY(20deg);
}

.cslide[data-pos='2'] {
  transform: translate(38%, -50%) scale(0.7) rotateY(-20deg);
}

.cslide[data-pos='hide'] {
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.6);
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.18);
  cursor: pointer;
  transition: background 0.3s var(--expo), width 0.3s var(--expo);
}

.carousel-dots button[aria-current='true'] {
  background: var(--blue);
  width: 1.4rem;
}

.carousel-cap {
  text-align: center;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: 0.975rem;
  min-height: 1.5rem;
}

/* ---------- globe section ----------
   Asymmetric grid per the reference: two narrow columns flanking a square
   centre cell, 48px row gap / 32px column gap. */

.orbit {
  display: grid;
  gap: 2.5rem 2rem;
  justify-items: center;
}

@media (min-width: 1000px) {
  .orbit {
    grid-template-columns: 332px minmax(0, 664px) 332px;
    gap: 3rem 2rem;
    align-items: center;
    justify-content: center;
  }
}

.orbit-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 332px;
}

.orbit-globe {
  position: relative;
  width: 100%;
  max-width: 664px;
  aspect-ratio: 1;
  order: -1;
}

@media (min-width: 1000px) {
  .orbit-globe {
    order: 0;
  }
}

.orbit-globe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(20, 45, 90, 0.22));
  transition: opacity 0.6s var(--expo);
}

/* live Mapbox globe sits over the still image and fades it out once ready */
#globe-map {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s var(--expo);
}

#globe-map.is-live {
  opacity: 1;
}

#globe-map canvas {
  outline: none;
}

/* keep Mapbox's required attribution legible but out of the way */
#globe-map .mapboxgl-ctrl-bottom-right,
#globe-map .mapboxgl-ctrl-bottom-left {
  z-index: 2;
}

#globe-map .mapboxgl-ctrl-attrib {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.7);
}

/* score-coloured teardrop, same shape and palette as the app's map pin */
.globe-pin {
  display: block;
  line-height: 0;
  cursor: default;
  filter: drop-shadow(0 4px 6px rgba(10, 18, 40, 0.35));
}

.globe-pin svg {
  display: block;
}

/* mobile: the four items sit two-up under the globe */
@media (max-width: 999px) {
  .orbit {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 1.5rem;
  }
  .orbit-col {
    max-width: none;
    gap: 2.25rem;
  }
  .orbit-globe {
    grid-column: 1 / -1;
    max-width: 26rem;
  }
}

@media (max-width: 560px) {
  .orbit {
    grid-template-columns: 1fr;
  }
}

.orbit-item svg {
  width: 28px;
  height: 28px;
  display: block;
  margin-bottom: 0.9rem;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-item b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.orbit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.45;
}

/* ---------- city grid ---------- */

.cities {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .cities {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .cities {
    grid-template-columns: repeat(5, 1fr);
  }
}

.city {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.city img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--expo);
}

.city:hover img {
  transform: scale(1.05);
}

.city::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.72) 0%, rgba(10, 14, 20, 0.06) 55%, transparent 78%);
}

.city span {
  position: absolute;
  left: 0.9rem;
  bottom: 0.75rem;
  z-index: 1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.step h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* ---------- faq ---------- */

.faq {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
}

.q {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.q summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.02rem;
  font-weight: 500;
}

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

.q summary::after {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--expo);
}

.q[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.q .a {
  padding: 0 1.35rem 1.3rem;
  color: var(--muted);
  font-size: 0.975rem;
  margin: 0;
  max-width: 44rem;
}

/* ---------- closing panel ---------- */

.panel {
  background: var(--ink-deep);
  color: #fff;
  border-radius: 1.75rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--page-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(46, 91, 255, 0.32), transparent 68%);
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--section-title);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

.panel p {
  color: rgba(255, 255, 255, 0.62);
  margin: 1rem auto 2.25rem;
  max-width: 32rem;
  font-size: var(--section-subtitle);
}

.stores {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  text-align: left;
  cursor: default;
  transition: background 0.25s var(--expo);
}

.store:hover {
  background: rgba(255, 255, 255, 0.13);
}

.store svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: #fff;
  flex: none;
}

.store b {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9bb6ff;
  font-weight: 600;
}

.store span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- contact page ---------- */

.page-head {
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(2rem, 3vw, 3rem);
  text-align: center;
}

.page-head h1 {
  font-size: var(--section-title);
}

.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.field {
  display: block;
  margin-bottom: 1.15rem;
}

.field > span {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
  padding: 0.8rem 0.9rem;
  transition: box-shadow 0.2s var(--expo);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b0afac;
}

#form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.75rem;
}

.info h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.4rem;
}

.info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

.info .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

.info a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.info a:hover {
  text-decoration: underline;
}

/* ---------- long-form pages ---------- */

.prose {
  max-width: 44rem;
  margin: 0 auto;
}

.prose .updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 2.75rem 0 0.85rem;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

.prose p,
.prose li {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  color: var(--blue);
  font-weight: 500;
}

.prose .note {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

/* ---------- footer ---------- */

/* Footer reveal: the footer is pinned to the bottom of the viewport while the
   last section scrolls up over it, so it uncovers like a drawer instead of
   being pushed down the page. */
.foot-reveal {
  position: relative;
  /* dark behind the slab, so its rounded bottom corners always read, whether
     the footer is mid-reveal or fully settled at rest */
  background: #151515;
}

.foot-reveal > section,
.foot-reveal > .contact-grid {
  position: relative;
  z-index: 1;
  background: var(--bg); /* must be opaque to cover the footer behind it */
  /* rounded bottom corners so the slab lifts away cleanly off the dark footer */
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  overflow: clip;
}

.site-foot {
  background: #151515;
  color: #fff;
  /* no bottom padding: the wordmark is the last thing, and it runs off the edge */
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 0;
  position: sticky;
  bottom: 0;
  z-index: 0;
}

/* not enough room to reveal anything on short screens */
@media (max-height: 640px) {
  .site-foot {
    position: static;
  }
}

/* mark, then four link columns, all on one row. A grid rather than a wrapping
   flex row, so adding a column narrows the tracks instead of stacking. */
.foot-top {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.site-foot .mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  margin-right: 2rem;
}

.foot-col h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.42);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.foot-col a {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s var(--expo);
}

.foot-col a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.foot-col .soon {
  color: rgba(255, 255, 255, 0.42);
  cursor: default;
}

.foot-col .soon:hover {
  color: rgba(255, 255, 255, 0.42);
}

/* Oversized wordmark running off the bottom edge. The reference does this with
   type: 209px glyphs in a 167px line box, sitting low enough that the last
   ~33% is cut off by the page edge. Same idea here, with the real ROAM mark,
   clipped by the wrapper's aspect-ratio. */
.foot-wordmark {
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 1041 / 150; /* mark is 1041x220 trimmed, so this crops the bottom ~32% */
}

.foot-wordmark img {
  width: 100%;
  display: block;
}

.foot-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.875rem;
}

/* two-up on tablets, then the mark on its own row */
@media (max-width: 900px) {
  .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
  }
  .site-foot .mark {
    grid-column: 1 / -1;
    margin-right: 0;
  }
}

@media (max-width: 460px) {
  .foot-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--reveal-duration, 1.7s) var(--quint),
    transform var(--reveal-duration, 1.7s) var(--quint);
}

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

/* children of a revealed block stagger in on the pop-in curve */
.js .stagger > * {
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.js .stagger.is-in > * {
  opacity: 1;
  transform: none;
}

.js .stagger.is-in > *:nth-child(2) {
  transition-delay: 0.09s;
}

.js .stagger.is-in > *:nth-child(3) {
  transition-delay: 0.18s;
}

.js .stagger.is-in > *:nth-child(4) {
  transition-delay: 0.27s;
}

.js .stagger.is-in > *:nth-child(5) {
  transition-delay: 0.36s;
}

.js .stagger.is-in > *:nth-child(6) {
  transition-delay: 0.45s;
}

.js .stagger.is-in > *:nth-child(7) {
  transition-delay: 0.54s;
}

.js .stagger.is-in > *:nth-child(8) {
  transition-delay: 0.63s;
}

.js .stagger.is-in > *:nth-child(9) {
  transition-delay: 0.72s;
}

.js .stagger.is-in > *:nth-child(10) {
  transition-delay: 0.81s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
