
:root {
  color-scheme: dark;
  --deep: #0b2a33;
  --water: #0f3b45;
  --bone: #efeae0;
  --terra: #e0a98f;
  --sage: #a3ad9f;
  --forest: #1b2820;
  --ink: #0b2a33;
  --soft: #cfd6cc;
  --L: clamp(280px, 24vw, 380px);
  --x4: calc(50vw - 1.75 * var(--L));
  --x5: calc(var(--x4) + var(--L));
  --x6: calc(var(--x5) + var(--L));
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --head: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Zen Kaku Gothic New", system-ui, sans-serif;
}
@media (max-width: 759px) {
  :root { --L: calc(100vw - 14px); --x4: 7px; }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--deep); overflow-x: clip; }
body {
  margin: 0; background: var(--deep); color: var(--bone);
  font-family: var(--body); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--terra); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 {
  font-family: var(--head); font-weight: 900; line-height: .93; letter-spacing: .004em;
  text-shadow: 0 2px 22px rgba(4, 18, 22, .55);
}
h2 { font-size: clamp(42px, 4.9vw, 78px); }

#pool { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; z-index: 0; display: block; pointer-events: none; }
main { position: relative; z-index: 1; }


/* text sits inside one lane, or across lanes on a solid slab that hides the rope */
.in5 { margin-left: var(--x5); width: var(--L); padding: 0 28px; }
.slab {
  margin-left: calc(var(--x5) + 14px); width: min(calc(2 * var(--L) - 28px), calc(100vw - var(--x5) - 34px));
  background: #082129; padding: 28px 30px 30px; box-shadow: 0 22px 50px rgba(2, 10, 13, .38);
}
.slab h1, .slab h2 { text-shadow: none; }

.fact { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.45; color: var(--soft); max-width: 38ch; margin-top: 14px; }
.src { font-size: 12.5px; line-height: 1.4; color: var(--sage); margin-top: 6px; letter-spacing: .01em; }

/* walls (drawn on the canvas, these only hold the space) */
.wall { height: 64px; position: relative; }
.deck { height: 92px; }
.mark {
  position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); top: 22px;
  display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 23px; letter-spacing: -.01em;
}
.mark svg { width: 38px; height: 26px; }

/* length 1 */
.hero { min-height: calc(76vh - 92px); min-height: calc(76svh - 92px); padding: clamp(36px, 8vh, 96px) 0 5vh; }
.hero h1 { font-size: clamp(46px, 5.6vw, 92px); max-width: 15ch; }
.dream { margin-top: clamp(22px, 3.6vh, 40px); display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: clamp(21px, 2.1vw, 32px); line-height: 1.25; }
.float { flex: none; width: .62em; height: .62em; border-radius: 50%; background: var(--terra); box-shadow: inset -3px -3px 0 rgba(11, 42, 51, .18); }
.dream-win { display: grid; overflow: hidden; flex: 1; min-width: 0; padding-bottom: 10px; }
.dream-win span { grid-area: 1 / 1; text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.say { margin-bottom: 9vh; }
.big { font-size: clamp(54px, 6.6vw, 112px); max-width: 11ch; }
.mid { margin-top: 22px; font-family: var(--head); font-weight: 700; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.04; color: var(--soft); }

/* sticky scene */
.scene { position: relative; }
html.mo .scene { height: var(--len); }
#l2 { --len: 175vh; }
.stage { padding: 9vh 0 8vh; }
html.mo .stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  padding: clamp(44px, 8vh, 88px) 0 4vh; display: flex; flex-direction: column;
}
.swap h2 { font-size: clamp(40px, 4.1vw, 64px); }
.sw-b { margin-top: 34px; }
html.mo .swap { display: grid; }
html.mo .swap > div { grid-area: 1 / 1; margin: 0; }
.lanes { margin-top: 26px; }
html.mo .lanes { position: relative; flex: 1; margin-top: 22px; }
.g-tag { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--sage); }
.vague { position: relative; display: inline-block; margin-top: 6px; font-family: var(--head); font-weight: 700; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; color: var(--sage); opacity: .55; }
.strike { position: absolute; left: -6px; right: -6px; top: 52%; height: 3px; background: var(--terra); transform-origin: 0 50%; }
.spec, .r-goal { font-family: var(--head); font-weight: 900; font-size: clamp(32px, 3.1vw, 50px); line-height: 1.04; }
.spec { margin-top: 14px; }
.spec .w, .r-goal .w { display: inline-block; }
.n { display: inline-block; background: var(--terra); color: var(--ink); padding: 0 .12em; line-height: 1.02; }
.g-job { padding: 18px 24px 0; }
.g-run { position: absolute; left: 24px; right: 24px; top: 0; }

.r-wrap { position: relative; height: 300px; overflow: hidden; margin: 22px 0 0 var(--x5); width: var(--L); }
#rA { height: 250px; margin-top: 0; }
.rl { position: absolute; left: 0; right: 0; top: 18px; bottom: 0; }
.mk { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.mk i { display: block; height: 1px; background: rgba(239, 234, 224, .4); }
.mk.lv0 i { height: 3px; background: rgba(239, 234, 224, .92); }
.mk.lv1 i { height: 2px; background: rgba(239, 234, 224, .55); }
.mk.fin i { height: 6px; background: var(--terra); }
.mk .lb { display: flex; gap: 10px; align-items: baseline; padding: 6px 24px 0; white-space: nowrap; font-size: 15px; color: var(--soft); }
.mk .lb b { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 19px; color: var(--bone); }
.mk.red i { background: var(--terra); height: 3px; }
.mk.red .lb b, .mk.red .lb span { color: var(--terra); }
.late { font-style: normal; }
.band { position: absolute; left: 0; right: 0; top: 0; background: rgba(232, 100, 76, .2); opacity: 0; }
.today {
  position: absolute; right: 18px; top: 0; transform: translateY(-50%);
  background: var(--bone); color: var(--ink); font-family: var(--head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: 14px; padding: 2px 8px;
}
.r-goal { position: absolute; left: 24px; right: 24px; top: 0; transform-origin: 0 0; will-change: transform; }
html.mo #rM, html.mo #rB, html.mo #rC { display: none; }
@media (min-width: 760px) {
  .lanes { display: grid; grid-template-columns: var(--L) var(--L); margin-left: var(--x5); }
  .lanes .r-wrap { margin-left: 0; grid-column: 1; }
  .g-job { grid-column: 2; grid-row: 1; }
  html.mo .lanes { display: block; margin-left: 0; }
  html.mo #rA { position: absolute; left: var(--x5); top: 0; bottom: 0; height: auto; margin: 0; }
  html.mo .g-job { position: absolute; left: var(--x6); top: 0; width: var(--L); }
}

/* length 3: the bad day becomes the if-then plan */
#l3 { padding: 8vh 0 9vh; }
.bad { margin-top: clamp(26px, 5vh, 48px); }
.day { margin-left: var(--x5); width: var(--L); }
.day i { display: block; height: 3px; background: var(--terra); }
.day .lb { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 7px 24px 0; font-size: 15px; color: var(--terra); }
.day .lb b { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 19px; }
.day .ran { font-weight: 700; }
#l3 .plaque { margin-top: 18px; }

/* if-then plan */
.plaque {
  margin-left: calc(var(--x5) + 14px); width: min(calc(2 * var(--L) - 28px), calc(100vw - var(--x5) - 34px));
  background: var(--bone); color: var(--ink); padding: 26px 30px 24px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.pl-day { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: #35525a; }
.chip { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; padding: 3px 9px; }
.pl-day .chip { background: var(--terra); color: var(--ink); }
.pl-if { margin-top: 16px; font-family: var(--head); font-weight: 900; font-size: clamp(40px, 4.2vw, 64px); line-height: .95; }
.pl-then { margin-top: 8px; font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; max-width: 24ch; }
.pl-note { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(11, 42, 51, .2); font-size: 15px; color: #2c4950; max-width: 48ch; }

/* check-ins and results board */
#score { position: relative; padding: 4vh 0 10vh; }
.sc { display: flex; align-items: center; margin-left: var(--x5); }
.sc-l { width: var(--L); padding: 0 28px; }
.sc-r { width: min(calc(1.9 * var(--L)), calc(100vw - var(--x6) - 20px)); padding: 0 28px; display: flex; flex-direction: column; gap: 16px; }
.sc-l h2 { font-size: clamp(40px, 3.6vw, 58px); }
.wa { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.wa-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sage); margin-bottom: 2px; }
.wa-h svg { width: 26px; height: 18px; color: var(--bone); }
.bub { padding: 9px 12px 7px; border-radius: 12px; font-size: 15px; line-height: 1.35; max-width: 92%; }
.bub b { display: block; font-size: 13px; color: var(--terra); }
.bub small { display: block; text-align: right; font-size: 11px; opacity: .6; margin-top: 1px; }
.bub.in { background: var(--forest); color: var(--bone); align-self: flex-start; border-top-left-radius: 3px; }
.bub.out { background: var(--bone); color: var(--ink); align-self: flex-end; border-top-right-radius: 3px; }
.board, .chart { background: #051014; border: 1px solid rgba(239, 234, 224, .14); box-shadow: 0 22px 50px rgba(2, 10, 13, .38); }
.board { padding: 4px 0 0; perspective: 600px; font-family: var(--head); text-transform: uppercase; }
.b-head, .b-row, .b-foot { display: grid; grid-template-columns: 4.6em 1fr 3.6em 18px; align-items: center; gap: 10px; padding: 0 14px; }
.b-head { height: 38px; font-weight: 700; font-size: 15px; letter-spacing: .08em; color: var(--terra); border-bottom: 2px solid rgba(224, 169, 143, .5); grid-template-columns: 1fr auto; }
.b-row { height: 36px; font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: .04em; border-bottom: 1px solid rgba(239, 234, 224, .08); color: var(--bone); }
.b-row .t, .b-foot .t { font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.b-row.it .s { color: var(--terra); }
.b-row.it .s em { font-style: normal; font-size: .7em; letter-spacing: .1em; background: var(--terra); color: var(--ink); padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--terra); justify-self: center; }
.b-foot { height: 42px; font-weight: 900; font-size: clamp(18px, 1.5vw, 22px); color: var(--bone); background: rgba(239, 234, 224, .06); }
.chart { position: relative; padding: 14px 16px 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--body); fill: var(--sage); font-size: 13px; }
.chart .gl-t { font-family: var(--head); font-weight: 700; fill: var(--terra); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.fly { position: absolute; inset: 0; pointer-events: none; }
.fly i { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--terra); opacity: 0; box-shadow: 0 0 0 4px rgba(224, 169, 143, .25); }


/* finishers: three demo testimonials touching the last wall, lanes 4 to 6 */
#finishers { padding-top: clamp(40px, 7vh, 72px); }
.fin-row { display: flex; align-items: flex-end; margin-left: var(--x4); width: calc(3 * var(--L)); transform-origin: 0 100%; will-change: transform; }
.fin { width: var(--L); padding: 0 14px; }
.fin-board {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px;
  background: #051014; border: 1px solid rgba(239, 234, 224, .14); border-bottom: 2px solid rgba(224, 169, 143, .55); padding: 10px 14px;
}
.av { position: relative; width: 46px; height: 46px; }
.av > svg:first-child { display: block; width: 46px; height: 46px; }
.av text { font-family: var(--head); font-weight: 900; font-size: 26px; }
.flag { position: absolute; right: -5px; bottom: -2px; width: 21px; height: 14px; outline: 2px solid #051014; }
.fin-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.fin-who b { font-family: var(--head); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .05em; }
.fin-who span { font-size: 13px; color: var(--sage); }
.fin-res { font-family: var(--head); font-weight: 900; font-size: 24px; line-height: 1; text-align: right; color: var(--terra); max-width: 7.5em; font-variant-numeric: tabular-nums; }
.fin-q { background: #082129; padding: 12px 14px 16px; box-shadow: 0 18px 40px rgba(2, 10, 13, .3); }
.fin-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; }
.demo { font-size: 11.5px; color: var(--sage); border: 1px solid rgba(163, 173, 159, .45); padding: 0 6px; line-height: 1.6; }
.fin-txt { margin-top: 9px; font-size: 15px; line-height: 1.45; color: var(--bone); }

/* final: the hook is painted on the deck, the field sits in lane 8 */
#deck8 { height: auto; padding: clamp(22px, 4vh, 36px) 0 66px; }
#deck8 h2 {
  margin-left: calc(var(--x5) + 2px); width: min(calc(2.6 * var(--L)), calc(100vw - var(--x5) - 20px));
  color: var(--ink); text-shadow: none; font-size: clamp(46px, 5.2vw, 86px);
}
#final { min-height: 64vh; min-height: 64svh; padding-top: clamp(26px, 5vh, 56px); display: flex; flex-direction: column; }
.c8 { width: calc(1.25 * var(--L)); padding: 0 30px; }
.field { position: relative; display: block; background: var(--bone); color: var(--ink); padding: 12px 66px 12px 18px; box-shadow: 8px 10px 0 rgba(2, 10, 13, .35); }
.field:focus-within { outline: 3px solid var(--terra); outline-offset: 4px; }
.field .lbl { display: block; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; color: #24525c; }
.field input {
  display: block; width: 100%; border: 0; outline: 0; background: transparent; padding: 2px 0 0; margin: 0;
  font: 700 clamp(20px, 1.75vw, 25px)/1.35 var(--body); color: var(--ink); caret-color: #c0705a; border-radius: 0;
}
.ghost {
  position: absolute; left: 18px; right: 66px; bottom: 12px; pointer-events: none; white-space: nowrap; overflow: hidden;
  font: 700 clamp(20px, 1.75vw, 25px)/1.35 var(--body); color: rgba(11, 42, 51, .5);
}
.ghost::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: #c0705a; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.oly { color: #f6b519; }
/* the hero types itself in: hidden letters keep their width, so nothing reflows */
.typing .ch { visibility: hidden; }
.typing .ch.on { visibility: visible; }
.ch.cur { position: relative; }
.ch.cur::after { content: ""; position: absolute; left: 100%; top: 0.1em; bottom: 0.12em; width: 0.07em; margin-left: 0.04em; background: var(--terra); visibility: visible; animation: blink 0.9s steps(1) infinite; }
.typing #dreamTxt { text-decoration-color: transparent; }
.typing #dreamTxt .ch.on { text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.go {
  position: absolute; right: 10px; top: 50%; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--bone); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(-50%) scale(.5); pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.go svg { width: 22px; height: 22px; }
.field.has .go { opacity: 1; transform: translateY(-50%) scale(1); pointer-events: auto; }
.go:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.foot {
  margin-top: auto; padding: 12vh var(--gr) 28px var(--gl);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 14px; color: var(--sage);
}
.foot .mark { position: static; color: var(--bone); font-size: 20px; }
.foot a { color: var(--sage); }

@media (min-width: 760px) {
  .c8 { margin-left: var(--x5); }
  .foot { margin-left: var(--x5); width: calc(1.25 * var(--L)); padding: 12vh 30px 32px; }
}
@media (max-width: 759px) {
  .in5, .sc-l, .sc-r { margin-left: 0; width: auto; padding: 0 calc(var(--gr) + 42px) 0 var(--gl); }
  .slab { margin-left: 0; width: auto; background: none; box-shadow: none; padding: 0 calc(var(--gr) + 42px) 0 var(--gl); }
  .mark { left: var(--gl); top: 20px; font-size: 21px; }
  .hero { min-height: calc(72svh - 92px); padding-top: 34px; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 54px); }
  .dream { font-size: 20px; gap: 11px; }
  .big { font-size: clamp(50px, 14.6vw, 66px); }
  .mid { font-size: 28px; }
  h2, .swap h2 { font-size: clamp(36px, 10.4vw, 46px); }
  .fact { font-size: 15px; }
  .sw-b { margin-top: 26px; }
  .lanes { padding: 0; }
  .vague { font-size: 30px; }
  .spec, .r-goal { font-size: 34px; }
  .g-job { padding: 0 calc(var(--gr) + 42px) 0 var(--gl); margin-top: 22px; }
  html.mo .g-job { position: absolute; left: 0; right: 0; top: 0; margin: 0; }
  html.mo #rA { position: absolute; left: 0; right: 0; top: 0; bottom: 0; height: auto; }
  .g-run { left: var(--gl); right: calc(var(--gr) + 42px); }
  .r-wrap { margin-left: 0; width: auto; }
  .mk .lb { padding: 6px calc(var(--gr) + 42px) 0 var(--gl); }
  .r-goal { left: var(--gl); right: calc(var(--gr) + 42px); }
  .today { right: calc(var(--gr) + 40px); }
  .day { margin-left: 0; width: auto; }
  .day .lb { padding: 7px calc(var(--gr) + 42px) 0 var(--gl); }
  .plaque { margin-left: var(--gl); width: auto; margin-right: calc(var(--gr) + 30px); padding: 22px 20px 20px; }
  .sc { display: block; margin-left: 0; }
  .sc-r { margin-top: 24px; gap: 14px; }
  .sc-l h2 { font-size: 38px; }
  .b-head, .b-row, .b-foot { gap: 8px; padding: 0 10px; grid-template-columns: 4.2em 1fr 3.3em 14px; }
  .b-head { grid-template-columns: 1fr auto; font-size: 13px; height: 32px; }
  .b-row { height: 30px; font-size: 15px; }
  .b-foot { height: 36px; font-size: 18px; }
  .dot { width: 9px; height: 9px; }
  .b-row .s { white-space: nowrap; overflow: hidden; }
  .b-row.it .s em { display: none; }
  .chart { padding: 10px 10px 4px; }
  #deck8 h2 { margin-left: var(--gl); width: auto; padding-right: var(--gr); font-size: clamp(44px, 12.6vw, 58px); }
  .c8 { margin-left: 0; width: auto; padding: 0 var(--gr) 0 var(--gl); }
  .field input, .ghost { font-size: 19px; }
  #l2 { --len: 150vh; }
  .hero { min-height: calc(66svh - 92px); }
  #final { min-height: 50svh; }
  #score { padding-bottom: 6vh; }
  #finishers { padding-top: 36px; }
  .fin-row { flex-direction: column; align-items: stretch; gap: 12px; margin-left: 0; width: auto; padding: 0 var(--gr) 0 var(--gl); }
  .fin { width: auto; padding: 0; }
  .fin-txt { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ghost::after { animation: none; }
}

/* A short introduction precedes the preserved customer accounts. */
.testimonial-intro { margin: 0 0 18px; }
.testimonial-intro h2 { margin: 4px 0 0; font: 900 clamp(32px, 4vw, 56px)/1.05 var(--head); }
.intro-stars { color: #e0a98f; letter-spacing: .14em; font-size: 22px; }
#finishers > .testimonial-intro { margin-left: var(--x4); padding: 0 24px; color: var(--bone); }
@media (max-width: 760px) { #finishers > .testimonial-intro { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ghost::after { animation: none; } }
