.landing-page {
  --lr-h2-size: clamp(2.1rem, 5vw, 4.75rem);
  --lr-w: min(calc(100% - clamp(2rem, 6vw, 6rem)), 1480px);
  --lr-gap: clamp(5rem, 11vw, 11rem);
  --lr-paper-shadow: 0 1px 0 rgb(var(--shade-rgb) / 0.3), 0 28px 44px -20px rgb(var(--shade-rgb) / 0.7);
}

:is(.lr-hero, .lr-demo, .lr-process, .lr-po, .lr-call, .lr-privacy, .lr-cta, .lr-footer) {
  position: relative;
  z-index: 1;
  width: var(--lr-w);
  margin-inline: auto;
}

:is(.lr-demo, .lr-process, .lr-po, .lr-call, .lr-privacy, .lr-cta) {
  margin-top: var(--lr-gap);
}

.landing-page :is(.lr-demo, .lr-process, .lr-po, .lr-call, .lr-privacy, .lr-cta) h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-head);
  font-size: var(--lr-h2-size);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.landing-page :is(.lr-demo, .lr-process, .lr-po, .lr-call, .lr-privacy, .lr-cta) p {
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.lr-paper {
  position: relative;
  container-type: inline-size;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: var(--lr-paper-shadow);
  line-height: 0;
}

.lr-paper img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

#landingPage #landingHero.lr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 4vh, 3.5rem) 0;
  isolation: auto;
}

#landingPage #landingHero.lr-hero::before {
  content: none;
}

.lr-hero-copy {
  container-type: inline-size;
  min-width: 0;
}

#landingPage #landingHero.lr-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-head);
  font-size: max(3.6rem, min(8.4vw, 17.2cqi));
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.lr-line {
  display: block;
}

.lr-lede {
  max-width: 40ch;
  margin: clamp(1.25rem, 2.6vw, 2rem) 0 0;
  color: var(--text);
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.5;
}

.lr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.lr-actions .landing-button {
  text-decoration: none;
  min-height: 3.1rem;
  padding-inline: 1.6rem;
  font-size: 1rem;
}

.lr-sheets {
  position: relative;
  aspect-ratio: 1.22;
  margin-block: 2.6rem;
  min-width: 0;
}

.lr-sheet {
  position: absolute;
  width: 82%;
  margin: 0;
}

.lr-sheet-a {
  top: 0;
  left: 0;
}

.lr-sheet-b {
  right: 0;
  bottom: 0;
}

.lr-sheet-label {
  position: absolute;
  display: inline-flex;
  gap: 0.4em;
  align-items: baseline;
  padding: 0.3rem 0.7rem;
  color: var(--on-colour-button);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 6px;
}

.lr-sheet-label strong {
  font-weight: 700;
}

.lr-sheet-label.is-yours {
  top: -2.35rem;
  left: 0;
  background: var(--accent-button-press);
}

.lr-sheet-label.is-supplied {
  right: 0;
  bottom: -2.35rem;
  background: var(--complete-button-press);
}

.lr-ants {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.lr-ants rect {
  fill: none;
  stroke: var(--complete);
  stroke-width: 2.2;
  stroke-dasharray: 9 7;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.98;
  filter:
    drop-shadow(0 0 1px rgb(var(--gloss-rgb) / 0.6))
    drop-shadow(0 1px 2px rgb(var(--shadow-rgb) / 0.26));
  animation: diff-border-pulse 650ms linear infinite;
}

.lr-paper .diff-badge.lr-issue-pill {
  --review-badge-scale: 0.6;
  --lr-issue-detach: calc(var(--diff-badge-size) / 2 + 4px);
  position: absolute;
  margin: 0;
  pointer-events: none;
  translate: -50% calc(-50% - var(--lr-issue-detach));
}

@media (max-width: 600px) {
  .lr-paper .diff-badge.lr-issue-pill {
    --review-badge-scale: 0.5;
  }
}

@media (min-width: 900px) {
  #landingPage #landingHero.lr-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100svh - 10rem);
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }
}

@media (max-width: 600px) {
  #landingPage #landingHero.lr-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100svh - 3.875rem);
    min-height: 34rem;
    padding-block: clamp(1rem, 3.5svh, 2rem) 0;
  }

  #landingPage #landingHero .lr-lede {
    margin-top: clamp(0.75rem, 2svh, 1.25rem);
    font-size: 1rem;
  }

  .lr-actions {
    flex-wrap: nowrap;
    margin-top: clamp(1rem, 3svh, 1.75rem);
  }

  .lr-actions .landing-button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .lr-sheets {
    --lr-fit-w: min(100cqw, 122cqh);
    flex: 1 1 0;
    min-height: 11rem;
    aspect-ratio: auto;
    margin-block: 2.6rem 2.8rem;
    container-type: size;
  }

  .lr-sheet {
    width: calc(var(--lr-fit-w) * 0.84);
  }

  .lr-sheet-a {
    top: calc((100cqh - var(--lr-fit-w) / 1.22) / 2);
    left: calc((100cqw - var(--lr-fit-w)) / 2);
  }

  .lr-sheet-b {
    right: calc((100cqw - var(--lr-fit-w)) / 2);
    bottom: calc((100cqh - var(--lr-fit-w) / 1.22) / 2);
  }

  .lr-sheet-label {
    font-size: 0.875rem;
  }

  .lr-demo .landing-demo-monitor .landing-demo-live {
    flex-basis: 100%;
    order: 1;
    border-radius: 10px;
  }

  .lr-demo .landing-demo-monitor .landing-demo-live-text {
    white-space: normal;
    line-height: 1.4;
  }

  .lr-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

.lr-head {
  display: grid;
  gap: 1rem;
  max-width: 60rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.lr-head p {
  margin: 0;
}

.lr-demo .landing-demo::before {
  content: none;
}

.landing-page .lr-process h2 {
  max-width: none;
}

.lr-steps {
  --lr-step-gap: clamp(1rem, 2vw, 2rem);
  --lr-step-dot: 2.5rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--lr-step-gap);
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lr-step;
}

.lr-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--lr-step-dot) / 2);
  left: calc(50% + var(--lr-step-dot) / 2);
  width: calc(100% + var(--lr-step-gap) - var(--lr-step-dot));
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.lr-steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  justify-items: center;
  padding-top: calc(var(--lr-step-dot) + 2.25rem);
  text-align: center;
  counter-increment: lr-step;
}

.lr-steps li::before {
  content: counter(lr-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: calc(50% - var(--lr-step-dot) / 2);
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--lr-step-dot);
  height: var(--lr-step-dot);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-colour-button, #fff);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lr-steps li:last-child::before {
  background: var(--complete);
}

.lr-steps strong {
  color: var(--text-strong);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.lr-steps span {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 899px) {
  .lr-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .lr-steps li:not(:last-child)::after {
    top: var(--lr-step-dot);
    bottom: 0;
    left: calc(var(--lr-step-dot) / 2);
    width: 1px;
    height: auto;
  }

  .lr-steps li {
    justify-items: start;
    min-height: var(--lr-step-dot);
    padding: 0.4rem 0 2rem calc(var(--lr-step-dot) + 1.6rem);
    text-align: left;
  }

  .lr-steps li::before {
    left: 0;
  }

  .lr-steps li:last-child {
    padding-bottom: 0;
  }
}

.lr-po {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.lr-po-copy {
  display: grid;
  gap: 1.5rem;
  align-self: center;
}

.lr-po-copy p {
  max-width: 38ch;
  margin: 0;
}

/* The PO check is the app's Check PO values layout at full width, under the copy
   (Jon 24 Oct 2026: "make this look like the new PO UI"). */
.lr-po {
  align-items: start;
}

.lr-process {
  --lr-h2-size: clamp(1.7rem, 5vw, 4.75rem);
}

.lr-call {
  --lr-h2-size: clamp(2.4rem, 6.6vw, 7.5rem);
}

.lr-po,
.lr-privacy {
  --lr-h2-size: clamp(2.1rem, 4.2vw, 4rem);
}

.lr-cta {
  --lr-h2-size: clamp(2.4rem, 6.4vw, 6.5rem);
}

.lr-call-text {
  max-width: 36ch;
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
}

.lr-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: clamp(3rem, 6vw, 5.5rem) 0 0;
}

.lr-numbers > div {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.lr-numbers dt {
  color: var(--text-strong);
  font-family: var(--font-head);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.lr-numbers > div:last-child dt {
  color: var(--accent-text);
}

.lr-numbers dd {
  max-width: 24ch;
  margin: 0.75rem 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .lr-numbers {
    grid-template-columns: minmax(0, 1fr);
  }

  .lr-numbers dt {
    font-size: clamp(5rem, 28vw, 8rem);
  }
}

.lr-privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.lr-privacy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem);
}

.lr-privacy-list p {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  margin: 0;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--border);
}

.lr-privacy-list strong {
  color: var(--text-strong);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.lr-privacy-list span {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.landing-page .lr-privacy p.lr-privacy-link {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
}

.lr-privacy-link a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

@media (min-width: 1000px) {
  .lr-privacy {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .lr-privacy h2 {
    align-self: start;
  }

  .lr-privacy-list {
    grid-column: 2;
    grid-row: 1;
  }

  .landing-page .lr-privacy p.lr-privacy-link {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .lr-privacy-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lr-cta {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}

.landing-page .lr-cta h2 {
  max-width: 20ch;
}

.landing-page .lr-cta p {
  max-width: 40ch;
  margin: 0;
}

.lr-cta .landing-button {
  min-height: 3.4rem;
  padding-inline: 2.4rem;
  font-size: 1.0625rem;
}

.lr-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: var(--lr-gap);
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--border);
}

.lr-footer-logo {
  display: block;
  width: clamp(5.5rem, 10vw, 8.5rem);
  height: auto;
  border-radius: 8px;
}

.lr-footer-line {
  flex: 1 1 auto;
  color: var(--text-strong);
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.lr-footer nav {
  display: flex;
  gap: 1.5rem;
}

.lr-footer nav a {
  color: var(--text);
  font-size: 1rem;
  text-underline-offset: 3px;
}

@keyframes lr-rise {
  from { opacity: 0; translate: 0 1.5rem; }
  to { opacity: 1; translate: 0 0; }
}

.landing-page.is-reveal-armed :is(.lr-demo, .lr-process, .lr-po, .lr-call, .lr-privacy, .lr-cta) [data-reveal].is-visible {
  animation: lr-rise 700ms var(--landing-ease, cubic-bezier(0.16, 1, 0.3, 1)) var(--reveal-delay, 0ms) both;
}

.lr-hero-copy > *,
.lr-sheet {
  animation: lr-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lr-hero-copy > :nth-child(2) { animation-delay: 90ms; }
.lr-hero-copy > :nth-child(3) { animation-delay: 180ms; }
.lr-sheet-a { animation-delay: 160ms; }
.lr-sheet-b { animation-delay: 300ms; }

#landingDemo {
  scroll-margin-top: calc(var(--pillbar-inset) + var(--pillbar-bar-height) + 11rem);
}

#landingMainContent > :is(.lr-hero, .lr-demo, .lr-process, .lr-po, .lr-call, .lr-privacy, .lr-cta) {
  scroll-margin-top: calc(var(--pillbar-inset) + var(--pillbar-bar-height) + 2rem);
}

@media (min-width: 900px) {
  .lr-call {
    --lr-h2-size: clamp(2.4rem, 4.6vw, 5.5rem);
  }

  .lr-po {
    --lr-h2-size: clamp(2rem, 3.2vw, 3.4rem);
  }
}
