/* Reps — home page (EN /index.html and ES /es/index.html) and its beta form.
 *
 * Loaded after styles.css, which every page shares; everything here is scoped
 * to body.home so the other pages keep their look. The layout follows the
 * Figma file "Reps — Website" (New site page): a photo hero with the email
 * field, one section with the app on an iPhone, a photo closing with the
 * field again, the footer. The form opens over the page after the email is
 * saved (body.joining). Colours are the app's (styles.css :root). Lime is
 * only the primary button and what is chosen; no outlines (a field gets one
 * only while typing or on an error). */

body.home {
  --page: 1200px;
  --gutter: 24px;
  background: var(--bg);
  overflow-x: hidden;
}

/* styles.css styles every button, h1 and h2 for the older pages; here each
 * one is drawn by its own class. */
body.home button {
  width: auto; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; color: inherit; font: inherit; line-height: inherit; filter: none;
}
body.home h1, body.home h2 { margin: 0; padding: 0; border: 0; }
body.home a { text-underline-offset: 3px; }

.container { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons and fields ───────────────────────────────────────────────── */

body.home .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px; border-radius: 12px;
  font-size: 17px; font-weight: 600; line-height: 1.2; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
body.home .btn.primary { background: var(--accent); color: var(--on-accent); }
body.home .btn.secondary { background: var(--surface); color: var(--text); }
body.home .btn.link { background: none; color: var(--accent); }
body.home .btn.block { display: flex; width: 100%; }
@media (hover: hover) {
  body.home .btn.primary:hover { filter: brightness(1.06); }
  body.home .btn.secondary:hover { background: var(--surface-2); }
  body.home .btn.link:hover { text-decoration: underline; }
}
body.home .btn.primary:active { filter: brightness(0.92); }
body.home .btn:disabled { opacity: 0.55; cursor: default; filter: none; }
body.home .btn:focus-visible,
body.home .chip:focus-visible,
body.home .text-link:focus-visible,
body.home .icon-btn:focus-visible,
body.home .app-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A field with its label inside: the label sits in the middle until there is
 * something in the field or it is being typed in, then moves to the top. */
.field { position: relative; }
body.home .field input,
body.home .field select {
  display: block; width: 100%; height: 56px; margin: 0;
  padding: 22px 16px 6px; border: 1px solid transparent; border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-size: 17px; font-family: inherit; line-height: 1.3;
}
body.home .field select {
  padding-right: 44px; -webkit-appearance: none; appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ebebf5' stroke-opacity='.56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 12px 8px;
}
body.home .field select:invalid { color: var(--muted); }
body.home .field select option { color: var(--text); background: var(--surface); }
body.home .field label {
  position: absolute; left: 17px; top: 50%; margin: 0;
  transform: translateY(-50%); transform-origin: left top;
  font-size: 17px; line-height: 1.2; color: var(--muted);
  pointer-events: none; transition: top .15s ease, transform .15s ease, font-size .15s ease;
}
body.home .field input:focus + label,
body.home .field input:not(:placeholder-shown) + label,
body.home .field select + label {
  top: 9px; transform: none; font-size: 12.5px; color: var(--text-2);
}
body.home .field input::placeholder { color: transparent; }
body.home .field input:focus,
body.home .field select:focus { outline: none; border-color: var(--accent); }
body.home .field input[aria-invalid="true"],
body.home .field select[aria-invalid="true"] { border-color: var(--danger); }
body.home .field input:-webkit-autofill,
body.home .field input:-webkit-autofill:hover,
body.home .field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--text); }

/* ── Nav (on the hero; the form has its own) ──────────────────────────── */

.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav .brand { display: block; line-height: 0; }
/* The wordmark's link reaches past the letters (a click on the edge of the
 * word still goes home); the margin gives the padding back, so nothing moves. */
.nav .brand, .site-foot .brand { padding: 12px 16px; margin: -12px -16px; }
.nav .brand svg { display: block; height: 22px; width: auto; }
.nav .lang { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; padding: 8px 0; }
@media (hover: hover) { .nav .lang:hover { text-decoration: underline; } }

/* ── Photo sections (hero, closing) ───────────────────────────────────── */

/* The photo moves slower than the page — see "Photos that scroll slower" at
 * the end: the browser's own scroll-linked animation, never script. */
.photo { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; pointer-events: none; }

.hero {
  position: relative; overflow: hidden;
  min-height: 640px; height: 92vh; height: 92svh; max-height: 960px;
  display: flex; flex-direction: column;
}
.hero .photo img { object-position: 62% 72%; }
.hero .shade {
  background:
    linear-gradient(to bottom, rgba(7, 11, 20, 0.55) 0, rgba(7, 11, 20, 0) 200px),
    linear-gradient(to top, var(--bg) 0, rgba(7, 11, 20, 0) 240px),
    linear-gradient(to right, rgba(7, 11, 20, 0.9) 0%, rgba(7, 11, 20, 0.74) 40%, rgba(7, 11, 20, 0.3) 66%, rgba(7, 11, 20, 0.12) 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero .hero-body { flex: 1; display: flex; align-items: center; padding-bottom: 48px; }
.hero-copy { max-width: 700px; }
body.home .hero h1 {
  font-size: 68px; line-height: 1.06; letter-spacing: -0.025em; font-weight: 700;
  color: var(--text); text-wrap: balance;
}
body.home .hero .sub { margin: 24px 0 0; max-width: 520px; font-size: 19px; line-height: 1.58; color: var(--text-2); text-wrap: pretty; }

/* The email form, in the hero and again in the closing. */
.join { margin-top: 40px; }
.join-row { display: flex; gap: 12px; max-width: 520px; }
.join-row .field { flex: 1; min-width: 0; }
.join-row .btn { flex: none; }
.join-note { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.join-note:empty { display: none; }
.join-note.error { color: var(--danger-text); }
.join-note.warn { color: var(--warn); }
.join-note .text-link { color: var(--text); font-weight: 600; }
.platforms { margin: 16px 0 0; font-size: 15px; color: var(--muted); }

.closing {
  position: relative; overflow: hidden;
  padding: 168px 0;
  text-align: center;
}
.closing .photo img { object-position: 50% 45%; }
.closing .shade {
  background:
    linear-gradient(to bottom, var(--bg) 0, rgba(7, 11, 20, 0) 180px),
    linear-gradient(to top, var(--bg) 0, rgba(7, 11, 20, 0) 260px),
    rgba(7, 11, 20, 0.58);
}
.closing .container { position: relative; z-index: 1; }
body.home .closing h2 { font-size: 52px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
body.home .closing .sub { margin: 16px auto 0; max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.closing .join { margin-top: 36px; }
.closing .join-row { margin: 0 auto; }
.closing .join-note { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── The app on an iPhone ─────────────────────────────────────────────── */

/* On a computer the phone takes its size from the window's height, so the
 * tabs, the caption and the whole phone fit on one screen (250 = the tabs,
 * the caption, their gaps and some air; 0.4825 = the phone's width per point
 * of height, 440 / 912). */
.app {
  --w: clamp(250px, calc((100vh - 250px) * 0.4825), 374px); --gap: calc(var(--w) * 0.5); --dim: 0.28;
  position: relative; overflow: hidden; padding: 56px 0 72px; text-align: center;
}
/* Words, not pills: the chosen one turns white and a lime line slides under
 * it (home.js places it; without script the white word still says which). */
.app-tabs { position: relative; display: inline-flex; gap: 32px; padding-bottom: 10px; }
body.home .app-tab {
  padding: 6px 0;
  font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--muted); cursor: pointer;
  transition: color .2s;
}
body.home .app-tab[aria-selected="true"] { color: var(--text); }
.tab-mark {
  position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent);
  width: var(--mw, 0px); transform: translateX(var(--mx, 0px));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), width .35s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) { body.home .app-tab:hover { color: var(--text); } }
body.home .app-caption {
  margin: 24px auto 32px; padding: 0 var(--gutter);
  font-size: 44px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance;
}
/* Every phone stands at its place round the chosen one (--o, in places),
 * dimmed with its distance and gone from two places out. home.js moves them:
 * one number springs from screen to screen and each phone follows it, so a
 * phone only changes sides where nothing shows. The page writes the first
 * places, so it reads right with no script. */
.app-stage { position: relative; touch-action: pan-y; }
.app-track { position: relative; height: calc(var(--w) * 912 / 440); }
.app-slide {
  position: absolute; top: 0; left: 50%; width: var(--w); margin: 0 0 0 calc(var(--w) / -2);
  transform: translateX(calc(var(--o, 0) * (var(--w) + var(--gap))));
  opacity: var(--dim); cursor: pointer; will-change: transform, opacity;
}
.app-slide.is-active { opacity: 1; cursor: default; }
.app-slide.is-far { opacity: 0; pointer-events: none; }
body.home .app-arrow {
  position: absolute; top: 50%; z-index: 1; width: 48px; height: 48px; margin-top: -24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
}
body.home .app-arrow svg { width: 22px; height: 22px; }
body.home .app-arrow:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) { body.home .app-arrow:not(:disabled):hover { background: var(--surface-2); } }
.app-arrow.prev { left: calc(50% - var(--w) / 2 - var(--gap) / 2 - 24px); }
.app-arrow.next { left: calc(50% + var(--w) / 2 + var(--gap) / 2 - 24px); }

/* An iPhone 17 Pro drawn to scale (440 × 912 with its buttons; the Figma
 * component "Device/iPhone 17 Pro"): metal band, black bezel, the screen with
 * its corners, the Dynamic Island. Sizes are fractions of --w. */
.device {
  position: relative; width: var(--w); aspect-ratio: 440 / 912;
  padding: calc(var(--w) * 0.0091); border-radius: calc(var(--w) * 0.1727);
  background: linear-gradient(135deg, #6b7ca0 0%, #3c4a68 30%, #28324a 70%, #43527a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.device .bezel { height: 100%; padding: calc(var(--w) * 0.0273); border-radius: calc(var(--w) * 0.1636); background: #050608; }
.device .screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.1364); background: var(--bg); }
.device .screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.device .screen::after {
  content: ''; position: absolute; top: calc(var(--w) * 0.025); left: 50%;
  width: calc(var(--w) * 0.2818); height: calc(var(--w) * 0.0818); transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.device .key { position: absolute; width: calc(var(--w) * 0.0136); border-radius: 2px; background: linear-gradient(to right, #56668a, #2a3550); }
.device .key.a { left: calc(var(--w) * -0.0068); top: 21.5%; height: 3.7%; }
.device .key.v1 { left: calc(var(--w) * -0.0068); top: 28.7%; height: 6.8%; }
.device .key.v2 { left: calc(var(--w) * -0.0068); top: 37.1%; height: 6.8%; }
.device .key.s { right: calc(var(--w) * -0.0068); top: 31.4%; height: 11.2%; }

/* ── Footer ───────────────────────────────────────────────────────────── */

/* No rule above it on the home page: the closing photo fades into it. */
.site-foot { padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
.site-foot .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-foot .row + .row { margin-top: 28px; }
.site-foot .brand svg { display: block; height: 22px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot .row:last-child a { color: var(--muted); }
@media (hover: hover) { .site-foot a:hover { color: var(--text); text-decoration: underline; } }
.site-foot .ig { display: inline-flex; align-items: center; gap: 6px; }
.site-foot .ig svg { width: 16px; height: 16px; }

/* ── The form (after the email): over the page ────────────────────────── */

body.joining .landing { display: none !important; }
/* The footer stays under the form: Privacy and Terms within reach while it
 * asks for a name, an age and a country. A rule keeps it off the answers. */
body.joining .site-foot { margin-top: 24px; border-top: 1px solid var(--border); }
.join-view .nav { height: 72px; }
body.home .icon-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
}
body.home .icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { body.home .icon-btn:hover { background: var(--surface-2); } }

.join-steps { max-width: 480px; margin: 0 auto; padding: 16px var(--gutter) 96px; }
.join-steps .topline { display: flex; align-items: center; gap: 12px; height: 40px; }
.join-steps .topline .icon-btn { flex: none; width: 36px; height: 36px; }
.join-steps .segs { flex: 1; display: flex; gap: 6px; }
.join-steps .segs i { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-2); transition: background-color .3s; }
.join-steps .segs i.on { background: var(--accent); }
.join-steps .count { flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); }
.join-steps .topline .cancel { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 8px 0; cursor: pointer; }
.join-steps .topline .cancel:hover { color: var(--text); }

.join-step { padding-top: 24px; }
.join-step.enter { animation: step-in .22s ease-out both; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.home .step-title { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
.step-title:focus { outline: none; }
.join-step .q { margin-top: 28px; }
.join-step .q-label { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.join-step .follow { margin-top: 12px; }
.join-step .follow.appear { animation: step-in .2s ease-out both; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips.list { grid-template-columns: 1fr; }
.chips:not(.list) > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.home .chip {
  position: relative; display: flex; align-items: center; min-height: 52px; padding: 12px 40px 12px 16px;
  border-radius: 12px; background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer;
  transition: background-color .12s, color .12s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
@media (hover: hover) { body.home .chip:hover { background: var(--surface-2); } }
body.home .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
/* The chosen one is its wash, its ink and a tick; the tick's room is kept
 * either way, so choosing never reflows the words. */
body.home .chip[aria-pressed="true"]::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
body.home .chip.dim { opacity: 0.4; }

.join-step .field-error { margin: 14px 0 0; font-size: 14px; color: var(--danger-text); }
.join-step .field-error:empty { display: none; }
.join-step .next { margin-top: 28px; }
.join-step .note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--warn); }
.join-step .note:empty { display: none; }
.join-step .note.ok { color: var(--text-2); }
.join-steps .status { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.join-steps .status:empty { display: none; }
.join-steps .status.error { padding: 12px 14px; border-radius: 12px; background: rgba(255, 69, 58, 0.12); color: #ff8a80; }

body.home .text-link {
  display: inline; padding: 0; font-size: 15px; color: var(--text-2); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px;
}
@media (hover: hover) { body.home .text-link:hover { color: var(--text); } }

/* The done screen. */
.join-step.done { padding-top: 32px; }
.success {
  width: 88px; height: 88px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.success svg { width: 44px; height: 44px; }
body.home .done-title { margin-top: 28px; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.done-title:focus { outline: none; }
.done-body { margin: 12px 0 0; font-size: 19px; line-height: 1.5; color: var(--text-2); }
.done-body strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.done-actions { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.share-status { margin: 0; font-size: 14px; color: var(--text-2); }
.share-status:empty { display: none; }
.share-status input { width: 100%; margin-top: 6px; }
.call-box { padding: 18px; border-radius: 16px; background: var(--surface); text-align: left; }
.call-box p { margin: 0; font-size: 16px; line-height: 1.45; }
.call-box .call-thanks { font-weight: 600; }
.call-box .call-thanks:focus { outline: none; }
.call-box .field { margin-top: 14px; }
body.home .call-box .field input { background: var(--surface-2); }
body.home .call-box .field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset; }
.call-box .fine { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.call-box .field-error { margin: 8px 0 0; font-size: 14px; color: var(--danger-text); }
.call-box .field-error:empty { display: none; }
.call-box .phone-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.done-fix { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.done-note { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.done-note.warn { color: var(--warn); }
.insta { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-size: 15px; color: var(--text-2); text-decoration: none; }
.insta svg { width: 20px; height: 20px; }
@media (hover: hover) { .insta:hover { color: var(--text); text-decoration: underline; } }

/* ── Phone and narrow screens ─────────────────────────────────────────── */

@media (max-width: 960px) {
  .app { --w: clamp(240px, calc((100vh - 250px) * 0.4825), 330px); --gap: calc(var(--w) * 0.36); }
  body.home .hero h1 { font-size: 56px; }
}

@media (max-width: 640px) {
  body.home { --gutter: 20px; }
  .nav { height: 56px; }
  .nav .brand svg { height: 18px; }
  .nav .lang { font-size: 14px; }

  /* Shorter than the screen on purpose: iOS 26 Safari counts the room under
   * its own bars in the viewport's height, and on arrival its bottom toolbar
   * floats over the last 80-odd points of the page — at 90svh it sat on the
   * Join button. At 76svh the form ends above it with the bars out. */
  .hero { min-height: 560px; height: 76vh; height: 76svh; max-height: 760px; }
  .hero .photo img { object-position: 50% 50%; }
  /* The photo starts in the canvas colour, which is what Safari 26 paints
   * behind its own top bar (it ignores theme-color), so the bar and the photo
   * meet without a seam. The fade is the photo's own, not the section's: the
   * photo scrolls at half speed, and iOS shows what is just above the page
   * under its status bar, so a fade fixed to the section let the photo's top
   * edge slide out of it as a hard line after a small scroll. */
  .hero .photo::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 120px;
    background: linear-gradient(to bottom, var(--bg) 0, rgba(7, 11, 20, 0.3) 64px, rgba(7, 11, 20, 0) 120px);
  }
  .hero .shade {
    background:
      linear-gradient(to bottom, rgba(7, 11, 20, 0.55) 0, rgba(7, 11, 20, 0) 200px),
      linear-gradient(to bottom, rgba(7, 11, 20, 0) 32%, rgba(7, 11, 20, 0.82) 60%, var(--bg) 100%),
      rgba(7, 11, 20, 0.28);
  }
  .hero .hero-body { align-items: flex-end; padding-bottom: 36px; }
  body.home .hero h1 { font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; }
  body.home .hero .sub { margin-top: 12px; font-size: 15.5px; line-height: 1.5; }
  .join { margin-top: 22px; }
  .join-row { flex-direction: column; max-width: none; gap: 10px; }
  .join-row .btn { width: 100%; }
  /* A smaller form on a phone: 50 tall, still 16 px type so iOS doesn't zoom in. */
  body.home .join .field input { height: 50px; padding: 19px 14px 5px; font-size: 16px; }
  body.home .join .field label { left: 15px; font-size: 16px; }
  body.home .join .field input:focus + label,
  body.home .join .field input:not(:placeholder-shown) + label { top: 7px; font-size: 12px; }
  body.home .join .btn { min-height: 50px; font-size: 16px; }
  .platforms { margin-top: 12px; text-align: center; font-size: 13px; }

  .app { --w: 286px; --gap: 20px; --dim: 0.4; padding: 72px 0 72px; }
  /* Five labels: each as wide as its word, sharing the row; on the narrowest
   * phones the row scrolls sideways instead of squeezing a word. */
  .app-tabs {
    display: flex; gap: 18px; width: max-content; max-width: calc(100% - 2 * var(--gutter));
    margin: 0 auto; overflow-x: auto; scrollbar-width: none;
  }
  .app-tabs::-webkit-scrollbar { display: none; }
  body.home .app-tab { flex: none; padding: 6px 0; font-size: 15px; white-space: nowrap; }
  body.home .app-caption { margin: 28px auto 28px; font-size: 32px; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
  .app-arrow { display: none !important; }

  .closing { padding: 112px 0; }
  body.home .closing h2 { font-size: 30px; line-height: 1.18; }
  body.home .closing .sub { font-size: 15.5px; line-height: 1.5; }
  .closing .join { margin-top: 22px; }

  .site-foot { padding: 40px 0 48px; }
  .site-foot .row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-foot nav { flex-direction: column; align-items: flex-start; gap: 14px; font-size: 16px; }
  .site-foot .row:last-child nav { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; }

  .join-steps { padding-top: 8px; }
  body.home .step-title { font-size: 28px; }
  body.home .done-title { font-size: 30px; }
  .done-body { font-size: 17px; }
}

@media (max-width: 360px) {
  body.home { --gutter: 16px; }
  body.home .hero h1 { font-size: 29px; }
  body.home .app-caption { font-size: 28px; }
  body.home .closing h2 { font-size: 27px; }
  .app { --w: 260px; }
  body.home .app-tab { font-size: 14px; }
}

/* ── Photos that scroll slower than the page ──────────────────────────── */

/* The browser moves them in step with the scroll itself (a scroll-linked
 * animation): no script runs per frame, so nothing trails behind a fast
 * flick or jumps at the bounce at either end. Browsers without it, and anyone
 * with Reduce motion, see the photo standing still. The hero's photo goes at
 * half the page's speed through the first screen; the closing photo travels
 * 25vh either way while its section crosses the screen, inside a box 25vh
 * taller at each end, so its edge never shows. (1ms first: a browser that
 * knows the timeline but not "auto" still spreads the animation over it.)
 * Only with a mouse or trackpad: on iPhone Safari a filmed scroll dropped to
 * 30 fps in 29 places, and while its toolbars grow and shrink the photo slid
 * against the page. Touch screens keep the photo still, as most sites do. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .hero .photo {
      will-change: transform;
      animation-name: photo-hero; animation-duration: 1ms; animation-duration: auto;
      animation-timing-function: linear; animation-fill-mode: both;
      animation-timeline: scroll(root block); animation-range: 0 100vh;
    }
    .closing { view-timeline: --closing block; }
    .closing .photo {
      top: -25vh; bottom: -25vh; will-change: transform;
      animation-name: photo-closing; animation-duration: 1ms; animation-duration: auto;
      animation-timing-function: linear; animation-fill-mode: both;
      animation-timeline: --closing; animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes photo-hero { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 50vh, 0); } }
@keyframes photo-closing { from { transform: translate3d(0, -25vh, 0); } to { transform: translate3d(0, 25vh, 0); } }

@media (prefers-reduced-motion: reduce) {
  .join-steps .segs i, .tab-mark { transition: none; }
  .join-step.enter, .join-step .follow.appear { animation: none; }
  body.home .field label { transition: none; }
}
