/* The home page (direction C, December 5), over site.css: the owner's rewrite of December 2, in the site editor, laid out as a
   marketing page. Locke uses the scrolling instead of fighting it, and there's no willpower to find. A headline, then
   the advice everyone has been given as a pile of paper to-dos, then the turn. As the payoff line comes up, the pile is
   ticked off and squared up: Locke has done it. Then the slides answer "How?". */

/* The bar on the home page stands on the opening's night until the page is scrolled (site.css; home.mjs). */
.home:not(.scrolled) .bar {
  background: rgba(2, 8, 26, 0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.tucked .bar {
  transform: translateY(-100%);
}

/* The ways in (December 5, the owner's picks): on a computer's screen, B, a stamped card per device; on a phone, 2, the
   words and the app's own opening first ("it doesn't really make sense to prioritize the download buttons over the
   stuff that'll actually sell them on the app"), and the app's way on at the foot once the reader moves. */
.stamps,
.slash {
  display: none;
}
@media (min-width: 760px) {
  .stamps {
    display: grid;
  }
}
@media (min-width: 980px) {
  .slash {
    display: block;
  }
}

/* A paper card per device in ink, the cyan print offset under it, each set down at its own angle and stamped in. */
.stamps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  grid-template-columns: repeat(4, 128px);
  gap: 20px;
}
.stamps a {
  --r: rotate(-3deg);
  position: relative;
  display: grid;
  justify-items: start;
  padding: 12px 12px 12px 13px;
  color: #02081a;
  background: var(--paper);
  border: 2.5px solid #02081a;
  box-shadow: 6px 6px 0 var(--hi);
  text-decoration: none;
  transform: var(--r);
  transition:
    transform 0.16s var(--spring),
    box-shadow 0.16s var(--ease);
}
.stamps li:nth-child(2) a {
  --r: rotate(2deg);
}
.stamps li:nth-child(3) a {
  --r: rotate(-1.5deg);
}
.stamps li:nth-child(4) a {
  --r: rotate(2.6deg);
}
.stamps .dev {
  width: 38px;
  height: 38px;
  margin: 0 0 8px -2px;
  overflow: visible;
}
.dev .ech {
  fill: var(--echo);
}
.dev .bod {
  fill: var(--paper);
  stroke: #02081a;
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.dev .scr {
  fill: var(--hi);
}
.dev .ink {
  fill: #02081a;
}
.stamps b {
  font: italic 900 27px/0.95 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.stamps small {
  margin-top: 4px;
  color: rgba(2, 8, 26, 0.72);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
.stamps a:hover,
.stamps a:focus-visible {
  transform: var(--r) translate(-3px, -4px);
  box-shadow: 10px 10px 0 var(--hi);
  text-decoration: none;
}
.stamps a:active {
  transform: var(--r) translate(4px, 4px);
  box-shadow: 0 0 0 var(--hi);
}
.stamps a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

/* Behind the phone, a band of the echo's blue on the lean, halftoned, with a cyan edge a gap before it, as the slab and
   its echo are drawn. */
.slash {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -6%;
  right: 3%;
  width: min(38vw, 560px);
  transform: skewX(var(--skew));
  transform-origin: 50% 100%;
  /* Clear of the bar (its links and Get Locke stand on the night, not on the slash), fading out at the foot. */
  -webkit-mask-image: linear-gradient(180deg, transparent 90px, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(180deg, transparent 90px, #000 28%, #000 72%, transparent);
}
.slash::before {
  content: "";
  position: absolute;
  inset: 0 0 0 32px;
  background:
    radial-gradient(circle, rgba(2, 8, 26, 0.3) 0 1.15px, transparent 1.7px) 0 0 / 7px 7px,
    linear-gradient(180deg, #2f6ef0 0%, #1d4bc4 60%, rgba(29, 75, 196, 0.2) 100%);
}
.slash i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: var(--hi);
  box-shadow: 0 0 22px rgba(67, 216, 255, 0.5);
}

/* A phone's: the app's way on (kit.css .next): heavy white words on a cyan stroke that runs in from the screen's edge,
   its blue echo past it, three drawn chevrons the light hops along. It rides at the foot over a band of the night, where
   the app has it, from the reader's first move until the page's own big ways in (home.mjs); the bar is the name alone,
   so Get Locke is never on the screen twice. The band lets taps through; only the words are the link. */
.way-on {
  display: none;
}
@media (max-width: 759px) {
  /* The opening runs on into the app's own: no screen of its own to fill. */
  .hero {
    min-height: 0;
    padding: 100px 0 56px;
  }
  .hero-grid {
    gap: 34px;
  }
  .home .bar .get {
    display: none;
  }
  .way-on:not([hidden]) {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 46px 0 18px 22px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(2, 8, 26, 0.96) 45%, rgba(2, 8, 26, 0));
  }
  .way-on .go {
    pointer-events: auto;
  }
}
.way-on .go {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  color: #fff;
  font: italic 900 40px/1 var(--display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 3px 3px 0 #02081a;
}
.way-on .go:hover {
  text-decoration: none;
}
.way-on .go .wo {
  position: relative;
  z-index: 0;
  padding-right: 0.12em;
}
.way-on .go .wo::before,
.way-on .go .wo::after {
  content: "";
  position: absolute;
  left: -100vw;
  height: 0.38em;
  clip-path: polygon(0 0, 100% 34%, calc(100% - 6px) 66%, 0 100%);
  transform-origin: 0 50%;
}
.way-on .go .wo::before {
  right: -0.28em;
  bottom: 0.1em;
  z-index: -1;
  background: var(--hi);
  transition: transform 0.18s var(--ease);
}
.way-on .go .wo::after {
  right: -0.36em;
  bottom: 0;
  z-index: -2;
  background: var(--echo);
}
.way-on .go .chev {
  display: flex;
  align-items: center;
  margin-top: 0.12em;
  color: var(--hi);
  text-shadow: none;
  transform: skewX(-12deg);
}
.way-on .go .chev i {
  display: block;
  width: 0.4em;
  height: 0.46em;
  margin-right: -0.1em;
  animation: home-march 2.4s 0.6s steps(1, end) infinite;
}
.way-on .go .chev i:nth-child(2) {
  animation-delay: 0.72s;
}
.way-on .go .chev i:nth-child(3) {
  animation-delay: 0.84s;
}
.way-on .go .chev svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.way-on .go .chev path {
  fill: currentColor;
  stroke: #02081a;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.way-on .go .chev path.k {
  fill: var(--echo);
  stroke: none;
}
.way-on .go:hover .wo::before,
.way-on .go:focus-visible .wo::before {
  transform: scaleY(2.6);
}
.way-on .go:active .wo::before {
  transform: scaleY(3.4) scaleX(1.02);
}
.way-on .go:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 8px;
}

/* The opening arrives as the app's boards do, in their slots (the bar, the eyebrow, the headline, its slab and echo, the
   lead in three held frames, the ways in): every part whole on its first frame, only transforms moving; held until the
   fonts are in (home.mjs), never past 2.5 s. Every base style is the end, so reduced motion shows it finished. */
@media (prefers-reduced-motion: no-preference) {
  .home:not(.arrived) .hero-text > *,
  .home:not(.arrived) .hero-phone,
  .home:not(.arrived) .slash,
  .home:not(.arrived) .bar {
    animation: home-hold 0s 2.5s both;
  }
  .arrived .bar {
    animation: home-lift 0.2s 0.02s steps(3, start) backwards;
  }
  .arrived .hero .eyebrow {
    animation: home-lift 0.2s 0.08s steps(3, start) backwards;
  }
  .arrived .hero h1 {
    animation: home-wordin 0.42s 0.14s var(--ease) backwards;
  }
  .arrived .hero .slab {
    animation: home-inkon 0.16s 0.42s steps(1, end) backwards;
  }
  .arrived .hero .slab::before {
    animation: home-slabin 0.16s 0.42s cubic-bezier(0.3, 0.75, 0.2, 1) backwards;
  }
  .arrived .hero .slab::after {
    animation: home-echoin 0.16s 0.46s cubic-bezier(0.3, 0.75, 0.2, 1) backwards;
  }
  .arrived .hero .lead {
    animation: home-lift 0.2s 0.64s steps(3, start) backwards;
  }
  .arrived .hero-phone {
    animation: home-phonein 0.5s 0.3s var(--ease) backwards;
  }
  .arrived .slash {
    animation: home-cutin 0.22s 0.2s cubic-bezier(0.3, 0.75, 0.2, 1) backwards;
  }
  .arrived .stamps a {
    animation: home-stamp 0.5s 0.86s var(--ease) backwards;
  }
  .arrived .stamps li:nth-child(2) a {
    animation-delay: 0.98s;
  }
  .arrived .stamps li:nth-child(3) a {
    animation-delay: 1.1s;
  }
  .arrived .stamps li:nth-child(4) a {
    animation-delay: 1.22s;
  }
  /* The way on comes in each time it's shown, as the app's does. */
  .way-on .go {
    animation: home-wordin 0.42s var(--ease) backwards;
  }
  .way-on .go .wo::before {
    animation: home-runin 0.15s 0.05s var(--ease) backwards;
  }
  .way-on .go .wo::after {
    animation: home-runin 0.15s 0.08s var(--ease) backwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .way-on .go .chev i {
    animation: none;
  }
}
@keyframes home-hold {
  0% {
    visibility: hidden;
  }
  99%,
  100% {
    visibility: visible;
  }
}
@keyframes home-lift {
  0% {
    animation-timing-function: steps(1, end);
    opacity: 0;
    transform: translateY(14px);
  }
  1% {
    opacity: 1;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes home-wordin {
  0% {
    animation-timing-function: steps(1, end);
    opacity: 0;
    transform: translateX(-22px);
  }
  1% {
    opacity: 1;
    transform: translateX(-22px);
  }
  60% {
    transform: translateX(3px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes home-inkon {
  0% {
    color: transparent;
  }
  99%,
  100% {
    color: var(--on-hi);
  }
}
@keyframes home-slabin {
  0% {
    transform: skewX(var(--skew)) scaleX(0);
  }
  100% {
    transform: skewX(var(--skew)) scaleX(1);
  }
}
@keyframes home-echoin {
  0% {
    transform: translate(0.075em, 0.075em) skewX(var(--skew)) scaleX(0);
  }
  100% {
    transform: translate(0.075em, 0.075em) skewX(var(--skew)) scaleX(1);
  }
}
@keyframes home-runin {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes home-phonein {
  0% {
    animation-timing-function: steps(1, end);
    opacity: 0;
    translate: 120px 0;
  }
  1% {
    opacity: 1;
    translate: 120px 0;
  }
  70% {
    translate: -6px 0;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes home-cutin {
  0% {
    transform: skewX(var(--skew)) scaleY(0);
  }
  100% {
    transform: skewX(var(--skew)) scaleY(1);
  }
}
/* A stamp: set down big, a white flash held whole for its frames and then cut, the print coming on as it's cut. */
@keyframes home-stamp {
  0% {
    animation-timing-function: steps(1, end);
    opacity: 0;
    transform: var(--r) scale(1.6);
    box-shadow: 0 0 0 var(--hi);
  }
  1% {
    opacity: 1;
    transform: var(--r) scale(1.6);
    filter: brightness(0) invert(1);
    box-shadow: 0 0 0 var(--hi);
  }
  11.9% {
    filter: brightness(0) invert(1);
    box-shadow: 0 0 0 var(--hi);
  }
  12% {
    filter: none;
    box-shadow: 6px 6px 0 var(--hi);
  }
  40% {
    transform: var(--r) scale(0.92);
  }
  62% {
    transform: var(--r) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: var(--r);
    box-shadow: 6px 6px 0 var(--hi);
  }
}
@keyframes home-march {
  0% {
    color: #f7fcff;
    transform: translateX(3px);
  }
  5%,
  100% {
    color: var(--hi);
    transform: none;
  }
}

/* No Willpower Required */
.free {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 13vh, 150px) 0 clamp(36px, 5vh, 64px);
  text-align: center;
}
/* The hero's halftone carried on faintly, fading in and out, so the section reads as its own place. */
.free::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(67, 216, 255, 0.11) 0 1.05px, transparent 1.5px) 0 0 / 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
}
.free h2 {
  margin: 0 auto;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.95;
  text-wrap: balance;
}

/* The pile: paper to-dos, each with an empty box, tilted every which way. */
.chores {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0 8px;
  max-width: 940px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
  isolation: isolate;
}
.chores li {
  --r: -2deg;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.62em 0.95em 0.6em 0.7em;
  background: var(--paper);
  color: var(--ink-0);
  border: 3px solid var(--ink-0);
  box-shadow: 6px 7px 0 var(--echo);
  font: italic 700 clamp(17px, 1.9vw, 23px) / 1.1 var(--head);
  text-align: left;
  transform: rotate(var(--r));
  transition:
    transform 0.5s var(--spring),
    color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.chores li:nth-child(2) {
  --r: 3deg;
}
.chores li:nth-child(3) {
  --r: -3.5deg;
}
.chores li:nth-child(4) {
  --r: 1.5deg;
}
.chores li:nth-child(5) {
  --r: -1deg;
}
.chores li:nth-child(6) {
  --r: 3.5deg;
}
.chores li:nth-child(7) {
  --r: -2.5deg;
}
.chores li:nth-child(8) {
  --r: 2deg;
}
.chores li::before {
  content: "";
  flex: none;
  width: 0.92em;
  height: 0.92em;
  box-sizing: border-box;
  border: 2.5px solid var(--ink-0);
  background: #fff center / 78% no-repeat;
  transition:
    background-color 0.2s var(--ease),
    transform 0.35s var(--spring);
  transition-delay: inherit;
}
/* Done for you: each box ticked in turn, the paper squared up, the print pulled in. */
.chores.done li {
  --r: 0deg;
  color: #3d4f72;
  box-shadow: 3px 3px 0 var(--echo);
}
.chores.done li::before {
  background-color: var(--hi);
  /* A file of the site's own: the site's policy takes pictures from itself only (img-src 'self'), so a data: tick was
     blocked on getlocke.app (December 5) while it drew in the editor, which sends no policy. */
  background-image: url("/tick.svg");
  transform: scale(1.18);
}

/* Coming in: dropped onto the pile one after another, when the pile comes into view (c.mjs). Backwards only: held
   forwards, the drop would own the transform and the squaring-up couldn't ease. */
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-34px) rotate(calc(var(--r) * -3));
  }
}
.c.moving .chores.in li {
  animation: drop 0.55s var(--spring) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.c.moving .chores:not(.in) li {
  opacity: 0;
}

.turn {
  margin: clamp(40px, 5vw, 60px) auto 0;
  max-width: 22em;
  color: var(--text-2);
  font: italic 600 clamp(22px, 2.5vw, 30px) / 1.25 var(--head);
  text-wrap: balance;
}
.payoff {
  margin: 14px auto 0;
  max-width: 13em;
  color: #fff;
  font: italic 900 clamp(40px, 5.8vw, 78px) / 1.04 var(--display);
  text-shadow: 3px 3px 0 #0b2a66;
  text-wrap: balance;
}
.payoff .slab {
  margin-top: 0.08em;
}
.free .lead {
  margin: 22px auto 0;
  max-width: 30em;
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 21px);
}

/* How? Read on…: the way down to the slides, with a chevron that nudges. */
.on {
  margin: clamp(36px, 4vw, 52px) 0 0;
}
.read-on {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--hi);
  font: italic 700 clamp(19px, 1.8vw, 22px) / 1 var(--head);
  letter-spacing: 0.03em;
  text-decoration: none;
}
.read-on:hover {
  color: #fff;
  text-decoration: none;
}
.read-on::after {
  content: "";
  width: 22px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 30% 0, 50% 46%, 70% 0, 100% 0, 50% 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .read-on::after {
    animation: nudge 1.8s var(--ease) infinite;
  }
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* How Locke Works follows straight on from Read on: the deal in four, the phone showing the one picked. */
.c .deal {
  padding-top: clamp(24px, 3vw, 40px);
}
/* The heading sits over the beats, beside the phone, so the deal fits one screen. */
.deal .head {
  margin: 0 0 22px;
  text-align: left;
}
/* On a phone: the heading, the phone, then the beats under it, as the seventeen's list sits under theirs. */
@media (max-width: 899px) {
  .deal .side {
    display: contents;
  }
  .deal .head {
    order: -1;
    margin: 0 auto;
    text-align: center;
  }
}
@media (min-width: 900px) {
  .deal-phone {
    width: 300px;
    transform: perspective(1600px) rotateY(12deg) rotateX(3deg) rotateZ(-1deg);
  }
}
.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
/* A beat: its number (the button, for the keyboard) and its words (a span the editor can write in). The whole row
   shows its slide. */
.beats li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 6px;
  cursor: pointer;
  color: var(--muted);
  font: italic 700 clamp(20px, 2.2vw, 28px) / 1.15 var(--head);
  letter-spacing: 0.005em;
  text-wrap: balance;
  transition: color 0.2s var(--ease);
}
.beats li:hover {
  color: var(--text);
}
.beats li[aria-current="step"] {
  color: #fff;
}
.beats button {
  min-width: 2ch;
  height: auto;
  padding: 0;
  background: none;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--faint);
  font: italic 900 clamp(40px, 4vw, 54px) / 0.9 var(--display);
  letter-spacing: 0;
  transition: -webkit-text-stroke-color 0.2s var(--ease);
}
/* The kit's button slab stays off: these are a list, lit by colour. */
.beats button::before,
.beats button::after {
  content: none;
}
.beats button:hover:not(:disabled) {
  transform: none;
}
.beats li[aria-current="step"] button {
  color: var(--hi);
  -webkit-text-stroke-color: var(--hi);
  text-shadow: 2px 2px 0 #0b2a66;
}

/* The stakes (December 5): three ways, each a scene above its name and sentence; side by side from 900 px. The scenes
   are the boards' band of 390 × 444 (player.mjs SCENE), framed like the page's phones but flat, as pictures. */
.stakes .head {
  max-width: 760px;
}
.ways {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}
.way-scene {
  margin: 0;
  aspect-ratio: 390 / 444;
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #030f26;
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 60px rgba(0, 6, 20, 0.55);
}
.way-scene iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.ways h3 {
  margin: 22px 0 0;
  color: var(--hi);
  font: italic 900 clamp(34px, 3.4vw, 44px) / 1 var(--display);
  text-shadow: 2px 2px 0 #0b2a66;
}
.ways p {
  margin: 10px 0 0;
  max-width: 420px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}
.stakes .terms {
  margin: 40px 0 0;
}

/* The checks (December 5): four of the check menu's ways, drawn as the stakes are; two across from 640 px, four from
   1100. */
.checks {
  padding: 72px 0;
}
@media (min-width: 720px) {
  .checks {
    padding: 96px 0;
  }
}
@media (min-width: 640px) {
  .checks .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 28px;
  }
}
@media (min-width: 1100px) {
  .checks .ways {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .checks .ways h3 {
    font-size: 36px;
  }
  .checks .ways p {
    font-size: 15.5px;
  }
}
.checks .also {
  max-width: 760px;
  margin: 44px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}
