/* Landing page styles.
 *
 * Deliberately a separate stylesheet from the app's own styles.css, sharing only tokens.css. The
 * app is a dense mobile utility; this is a wide, airy page meant to be read once. Reusing
 * styles.css would mean every marketing tweak risking a change to a screen someone uses daily —
 * and the two have almost no components in common anyway.
 *
 * It inherits the palette and both typefaces from tokens.css so the page and the product look
 * like the same thing. That matters more here than anywhere: the screenshots ARE the app, so a
 * page in a different visual language would look like someone else's marketing wrapped around it.
 */

@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Soft";
  src: url("/fonts/Fraunces72ptSoft-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Soft";
  src: url("/fonts/Fraunces72ptSoft-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg, var(--cream-50));
  color: var(--text, var(--ink-900));
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.lp-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* -------- Nav -------- */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg, var(--cream-50)) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.lp-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.lp-nav-actions { display: flex; align-items: center; gap: 14px; }
.lp-link { text-decoration: none; font-weight: 500; color: var(--text-dim); }
.lp-link:hover { color: var(--text); }

/* -------- Buttons -------- */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-pill, 999px);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.lp-btn-primary { background: var(--accent); color: var(--cream-50); }
.lp-btn-primary:hover { background: var(--accent-hover); }
.lp-btn-ghost { border-color: var(--border-strong); color: var(--text); }
.lp-btn-ghost:hover { background: var(--surface-2); }
.lp-btn-lg { padding: 14px 26px; font-size: 16px; }

/* -------- Type -------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
/* No hard <br> in the markup: forced breaks fight the natural wrap at every width except the
   one they were tuned for, and the hero read as four ragged lines on a laptop. A max-width does
   the same job responsively. */
h1 { font-size: clamp(36px, 5.4vw, 56px); max-width: 15ch; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
h3 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.18; font-weight: 600; }
h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 6px; }

.lp-eyebrow, .lp-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.lp-lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 34em; }
.lp-fineprint { font-size: 14px; color: var(--text-faint); }

/* -------- Hero -------- */

.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }

/* A phone bezel around each screenshot. The app is mobile-first and every shot is 390px wide —
   presenting them in a browser-window chrome would be a small lie about where it's used. */
.lp-phone {
  border: 9px solid var(--ink-900);
  border-radius: 34px;
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: 0 22px 50px -18px rgba(13, 42, 22, 0.42);
  max-width: 330px;
  margin: 0 auto;
}
.lp-hero-shot .lp-phone { max-width: 360px; }

/* -------- Capability strip -------- */

.lp-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 20px 0;
  overflow: hidden;
}
.lp-strip-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
}
.lp-strip-track span { white-space: nowrap; }
.lp-strip-track span::before { content: "· "; color: var(--accent); }

/* -------- Sections -------- */

.lp-section { padding: 86px 22px; }
.lp-band { background: var(--surface-2); border-block: 1px solid var(--border); }

.lp-section-head { max-width: 46em; margin-bottom: 56px; }
.lp-section-head p:last-child { color: var(--text-dim); margin-bottom: 0; }

.lp-feature {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 52px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--border);
}
.lp-feature:first-of-type { border-top: none; }
.lp-reverse .lp-feature-text { order: 2; }
.lp-reverse .lp-feature-shot { order: 1; }
.lp-feature-text p { color: var(--text-dim); }

.lp-list { margin: 20px 0 0; padding: 0; list-style: none; }
.lp-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--text-dim);
}
.lp-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-border);
}

.lp-note {
  margin-top: 44px;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dim);
}
.lp-note strong { color: var(--text); }

/* -------- Grid of small features -------- */

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.lp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 14px);
  padding: 22px;
}
.lp-card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* -------- Invite -------- */

.lp-invite {
  text-align: center;
  max-width: 40em;
  margin: 0 auto;
  padding: 56px 26px;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.lp-invite .lp-cta { justify-content: center; }
.lp-invite p { color: var(--text-dim); }

/* -------- Footer -------- */

.lp-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.lp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-end;
}
.lp-footer .lp-fineprint { margin: 8px 0 0; }
/* Right-aligned on a wide footer, but left-aligned once the two halves stack — a lone
   right-aligned line under a left-aligned logo reads as a mistake. */
.lp-footer-right { text-align: right; }
.lp-contact { color: var(--accent); text-decoration: none; }
.lp-contact:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .lp-footer-right { text-align: left; }
}

/* -------- Reveal on scroll -------- */

.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.is-in { opacity: 1; transform: none; }

/* Anyone who has asked their system not to animate gets the page fully visible from the start —
   and, critically, still gets it if the IntersectionObserver never runs at all. */
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* -------- Narrow -------- */

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 38px; padding-top: 48px; }
  .lp-feature { grid-template-columns: 1fr; gap: 32px; }
  /* Text before image on every feature once stacked, regardless of desktop ordering — reading a
     screenshot before the sentence explaining it is backwards. */
  .lp-reverse .lp-feature-text { order: 0; }
  .lp-reverse .lp-feature-shot { order: 0; }
  .lp-section { padding: 60px 22px; }
  .lp-section-head { margin-bottom: 36px; }
}

@media (max-width: 460px) {
  .lp-nav-actions .lp-link { display: none; }
  .lp-cta .lp-btn { flex: 1; }
}
