/* ===========================
   Landing page (public/landing.html).
   Tokens, buttons, the brand mark, footer and cookie band come from
   styles.css; this file only lays out the marketing sections.
   =========================== */

.lp {
  overflow-x: hidden;
}

.lp-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-right: max(var(--gutter), var(--safe-right));
  padding-left: max(var(--gutter), var(--safe-left));
}

/* Header */
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(64px + var(--safe-top));
  padding-top: var(--safe-top);
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Section links: wide screens only. The header is not sticky. */
.lp-header__nav {
  display: none;
}

.lp-header__anchor,
.lp-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}

.lp-header__anchor {
  font-weight: 600;
  color: var(--ivory);
  text-decoration: none;
}

.lp-header__anchor:hover {
  color: var(--lime);
  text-decoration: underline;
}

.lp-header__link {
  font-weight: 700;
}

@media (min-width: 860px) {
  .lp-header__nav {
    display: flex;
    gap: 24px;
  }
}

/* Targets of the header links */
#how-it-works,
#pricing,
#faq {
  scroll-margin-top: 16px;
}

/* Hero */
.lp-hero {
  display: grid;
  gap: 36px;
  padding-top: 12px;
  padding-bottom: 56px;
}

.lp-hero__copy {
  min-width: 0;
}

.lp-kicker {
  font-size: 17px;
  font-weight: 700;
  color: var(--lime);
}

.lp-hero__title {
  margin-top: 10px;
  font-size: clamp(46px, 13vw, 84px);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lp-accent {
  color: var(--lime);
}

.lp-hero__sub {
  max-width: 34em;
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--soft);
}

.lp-search {
  margin-top: 26px;
  max-width: 520px;
}

.lp-search__label {
  display: block;
}

.lp-search__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 6px;
}

.lp-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 56px;
  padding: 4px 0 6px;
  border: 0;
  border-bottom: 2px solid var(--ivory);
  border-radius: 0;
  background: transparent;
  color: var(--lime);
  font-size: 30px;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lp-search__input::placeholder {
  color: var(--muted);
  opacity: 1;
  font-size: 22px;
  font-weight: 600;
  text-transform: none;
}

.lp-search__input:focus-visible {
  outline: none;
  border-bottom-color: var(--lime);
  box-shadow: 0 2px 0 var(--lime);
}

.lp-search__btn {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 800;
}

.lp-hero__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin-top: 10px;
  font-size: 15px;
}

.lp-hero__alt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.lp-hero__alt-note {
  color: var(--muted);
}

/* Hero photograph */
.lp-hero__visual {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: center;
}

.lp-hero__photo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 10 / 9;
  object-fit: cover;
  object-position: 60% 50%;
  border-radius: 4px;
  background: var(--rule);
}

.lp-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 9;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 4px;
  background: var(--rule);
}

.lp-photo-wide {
  margin: 40px 0 0;
}

.lp-photo--wide {
  aspect-ratio: 16 / 9;
}

@media (min-width: 860px) {
  .lp-photo--wide {
    aspect-ratio: 20 / 9;
  }
}

/* Sections */
.lp-section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

.lp-section__title {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Zero-specificity default so component classes below win without. */
:where(.lp-section) p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--soft);
}

/* The problem */
.lp-beats {
  display: grid;
  gap: 0;
  margin-top: 28px;
  list-style: none;
  counter-reset: beat;
}

.lp-beat {
  padding: 18px 0;
  border-top: 2px solid var(--ivory);
}

.lp-beat__title {
  margin-bottom: 6px;
  font-size: 23px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.15;
  color: var(--ivory);
}

/* How it works */
.lp-steps {
  display: grid;
  gap: 0;
  margin-top: 28px;
  list-style: none;
}

.lp-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-content: start;
  column-gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.lp-step__icon {
  grid-row: 1 / span 3;
  color: var(--lime);
}

.lp-step__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.lp-step__title {
  margin: 2px 0 6px;
  font-size: 21px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.15;
}


/* Proof: a short muted recording of one real search, shown phone-width.
   Phone and tablet: below the four steps. Wide: beside them, with the
   steps in two columns. The video is forest like the app, so a 1px rule
   marks its edge against the page. */
.lp-demo {
  width: 100%;
  max-width: 390px;
  margin: 40px auto 0;
}

.lp-demo__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 674;
  border-radius: 4px;
  background: var(--forest);
  box-shadow: 0 0 0 1px var(--rule);
}

/* Play/Pause for the loop, right-aligned under the clip. */
.lp-demo__toggle {
  display: block;
  margin: 10px 0 0 auto;
}

.lp-demo__caption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Why I built it: the owner's note beside the Tower Bridge photo.
   Phone: heading, photo, note. Wide: photo left, heading and note right. */
.lp-founder {
  display: grid;
  grid-template-areas:
    "title"
    "photo"
    "note";
  row-gap: 28px;
}

.lp-founder__title {
  grid-area: title;
}

.lp-founder__visual {
  grid-area: photo;
  margin: 0;
}

.lp-founder__note {
  grid-area: note;
  max-width: 34em;
  margin: 0;
}

.lp-founder__quote {
  margin: 0;
}

.lp-founder__quote::before {
  content: '\201C';
  display: block;
  height: 0.5em;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  color: var(--lime);
}

.lp-founder__quote p {
  font-size: clamp(22px, 1.1rem + 0.75vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ivory);
}

.lp-founder__sig {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 17px;
  font-weight: 700;
}

.lp-founder__sig::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--lime);
}

@media (min-width: 860px) {
  .lp-founder {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      "photo ."
      "photo title"
      "photo note"
      "photo .";
    column-gap: 56px;
    row-gap: 0;
  }

  .lp-founder__note {
    margin-top: 24px;
  }

  /* Welcome page: the quote without a photograph beside it. */
  .lp-founder--solo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "title"
      "note";
  }
}

/* Honesty */
.lp-honest__box {
  max-width: 820px;
  padding: 24px 22px;
  border-left: 6px solid var(--lime);
  background: var(--wash);
}

.lp-honest__box p {
  margin-top: 12px;
  font-size: 19px;
  color: var(--ivory);
}

/* Pricing: the one ivory band in the forest scroll, echoing the map paper.
   Forest on ivory throughout (lime fails 4.5:1 here). The background runs
   full width; the content stays in .lp-wrap. */
.lp-section--paper {
  border-top: 0;
  background: var(--ivory);
  color: var(--forest);
}

.lp-section--paper + .lp-section {
  border-top: 0;
}

.lp-section--paper p {
  color: var(--forest);
}

.lp-section--paper :focus-visible {
  outline-color: var(--forest);
}

.lp-plans {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.lp-plan {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border: 1.5px solid var(--forest);
  border-top-width: 3px;
}

/* The heavier top rule marks Premium; less padding keeps both cards' text level. */
.lp-plan--premium {
  padding-top: 15px;
  border-top-width: 8px;
}

.lp-plan__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-plan__price {
  margin-top: 4px;
  font-size: 44px;
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.05;
}

.lp-plan__period {
  font-size: 20px;
  font-weight: 700;
  font-stretch: 100%;
}

.lp-plan__list {
  margin: 16px 0 0;
  list-style: none;
}

.lp-plan__list li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-top: 1px solid rgba(15, 61, 46, 0.2);
  font-size: 16px;
  line-height: 1.45;
}

.lp-plan__list li::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forest);
}

/* #3E6A57 on ivory is 5.4:1. */
.lp-section--paper .lp-plan__note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--rule);
}

/* Get the app */
.lp-apps p {
  margin-top: 14px;
}

/* FAQ */
.lp-faq__list {
  margin-top: 24px;
}

.lp-faq__item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.lp-faq__q {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.lp-faq__more {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
}

/* Closing call to action */
.lp-cta .lp-wrap {
  display: grid;
  gap: 20px;
}

.lp-cta__btn {
  max-width: 420px;
  margin-top: 0;
}

.lp-footer {
  margin-top: 0;
}

/* Wider screens */
@media (min-width: 720px) {
  .lp-beats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .lp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }

  .lp-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
  }

  .lp-faq__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
}

@media (min-width: 960px) {
  .lp-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
    padding-top: 24px;
    padding-bottom: 72px;
  }


  .lp-hero__visual {
    justify-content: flex-end;
  }

  .lp-how {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    column-gap: 56px;
    align-items: start;
    margin-top: 28px;
  }

  .lp-how .lp-steps {
    margin-top: 0;
  }

  .lp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .lp-demo {
    margin-top: 0;
  }

  .lp-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    border-top: 2px solid var(--ivory);
  }

  .lp-step__icon {
    grid-row: auto;
    margin-bottom: 12px;
  }

  .lp-section {
    padding: 80px 0;
  }

  .lp-honest__box {
    padding: 32px 36px;
  }
}

/* Store badges, as on the pre-redesign site */
.lp-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.lp-store-links .store-link {
  min-width: 166px;
  padding: 9px 16px 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #000000;
  color: #FFFFFF;
  text-decoration: none;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.lp-store-links .store-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #FFFFFF;
}

.lp-store-links .store-link:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.lp-store-links .store-link__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lp-store-links .store-link__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.lp-store-links .store-link__eyebrow {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.lp-store-links .store-link__name {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
}
