/* ==========================================================================
   Rood — home page (/rood/index.html) only.

   Loaded AFTER /css/styles.css. The legal pages and support.html keep using
   styles.css + rood.css and are not touched by this file: everything here
   is scoped to body.rood-home or uses the rh- prefix.

   Look: a white, typography-led product page. White sections alternate with
   a cool light-grey band; the phone screenshots (transparent WebP with their
   own soft shadow) are the imagery. Rood yellow (the app's #FFE200, since
   Rood 2.0) is used sparingly: a highlight under one word of the headline,
   step numbers, the play button, small markers.

   Phone images: 1172 x 2300 (height = 1.9625 x width). The phone body sits
   inside a transparent shadow margin: about 0.161 x width above it and
   0.112 x width below it. Several rules below cancel that margin with
   calc(width * -0.161) so the visible phone lines up with the text.
   The app's white tab bar starts at 84.9% of the image height; the dark
   manual-route band crops its phone just above it.

   Contrast notes: #FFE200 on white is ~1.2:1, so on light grounds it is only
   a fill with black on top (buttons, pills, highlights, dots); text stays
   ink (--rood-text). On the dark #1d1d1f band yellow text is 14:1.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("/assets/rood-home/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/rood-home/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ----------
   The shared styles.css tokens are already light; these tune them for this
   page (cooler greys, Outfit, a wider container). The footer and the cookie
   banner/modal read the same tokens, so they follow along. */
body.rood-home {
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --band: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;       /* 5.08:1 on white, 4.66:1 on the band */
  --text-faint: #6e6e73;
  --border: #e3e3e8;
  --border-strong: #c7c7cc;
  --ink: #1d1d1f;
  --ink-hover: #3a3a3d;
  --on-ink: #ffffff;
  --rood-text: #1d1d1f;        /* small accent text: ink (yellow is a fill on light grounds) */
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 18px 50px -12px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04);
  --font-sans: "Outfit", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-w: 1200px;

  --nav-h: 64px;
  --section-y: clamp(96px, 5.5rem + 4vw, 168px);
  --gap-head: clamp(48px, 2rem + 3.5vw, 88px);

  background: var(--bg);
  color: var(--text);
  font-size: 17px;
}
@media (max-width: 699px) {
  body.rood-home {
    --section-y: clamp(72px, 4rem + 3vw, 168px);
    --gap-head: 40px;
  }
}

/* ---------- Header ---------- */
.rood-home .site-header {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.rood-home .site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}
.rood-home .nav { height: var(--nav-h); }
/* rood-logo.svg carries a lot of empty space around the wordmark (the
   letters fill about 43% of its height), so it is sized up here and pulled
   back with negative margins to keep the letters on the container edge. */
.rood-home .nav-logo img {
  height: 3.5rem;
  width: auto;
  margin: 0 -0.35rem;
}
.rood-home .nav-links { gap: clamp(4px, 2.2vw, 28px); }
.rood-home .nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 6px;
}
.rood-home .nav-links a:hover { color: var(--text); }
.rood-home .nav-links a.rh-get {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--rood);
  color: var(--on-rood);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background var(--t-fast), transform var(--t-fast);
}
/* 44px touch target without a chunky pill */
.rh-get::after {
  content: "";
  position: absolute;
  inset: -2px 0;
}
.rood-home .nav-links a.rh-get:hover { background: var(--rood-dark); color: var(--on-rood); }
.rood-home .nav-links a.rh-get:active { transform: scale(0.97); }
@media (max-width: 719px) {
  .rh-nav-opt { display: none; }
}

/* ---------- Shared type ---------- */
.rh-section { padding-block: var(--section-y); }
.rh-section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }
/* "Get the app" (masaüstü) rozetlere kayar; sabit menünün altında kalmasın */
#get-the-app { scroll-margin-top: calc(var(--nav-h) + 32px); }
.rh-band { background: var(--band); }

.rh-head {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.rh-h2 {
  font-size: clamp(2.5rem, 1.25rem + 4.4vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.03;
  color: var(--text);
  text-wrap: balance;
}
.rh-lede {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 36em;
  text-wrap: pretty;
}
.rh-head .rh-lede { margin-inline: auto; }
@media (min-width: 600px) {
  .rh-nowrap { white-space: nowrap; }
}

.rh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rood-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.rh-eyebrow svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.rh-hero {
  padding-top: clamp(24px, 0.75rem + 2.4vw, 56px);
  text-align: center;
  overflow: clip;
  /* The white page fades into the grey band just as the phones land, so the
     product shot flows straight into "How it works". */
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, var(--band) 100%);
}
.rh-hero-copy {
  position: relative;
  z-index: 3;            /* above the phones' transparent shadow margin */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rh-title {
  margin-top: clamp(16px, 0.5rem + 2vw, 40px);
  /* also capped by viewport height, so the product shot still makes the
     first screen on short laptop displays */
  font-size: min(clamp(2.75rem, 0.9rem + 8vw, 6.75rem), 12.5vh);
  font-weight: 700;
  letter-spacing: -0.035em;
  word-spacing: 0.04em;
  line-height: 0.98;
  color: var(--text);
  text-wrap: balance;
}
@media (min-width: 600px) {
  .rh-title { letter-spacing: -0.04em; word-spacing: 0.06em; }
}
.rh-title em {
  font-style: normal;
  color: inherit;
  background: linear-gradient(transparent 62%, var(--rood) 62%, var(--rood) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
}
.rh-sub {
  margin-top: clamp(18px, 0.75rem + 1vw, 28px);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 38em;
  text-wrap: pretty;
}

/* Store badges: official artwork, unmodified. The Google Play PNG ships with
   built-in clear space (about a quarter of its height), hence the negative
   margin that lines it up with the App Store SVG. It stays a dimmed,
   non-interactive span until the Android app is live; then make it an <a>
   with the Play link and drop the --soon modifier and the <small>. */
.rh-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px 16px;
}
.rh-store { display: inline-block; position: relative; }
.rh-store img { display: block; height: 54px; width: auto; }
a.rh-store { border-radius: 12px; transition: opacity var(--t-fast), transform var(--t-fast); }
a.rh-store:hover { opacity: 0.82; }
a.rh-store:active { transform: scale(0.98); }
/* Google Play rozeti PNG'si kendi saydam payıyla geliyor (646x250): App Store rozetiyle aynı görünür boyda durması için büyütülüp negatif kenar boşluğuyla kırpılır. */
.rh-store--gp img { height: 81px; margin: -13.5px -13px; }
.rh-store--soon { cursor: default; }
.rh-store--soon img {
  height: 81px;
  margin: -13.5px -13px;
  opacity: 0.4;
}
.rh-store--soon small {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rh-trust {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}
.rh-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rh-trust li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23FFE200'/%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 419px) {
  .rh-badges { gap: 12px; }
  .rh-store img { height: 46px; }
  .rh-store--gp img { height: 69px; margin: -11.5px -11px; }
  .rh-store--soon img { height: 69px; margin: -11.5px -11px; }
  .rh-trust { gap: 4px 16px; font-size: 0.875rem; }
}

/* The product shot: three phones in one grid cell. The centre phone sets the
   height; the side phones are pushed out and scaled back with transforms,
   so the group never affects layout. The negative top margin cancels the
   image's transparent shadow margin, leaving 28px between the trust row
   and the phone itself. */
.rh-shot {
  --w: min(420px, 58vw);
  --fan: 50%;
  display: grid;
  justify-items: center;
  margin-top: calc(var(--w) * -0.161 + 28px);
}
@media (min-width: 600px) {
  .rh-shot { --w: min(420px, 42vw, 58vh); --fan: 58%; }
}
@media (min-width: 1600px) {
  .rh-shot { --w: min(480px, 58vh); }
}
.rh-shot-phone {
  grid-area: 1 / 1;
  width: var(--w);
  height: auto;
  transform-origin: 50% 100%;
}
.rh-shot-phone--c { position: relative; z-index: 2; }
.rh-shot-phone--l { transform: translateX(calc(var(--fan) * -1)) scale(0.84); }
.rh-shot-phone--r { transform: translateX(var(--fan)) scale(0.84); }

/* On-load entrance, transform only: nothing in the hero starts invisible,
   so the headline and the product shot paint (and count for LCP) at once.
   Neutralised under reduced motion by styles.css. */
@keyframes rhUp {
  from { transform: translateY(var(--rise, 16px)); }
  to { transform: none; }
}
.rh-hero-copy > * { animation: rhUp 700ms var(--ease) both; }
.rh-shot { --rise: 32px; animation: rhUp 900ms var(--ease) both; }

/* As the page scrolls, the side phones fan out from behind the centre one.
   Scroll-driven CSS (compositor only); browsers without it simply show the
   final arrangement. */
@keyframes rhFanL {
  from { transform: translateX(calc(var(--fan) * -0.62)) scale(0.8); }
  to { transform: translateX(calc(var(--fan) * -1)) scale(0.84); }
}
@keyframes rhFanR {
  from { transform: translateX(calc(var(--fan) * 0.62)) scale(0.8); }
  to { transform: translateX(var(--fan)) scale(0.84); }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .rh-shot-phone--l,
    .rh-shot-phone--r {
      animation: rhFanL linear both;
      animation-timeline: scroll(root);
      animation-range: 0 55vh;
    }
    .rh-shot-phone--r { animation-name: rhFanR; }
  }
}

/* ---------- How it works ---------- */
.rh-story {
  position: relative;
  margin-top: var(--gap-head);
}
/* invisible observer targets added by rood-home.js (see there) */
.rh-story-edge {
  position: absolute;
  left: 0;
  width: 1px;
  height: 60vh;
  pointer-events: none;
}
.rh-story-edge--start { bottom: 100%; }
.rh-story-edge--end { top: 100%; }
.rh-steps {
  display: grid;
  gap: clamp(56px, 8vw, 96px);
}
.rh-step { text-align: center; }
.rh-step-img {
  --sw: min(52vw, 220px);
  width: var(--sw);
  height: auto;
  margin: calc(var(--sw) * -0.161) auto 0;
}
.rh-step-text { margin-top: 8px; }
.rh-step-n {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--rood);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-rood);
}
.rh-step h3 {
  margin-top: 4px;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.rh-step-text p:last-child {
  margin: 12px auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 30ch;
  text-wrap: pretty;
}
.rh-story-media { display: none; }

@media (min-width: 768px) and (min-height: 560px) {
  /* Without JS: three steps side by side, each with its own screen. */
  .rh-story:not(.is-sticky) .rh-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .rh-story:not(.is-sticky) .rh-step-img {
    --sw: min(100%, 300px);
    margin-top: 0;
  }

  /* With JS (rood-home.js adds .is-sticky): the phone stays in view and
     swaps screens as each step reaches it. Each step is a band of --sh with
     its text centred in it; the list is padded so the first text is level
     with the phone when the phone first sticks and the last one when it
     lets go. A step turns active when its band reaches the phone's centre,
     so the incoming text is at most half a band (about 24vh) away. */
  .rh-story.is-sticky {
    --ph: min(calc(100vh - var(--nav-h) - 112px), 720px, 72vw);
    --sh: clamp(300px, 48vh, 460px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(40px, 7vw, 120px);
    max-width: 1000px;
    margin-inline: auto;
  }
  .rh-story.is-sticky .rh-steps {
    grid-column: 1;
    grid-row: 1;
    gap: 0;
    padding-block: max(0px, calc((var(--ph) - var(--sh)) / 2));
  }
  .rh-story.is-sticky .rh-step {
    min-height: var(--sh);
    display: flex;
    align-items: center;
    text-align: left;
  }
  .rh-story.is-sticky .rh-step-img { display: none; }
  .rh-story.is-sticky .rh-step-text {
    margin-top: 0;
    padding-left: clamp(24px, 3vw, 36px);
    border-left: 2px solid var(--border);
    opacity: 0.4;
    transition: opacity 450ms var(--ease), border-color 450ms var(--ease);
  }
  .rh-story.is-sticky .rh-step.is-active .rh-step-text {
    opacity: 1;
    border-left-color: var(--rood);
  }
  .rh-story.is-sticky .rh-step-text p:last-child { margin-inline: 0; }
  .rh-story.is-sticky .rh-story-media {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-h) + (100vh - var(--nav-h) - var(--ph)) / 2);
    height: var(--ph);
    aspect-ratio: 1172 / 2300;
  }
  .rh-story-phone {
    position: relative;
    height: 100%;
  }
  .rh-story-phone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 500ms var(--ease), transform 700ms var(--ease);
  }
  .rh-story-phone img.is-active {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Video ---------- */
#video { overflow-x: clip; }
.rh-film {
  /* the frame's own transparent margin already adds air above the phone */
  margin-top: calc(var(--gap-head) - clamp(240px, 76vw, 420px) * 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rh-video {
  --vw: clamp(240px, 76vw, 420px);
  position: relative;
  width: var(--vw);
  aspect-ratio: 1172 / 2300;
  margin-bottom: calc(var(--vw) * -0.1);
}
.rh-video::before {
  /* a faint warm glow, like the sunset in the film */
  content: "";
  position: absolute;
  inset: 8% -40% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 226, 0, 0.22), rgba(255, 226, 0, 0) 100%);
  pointer-events: none;
}
/* The frame image has a transparent screen; the video sits behind it in the
   screen rectangle, and the frame ignores pointer events so the native
   controls stay usable. */
.rh-video video,
.rh-video-poster,
.rh-video-play {
  position: absolute;
  /* 2026-10-21: 2 px bleed under the bezel on every side. Sitting exactly on the
     screen hole left a sub-pixel seam where the white page showed through
     (visible as thin white lines beside the dark 2.0 animation). */
  left: calc(12.543% - 2px);
  top: calc(9.652% - 2px);
  width: calc(75.17% + 4px);
  height: calc(83.17% + 4px);
  border-radius: 14.3% / 6.59%;
}
.rh-video video,
.rh-video-poster {
  object-fit: cover;
  background: #111;
}
.rh-video-poster { pointer-events: none; }
.rh-video-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* The play button covers the whole screen; the yellow circle is its face. */
.rh-video-play {
  z-index: 2;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rh-video-play-dot {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--rood);
  color: var(--on-rood);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px -10px rgba(204, 180, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 200ms var(--ease), background var(--t-fast);
}
.rh-video-play-dot svg { width: 38px; height: 38px; margin-left: 4px; }
.rh-video-play:hover .rh-video-play-dot { transform: scale(1.06); background: var(--rood-dark); }
.rh-video-play:active .rh-video-play-dot { transform: scale(0.97); }
.rh-video-len {
  position: absolute;
  left: 50%;
  top: calc(50% + 58px);
  transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.rood-home .rh-video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
.rh-video-play:focus-visible .rh-video-play-dot {
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--ink);
}
.rh-video video:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}
.rh-video.is-playing .rh-video-play,
.rh-video.is-playing .rh-video-poster { display: none; }

/* ---------- Cards ----------
   The four card types stand on the grey band like the phones in the hero:
   no containers, whole phones, a centred caption under each. 1024px and up:
   one row of four. 700px and up: two by two. Phones: a swipeable rail (the
   next phone peeks in, dots show the position). The section then ends in a
   full-width dark band for manual routes. */
.rh-cards.rh-section { padding-bottom: 0; }
.rh-types {
  margin-top: var(--gap-head);
  display: grid;
  gap: 72px clamp(24px, 3vw, 48px);
}
.rh-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* The image is a little wider than its column so the visible phone (82% of
   the image) fills it; the top margin cancels the transparent shadow margin
   above the phone (0.161 x image width; % margins resolve against the
   column width). */
.rh-tile-phone {
  --iw: calc(100% + 24px);
  order: -1;                           /* caption comes first in the markup */
  flex: none;
  width: var(--iw);
  max-width: none;
  height: auto;
  margin: calc(var(--iw) * -0.161) -12px calc(var(--iw) * -0.112 + 28px);
}
.rh-tile-copy { max-width: 20rem; }
.rh-tile-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rood-text);
}
.rh-tile-title {
  margin-top: 8px;
  font-size: clamp(1.375rem, 1rem + 0.7vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.rh-tile-text {
  margin-top: 10px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: balance;
}
/* 2 x 2 kept narrow so the phones stay about the size of the phone rail's */
@media (min-width: 700px) {
  .rh-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    margin-inline: auto;
  }
}
@media (min-width: 1024px) {
  .rh-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 32px;
    max-width: none;
  }
}
@media (max-width: 699px) {
  .rh-types {
    display: flex;
    gap: 20px;
    margin-inline: calc(var(--container-pad) * -1);
    /* top padding keeps the phones' shadows inside the scroll box */
    padding: 28px var(--container-pad) 4px;
    margin-top: calc(var(--gap-head) - 28px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-pad);
    scrollbar-width: none;
  }
  .rh-types::-webkit-scrollbar { display: none; }
  .rh-tile {
    flex: 0 0 min(66vw, 260px);
    scroll-snap-align: start;
  }
  .rh-tile-title { font-size: 1.375rem; }
  .rh-tile-text { font-size: 1rem; }
  /* a phone half off-screen must not wait for the reveal observer */
  .js-motion .rh-tile.reveal { opacity: 1; transform: none; }
}

/* Manual routes: edge-to-edge dark band. The truck card leans in from the
   bottom edge and is cut above the app's tab bar, which starts 0.296 x width
   above the image bottom; the 6deg lean lifts the phone's left edge by about
   another 0.043 x width. 0.365 x width off the bottom leaves some margin and
   hides the route's end dot rather than halving it. */
.rh-haul {
  position: relative;
  isolation: isolate;
  margin-top: var(--section-y);
  background: #1d1d1f;
  color: #f5f5f7;
  overflow: clip;
}
.rh-haul::before {
  /* a low, warm glow behind the truck, like the sunset on the card */
  content: "";
  position: absolute;
  z-index: -1;
  right: -5%;
  bottom: -35%;
  width: 70%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(255, 226, 0, 0.2), rgba(255, 226, 0, 0));
  pointer-events: none;
}
.rh-haul-grid {
  --hp: min(64vw, 280px);
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: clamp(72px, 3rem + 4vw, 128px);
}
.rh-haul-copy { max-width: 32rem; }
.rh-haul .rh-tile-label { color: var(--rood); }     /* 14:1 on #1d1d1f */
.rh-haul-title {
  margin-top: 10px;
  font-size: clamp(2.25rem, 1.1rem + 3.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.03;
  color: #fff;
  text-wrap: balance;
}
.rh-haul .rh-tile-text {
  margin-top: 18px;
  color: #a1a1a6;                                    /* 6.9:1 on #1d1d1f */
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}
.rh-tile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(32px, 1.5rem + 2vw, 56px);
  color: #a1a1a6;
  font-size: 1rem;
  font-weight: 500;
}
.rh-stat-route { color: #f5f5f7; font-weight: 600; }
.rh-stat-num {
  margin: 6px 0 4px;
  font-size: clamp(3.25rem, 1.5rem + 5vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--rood);
  font-variant-numeric: tabular-nums;
}
.rh-haul-media {
  align-self: end;
  margin-top: 48px;
}
.rh-haul-phone {
  width: var(--hp);
  height: auto;
  margin-bottom: calc(var(--hp) * -0.365);
  transform: rotate(6deg);
  transform-origin: 50% 100%;
}
/* centred column on phones: the lean swings the top right, so pull it back */
@media (max-width: 699px) {
  .rh-haul-phone { transform: translateX(-7%) rotate(6deg); }
}
@media (min-width: 700px) {
  .rh-haul-grid {
    --hp: clamp(280px, 28vw, 400px);
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(40px, 6vw, 96px);
    justify-items: start;
    align-items: end;
    text-align: left;
  }
  .rh-haul-copy { padding-bottom: clamp(72px, 3rem + 4vw, 128px); }
  .rh-tile-stat { align-items: flex-start; }
  .rh-haul-media { margin: 0 clamp(0px, 3vw, 48px) 0 0; }
}
/* narrow tablets: a smaller phone leaves the heading two clean lines */
@media (min-width: 700px) and (max-width: 899px) {
  .rh-haul-grid { --hp: 240px; column-gap: 32px; }
}

/* position dots under the rail (added by rood-home.js) */
.rh-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.rh-dots span {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #c7c7cc;
  transition: width 300ms var(--ease), background 300ms var(--ease);
}
.rh-dots span.is-active {
  width: 22px;
  background: var(--text);
}
@media (min-width: 700px) {
  .rh-dots { display: none; }
}

/* ---------- Privacy ----------
   Phones: statement, phone, then the details, all centred like the rest of
   the page. 700px and up: text on the left, phone on the right. */
.rh-privacy {
  --pw: min(56vw, 260px);
  display: grid;
  grid-template-areas: "head" "media" "body";
  justify-items: center;
  text-align: center;
}
.rh-privacy-head { grid-area: head; }
.rh-privacy-media { grid-area: media; }
.rh-privacy-body { grid-area: body; }
.rh-privacy .rh-h2 {
  margin-top: 16px;
  max-width: 11ch;
  margin-inline: auto;
}
.rh-privacy .rh-lede {
  margin: 24px auto 0;
  color: var(--text);
  max-width: 30em;
}
.rh-privacy-media img {
  width: var(--pw);
  height: auto;
  /* cancel most of the transparent shadow margin */
  margin: calc(var(--pw) * -0.161 + 40px) auto calc(var(--pw) * -0.112 + 32px);
}
.rh-p {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34em;
  margin-inline: auto;
  text-wrap: pretty;
}
.rh-privacy-body .rh-p:first-child { margin-top: 0; }
.rh-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 28px;
}
.rh-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 11px;
  font-weight: 600;
  color: var(--rood-text);
}
.rh-links a::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transition: transform var(--t-fast);
}
.rh-links a:hover { text-decoration: underline; text-decoration-color: var(--rood-dark); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 439px) {
  .rh-links { gap: 0 14px; font-size: 1rem; }   /* one row from 360px */
}
.rh-links a:hover::after { transform: translateX(2px); }

@media (min-width: 700px) {
  .rh-privacy {
    --pw: min(100%, 360px);
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    grid-template-areas: "head media" "body media";
    column-gap: clamp(40px, 8vw, 120px);
    justify-items: stretch;
    text-align: left;
  }
  .rh-privacy-head { align-self: end; }
  .rh-privacy-body { align-self: start; padding-top: 16px; }
  .rh-privacy-media { align-self: center; }
  .rh-privacy .rh-h2,
  .rh-privacy .rh-lede,
  .rh-p { margin-inline: 0; }
  .rh-privacy .rh-lede { margin-top: 28px; }
  .rh-p { max-width: 56ch; }
  .rh-links { justify-content: flex-start; }
  .rh-privacy-media img { margin: 0 auto; }
}

/* ---------- Closing: echoes the hero ---------- */
.rh-closing {
  padding-top: var(--section-y);
  text-align: center;
  overflow: clip;
}
.rh-closing-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rh-closing .rh-h2 {
  max-width: 16ch;
}
/* Each sentence stays whole (otherwise "No ads. First / 2 cards free." at
   360px and "No sign-up. No / ads." at 600px). Below 360px the heading
   steps down a size so "Free to record." still fits the column. */
.rh-phrase { white-space: nowrap; }
@media (max-width: 359px) {
  .rh-closing .rh-h2 { font-size: 2.25rem; }
}
.rh-closing-note { margin: 16px auto 0; max-width: 34rem; }
.rh-closing .rh-badges { margin-top: clamp(28px, 1.5rem + 1vw, 40px); }

/* Three phones rising from the bottom edge of the band. */
.rh-peek {
  --pw: min(340px, 44vw);
  display: grid;
  justify-items: center;
  align-items: start;
  height: calc(var(--pw) * 0.9);
  margin-top: clamp(24px, 0.5rem + 2.5vw, 56px);
  overflow: hidden;
  pointer-events: none;
}
.rh-peek-phone {
  grid-area: 1 / 1;
  width: var(--pw);
  height: auto;
  transform-origin: 50% 0;
}
.rh-peek-phone--c { position: relative; z-index: 2; }
/* the baked-in shadow is cut off at the image's top edge; fade it out
   (the phone body starts at 8.2% of the height, well below this) */
.rh-shot-phone,
.rh-peek-phone {
  -webkit-mask-image: linear-gradient(transparent, #000 5%);
  mask-image: linear-gradient(transparent, #000 5%);
}
.rh-peek-phone--l { transform: translate(-58%, 12%) scale(0.84); }
.rh-peek-phone--r { transform: translate(58%, 12%) scale(0.84); }

/* ---------- Footer ---------- */
.rood-home .site-footer {
  border-top: 0;
  padding-block: 56px 40px;
}
.rood-home .footer-brand img {
  height: 3.25rem;
  width: auto;
  margin: -0.75rem -0.3rem -0.5rem;
}
.rood-home .footer-links { gap: 0 20px; margin-top: 0; }
.rood-home .footer-links a,
.rood-home .footer-link-btn { padding-block: 11px; }  /* 44px touch targets */
.rh-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.rh-cue-link {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.rh-cue-link:hover { color: var(--text); }

/* ---------- Focus ----------
   The outline follows each element's own border-radius. */
.rood-home :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media print {
  .rh-hero-copy > *, .rh-shot, .rh-shot-phone {
    animation: none !important;
  }
}
