/* The home page (tools/home.html): the app first, the website second.
   Classes are lp- (landing page) so they never meet another page's. */

/* "Start tracking today" (the App Store) and, under it, the store buttons
   (owner, 2026-11-14, after Collectr). The store buttons are Collectr's: dark,
   a thin border, 12 px corners, small grey line over a heavy Lato name; they
   lift a little on hover. Google Play's reads "Coming soon to" and isn't a
   link until the Android app exists. */
.lp-get {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 30px;
}
.lp-cta {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 34px;
  border-radius: var(--r-pill);
  background: #ffffff;
  color: var(--bg);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 30px -8px rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.lp-cta:hover {
  background: #e4e6ea;
}
.lp-cta:active {
  transform: scale(0.98);
}
.lp-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: Lato, var(--font);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
a.lp-badge:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}
a.lp-badge {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
}
.lp-soon {
  cursor: default;
  opacity: 0.5;
}
.lp-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}
.lp-badge span {
  display: grid;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lp-badge small {
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 3px;
}
.lp-cta:focus-visible,
.lp-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Four plain facts under the hero. */
/* Four reasons to get the app: open columns split by thin lines, no boxes
   (owner, 2026-11-14). */
.lp-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 24px 40px;
}
.lp-facts > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px 28px;
}
.lp-facts > div + div {
  border-left: 1px solid var(--line);
}
.lp-facts > div:first-child {
  padding-left: 0;
}
.lp-facts strong {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.lp-facts span {
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.45;
}

/* One feature: words on one side, the real app screen on the other, alternating. */
.lp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-block: 56px;
}
.lp-feature + .lp-feature {
  border-top: 1px solid var(--line-faint);
}
.lp-feature:nth-of-type(even) .lp-copy {
  order: 2;
}
.lp-copy {
  max-width: 470px;
  justify-self: center;
}
.lp-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp-copy h3 {
  margin: 0 0 12px;
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.lp-copy > p:not(.lp-kicker) {
  margin: 0 0 18px;
  color: var(--muted);
}
.lp-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-md);
}
.lp-points .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.lp-shot {
  position: relative;
  justify-self: center;
  width: min(290px, 100%);
}
/* A faint gold light under each phone, as in the store pictures. */
.lp-shot::before {
  content: "";
  position: absolute;
  inset: 18% -30% -6%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 70%, var(--gold-faint), transparent 65%);
  pointer-events: none;
}

/* Page not found (404.html). */
.nf {
  max-width: 640px;
  padding-block: 96px 120px;
  text-align: center;
}
.nf h1 {
  margin: 0 0 12px;
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.nf-text {
  margin: 0 auto 28px;
  max-width: 46ch;
  color: var(--muted);
}
.nf-search {
  margin: 0 auto 24px;
  max-width: 520px;
}
.nf-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin: 0;
}

/* The closing call to download, set like the hero (owner, 2026-11-14, after
   Collectr): centred under a soft gold glow, the app icon, the headline, the
   Lato paragraph and the same buttons. */
.lp-end {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 55% 60% at 50% 0%, var(--gold-faint), transparent 70%);
  text-align: center;
}
.lp-end-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 18px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
}
.lp-end h2 {
  font-size: clamp(38px, 5vw, 64px);
}
.lp-end h2 span {
  color: var(--gold);
}
.lp-end-lede {
  max-width: 46ch;
  margin: 24px auto 0;
  font-family: Lato, var(--font);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.lp-end .lp-get {
  align-items: center;
}

@media (max-width: 800px) {
  /* The hero's text is centred here (site.css); its buttons follow. */
  .hero .lp-get {
    align-items: center;
  }
}
@media (max-width: 900px) {
  .lp-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .lp-facts > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .lp-feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 44px;
  }
  .lp-feature:nth-of-type(even) .lp-copy {
    order: 0;
  }
  .lp-copy {
    justify-self: start;
  }
  .lp-shot {
    width: min(250px, 72vw);
  }
}
@media (max-width: 560px) {
  .lp-get {
    align-items: center;
  }
  /* An equal-width pair, as Collectr's. */
  .lp-stores {
    width: 100%;
    max-width: 360px;
    gap: 10px;
  }
  .lp-badge {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }
  .lp-facts > div {
    padding-inline: 16px;
  }
  .lp-facts strong {
    font-size: var(--text-xl);
  }
  .lp-copy h3 {
    font-size: var(--text-3xl);
  }
  .nf {
    padding-block: 64px 88px;
  }
  .nf h1 {
    font-size: var(--text-4xl);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-cta,
  .lp-badge {
    transition: none;
  }
}
.lp-hold {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Inside TikTok only (site.js adds .in-tiktok): the App Store buttons pulse, and
   a tap opens a sheet whose button is held, not tapped (TikTok blocks the tap). */
.in-tiktok .lp-cta,
.in-tiktok a.lp-badge {
  animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); transform: scale(1.03); }
}
.lp-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.55);
}
.lp-sheet[hidden] {
  display: none;
}
.lp-sheet-panel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  background: var(--panel);
  animation: lp-rise 0.25s ease-out;
}
@keyframes lp-rise {
  from { transform: translateY(100%); }
}
.lp-sheet-panel img {
  border-radius: 14px;
}
.lp-sheet-panel h2 {
  margin: 0;
  font-size: 22px;
}
.lp-sheet-panel h2 span {
  color: var(--gold);
}
.lp-sheet-close {
  position: absolute;
  top: 12px;
  right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--raised);
  color: var(--text);
}
.lp-sheet-close .icon {
  width: 16px;
  height: 16px;
}
.lp-sheet-row {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-top: 46px;
}
.lp-sheet-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 17px;
  -webkit-user-select: none;
  user-select: none;
}
.lp-sheet-open .icon {
  width: 22px;
  height: 22px;
  flex: none;
}
.lp-nudge {
  animation: lp-nudge 0.4s ease;
}
@keyframes lp-nudge {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
/* A diagonal arrow above each end of the button, nudging into it. */
.lp-arrow {
  position: absolute;
  top: -44px;
  width: 38px;
  height: 38px;
  pointer-events: none;
  fill: none;
  stroke: var(--text);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: lp-point 1s ease-in-out infinite;
}
.lp-arrow-l {
  left: 10%;
}
.lp-arrow-r {
  right: 10%;
  transform: scaleX(-1);
  animation-name: lp-point-r;
}
@keyframes lp-point {
  50% { transform: translate(6px, 6px); }
}
@keyframes lp-point-r {
  0%, 100% { transform: scaleX(-1); }
  50% { transform: scaleX(-1) translate(6px, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .in-tiktok .lp-cta,
  .in-tiktok a.lp-badge,
  .lp-arrow,
  .lp-sheet-panel {
    animation: none;
  }
}
