/* Vorynx — the public landing page.
 *
 * Loaded after vorynx.css, which supplies the token layer (§2 colour, §14
 * spacing, §4 radius, §7 motion). Nothing here introduces a value that isn't
 * derived from one of those tokens.
 *
 * Direction (BRAND_GUIDELINES.md §0): "Bloomberg terminal crossed with an
 * Apple product page." So: one accent (Bronze), hierarchy carried by type and
 * space rather than colour, hairlines instead of borders, and no gradient,
 * ring, badge or stock photograph anywhere. The page is wider and quieter
 * than the instrument behind it, but it is the same material.
 */

.landing {
  /* The marketing page breathes more than the dense roster it fronts. */
  --lp-measure: 64rem;
  --lp-gutter: var(--space-24);
  --space-64: 64px;
  --space-96: 96px;
}

.landing main {
  display: block;
}

/* ---- Bar ---------------------------------------------------------------- */

.lp-bar {
  --lp-edge: max(var(--lp-gutter), calc((100% - var(--lp-measure)) / 2));
  display: flex;
  align-items: center;
  gap: var(--space-24);
  flex-wrap: wrap;
  padding: var(--space-24) var(--lp-edge);
}

.lp-bar .wordmark {
  margin-right: auto;
}

.lp-bar-nav {
  display: flex;
  gap: var(--space-24);
}

.lp-bar-nav a,
.lp-signin {
  color: var(--color-ash);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.lp-bar-nav a:hover,
.lp-signin:hover {
  color: var(--color-bone);
}

.lp-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

/* ---- The one button shape ----------------------------------------------- */

.lp-cta {
  display: inline-block;
  background: var(--color-lime);
  color: var(--color-obsidian);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-input);
  transition: opacity var(--motion-ambient-duration) var(--motion-ambient-easing);
}

.lp-cta:hover {
  opacity: 0.88;
}

.lp-cta-lg {
  font-size: 1rem;
  padding: 14px var(--space-32);
}

.lp-ghost {
  display: inline-block;
  color: var(--color-bone);
  text-decoration: none;
  font-size: 1rem;
  padding: 14px var(--space-16);
  /* A hairline, never a second filled button — one action leads per view. */
  box-shadow: inset 0 0 0 1px var(--hairline);
  border-radius: var(--radius-input);
  transition: box-shadow var(--motion-ambient-duration) var(--motion-ambient-easing);
}

.lp-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--color-ash);
}

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

.lp-hero {
  --lp-edge: max(var(--lp-gutter), calc((100% - var(--lp-measure)) / 2));
  padding: var(--space-64) var(--lp-edge) var(--space-96);
}

.lp-eyebrow {
  margin: 0 0 var(--space-16);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-lime);
}

.lp-hero h1 {
  margin: 0;
  /* Scales with the viewport so the two-line headline never breaks badly. */
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-bone);
  max-width: 20ch;
}

.lp-lede {
  margin: var(--space-24) 0 0;
  max-width: 54ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-ash);
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-16);
  margin-top: var(--space-32);
}

.lp-fineprint {
  margin: var(--space-16) 0 0;
  font-size: 0.8125rem;
  color: var(--color-ash);
  font-variant-numeric: tabular-nums;
}

/* ---- The month plot ------------------------------------------------------ */

.lp-figure {
  margin: var(--space-64) 0 0;
}

.lp-plot {
  display: block;
  width: 100%;
  height: auto;
}

.lp-axis {
  stroke: var(--hairline);
  stroke-width: 1;
}

/* Twenty-six days nobody measures: present, but barely. */
.lp-quiet line {
  stroke: var(--color-ash);
  stroke-width: 2;
  opacity: 0.3;
}

/* The four hours you do see. Bronze — this is the page's single accent. */
.lp-session line {
  stroke: var(--color-lime);
  stroke-width: 2;
}

.lp-figure figcaption {
  margin-top: var(--space-16);
  font-size: 0.8125rem;
  color: var(--color-ash);
  max-width: 48ch;
}

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

/* The reading column is centred by the section's own padding. Auto margins on
 * the children would also centre any child that has its own max-width, which
 * left body copy floating right of the heading above it. */
.lp-section,
.lp-close {
  --lp-edge: max(var(--lp-gutter), calc((100% - var(--lp-measure)) / 2));
  padding-left: var(--lp-edge);
  padding-right: var(--lp-edge);
}

.lp-section {
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
}

/* "Elevated surface" (§2 Graphite) is how sections separate — not a rule, not
 * a colour change. */
.lp-section-alt {
  background: var(--color-graphite);
}

.lp-h2 {
  margin: 0 0 var(--space-48);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--color-bone);
}

.lp-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ash);
  max-width: 60ch;
}

.lp-body strong {
  color: var(--color-bone);
  font-variant-numeric: tabular-nums;
}

/* ---- Steps --------------------------------------------------------------- */

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-48);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.lp-step-n {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--color-lime);
  font-variant-numeric: tabular-nums;
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-16);
}

.lp-steps h3,
.lp-card h3 {
  margin: 0 0 var(--space-8);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-bone);
}

.lp-steps p,
.lp-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-ash);
}

/* ---- Cards --------------------------------------------------------------- */

.lp-grid {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.lp-card {
  padding: var(--space-24);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

/* On the Graphite band the cards sit back on Obsidian, keeping the same
 * one-step-of-depth relationship as everywhere else in the product. */
.lp-section-alt .lp-card {
  background: var(--color-obsidian);
  box-shadow: none;
}

/* ---- Client split -------------------------------------------------------- */

.lp-split {
  display: grid;
  gap: var(--space-48);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  align-items: center;
}

.lp-list {
  margin: var(--space-24) 0 0;
  padding: 0;
  list-style: none;
}

.lp-list li {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--color-ash);
  line-height: 1.5;
}

.lp-list strong {
  color: var(--color-bone);
  font-weight: 600;
}

.lp-shot {
  margin: 0;
  justify-self: center;
}

.lp-shot img {
  display: block;
  width: 100%;
  max-width: 300px;
  /* Tall screenshot, bounded height: the top of the frame — figure, pins,
   * labels — is the part worth showing. */
  max-height: 34rem;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

/* ---- Pricing ------------------------------------------------------------- */

.lp-price-figure {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
}

.lp-price-amount {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  font-weight: 600;
  color: var(--color-bone);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.lp-price-unit,
.lp-price-plus {
  color: var(--color-ash);
  font-size: 1rem;
}

.lp-price-plus {
  margin: var(--space-8) 0 var(--space-24);
  font-variant-numeric: tabular-nums;
}

.lp-price .lp-cta {
  margin-top: var(--space-32);
}

/* ---- Close --------------------------------------------------------------- */

.lp-close {
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
  border-top: 1px solid var(--hairline);
}

.lp-close h2 {
  margin: 0 0 var(--space-16);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--color-bone);
}

/* ---- Phone --------------------------------------------------------------- */

@media (max-width: 40rem) {
  .landing {
    --lp-gutter: var(--space-16);
  }

  /* The bar keeps the wordmark and the one action; the section links are
   * reachable by scrolling, so they don't earn a hamburger. */
  .lp-bar-nav {
    display: none;
  }

  .lp-hero {
    padding-top: var(--space-32);
    padding-bottom: var(--space-64);
  }

  .lp-section,
  .lp-close {
    padding-top: var(--space-64);
    padding-bottom: var(--space-64);
  }

  .lp-shot img {
    max-height: 28rem;
  }

  .lp-hero-actions .lp-cta,
  .lp-hero-actions .lp-ghost {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ---- Install steps (client page) ---------------------------------------- */

.lp-howto {
  margin: 0 0 var(--space-16);
  padding-left: 1.25em;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-ash);
}

.lp-howto li {
  margin-bottom: var(--space-8);
}

.lp-howto strong {
  color: var(--color-bone);
  font-weight: 600;
}

/* The card for the device you're holding. A hairline, not a fill — it is a
 * hint about ordering, not a call to action. */
.lp-install .is-yours {
  box-shadow: inset 0 0 0 1px var(--color-lime);
}

.lp-install-note {
  margin-top: var(--space-24);
  font-size: 0.875rem;
  color: var(--color-lime);
}

.lp-install-note[hidden] {
  display: none;
}

.lp-inline-link {
  display: block;
  color: var(--color-lime);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.lp-inline-link:hover {
  text-decoration: underline;
}


/* Client pricing on /for-clients/ — shown only while clients are charged. Two
 * flat cards; Pro is marked by its border and its call line, not a new colour. */
.lp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.lp-plan {
  padding: var(--space-24);
  background: var(--glass, var(--color-graphite));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
}

.lp-plan.is-pro {
  border-color: var(--color-lime);
}

.lp-plan-name {
  margin: 0;
  font-family: var(--font-interface);
  font-size: 16px;
  font-weight: 600;
}

.lp-plan-price {
  margin: var(--space-8) 0 var(--space-16);
  font-family: var(--font-readout, var(--font-interface));
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
}

.lp-plan-price span {
  font-family: var(--font-interface);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-ash);
}

.lp-plan ul {
  margin: 0;
  padding-left: var(--space-16);
}

.lp-plan-fine {
  margin: var(--space-16) 0 0;
  color: var(--color-ash);
  font-size: 13px;
}
