/* The old landing sheet (docs/DESIGN.md §20, 2026-10-12). Since the
   company site moved to its new style (§34, 2026-11-08) only the Ghost
   theme agent's page links it, over saas/application.css: its sections,
   heads, tiles and close. The clean-up kept only the rules that page
   uses; the rest of the company site has its sheets in saas/home/. */

:root {
  --lp-violet: #7c3aed;
  --lp-violet-soft: #f1ebfe;
  --lp-spectrum: linear-gradient(100deg, var(--color-accent) 0%, #5b4cf0 45%, var(--lp-violet) 100%);
  --lp-wrap: 82rem;
  --lp-radius: 28px;
  --lp-shadow: 0 1px 0 rgba(11, 22, 54, 0.04), 0 24px 60px -24px rgba(11, 22, 54, 0.22), 0 0 0 1px rgba(11, 22, 54, 0.06);
  --lp-shadow-soft: 0 18px 40px -22px rgba(11, 22, 54, 0.25), 0 0 0 1px rgba(11, 22, 54, 0.06);
}

.lp {
  overflow-x: clip;
}

.lp-wrap {
  max-width: var(--lp-wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lp em {
  font-style: normal;
}

.lp code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* — Type ———————————————————————————————————————————— */
.lp-display {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 1.2rem + 7.4vw, 8.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.lp-display em {
  font-style: italic;
  background: var(--lp-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.lp-lede {
  max-width: 38rem;
  margin: 2rem auto 0;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: color-mix(in srgb, var(--color-ink) 74%, var(--color-paper));
  text-wrap: balance;
}

.lp-fine {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.lp-button-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

/* — The hero ———————————————————————————————————————— */
.lp-hero {
  position: relative;
  padding: clamp(3.5rem, 2rem + 6vw, 7.5rem) 0 clamp(4rem, 2.5rem + 5vw, 7rem);
  text-align: center;
  isolation: isolate;
}

/* The light: a fine grid fading out from the headline. */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -6rem 0 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 22, 54, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 22, 54, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}

.lp-hero-copy > * {
  animation: lp-rise 0.9s var(--ease-out) both;
}

.lp-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.lp-hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.lp-hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.lp-hero-copy > :nth-child(5) { animation-delay: 0.3s; }
.lp-hero-copy > :nth-child(6) { animation-delay: 0.38s; }

/* — Sections ——————————————————————————————————————— */
.lp-section {
  padding: clamp(5rem, 3rem + 7vw, 9.5rem) 0;
}

.lp-tint {
  background: var(--color-paper-2);
  border-block: 1px solid var(--color-line);
}

.lp-head {
  max-width: 52rem;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.lp-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.lp-head h2 {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

/* The home page's heads open on the title; the theme agent page's carry an
   eyebrow above it. */
.lp-head h2:first-child {
  margin-top: 0;
}

.lp-head h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: var(--lp-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.lp-head p {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 0.98rem + 0.45vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: color-mix(in srgb, var(--color-ink) 74%, var(--color-paper));
  text-wrap: pretty;
}

/* — Clean, bold words (Ronald, 2026-10-24: "nice, clean, bold …
   squarespace vibes"): a lede is plain, larger text in a deep grey, set
   a little tight, and its one strong phrase is in full ink and weight. No token and no
   italic inside the words. — */
.lp-lede b,
.lp-head p b {
  font-weight: 600;
  color: var(--color-ink);
}

/* A tile: paper, a ring, a large radius. */
.lp-tile {
  position: relative;
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  border-radius: var(--lp-radius);
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-line-strong);
  overflow: hidden;
}

.lp-tile h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.lp-tile h3 em {
  font-weight: 400;
  color: var(--color-muted);
}

.lp-tile > p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--color-body);
}

/* — The ink band (How it works, /agents, the theme agent) ————————— */
.lp-dark {
  position: relative;
  margin: 0 clamp(0.5rem, 1.5vw, 1.25rem);
  border-radius: clamp(24px, 3vw, 40px);
  background: var(--color-ink);
  color: var(--color-on-ink);
  overflow: hidden;
  isolation: isolate;
}

.lp-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(124, 58, 237, 0.45), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(46, 107, 245, 0.4), transparent 60%);
}

.lp-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(234, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(234, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
}

.lp-dark .lp-index {
  color: #a9c1fb;
}

.lp-dark .lp-head p {
  color: var(--color-on-ink-muted);
}

/* The strong phrase is ink on paper; on ink it is the light text. */
.lp-dark .lp-head p b,
.lp-dark .lp-lede b {
  color: var(--color-on-ink);
}

.lp-dark .lp-head h2 em {
  background: linear-gradient(100deg, #8fb0ff 0%, #b79cff 60%, #e3a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* — What an agent builds, and what it earns (§20, 2026-10-22) ——————
   Each scene plays one loop of registered numbers, as the admin's
   screens do: only the windows move, nothing changes its size, and what
   appears was there, unseen. Reduced motion shows each scene at its end. */
@property --bc-1 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --bc-2 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --bc-3 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --b-after { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --b-slide { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-1 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-2 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-3 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-4 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-5 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-6 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-7 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --earn-8 { syntax: "<number>"; inherits: true; initial-value: 0; }

/* — The admin, at work ———————————————————————————————
   Each drawn screen walks through one real flow on a loop, its pointer
   pressing what a person would: the publish page picks Plain and Next,
   then Later and Schedule; Audience ticks two rows and the bulk bar comes up; the
   campaign fixes a broken link. A screen's steps are numbers from 0 to 1
   (registered below, so they ease), moved by one timeline on the screen;
   the elements read them. Nothing outside a window moves, and nothing
   changes its size: the moments of a row are stacked in one place, and
   what appears was there, unseen. Reduced motion stops every timeline,
   and the screens stand at their first moment. */
@property --pub-design { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pub-later { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pub-press { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pub-nudge { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pub-next { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pub-done { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-1 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-2 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-bar { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-label { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-sheet { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-type { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-add { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mem-tag { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --cam-edit { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --cam-type { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --cam-fixed { syntax: "<number>"; inherits: true; initial-value: 0; }

@container (max-width: 25rem) {
  .lp-mem-more {
    display: none;
  }
}

/* The Dashboard, twelve seconds: Web traffic pressed at 16% and the map
   comes, shaded by visitors; the pointer on the United States at 36.5%
   and its card up until the pointer goes; Audience pressed at 62%, and
   the map is shaded by members with their faces; back to the Overview
   from 92%. Its pointer keeps the same twelve seconds. */
@property --dash-traffic { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --dash-card { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --dash-aud { syntax: "<number>"; inherits: true; initial-value: 0; }

.lp-close {
  position: relative;
  padding: clamp(6rem, 4rem + 8vw, 11rem) 0;
  text-align: center;
  isolation: isolate;
}

.lp-close::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  width: min(1100px, 120vw);
  height: 70%;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 70%, rgba(46, 107, 245, 0.22), transparent 70%),
    radial-gradient(closest-side at 65% 70%, rgba(124, 58, 237, 0.2), transparent 70%);
  filter: blur(30px);
}

.lp-close .lp-display {
  font-size: clamp(2.9rem, 1rem + 6.5vw, 7.5rem);
}

.lp-close .lp-lede {
  margin-top: 1.75rem;
}

/* — Scroll: what comes into view rises into place, where the browser
   can tie an animation to the scroll; elsewhere it simply stands. — */
@supports (animation-timeline: view()) {
  .lp-head,
  .lp-tile,
  .lp-pillars li,
  .lp-build,
  .lp-play,
  .lp-month {
    animation: lp-rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
}

/* — Motion ——————————————————————————————————————————— */
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *,
  .lp *::before,
  .lp *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* — The phone (Ronald, 2026-10-12: "mobile needs serious love") ——————
   The doors stack full width; every band breathes less. */
@media (max-width: 47.9375rem) {
  .lp-wrap {
    padding: 0 1rem;
  }

  .lp-hero {
    padding: 2.5rem 0 3.5rem;
  }

  .lp-display {
    font-size: clamp(2.6rem, 1rem + 8.4vw, 3.4rem);
    line-height: 0.95;
  }

  .lp-lede {
    margin-top: 1.25rem;
    font-size: 1.02rem;
  }

  .lp-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 22rem;
    margin-inline: auto;
    margin-top: 1.75rem;
  }

  .lp-actions .saas-button {
    justify-content: center;
    text-align: center;
  }

  .lp-section {
    padding: 4.5rem 0;
  }

  .lp-head {
    margin-bottom: 2.25rem;
  }

  .lp-head h2 {
    font-size: clamp(2.1rem, 1rem + 6vw, 2.6rem);
    letter-spacing: -0.04em;
  }

  .lp-head p {
    margin-top: 1rem;
    font-size: 1.02rem;
  }

  .lp-dark {
    margin-inline: 0.5rem;
    border-radius: 24px;
  }

  .lp-tile {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .lp-close {
    padding: 5rem 0 4rem;
  }

  .lp-close .lp-display {
    font-size: clamp(2.4rem, 1rem + 7.6vw, 3.1rem);
  }

  .lp-claim .saas-button {
    width: 100%;
  }
}
