/* Ink Familiar landing page (inkfamiliar.com): production styles.
   This file sits on top of style.css (a copy of apps/web/src/style.css that build.sh
   makes). It uses only --wf-* tokens and --wf-p-* primitives. Each --lp-* token below is
   built from --wf-* tokens. The comment on each token gives its value.

   Pages: index.html (layout B, <html class="lp lp-b">), the result pages and
   privacy.html (<html class="lp lp-plain">), and the confirm page that the server renders.

   Classes:
     lp-*    shared by every page
     lp-b-*  the landing page, layout B

   The page has no script. prefers-color-scheme picks the light or the dark theme of
   style.css. See docs/specs/landing-page.md, section 5, and
   docs/specs/landing-backend.md, section 8. */

/* -- 1  Landing tokens ------------------------------------------------------ */
:root {
  --lp-font-display: var(--wf-font-literata);
  --lp-gutter: var(--wf-space-5); /* 16px on a phone, 24px from 600px */
  --lp-col: calc(var(--wf-space-9) * 10); /* 640px, about 40em: the column of the privacy page */
  --lp-wide: calc(var(--wf-form-w) * 3); /* 1200px: the widest content */
  --lp-lead-w: calc(var(--wf-space-8) * 11); /* 528px: the hero lead */
  --lp-video-w: calc(var(--wf-space-9) * 11.25); /* 720px: the video slot */
  --lp-header-h: var(--wf-space-9); /* 64px */
  --lp-section-gap: var(--wf-space-9); /* 64px on a phone, 96px on a desktop */
  --lp-sprite: calc(var(--wf-mascot-lg) - var(--wf-space-5)); /* 80px */
  --lp-sprite-lg: calc(var(--wf-mascot-lg) + var(--wf-space-6)); /* 120px */
  --lp-h1: var(--wf-text-3xl); /* 36px on a phone */
  --lp-h2: var(--wf-text-2xl); /* 24px on a phone */
  --lp-h2-lg: calc(var(--wf-text-3xl) * 0.9); /* 32px on a desktop */
  --lp-h3: var(--wf-text-xl); /* 21px */
  --lp-lead: var(--wf-text-lg); /* 18px */
  --lp-overlap: var(--wf-space-9); /* 64px: the hero image of layout B overlaps the band */
  --lp-display-weight: 500; /* Literata display weight, as --wf-ms-title-weight */
}
@media (min-width: 600px) {
  :root {
    --lp-gutter: var(--wf-space-6);
  }
}
@media (min-width: 900px) {
  :root {
    --lp-section-gap: var(--wf-space-10);
    --lp-h2: var(--lp-h2-lg);
  }
}

/* -- 3  Base ---------------------------------------------------------------- */
.lp body {
  background: var(--wf-bg-page);
  color: var(--wf-text);
  font-size: var(--wf-text-md);
  line-height: var(--wf-leading-relaxed);
}
.lp main {
  display: block;
}
.lp img {
  height: auto;
}
.lp h1,
.lp h2 {
  font-family: var(--lp-font-display);
  font-weight: var(--lp-display-weight);
  font-optical-sizing: auto;
}
.lp h2 {
  font-size: var(--lp-h2);
  line-height: var(--wf-leading-tight);
}
.lp h3 {
  font-size: var(--lp-h3);
  line-height: var(--wf-leading-snug);
}
.lp p + p {
  margin-top: var(--wf-space-4);
}

/* The skip link: the first focusable element. It shows on focus. */
.lp-skip {
  position: absolute;
  inset-inline-start: var(--lp-gutter);
  top: var(--wf-space-3);
  z-index: var(--wf-z-tooltip);
  transform: translateY(calc(-100% - var(--wf-space-6)));
}
.lp-skip:focus,
.lp-skip:focus-visible {
  transform: none;
}

/* The visit beacon. It stays in the HTML as an <img>. It takes no room. */
.lp-beacon {
  position: absolute;
  width: var(--wf-border-w);
  height: var(--wf-border-w);
  opacity: 0;
  pointer-events: none;
}

/* The honeypot wrapper. The class hides it. The input keeps its normal display. */
.lp-hp {
  position: absolute;
  inset-inline-start: calc(-100 * var(--wf-space-10));
  width: var(--wf-border-w);
  height: var(--wf-border-w);
  overflow: hidden;
}

.lp-container {
  width: 100%;
  max-width: calc(var(--lp-wide) + 2 * var(--lp-gutter));
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}

/* -- 4  Header and footer --------------------------------------------------- */
.lp-header {
  display: flex;
  align-items: center;
  gap: var(--wf-space-5);
  min-height: var(--lp-header-h);
}
.lp-header .wf-brand,
.lp-footer .wf-brand {
  color: var(--wf-text);
  font-size: var(--wf-text-md);
  font-weight: var(--wf-weight-bold);
  min-height: var(--wf-touch-target);
}
.lp-header-end {
  display: flex;
  align-items: center;
  gap: var(--wf-space-2);
  margin-inline-start: auto;
}
.lp-quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--wf-touch-target);
  padding-inline: var(--wf-space-3);
  border-radius: var(--wf-radius-sm);
  color: var(--wf-text-muted);
  font-size: var(--wf-text-sm);
  font-weight: var(--wf-weight-semibold);
  text-decoration: none;
}
.lp-quiet-link:hover {
  color: var(--wf-text);
  text-decoration: underline;
}

.lp-footer {
  margin-top: var(--lp-section-gap);
  border-top: var(--wf-hairline);
}
.lp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--wf-space-4) var(--wf-space-6);
  padding-block: var(--wf-space-7);
}
.lp-footer-name {
  font-family: var(--lp-font-display);
  font-size: var(--wf-text-md);
  font-weight: var(--wf-weight-semibold);
  color: var(--wf-text);
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--wf-space-2);
  margin: 0 calc(-1 * var(--wf-space-3));
  padding: 0;
  list-style: none;
}

/* -- 5  Shared pieces ------------------------------------------------------- */
/* The eyebrow "Coming soon": a quiet pill, not a label in capitals. */
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: var(--wf-control-h-sm);
  padding: 0 var(--wf-space-4);
  border: var(--wf-hairline-strong);
  border-radius: var(--wf-radius-full);
  color: var(--wf-text-muted);
  font-size: var(--wf-text-sm);
  font-weight: var(--wf-weight-semibold);
}
.lp-h1 {
  font-size: var(--lp-h1);
  line-height: var(--wf-leading-tight);
  letter-spacing: var(--wf-track-tight);
}
.lp-lead {
  font-size: var(--lp-lead);
  line-height: var(--wf-leading-relaxed);
  color: var(--wf-text-muted);
}
.lp-section-intro {
  margin-top: var(--wf-space-4);
  font-size: var(--lp-lead);
  color: var(--wf-text-muted);
}

/* A screenshot. The img carries width and height, so the box keeps its size before
   the file loads. max-width keeps it at or below its 1x size. */
.lp-shot {
  display: block;
  max-width: 100%;
  border: var(--wf-hairline-strong);
  border-radius: var(--wf-radius-md);
  background: var(--wf-bg-sunken);
}
.lp-figure {
  margin: 0;
}
.lp-figure picture {
  display: block;
}
.lp-figure .lp-shot {
  margin-inline: auto;
}

.lp-item p {
  margin-top: var(--wf-space-3);
  color: var(--wf-text-muted);
}

/* The video slot. Nothing in it looks clickable: no play mark, no hover, no link. */
.lp-video {
  width: 100%;
  max-width: var(--lp-video-w);
  margin: 0;
  cursor: default;
}
.lp-video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: var(--wf-hairline-strong);
  border-radius: var(--wf-radius-md);
  background: var(--wf-bg-sunken);
}
/* The YouTube frame (docs/specs/landing-backend.md, section 8.3). It has the frame of
   the poster. The hairline replaces the default border of the iframe element. */
.lp-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: var(--wf-hairline-strong);
  border-radius: var(--wf-radius-md);
  background: var(--wf-bg-sunken);
}
.lp-video figcaption {
  margin-top: var(--wf-space-3);
  font-size: var(--wf-text-sm);
  color: var(--wf-text-muted);
}

/* The FAQ. <details> opens with no script. */
.lp-faq-list {
  margin-top: var(--wf-space-6);
  border-top: var(--wf-hairline);
}
.lp-faq details {
  border-bottom: var(--wf-hairline);
}
.lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wf-space-5);
  min-height: calc(var(--wf-touch-target) + var(--wf-space-5));
  padding-block: var(--wf-space-4);
  font-size: var(--wf-text-md);
  font-weight: var(--wf-weight-semibold);
  line-height: var(--wf-leading-snug);
  cursor: pointer;
  list-style: none;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
/* A plus that turns into a minus. It is drawn with two borders, so it needs no icon file. */
.lp-faq summary::after {
  content: '';
  flex: none;
  width: var(--wf-space-4);
  height: var(--wf-space-4);
  background:
    linear-gradient(var(--wf-text-muted), var(--wf-text-muted)) center / 100% var(--wf-border-w-strong) no-repeat,
    linear-gradient(var(--wf-text-muted), var(--wf-text-muted)) center / var(--wf-border-w-strong) 100% no-repeat;
}
.lp-faq details[open] summary::after {
  background: linear-gradient(var(--wf-text-muted), var(--wf-text-muted)) center / 100% var(--wf-border-w-strong)
    no-repeat;
}
.lp-faq summary:hover {
  color: var(--wf-accent-text);
}
.lp-faq details p {
  padding-bottom: var(--wf-space-5);
  color: var(--wf-text-muted);
  max-width: var(--lp-lead-w);
}
.lp-faq code {
  font-size: var(--wf-text-sm);
}

/* The forms. */
.lp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wf-space-5);
}
.lp-form .wf-label {
  font-size: var(--wf-text-sm);
}
.lp-form .wf-input,
.lp-form .wf-textarea {
  min-height: var(--wf-touch-target);
}
.lp-form .wf-check {
  align-items: flex-start;
  min-height: var(--wf-touch-target);
  padding-block: var(--wf-space-2);
  font-size: var(--wf-text-sm);
  line-height: var(--wf-leading-normal);
}
.lp-form .wf-check input {
  margin-top: var(--wf-space-1);
}
.lp-form .wf-field-hint {
  font-size: var(--wf-text-sm);
}
.lp-form-note {
  font-size: var(--wf-text-sm);
  color: var(--wf-text-muted);
}
.lp-form .wf-btn--lg {
  justify-self: start;
}

/* The Saga sprite on the page. The box is square and the owl stands on its floor. */
.lp-saga {
  display: block;
  width: var(--lp-sprite);
  height: var(--lp-sprite);
  object-fit: contain;
  object-position: center bottom;
}
/* -- 7  Layout B, "Product" -------------------------------------------------
   Media first. A split hero, a card grid and two-column bands. */
.lp-b-top {
  background: var(--wf-bg-app);
}
.lp-b-nav {
  display: none;
  gap: var(--wf-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) {
  .lp-b-nav {
    display: flex;
  }
  .lp-b-header .lp-b-nav {
    margin-inline-start: var(--wf-space-7);
  }
}

.lp-b-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wf-space-8);
  padding-top: var(--wf-space-8);
  padding-bottom: calc(var(--wf-space-8) + var(--lp-overlap));
}
.lp-b-hero .lp-h1 {
  margin-top: var(--wf-space-5);
}
.lp-b-hero .lp-lead {
  margin-top: var(--wf-space-5);
  max-width: var(--lp-lead-w);
  text-wrap: pretty;
}
/* Each sentence of the heading starts on its own line, at every width. Balance keeps a
   sentence that must wrap from leaving one word alone. */
.lp-b-hero .lp-h1 {
  text-wrap: balance;
}
.lp-b-hero .lp-line {
  display: block;
}
.lp-b-hero .wf-btn {
  margin-top: var(--wf-space-7);
}
@media (min-width: 1000px) {
  /* The text column is the wider one, so each sentence of the heading fits one line. */
  .lp-b-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--wf-space-9);
    padding-top: var(--wf-space-9);
    padding-bottom: calc(var(--wf-space-10) + var(--lp-overlap));
  }
  /* 48 px from 1280 px. Below that, the size follows the width, so "Everything your story
     needs." still fits one line of the text column. */
  .lp-b .lp-h1 {
    font-size: min(var(--wf-text-4xl), 3.75vw);
  }
  /* About 60 characters a line. */
  .lp-b-hero .lp-lead {
    max-width: 31em;
  }
  .lp-b-hero .lp-video {
    justify-self: end;
  }
}

.lp-b-heroshot {
  margin-top: calc(-1 * var(--lp-overlap));
}
.lp-b-heroshot .lp-shot {
  border-radius: var(--wf-radius-lg);
  box-shadow: var(--wf-shadow-3);
  background: var(--wf-bg-raised);
}

.lp-b-section {
  margin-top: var(--lp-section-gap);
}
.lp-b-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wf-space-5);
  margin-top: var(--wf-space-7);
}
@media (min-width: 700px) {
  .lp-b-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-b-card--wide {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1000px) {
  .lp-b-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wf-space-6);
  }
  .lp-b-card--wide {
    grid-column: span 2;
  }
}
.lp-b-card.wf-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
/* The image sits on top of each card, in a sunken frame of a fixed shape. */
.lp-b-media {
  aspect-ratio: 4 / 3;
  padding: var(--wf-space-5) var(--wf-space-5) 0;
  background: var(--wf-bg-sunken);
  border-bottom: var(--wf-hairline);
  overflow: hidden;
}
.lp-b-card--wide .lp-b-media {
  aspect-ratio: auto;
  height: 100%;
  max-height: calc(var(--wf-space-10) * 4);
}
.lp-b-media picture {
  display: block;
  height: 100%;
}
.lp-b-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: var(--wf-hairline-strong);
  border-bottom: 0;
  border-radius: var(--wf-radius-sm) var(--wf-radius-sm) 0 0;
  background: var(--wf-bg-raised);
}
/* A tall shot (the phone) shows whole, centered. */
.lp-b-media--tall {
  padding-bottom: var(--wf-space-5);
}
.lp-b-media--tall img {
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.lp-b-card-body {
  padding: var(--wf-space-5) var(--wf-space-6) var(--wf-space-6);
}
.lp-b-card-body h3 {
  font-size: var(--wf-text-lg);
  font-weight: var(--wf-weight-semibold);
}
.lp-b-card-body p {
  margin-top: var(--wf-space-2);
  color: var(--wf-text-muted);
}

/* The Saga band. */
.lp-b-band {
  margin-top: var(--lp-section-gap);
  padding-block: var(--lp-section-gap);
  background: var(--wf-bg-chrome);
  border-block: var(--wf-hairline);
}
.lp-b .lp-item h3 {
  font-size: var(--wf-text-lg);
  font-weight: var(--wf-weight-semibold);
}
.lp-b .lp-item .lp-figure {
  margin-top: var(--wf-space-5);
}
.lp-b .lp-item .lp-shot {
  background: var(--wf-bg-raised);
}

/* The full form: two columns. */
.lp-b-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wf-space-6);
}
.lp-b-form-head .lp-saga {
  margin-bottom: var(--wf-space-5);
}
.lp-b-form .wf-card {
  padding: var(--wf-space-6) var(--wf-space-5);
  border-radius: var(--wf-radius-lg);
}
@media (min-width: 600px) {
  .lp-b-form .wf-card {
    padding: var(--wf-space-7);
  }
}
@media (min-width: 1000px) {
  .lp-b-form {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--wf-space-9);
    align-items: start;
  }
  .lp-b-form-head {
    display: flex;
    flex-direction: column;
  }
  .lp-b-form-head .lp-saga {
    order: 3;
    margin: var(--wf-space-7) 0 0;
    width: var(--lp-sprite-lg);
    height: var(--lp-sprite-lg);
  }
}

@media (min-width: 1000px) {
  .lp-b-faq .lp-faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--wf-space-9);
    align-items: start;
    border-top: 0;
  }
  .lp-b-faq .lp-faq-list > div {
    border-top: var(--wf-hairline);
  }
}

/* The footer links of layout B: Features, Saga and FAQ show on a narrow screen only. */
@media (min-width: 860px) {
  .lp-b-footer-anchor {
    display: none;
  }
}

/* -- 8  Thanks and privacy pages -------------------------------------------- */
.lp-plain body {
  background: var(--wf-bg-app);
}
.lp-thanks {
  display: grid;
  justify-items: center;
  max-width: calc(var(--wf-dialog-w) + 2 * var(--lp-gutter));
  margin: var(--wf-space-9) auto 0;
  padding-inline: var(--lp-gutter);
}
.lp-thanks .wf-card {
  width: 100%;
  padding: var(--wf-space-8) var(--wf-space-6);
  text-align: center;
  border-radius: var(--wf-radius-lg);
}
.lp-thanks .lp-saga {
  width: var(--wf-mascot-lg);
  height: var(--wf-mascot-lg);
  margin: 0 auto var(--wf-space-5);
}
.lp-thanks h1 {
  font-size: var(--wf-text-3xl);
}
.lp-thanks p {
  margin-top: var(--wf-space-4);
}
/* The confirm page that the server renders: one form with one button. */
.lp-thanks form {
  margin-top: var(--wf-space-6);
}
.lp-thanks .lp-back {
  display: inline-flex;
  margin-top: var(--wf-space-6);
}

.lp-doc {
  max-width: calc(var(--lp-col) + 2 * var(--lp-gutter));
  margin: var(--wf-space-8) auto 0;
  padding-inline: var(--lp-gutter);
}
.lp-doc .wf-card {
  padding: var(--wf-space-7) var(--wf-space-5);
  border-radius: var(--wf-radius-lg);
}
@media (min-width: 600px) {
  .lp-doc .wf-card {
    padding: var(--wf-space-8);
  }
}
.lp-doc h1 {
  font-size: var(--wf-text-3xl);
}
.lp-doc h2 {
  margin-top: var(--wf-space-7);
  font-size: var(--wf-text-xl);
}
.lp-doc p,
.lp-doc ul,
.lp-doc ol {
  margin-top: var(--wf-space-3);
  color: var(--wf-text-muted);
}
.lp-doc ul,
.lp-doc ol {
  padding-inline-start: var(--wf-space-6);
}
.lp-doc li + li {
  margin-top: var(--wf-space-2);
}

/* -- 9  Forced colors ------------------------------------------------------- */
@media (forced-colors: active) {
  .lp-shot,
  .lp-video img,
  .lp-video iframe {
    border-color: CanvasText;
  }
  .lp-faq summary::after {
    forced-color-adjust: none;
    background:
      linear-gradient(CanvasText, CanvasText) center / 100% var(--wf-border-w-strong) no-repeat,
      linear-gradient(CanvasText, CanvasText) center / var(--wf-border-w-strong) 100% no-repeat;
  }
  .lp-faq details[open] summary::after {
    background: linear-gradient(CanvasText, CanvasText) center / 100% var(--wf-border-w-strong) no-repeat;
  }
}

/* -- 11  Grid tracks ---------------------------------------------------------
   A grid track grows to the width attribute of an image inside it. These tracks
   may shrink below it, so an image never pushes the page wider than the screen. */
.lp-b-grid > *,
.lp-b-hero > *,
.lp-b-form > * {
  min-width: 0;
}

/* -- 12  Alignment fixes ------------------------------------------------------ */
/* Layout B sets its screenshots at the start of the column, under the text. */
.lp-b .lp-figure .lp-shot {
  margin-inline: 0;
}

/* -- 14  Layout B, fix round -------------------------------------------------- */
/* The Saga band: the two chat images side by side, the two text items below
   them, then the story bible across the full width. No sticky column. */
.lp-b-saga-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wf-space-8);
  margin-top: var(--wf-space-8);
}
.lp-b-saga-grid > * {
  min-width: 0;
}
.lp-b-bible .lp-figure {
  margin-top: var(--wf-space-6);
}
@media (min-width: 1000px) {
  .lp-b-saga-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--wf-space-8) var(--wf-space-9);
  }
  .lp-b-saga-grid > .lp-b-bible {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--wf-space-8);
    align-items: start;
    padding: var(--wf-space-7);
  }
  .lp-b-bible .lp-figure {
    margin-top: 0;
  }
}

/* The proof cards: the whole screenshot shows, with no crop. It sits on the sunken
   frame, and a soft shadow follows the image. */
.lp-b-media {
  display: flex;
  padding: var(--wf-space-5);
}
.lp-b-media picture {
  flex: 1;
  min-width: 0;
}
.lp-b-media img,
.lp-b-media--tall img {
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 var(--wf-border-w) var(--wf-line-control)) drop-shadow(0 2px 6px var(--wf-shadow-c1));
}
.lp-b-card--wide .lp-b-media {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
}

/* The video slot: in the hero on a wide screen, after the product image below 1000 px. */
.lp-b-video-phone {
  display: none;
  margin-top: var(--wf-space-7);
}
@media (max-width: 999px) {
  .lp-b-video-desk {
    display: none;
  }
  .lp-b-video-phone {
    display: block;
  }
}

/* -- 15  Color: layout B (owner review, 2026-09-30) ---------------------------
   Each color keeps its meaning:
     ink     the writer: the hero band, the stance band, card edges, the writer's
             sentence of the heading, the form edge.
     violet  Saga only: Saga's sentence of the heading, the Saga band, the Saga rule
             on each Saga item, the recap card edge.
   The band colors below map the primitives per scheme. */
@media (prefers-color-scheme: light) {
  :root.lp-b {
    --lp-hero-bg: var(--wf-p-ink-50); /* #e3e7f3 */
    --lp-saga-bg: var(--wf-p-violet-50); /* #efe9fb */
    --lp-saga-line: var(--wf-p-violet-200); /* #c8b0f0 */
    --lp-stance-bg: var(--wf-p-ink-800); /* #24315a */
    --lp-stance-text: var(--wf-p-paper-50); /* #fbfbf8 */
    --lp-stance-muted: var(--wf-p-ink-200); /* #cbd5ee */
    --lp-stance-line: var(--wf-p-ink-925); /* #3a4670 */
  }
}
@media (prefers-color-scheme: dark) {
  :root.lp-b {
    --lp-hero-bg: var(--wf-p-ink-950); /* #161c30 */
    --lp-saga-bg: var(--wf-p-violet-950); /* #2d2645 */
    --lp-saga-line: var(--wf-p-violet-900); /* #3a3468 */
    --lp-stance-bg: var(--wf-p-ink-925); /* #3a4670 */
    --lp-stance-text: var(--wf-p-bone-100); /* #e6e2d8 */
    --lp-stance-muted: var(--wf-p-ink-200); /* #cbd5ee */
    --lp-stance-line: var(--wf-p-ink-700); /* #2e3d6b */
  }
}
/* The hero band and the footer share the tint, so the page opens and closes on it. */
.lp-b-top,
.lp-b .lp-footer {
  background: var(--lp-hero-bg);
}
.lp-b .lp-footer {
  border-top: 0;
}
/* The heading: Saga's sentence in violet, the writer's sentence in ink. */
.lp-b .lp-say {
  color: var(--wf-familiar-text);
}
.lp-b .lp-write {
  color: var(--wf-accent-text);
}
.lp-b .lp-eyebrow {
  border-color: var(--wf-accent);
  background: var(--wf-bg-raised);
  color: var(--wf-accent-text);
}

/* The proof cards: a colored top edge and a numeral. Ink for the writer's tools,
   violet for Saga's recap. */
.lp-b .lp-b-card.wf-card {
  border-top: var(--wf-rule-w) solid var(--wf-accent);
}
.lp-b .lp-b-card.lp-card--saga {
  border-top-color: var(--wf-familiar);
}
.lp-num {
  display: block;
  margin-bottom: var(--wf-space-2);
  font-family: var(--lp-font-display);
  font-size: var(--wf-text-lg);
  font-weight: var(--lp-display-weight);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--wf-accent-text);
}
.lp-card--saga .lp-num {
  color: var(--wf-familiar-text);
}

/* The Saga band: violet ground, the familiar rule on each item. */
.lp-saga-band {
  background: var(--lp-saga-bg);
  border-block: var(--wf-border-w) solid var(--lp-saga-line);
}
.lp-saga-band h2 {
  color: var(--wf-familiar-text);
}
.lp-saga-head {
  display: flex;
  align-items: flex-end;
  gap: var(--wf-space-5);
}
.lp-saga-head .lp-saga {
  flex: none;
}
.lp-saga-band .lp-item {
  padding-inline-start: var(--wf-space-5);
  border-inline-start: var(--wf-rule-w) solid var(--wf-familiar);
}
.lp-saga-band .lp-b-bible {
  padding: var(--wf-space-6);
  border: var(--wf-hairline);
  border-top: var(--wf-rule-w) solid var(--wf-familiar);
  border-radius: var(--wf-radius-md);
  background: var(--wf-bg-raised);
}
@media (min-width: 1000px) {
  .lp-saga-band .lp-b-saga-grid > .lp-b-bible {
    padding: var(--wf-space-7);
  }
}

/* Our Stance: the deep band of the writer's ink. */
.lp-stance {
  margin-top: var(--lp-section-gap);
  padding-block: var(--lp-section-gap);
  background: var(--lp-stance-bg);
  color: var(--lp-stance-text);
}
.lp-saga-band + .lp-stance {
  margin-top: 0;
}
.lp-stance-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wf-space-7);
}
.lp-stance-inner > * {
  min-width: 0;
}
.lp-stance h2 {
  font-family: var(--wf-font-ui);
  font-size: var(--wf-text-md);
  font-weight: var(--wf-weight-semibold);
  letter-spacing: var(--wf-track-wide);
  color: var(--lp-stance-muted);
}
.lp-stance-lead {
  margin-top: var(--wf-space-4);
  font-family: var(--lp-font-display);
  font-size: var(--lp-h1);
  font-weight: var(--lp-display-weight);
  line-height: var(--wf-leading-tight);
  letter-spacing: var(--wf-track-tight);
  color: var(--lp-stance-text);
  text-wrap: balance;
}
.lp-stance-body p {
  font-size: var(--lp-lead);
  line-height: var(--wf-leading-relaxed);
  color: var(--lp-stance-text);
}
.lp-stance-body .lp-stance-privacy {
  margin-top: var(--wf-space-6);
  padding-top: var(--wf-space-6);
  border-top: var(--wf-border-w) solid var(--lp-stance-line);
  font-size: var(--wf-text-md);
  color: var(--lp-stance-muted);
}
@media (min-width: 1000px) {
  .lp-stance-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--wf-space-9);
    align-items: start;
  }
  .lp-stance-lead {
    font-size: var(--wf-text-4xl);
  }
}

/* The form card: the writer's ink edge. The Discord line sits at the foot of the card,
   under a hairline, in small muted text. It never competes with the button. */
.lp-b .lp-form-card {
  border-top: var(--wf-rule-w) solid var(--wf-accent);
}
.lp-community {
  margin-top: var(--wf-space-6);
  padding-top: var(--wf-space-5);
  border-top: var(--wf-hairline);
  font-size: var(--wf-text-sm);
  color: var(--wf-text-muted);
}
.lp-community a {
  color: var(--wf-accent-text);
}

/* The FAQ: an open question takes the writer's ink. */
.lp-b .lp-faq details[open] summary {
  color: var(--wf-accent-text);
}

/* -- 17  Thank-you page: the Discord step ---------------------------------- */
.lp-thanks-next {
  margin-top: var(--wf-space-7);
  padding-top: var(--wf-space-6);
  border-top: var(--wf-hairline);
}
.lp-thanks .lp-thanks-next p {
  margin-top: 0;
}
.lp-thanks-next .wf-btn {
  gap: var(--wf-space-3);
  margin-top: var(--wf-space-5);
}
.lp-thanks-next svg {
  width: var(--wf-space-6);
  height: var(--wf-space-6);
  flex: none;
}

/* -- 18  Layout B, second owner round (2026-09-30) ------------------------------
   The critique pass is a wide item like the story bible: the text and the editor image.
   "When you are stuck" spans the grid, so it does not stand alone in one column.
   The share band: the text on the left, the reader comments on the right. */
.lp-b-wide .lp-figure {
  margin-top: var(--wf-space-6);
}
.lp-b-span p {
  max-width: var(--lp-lead-w);
}
@media (min-width: 1000px) {
  .lp-b-saga-grid > .lp-b-wide,
  .lp-b-saga-grid > .lp-b-span {
    grid-column: 1 / -1;
  }
  .lp-b-saga-grid > .lp-b-wide {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--wf-space-8);
    align-items: start;
  }
  .lp-b-wide .lp-figure {
    margin-top: 0;
  }
}
.lp-b-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wf-space-7);
}
.lp-b-share > * {
  min-width: 0;
}
@media (min-width: 1000px) {
  .lp-b-share {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--wf-space-9);
    align-items: center;
  }
  .lp-b-share .lp-figure .lp-shot {
    margin-inline: auto;
  }
}
/* The Saga head on a phone: the lead is longer now, so the text goes under the sprite. */
@media (max-width: 599px) {
  .lp-b .lp-saga-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
