/* Front page only. Loaded from pages/home.html. Colours come from the favicon mark. */
.lp {
  --lp-purple: #6b2069;
  --lp-band: #6b2069;
  --lp-step: #6b2069;
  --lp-amber: #eda100;
  --lp-on-amber: #2b0f2a;
  --lp-accent: #6b2069;
  --lp-tint: #f8f1f7;
  --lp-panel: #ffffff;
}
html[data-theme="dark"] .lp {
  --lp-band: #2a1630;
  --lp-step: #9a4a97;
  --lp-accent: #e7b5e4;
  --lp-tint: #1f1a21;
  --lp-panel: #14161a;
}

.lp a:not(.button) { color: var(--lp-accent); text-decoration: underline; text-underline-offset: 2px; }
.lp a:focus-visible, .lp summary:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
.lp-hero a:focus-visible, .lp-later a:focus-visible { outline-color: var(--lp-amber); }

.lp-section { padding: 3.5rem 1.5rem; }
.lp-tint { background: var(--lp-tint); }
.lp-narrow { max-width: 46rem; }
.lp-heading { margin-bottom: 1.5rem; color: var(--bulma-text-strong); font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
.lp-intro { max-width: 46rem; margin-top: -0.75rem; margin-bottom: 2rem; }
.lp-note { max-width: 46rem; margin-top: 1.5rem; color: var(--bulma-text); font-size: 0.9375rem; }
.lp h3 { margin-bottom: 0.375rem; color: var(--bulma-text-strong); font-size: 1.125rem; font-weight: 700; }

/* Hero. The mark sits behind the text, large and faint, so it reads as texture. */
.lp-hero { position: relative; overflow: hidden; padding: 3rem 1.5rem; background: var(--lp-band); color: #fff; }
.lp-hero::before {
  content: "";
  position: absolute;
  bottom: -8rem;
  left: -6rem;
  width: 30rem;
  height: 30rem;
  background: url("../images/landing/arrow-mark.2c9f75604ef7.svg") center / contain no-repeat;
  opacity: 0.08;
}
.lp-hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.lp-title { margin-bottom: 1rem; color: #fff; font-size: 2.5rem; font-weight: 800; line-height: 1.1; }
.lp-lead { margin-bottom: 1.75rem; font-size: 1.25rem; line-height: 1.45; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.lp-small { font-size: 0.9375rem; }
.lp-button-primary { border: 0; background: var(--lp-amber); color: var(--lp-on-amber); font-weight: 700; }
.lp-button-primary:hover, .lp-button-primary:focus-visible { background: #ffc233; color: var(--lp-on-amber); }
.lp-button-ghost { border: 2px solid #fff; background: transparent; color: #fff; }
.lp-button-ghost:hover, .lp-button-ghost:focus-visible { background: #fff; color: var(--lp-purple); }
.lp-hero-figure { max-width: 30rem; }
.lp-hero-figure figcaption { margin-top: 0.5rem; font-size: 0.875rem; }

/* Screenshots. Both themes are in the page, and only the matching one shows or downloads. */
.lp-shot { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--bulma-border); }
.lp-hero .lp-shot { box-shadow: 0.5rem 0.5rem 0 var(--lp-amber); }
.lp-shot-dark { display: none; }
html[data-theme="dark"] .lp-shot-dark { display: block; }
html[data-theme="dark"] .lp-shot-light { display: none; }

/* How it works: the steps sit on the shaft of the arrow, fletching first. Vertical on phones. */
.lp-flight { position: relative; padding-left: 2.75rem; }
.lp-flight::before, .lp-flight::after { content: ""; position: absolute; left: 0; }
.lp-flight::before {
  top: 0;
  width: 2rem;
  height: 1rem;
  background: var(--lp-amber);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 45%, 50% 100%, 0 45%);
}
.lp-flight::after {
  bottom: 0;
  left: 0.25rem;
  width: 1.5rem;
  height: 1.25rem;
  background: var(--lp-accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.lp-steps { position: relative; counter-reset: lp-step; padding-top: 1.75rem; padding-bottom: 2rem; list-style: none; }
.lp-steps::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0;
  left: -1.875rem;
  width: 0.25rem;
  background: var(--lp-accent);
}
.lp-steps li { position: relative; counter-increment: lp-step; margin-bottom: 1.75rem; }
.lp-steps li:last-child { margin-bottom: 0; }
.lp-steps li::before {
  content: counter(lp-step);
  position: absolute;
  top: 0;
  left: -2.75rem;
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lp-step);
  color: #fff;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

/* What you get */
.lp-views { display: grid; gap: 2.5rem 2rem; }
.lp-view p { margin-bottom: 1rem; }
.lp-view { min-width: 0; }

.lp-services { display: grid; gap: 0.75rem; }
.lp-services li { padding: 0.625rem 0 0.625rem 0.875rem; border-left: 4px solid var(--lp-amber); }
.lp-services strong { display: block; color: var(--bulma-text-strong); }

.lp-privacy { display: grid; gap: 1.25rem; }
.lp-panel { padding: 1.5rem; border: 1px solid var(--bulma-border); border-radius: 6px; background: var(--lp-panel); }
.lp-panel-device { border-top: 4px solid var(--lp-amber); }
.lp-panel ul { margin: 0.5rem 0 1rem 1.25rem; list-style: disc; }
.lp-panel li { margin-bottom: 0.375rem; }

.lp-faq { border-bottom: 1px solid var(--bulma-border); }
.lp-faq summary { padding: 0.875rem 0; color: var(--bulma-text-strong); font-weight: 600; cursor: pointer; }
.lp-faq p { padding-bottom: 1rem; }

.lp-later { padding: 3.5rem 1.5rem; background: var(--lp-band); color: #fff; }
.lp-later .lp-heading { color: #fff; }
.lp-later p { margin-bottom: 1rem; }
.lp-later .button { margin-top: 0.5rem; }

@media (min-width: 40rem) {
  .lp-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-views, .lp-privacy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .lp-hero { padding: 4.5rem 1.5rem; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 4rem; }
  .lp-title { font-size: 3.5rem; }
  .lp-heading { font-size: 2.25rem; }
  .lp-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* The arrow turns to fly left to right, across the top of the steps. */
  .lp-flight { padding-left: 0; padding-top: 0; }
  .lp-flight::before {
    top: 0.5rem;
    left: 0;
    width: 1rem;
    height: 2rem;
    clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
    transform: none;
  }
  .lp-flight::after {
    top: 0.875rem;
    right: 0;
    bottom: auto;
    left: auto;
    width: 1.25rem;
    height: 1.25rem;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
  .lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: 0; padding-bottom: 0; }
  .lp-steps::before { top: 1.375rem; right: 1rem; bottom: auto; left: 1rem; width: auto; height: 0.25rem; }
  .lp-steps li { margin-bottom: 0; }
  .lp-steps li::before { position: static; margin: 0.5rem 0 0.5rem 1.5rem; }
}

@media (forced-colors: active) {
  .lp-hero::before, .lp-flight::before, .lp-flight::after, .lp-steps::before { display: none; }
}

/* Processed on your own computer */
.lp-local { border-bottom: 4px solid var(--lp-amber); }
.lp-local-lead { max-width: 46rem; margin-bottom: 2rem; font-size: 1.25rem; line-height: 1.45; }
.lp-boundary { display: grid; gap: 1rem; margin-bottom: 2rem; }
.lp-boundary-inside { padding: 1.25rem; border: 3px solid var(--lp-accent); border-radius: 6px; }
.lp-boundary-outside { padding: 1.25rem; border: 2px dashed var(--bulma-border); border-radius: 6px; }
.lp-boundary-label { margin-bottom: 0.75rem; color: var(--bulma-text-strong); font-weight: 700; }
.lp-flow { display: grid; gap: 0.75rem; list-style: none; }
.lp-flow li { padding: 0.75rem 1rem; border: 1px solid var(--bulma-border); border-radius: 6px; background: var(--lp-panel); color: var(--bulma-text-strong); font-weight: 600; text-align: center; }
.lp-local-grid { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.lp-local-grid h3, .lp-proof h3 { margin-bottom: 0.25rem; color: var(--bulma-text-strong); font-size: 1.125rem; font-weight: 700; }
.lp-proof { max-width: 46rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--lp-amber); background: var(--lp-tint); }
.lp-proof ol { margin: 0.5rem 0 0.75rem 1.25rem; list-style: decimal; }

@media (min-width: 769px) {
  .lp-boundary { grid-template-columns: 3fr 1fr; }
  .lp-flow { grid-template-columns: repeat(3, 1fr); }
  .lp-local-grid { grid-template-columns: repeat(3, 1fr); }
}

.lp-faq-answer { margin-left: 0.5rem; color: var(--lp-accent); font-weight: 700; }
