/* ── Landing (signed out): the Logbook direction (docs/design/logbook, spec logbook-design-system) ──
   Left-aligned on a 1240 px sheet. Surfaces are tone steps: Leaf rows on the Ledger ground with a 2 px gap, Band for heads and
   bands; no lines, no shadows. The hero's picture is a looping film of a run (`.lp-film`, img/hero) on its own dark ground
   and is also the sign-in and register aside (Components/Account/Shared/AuthShowcase). */

.lp { --lp-pad: max(16px, calc((100% - 1240px) / 2 + 32px)); width: 100%; background: var(--bg); color: var(--text); }
.lp > section, .lp > footer { padding-left: var(--lp-pad); padding-right: var(--lp-pad); }
.lp h1, .lp h2, .lp h3 { text-wrap: balance; }
.lp-label { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.lp-cta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.lp .muted { color: var(--text-3); }
.lp-textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15.5px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lp-textlink:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 3px; }

/* Hero */
/* Two columns from 900 px: the copy, and the diagram beside it in the wider column; under 900 px the diagram follows the copy. */
.lp-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 56px; }
.lp-hero h1 { font-size: clamp(44px, 5.4vw, 76px); font-weight: 650; font-stretch: 75%; letter-spacing: -0.01em; line-height: 0.98; margin: 0 0 22px; max-width: 11ch; }
.lp-lede { font-size: 17px; line-height: 1.55; color: var(--text); margin: 0 0 26px; max-width: 44ch; }
.lp-fine { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.lp-fine.lp-trial-fine { max-width: 46ch; }

/* The hero's picture: a looping film of a run beside an AI chat (Home, img/hero). Its own dark ground, so it reads as one screen in both
   themes; a phone (under 640 px) gets the square cut of the run alone. A visitor who asked for less motion gets the square still of the finished run instead, at every width. */
.lp-film { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 680px; min-width: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--ink); color: var(--ink-text); }
.lp-film-video, .lp-film-still img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: right center; }
.lp-film-still img { aspect-ratio: 1 / 1; }
.lp-film-still { display: none; }
.lp-film-toggle { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--ink-text); opacity: 0.85; cursor: pointer; }
.lp-film-toggle:hover, .lp-film-toggle:focus-visible { opacity: 1; }
.lp-film-toggle:focus-visible { outline: 2px solid var(--ink-text); outline-offset: -4px; }
.lp-film-toggle svg { width: 16px; height: 16px; }
.lp-film-toggle .i-play, .lp-film-toggle[aria-pressed="true"] .i-pause { display: none; }
.lp-film-toggle[aria-pressed="true"] .i-play { display: block; }
/* The film is dark in both themes, so the button stays dark too (the ink tokens swap in the dark theme). */
:root.dark .lp-film, :root.dark .lp-film-toggle { background: var(--ink-text); color: var(--ink); }
:root.dark .lp-film-toggle:focus-visible { outline-color: var(--ink); }
@media (max-width: 639px) {
  .lp-hero .lp-film { max-width: 520px; justify-self: center; }
  .lp-film-video { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-film-video, .lp-film-toggle { display: none; }
  .lp-film-still { display: block; }
  .lp-hero .lp-film { max-width: 560px; }
}

/* Works with */
.lp-works { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding-top: 16px; padding-bottom: 16px; background: var(--surface-3); }
.lp-works .lp-label { font-size: 14.5px; }
.lp-works ul { list-style: none; margin: 0; padding: 0; display: contents; }
.lp-works li { font-size: 18px; font-weight: 600; font-stretch: 85%; }
.lp-works li.muted { font-size: 15px; font-weight: 400; font-stretch: 100%; }

/* Sections */
.lp-part { padding-top: 72px; padding-bottom: 8px; }
.lp-title { font-size: clamp(32px, 3.6vw, 46px); font-weight: 650; font-stretch: 75%; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 12px; max-width: 22ch; }
.lp-intro { max-width: 60ch; margin: 0 0 28px; font-size: 17px; color: var(--text); }

/* Why: the long prompt and what the model sees */
.lp-versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.lp-side { background: var(--surface); padding: 22px 24px 24px; }
.lp-side:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.lp-side:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.lp-side h3 { margin: 0 0 14px; font-size: 18px; font-weight: 650; font-stretch: 85%; }
.lp-prompt { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.lp-prompt li { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 15ch); gap: 0 10px; padding: 3px 0; }
.lp-prompt .n { color: var(--text-2); text-align: right; }
.lp-prompt .note { font-size: 13.5px; color: var(--red); line-height: 1.35; padding-top: 2px; }
.lp-prompt li.flag > span:nth-child(2) { text-decoration: underline wavy var(--red) 1px; text-underline-offset: 4px; }
.lp-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.lp-points li { padding-left: 18px; position: relative; }
.lp-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.lp-seen { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; }
.lp-seen .head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.lp-seen .head b { font-size: 17px; font-weight: 650; }
.lp-seen .head span { color: var(--text-2); font-size: 13.5px; }
.lp-seen p { margin: 6px 0 10px; }
.lp-todo { display: block; padding: 3px 0; }
.lp-todo::before { content: ""; display: inline-block; width: 6px; height: 6px; border: 1.5px solid var(--text); border-radius: 2px; margin-right: 7px; vertical-align: 1px; }
.lp-todo.done::before { width: 8px; height: 8px; border: 0; background: var(--green); }
.lp-todo em { font-style: normal; color: var(--text-2); font-size: 13.5px; margin-left: 6px; }
.lp-ways { margin-top: 10px; display: grid; gap: 2px; }
.lp-ways div { background: var(--surface); padding: 6px 10px; border-radius: var(--radius-sm); font-size: 14px; }
.lp-ways .blocked { color: var(--text-2); }
.lp-ways b { font-weight: 600; }

/* What you get: a spec sheet */
.lp-spec { display: grid; gap: 2px; margin: 0; }
.lp-spec > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 24px; background: var(--surface); padding: 16px 20px; border-radius: var(--radius-sm); }
.lp-spec dt { font-weight: 650; font-size: 19px; font-stretch: 85%; line-height: 1.25; }
.lp-spec dd { margin: 0; max-width: 66ch; }

/* How it works: a real sequence */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.lp-steps li { background: var(--surface); padding: 18px 22px 22px; }
.lp-steps li:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.lp-steps li:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.lp-steps .n { display: block; margin-bottom: 10px; font-size: 44px; line-height: 1; font-stretch: 75%; font-weight: 650; }
.lp-steps h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; font-stretch: 85%; }
.lp-steps p { margin: 0; }

/* Trial band */
.lp > .lp-trial { padding-top: 56px; padding-bottom: 8px; }
.lp-trial-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-trial-list li { padding-left: 18px; position: relative; }
.lp-trial-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.lp-trial-note { margin: 14px 0 0; font-size: 14px; color: var(--text-2); max-width: 60ch; }
.lp-trial .lp-cta { margin-top: 18px; }

/* FAQ: rows that open */
.lp-faq { display: grid; gap: 2px; }
.lp-faq details { background: var(--surface); border-radius: var(--radius-sm); }
.lp-faq summary { cursor: pointer; padding: 14px 20px; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "Open"; font-weight: 400; color: var(--text-2); font-size: 14px; }
.lp-faq details[open] summary::after { content: "Close"; }
.lp-faq details[open] { background: var(--surface-3); }
.lp-faq summary:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: var(--radius-sm); }
.lp-faq details p { margin: 0; padding: 0 20px 16px; max-width: 70ch; }

/* The last call, a Band */
.lp-final { margin-top: 72px; background: var(--surface-3); padding-top: 44px; padding-bottom: 48px; }
.lp-final h2 { margin: 0 0 8px; font-size: clamp(32px, 3.6vw, 46px); font-weight: 650; font-stretch: 75%; line-height: 1.02; letter-spacing: -0.01em; }
.lp-final p { margin: 0 0 22px; }

.lp-footer { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--text-2); }
.lp-brand { font-weight: 650; font-stretch: 85%; color: var(--text); font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.lp-footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.lp-footer a { color: var(--text-2); text-decoration: none; }
.lp-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lp-footer .muted { margin-left: auto; }

html:has(.lp) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.lp) { scroll-behavior: auto; } }

/* Narrow screens */
@media (max-width: 899px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-hero h1 { max-width: 13ch; }
  .lp-stage { justify-self: center; max-width: 760px; }
}
@media (max-width: 760px) {
  .lp-hero { padding-top: 18px; }
  .lp-lede { font-size: 16px; }
  .lp-hero .lp-cta > a:first-child { flex: 1 1 100%; justify-content: center; }
  .lp-versus, .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-side, .lp-steps li { border-radius: var(--radius-sm) !important; }
  .lp-prompt li { grid-template-columns: 22px minmax(0, 1fr); }
  .lp-prompt .note { grid-column: 2; }
  .lp-spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .lp-part { padding-top: 56px; }
  .lp-footer .muted { margin-left: 0; }
}
