/* ===== LANDING.CSS =====
   Single-use stylesheet for views/landing.ejs.
   Loaded AFTER common.css so token vars are available.
   All selectors are `.ls-*` prefixed to avoid colliding with
   admin.css, builder.css, or main.css.

   Colour notes:
   - Body copy uses var(--color-grey-dark) (#333) — matches the app's
     default body-text token and meets WCAG AA on white at body size.
   - #111 is used for nav text, brand wordmark, and serif display
     headlines; per CLAUDE.md this is the allowed "darker than
     grey-dark" emphasis exception, mirroring how main.css uses it for
     active headings.
   - #eee is used for in-card hairlines (deliberately lighter than the
     default --color-grey-border = #ddd, which separates section
     surfaces from the page).
   ===================================================== */

:root {
  --ls-wrap: 1080px;
  --ls-wrap-narrow: 720px;
}

body {
  font-family: var(--font);
  background: #f4f4f4;
  color: #1a1a1a;
  margin: 0;
}

/* ── coming-soon banner + frozen page ──
   The site isn't open to new users yet. The banner stays vivid;
   everything below sits inside .ls-frozen and is desaturated +
   dimmed to reinforce the not-yet-ready state. */
.ls-coming-soon {
  background: var(--color-amber-warn);
  color: #2a1a00;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.ls-coming-soon-inner {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.ls-coming-soon strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.ls-frozen {
  filter: grayscale(0.85);
  opacity: 0.55;
}

/* ── layout wrappers ── */
.ls-wrap {
  max-width: var(--ls-wrap);
  margin: 0 auto;
  padding: 0 28px;
}
.ls-wrap-narrow {
  max-width: var(--ls-wrap-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── nav ── */
.ls-nav {
  background: #fff;
  border-bottom: 1px solid var(--color-grey-border);
  padding: 18px 0;
}
.ls-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ls-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #111;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.ls-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}
.ls-tld {
  color: var(--color-grey-muted);
  font-weight: 400;
}
.ls-nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ls-nav-link-text {
  color: var(--color-grey-dark);
  text-decoration: none;
}
.ls-nav-link-text:hover {
  color: #111;
}
.ls-btn-nav-cta {
  background: #111;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 600;
}
.ls-btn-nav-cta:hover {
  background: var(--color-grey-dark);
  color: #fff;
}

/* ── hero ── */
.ls-hero {
  padding: 88px 0 22px;
  text-align: center;
}
.ls-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1.15;
  color: #111;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
}
.ls-lede {
  font-size: 1.04rem;
  color: var(--color-grey-dark);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 580px;
}
.ls-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.ls-hero-meta {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--color-grey-muted);
}

/* ── buttons ── */
.ls-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border-radius: var(--radius-2);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-block;
  cursor: pointer;
}
.ls-btn-primary {
  background: #111;
  color: #fff;
}
.ls-btn-primary:hover {
  background: var(--color-grey-dark);
}
.ls-btn-cta-large {
  font-size: 0.92rem;
  padding: 14px 30px;
  letter-spacing: 0.05em;
}

/* ── screenshot frame ── */
.ls-shot-wrap {
  padding: 36px 0 0;
}
.ls-shot-frame {
  background: #fff;
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-popover);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}
.ls-shot-frame.ls-compact {
  max-width: 720px;
}
.ls-shot-titlebar {
  background: var(--color-grey-subtle);
  border-bottom: 1px solid #eee;
  padding: 9px 14px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.ls-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
}
.ls-url-pill {
  margin-left: auto;
  background: #eee;
  color: var(--color-grey-muted);
  font-family: var(--font);
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}
.ls-shot-img {
  display: block;
  width: 100%;
  height: auto;
}
.ls-shot-caption {
  text-align: center;
  color: var(--color-grey-muted);
  font-size: 0.82rem;
  margin: 14px auto 0;
  max-width: 720px;
  padding: 0 28px;
  font-style: italic;
}

/* ── sample-study CTA block ── */
.ls-sample-cta {
  margin: 56px auto 16px;
  text-align: center;
  padding: 0 28px;
}
.ls-sample-cta-note {
  font-size: 0.98rem;
  color: var(--color-grey-dark);
  line-height: 1.55;
  margin: 0 auto 18px;
  max-width: 560px;
}

/* ── section header ── */
.ls-section-h {
  padding: 64px 0 8px;
}
.ls-section-h h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 10px;
  color: #111;
}
.ls-section-h p {
  margin: 0 auto;
  color: var(--color-grey-dark);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 640px;
}
.ls-section-h.ls-centered {
  text-align: center;
}

/* ── alternating screenshot rows ──
   Flex (not grid) so the `flip` modifier reverses with
   `flex-direction: row-reverse` without reordering DOM children. */
.ls-row {
  padding: 28px 0;
}
.ls-row-grid {
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: center;
}
.ls-row-grid > * {
  flex: 1 1 0;
  min-width: 0;
}
.ls-row-grid.ls-flip {
  flex-direction: row-reverse;
}
.ls-row-text h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #111;
}
.ls-row-text p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--color-grey-dark);
  margin: 0 0 10px;
}
.ls-row-figure {
  margin: 0;
}

/* ── preview-conditions callout ── */
.ls-preview-note {
  margin: 8px auto 0;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #eee;
  border-left: 3px solid var(--color-blue-action);
  border-radius: var(--radius-4);
  max-width: 720px;
  font-size: 0.92rem;
  color: var(--color-grey-dark);
  line-height: 1.6;
}
.ls-preview-note strong {
  color: #111;
  font-weight: 600;
}

/* ── scales citation panel ── */
.ls-scales-list-wrap {
  margin: 18px auto 0;
  max-width: 760px;
  padding: 0 28px;
}
.ls-scales-list-card {
  background: #fff;
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-4);
  padding: 26px 30px;
}
.ls-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--color-grey-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.ls-scales-list-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: #111;
  margin: 0 0 14px;
}
.ls-scales-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.ls-scales-list li {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--color-grey-dark);
  line-height: 1.55;
  padding: 5px 0;
  break-inside: avoid;
  border-bottom: 1px solid #eee;
}
.ls-scales-list li:last-child {
  border-bottom: 0;
}
.ls-scales-list-foot {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-grey-muted);
  font-style: italic;
  text-align: right;
}

/* ── plain text section ── */
.ls-text-section {
  padding: 48px 0 0;
}
.ls-text-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 14px;
  color: #111;
}
.ls-text-section p {
  color: var(--color-grey-dark);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 12px;
}

/* ── video ── */
.ls-video-section {
  padding: 56px 0;
}
.ls-video-frame {
  max-width: 880px;
  margin: 24px auto 0;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border-radius: var(--radius-4);
  overflow: hidden;
  position: relative;
}
.ls-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ls-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── reassurance grid ── */
.ls-reassure {
  padding: 56px 0 8px;
}
.ls-reassure-h {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 18px;
  color: #111;
}
.ls-reassure-lede {
  color: var(--color-grey-dark);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 0 24px;
}
.ls-reassure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
  border-top: 1px solid #eee;
}
.ls-reassure-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.ls-reassure-ttl {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.ls-reassure-body {
  font-size: 0.9rem;
  color: var(--color-grey-dark);
  line-height: 1.55;
}

/* ── mission ── */
.ls-mission {
  padding: 32px 0 64px;
}
.ls-mission-card {
  background: #fff;
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-4);
  padding: 38px 40px;
  text-align: center;
}
.ls-mission-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 14px;
  color: #111;
}
.ls-mission-card p {
  color: var(--color-grey-dark);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0 auto 22px;
  max-width: 580px;
}

/* ── footer ── */
.ls-footer {
  border-top: 1px solid var(--color-grey-border);
  background: #fff;
  padding: 28px 0;
}
.ls-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-grey-muted);
  flex-wrap: wrap;
  gap: 14px;
}
.ls-footer-inner a {
  color: var(--color-grey-dark);
  text-decoration: none;
}
.ls-footer-inner a:hover {
  color: #111;
  text-decoration: underline;
}
.ls-footer-left {
  display: flex;
  gap: 16px;
  align-items: center;
}
.ls-footer-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.ls-participants-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #111 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

/* ── focus rings ── */
.ls-btn:focus-visible,
.ls-nav-link-text:focus-visible,
.ls-footer-inner a:focus-visible,
.ls-participants-link:focus-visible,
.ls-video-frame iframe:focus-visible {
  outline: 2px solid var(--color-blue-action);
  outline-offset: 2px;
}

/* ── responsive ── */
@media (max-width: 760px) {
  .ls-row-grid,
  .ls-row-grid.ls-flip {
    flex-direction: column;
  }
  .ls-reassure-grid {
    grid-template-columns: 1fr;
  }
  .ls-hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 640px) {
  .ls-scales-list {
    columns: 1;
  }
  /* Drop the request-access CTA from the header — it's still in the
     hero and in the mission card, and dropping it lets "Sign in"
     stay visible at narrow widths. */
  .ls-btn-nav-cta {
    display: none;
  }
}
@media (max-width: 480px) {
  /* At very narrow widths, also drop the secondary sample-study link
     so the brand + sign-in fit comfortably. */
  .ls-nav-link-sample {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ls-btn,
  .ls-nav-link-text,
  .ls-footer-inner a {
    transition: none;
  }
}
