@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url("/fonts/pjs-400.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 500; font-display: swap; src: url("/fonts/pjs-500.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url("/fonts/pjs-600.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url("/fonts/pjs-800.woff2") format("woff2"); }

/* The app's own colors (the Mylo app's app/globals.css): black, its blue and its gold. Dark by default, light when
   the phone is. The map is drawn in the same few colors: water is the page, land is one step up. */
:root {
  --bg: #000;
  --raise: #121212;
  --line: #2a2a2a;
  --hover: #444;
  --text: #fff;
  --muted: #9a9a9a;
  --blue: #0070e0;
  --blue-down: #0066cc;
  --blue-text: #0a84ff;
  --blue-soft: rgba(0, 112, 224, .18);
  --gold: #e8a317;
  --gold-soft: rgba(232, 163, 23, .22);
  --land: #0f1114;
  --land-edge: #343a42;
  --water-line: #1d2a3a;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5f0;
    --raise: #efece5;
    --line: #dcd8cf;
    --hover: #b5b0a5;
    --text: #121212;
    --muted: #5c5a55;
    --blue-down: #005fbf;
    --blue-text: #0062c4;
    --blue-soft: rgba(0, 112, 224, .12);
    --land: #e9e5dc;
    --land-edge: #cfc9bc;
    --water-line: #c9d6e2;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jakarta", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, p, ul, ol, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 10px; }
.wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-weight: 600; font-size: 32px; letter-spacing: -0.045em; text-transform: lowercase;
  text-decoration: none; line-height: 1;
}
.top-mail { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-mail:hover { color: var(--text); }

/* The stage. The typed line is the loudest thing on the page; everything else stays quiet. */
.stage { padding-top: clamp(28px, 5vw, 64px); }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.play {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  align-content: center;
  margin-top: 26px;
}

.ask-label { color: var(--muted); font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.ask {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  min-height: 2.1em;
  text-wrap: balance;
}
.caret {
  display: inline-block; width: .06em; height: .9em; margin-left: .08em; vertical-align: -0.08em;
  background: var(--blue-text); border-radius: 2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.play.done .caret { display: none; }

.reply-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 30px; }
.m {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.04em;
}
.reply { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; max-width: 24em; padding-top: 4px; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-left: 48px; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; color: var(--text);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.chips li.picked { border-color: var(--blue-text); background: var(--blue-soft); transform: scale(1.03); }

.routing { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-left: 48px; color: var(--muted); font-size: 16px; font-weight: 500; }
.sweep { position: relative; flex: none; width: 46px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sweep::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); border-radius: 3px; transform: translateX(-120%); }
.routing.go .sweep::after { animation: sweep 1.1s var(--ease) 2; }
.routing.go { color: var(--text); }
@keyframes sweep { to { transform: translateX(280%); } }

/* Steps of the loop, driven by classes main.js sets */
.reply-row, .chips, .routing { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.play.s1 .reply-row, .play.s2 .reply-row, .play.s3 .reply-row, .play.s4 .reply-row { opacity: 1; transform: none; }
.play.s2 .chips, .play.s3 .chips, .play.s4 .chips { opacity: 1; transform: none; }
.play.s4 .routing { opacity: 1; transform: none; }
.play.out .talk > :not(.ask-label) { opacity: 0; transform: translateY(-6px); transition-duration: .4s; }
.play.out .ask { transition: opacity .4s var(--ease), transform .4s var(--ease); }

/* The map */
.map { width: 100%; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.land path { fill: var(--land); stroke: var(--land-edge); stroke-width: 1.4; }
.rivers path { fill: none; stroke: var(--water-line); stroke-width: 1.2; }
.labels text { fill: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .01em; opacity: .8; }
.labels .water { font-size: 11px; dominant-baseline: middle; }
.city text { fill: var(--muted); font-size: 14px; font-weight: 600; transition: fill .4s var(--ease); }
.city .ta-end { text-anchor: end; }
.city .pin { fill: var(--line); transition: fill .4s var(--ease); }
.city .ring { fill: none; stroke: var(--blue-text); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.city .halo { opacity: 0; transition: opacity .5s var(--ease); }
.glow-in { stop-color: #0a84ff; stop-opacity: .45; }
.glow-out { stop-color: #0a84ff; stop-opacity: 0; }
.city.lit .pin { fill: var(--blue-text); }
.city.lit text { fill: var(--text); }
.city.lit .halo { opacity: 1; }
.city.lit .ring { animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
.pros circle { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pros circle.on { animation: pro .6s var(--ease) forwards; }
@keyframes pro { 0% { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }

/* Headline and buttons */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
h1 { font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 20ch; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 40em; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -14px rgba(0, 112, 224, .9); }
.btn-primary:hover { background: var(--blue-down); }
.btn-quiet { border: 1px solid var(--line); color: var(--text); }
.btn-quiet:hover { border-color: var(--hover); }

/* How it works: three steps (a real sequence, so the numbers mean something) beside the app's job screen */
.how {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 112px); align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line);
}
.how-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.beats { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 34px; max-width: 34em; }
.beats li { position: relative; padding-left: 62px; }
.beats li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: -28px; width: 1px;
  background: linear-gradient(var(--line), transparent);
}
.n {
  position: absolute; top: -4px; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--blue-text); font-weight: 700; font-size: 15px;
}
.beats h3 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.beats p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* The phone. Drawn in the app's own dark colors whatever the page's mode, as the app looks at night. */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-wrap figcaption { color: var(--muted); font-size: 14px; }
.phone {
  --p-bg: #000; --p-raise: #1c1c1e; --p-line: #2c2c2e; --p-text: #fff; --p-muted: #98989d;
  width: 300px; padding: 11px; border-radius: 50px;
  background: linear-gradient(145deg, #2a2a2d, #0d0d0e 45%, #1f1f22);
  box-shadow: 0 0 0 1px #3a3a3d inset, 0 40px 80px -30px rgba(0, 112, 224, .45), 0 24px 60px -20px rgba(0, 0, 0, .7);
  transform: rotate(-2.5deg);
}
.screen {
  position: relative; height: 600px; border-radius: 40px; overflow: hidden;
  background: var(--p-bg); color: var(--p-text);
  display: flex; flex-direction: column; font-size: 14px; line-height: 1.4;
}
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px 6px; font-size: 13px; font-weight: 600; }
.island { width: 92px; height: 26px; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px #161616; margin-top: -2px; }
.sicons { display: flex; gap: 4px; align-items: center; }
.sicons i { display: block; width: 14px; height: 9px; border-radius: 2px; background: var(--p-text); opacity: .9; }
.sicons i:nth-child(1) { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.sicons i:nth-child(2) { width: 12px; height: 9px; border-radius: 9px 9px 0 0; }
.sicons i:nth-child(3) { width: 22px; height: 11px; border-radius: 3px; background: none; border: 1.5px solid var(--p-text); position: relative; }
.jhead { display: flex; align-items: center; gap: 12px; padding: 12px 18px 14px; border-bottom: 1px solid var(--p-line); }
.back { width: 10px; height: 10px; border-left: 2px solid #0a84ff; border-bottom: 2px solid #0a84ff; transform: rotate(45deg); margin-left: 4px; }
.jt { font-weight: 700; font-size: 16px; }
.js { color: var(--p-muted); font-size: 13px; }
.thread { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; }
.who { display: flex; gap: 10px; align-items: center; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3a3a3c; font-weight: 700; flex: none; }
.wn { font-weight: 700; }
.wc { display: flex; align-items: center; gap: 6px; color: var(--p-muted); font-size: 12.5px; }
.tick { width: 13px; height: 13px; border-radius: 50%; background: #0a84ff; position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 4px; top: 2.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; }
.msg.them { background: var(--p-raise); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: #0070e0; color: #fff; border-bottom-right-radius: 6px; }
.quote { border: 1px solid var(--p-line); border-radius: 18px; padding: 14px 16px 16px; background: linear-gradient(180deg, #111113, #0a0a0b); }
.qh { color: var(--p-muted); font-size: 12.5px; font-weight: 600; }
.qp { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-top: 2px; }
.qw { color: var(--p-muted); font-size: 13px; }
.qb { display: flex; justify-content: center; margin-top: 12px; padding: 10px; border-radius: 12px; background: #0070e0; color: #fff; font-weight: 700; }
.composer { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 22px; padding: 10px 10px 10px 16px; border-radius: 22px; border: 1px solid var(--p-line); color: var(--p-muted); }
.composer i { width: 26px; height: 26px; border-radius: 50%; background: #0070e0; }

/* Who it's for */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.side h2, .join h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.plain { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 12px; color: var(--muted); max-width: 32em; }
.plain li { padding-left: 22px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

/* Pros sign-up */
.join { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.join p { color: var(--muted); margin-top: 12px; max-width: 38em; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 18px; color: var(--blue-text); text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* The page for an address that isn't here: the stage, standing still */
.missing { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(64px, 12vw, 160px); }
.still .reply-row, .still .chips { opacity: 1; transform: none; }
.chips a { display: block; text-decoration: none; }
.chips li:has(a) { padding: 0; }
.chips li a { padding: 10px 18px; }
.chips li:has(a):hover { border-color: var(--hover); }

@media (max-width: 900px) {
  .play { grid-template-columns: 1fr; min-height: 0; }
  .map { max-width: 560px; }
  .how { grid-template-columns: 1fr; }
  .phone-wrap { justify-self: center; }
  .sides { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .top-mail { font-size: 14px; }
  .btn { width: 100%; }
  .ask { font-size: 2.1rem; }
  .phone { transform: none; }
  .chips, .routing { padding-left: 0; }
  .city text, .labels text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .caret, .city.lit .ring, .routing.go .sweep::after { animation: none; }
  .reply-row, .chips, .routing, .play.out .talk > :not(.ask-label), .chips li { transition: none; transform: none; opacity: 1; }
  .pros circle.on { animation: none; opacity: 1; }
}
