/* The landing page at rackruck.com for signed-out visitors. Uses the tokens
   in application.css; everything here is scoped to body.landing. */

.landing {
  --lp-width: 72rem;
}

.landing main {
  display: block;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--lp-width);
  margin: 0 auto;
  padding: 1.25rem max(1.25rem, env(safe-area-inset-left, 0px)) 0.5rem;
}

.lp-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.14em;
  margin-right: auto;
}

.lp-nav__brand:hover {
  text-decoration: none;
}

.lp-nav__brand .plate {
  width: 1.4rem;
}

.lp-nav nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lp-nav nav a:not(.lp-btn) {
  color: var(--text);
}

.lp-nav__brand span,
.lp-nav nav a {
  white-space: nowrap;
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 16px -6px rgba(242, 107, 29, 0.6);
}

.lp-btn:hover {
  background: #e05f14;
  text-decoration: none;
}

.lp-btn--small {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

.lp-btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.lp-btn--ghost:hover {
  background: var(--surface);
  border-color: var(--text);
}

.lp-btn--dark {
  background: #1a1918;
  color: #fff;
  box-shadow: none;
}

.lp-btn--dark:hover {
  background: #000;
}

.lp-btn:focus-visible,
.lp-nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Type */
.landing h1,
.landing h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

.landing h1 {
  font-size: clamp(3.25rem, 9vw, 6.5rem);
}

.landing h1 em {
  font-style: normal;
  color: var(--orange);
}

.landing h2 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

.landing h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.4rem;
}

.lp-eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lp-lead {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  max-width: var(--lp-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.lp-hero__art {
  position: relative;
  min-height: 34rem;
}

.lp-bigplate {
  position: absolute;
  top: 2rem;
  left: -4%;
  width: 66%;
}

.lp-bigplate .plate {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.2));
}

.lp-bigplate__stamp {
  position: absolute;
  inset: 40% 26% auto 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--plate-ink) 14%, var(--plate));
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lp-phone {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  border-radius: 2.25rem;
  padding: 0.45rem;
  background: #0b0b0b;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
}

.lp-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.85rem;
}

/* Sections */
.lp-section {
  max-width: var(--lp-width);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.lp-section > h2 {
  margin-bottom: 2rem;
}

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.lp-split p {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* The week of plates */
.lp-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--surface);
  border-radius: 24px;
}

.lp-week__day {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.lp-week__letter {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.lp-week__letter--today {
  color: var(--accent);
  font-weight: 800;
}

.lp-week .dayplate {
  max-width: 4.25rem;
}

.lp-week .dayplate__num {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
}

.dayplate--open .plate--outline {
  opacity: 0.55;
}

.dayplate__stickers--planned .sticker {
  background: var(--surface);
  border: 1.5px dashed currentColor;
}

.dayplate__stickers--planned .sticker--lift { color: var(--lift); }
.dayplate__stickers--planned .sticker--ruck { color: var(--cardio); }
.dayplate__stickers--planned .sticker--hiit { color: var(--hiit); }

.lp-week .sticker {
  width: 1.5rem;
  height: 1.5rem;
}

/* Feature cards */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.lp-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 22px;
}

.lp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp-card__art {
  display: grid;
  place-items: center;
  height: 11rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}

.lp-card__art--shot {
  place-items: start center;
  padding-top: 1rem;
}

.lp-card__art--shot img {
  width: 72%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
}

.lp-sets {
  gap: 0.5rem;
  padding: 1rem;
  place-items: stretch;
  align-content: center;
}

.lp-sets span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: var(--surface);
}

.lp-sets b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
}

.lp-tick {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--done);
  position: relative;
}

.lp-tick::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.25rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lp-sets__next {
  outline: 2px solid var(--orange);
}

.lp-sets em {
  font-style: normal;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--orange);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

.lp-ruck {
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem;
}

.lp-ruck span,
.lp-streak {
  display: grid;
  justify-items: center;
}

.lp-ruck b,
.lp-streak b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.lp-streak b {
  font-size: 5rem;
}

.lp-ruck small,
.lp-streak span {
  color: var(--muted);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The shared day plate */
.lp-split--flip {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.lp-dayplate {
  position: relative;
  width: min(100%, 22rem);
  margin: 0 auto;
}

.lp-dayplate .plate {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.22));
}

.lp-dayplate__face {
  position: absolute;
  inset: 21% 11% auto;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: #a8a29a;
}

.lp-dayplate__date,
.lp-dayplate__streak {
  color: #8f8a83;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
}

.lp-dayplate__title {
  font-size: 2.25rem;
  line-height: 0.95;
}

.lp-dayplate__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
  margin: 0.4rem 0 0.2rem;
}

.lp-dayplate__stats span {
  display: grid;
}

.lp-dayplate__stats b {
  font-size: 1.75rem;
  line-height: 1;
}

.lp-dayplate__stats small {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: #8f8a83;
}

/* The orange band */
.lp-band {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  margin-top: 2rem;
  padding: 5rem 1.25rem;
  background: var(--orange);
  color: #1a1918;
  text-align: center;
}

.lp-band h2 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.lp-band__plate {
  width: 4.5rem;
}

/* Footer */
.lp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: var(--lp-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.lp-foot__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.lp-foot__promise {
  margin-right: auto;
}

.lp-foot nav {
  display: flex;
  gap: 1.25rem;
}

.lp-foot a {
  color: var(--muted);
}

/* Phones and narrow windows */
@media (max-width: 860px) {
  .lp-hero,
  .lp-split,
  .lp-split--flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-hero {
    padding-top: 1.5rem;
    gap: 2rem;
  }

  .lp-hero__art {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
  }

  .lp-bigplate,
  .lp-phone {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .lp-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lp-nav a[href="#how"] {
    display: none;
  }
}

@media (max-width: 520px) {
  .lp-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-week {
    gap: 0.35rem;
    padding: 1.25rem 0.75rem 1.5rem;
  }

  .lp-week .sticker {
    width: 1.1rem;
    height: 1.1rem;
  }

  .lp-nav {
    gap: 0.75rem;
  }

  .lp-nav nav {
    gap: 0.75rem;
  }

  .lp-nav__brand {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
