/* ============================================================
   Landing page (/) — marketing home.
   All rules scoped to body.landing-page.
   Breakpoint literals 600px / 840px mirror --bp-medium / --bp-expanded
   (see tokens.css and src/breakpoints.ts).
   ============================================================ */

body.landing-page {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

/* Zero-specificity link reset (:where) so the component rules below — and the
   inline styles inside the mockups — win without having to out-specify it. */
:where(body.landing-page a) {
  color: inherit;
  text-decoration: none;
}

/* ── Shared shell ───────────────────────────────────────── */

/* Longhand on purpose: .lp-shell is combined with .lp-section / .lp-hero on
   the same element, and a `padding` shorthand here would reset their
   vertical padding to 0. */
.lp-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-40);
  padding-right: var(--space-40);
}

.lp-band {
  background: var(--color-surface-container-lowest);
  border-top: 1px solid var(--color-surface-container-highest);
  border-bottom: 1px solid var(--color-surface-container-highest);
}

.lp-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.lp-section-head {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.lp-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-label-small-size);
  font-weight: var(--text-label-small-weight);
  line-height: var(--text-label-small-lh);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.lp-h1 {
  font-family: var(--font-headline);
  font-size: var(--text-headline-large-size);
  font-weight: var(--text-headline-large-weight);
  line-height: var(--text-headline-large-lh);
  margin: 0;
  text-wrap: balance;
}

.lp-h1 .lp-h1-accent {
  color: var(--color-claimed);
}

.lp-h2 {
  font-family: var(--font-headline);
  font-size: var(--text-headline-medium-size);
  font-weight: var(--text-headline-medium-weight);
  line-height: var(--text-headline-medium-lh);
  margin: 0;
}

.lp-h3 {
  font-family: var(--font-headline);
  font-size: var(--text-headline-small-size);
  font-weight: var(--text-headline-small-weight);
  line-height: var(--text-headline-small-lh);
  margin: 0;
}

.lp-lead {
  font-family: var(--font-body);
  font-size: var(--text-body-large-size);
  font-weight: var(--text-body-large-weight);
  line-height: var(--text-body-large-lh);
  color: var(--color-text-secondary);
  margin: 0;
  text-wrap: pretty;
}

.lp-body {
  font-family: var(--font-body);
  font-size: var(--text-body-large-size);
  font-weight: var(--text-body-large-weight);
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
  text-wrap: pretty;
}

.lp-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-body-medium-size);
  font-weight: var(--text-body-medium-weight);
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

.lp-card-title {
  font-family: var(--font-headline);
  font-size: var(--text-headline-small-size);
  font-weight: var(--text-headline-small-weight);
  line-height: var(--text-headline-small-lh);
}

/* ── Buttons ────────────────────────────────────────────── */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-label-large-size);
  font-weight: var(--text-label-large-weight);
  line-height: var(--text-label-large-lh);
  white-space: nowrap;
  transition: background 120ms ease;
}

.lp-btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 15px 26px;
}
.lp-btn-primary:hover {
  background: var(--color-primary-container);
}

.lp-btn-secondary {
  background: var(--color-surface-container-lowest);
  color: var(--color-primary);
  border: 1px solid var(--color-outline-variant);
  padding: 14px 24px;
}
.lp-btn-secondary:hover {
  background: var(--color-surface-container-low);
}

.lp-btn-accent {
  background: var(--brand-panel-fg);
  color: var(--brand-panel-bg-1);
  padding: 15px 28px;
}
.lp-btn-accent:hover {
  background: var(--brand-panel-cta-text);
}

.lp-btn-sm {
  padding: 10px 18px;
}

/* ── Nav ────────────────────────────────────────────────── */

.lp-nav {
  border-bottom: 1px solid var(--color-surface-container-highest);
  background: var(--color-surface);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-40);
  padding-top: 18px;
  padding-bottom: 18px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.lp-brand-word {
  font-family: var(--font-headline);
  font-size: var(--text-headline-small-size);
  font-weight: var(--text-headline-large-weight);
}

.lp-nav-links {
  display: flex;
  gap: 26px;
  flex: 1;
}

.lp-nav-link {
  font-size: var(--text-title-medium-size);
  font-weight: var(--text-title-medium-weight);
  line-height: var(--text-title-medium-lh);
  color: var(--color-text-secondary);
}
.lp-nav-link:hover {
  color: var(--color-secondary);
}

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

.lp-nav-signin {
  font-size: var(--text-label-large-size);
  font-weight: var(--text-label-large-weight);
  color: var(--color-primary);
}
.lp-nav-signin:hover {
  color: var(--color-secondary);
}

/* ── Hero ───────────────────────────────────────────────── */

.lp-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: var(--space-40);
}

.lp-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
}

.lp-badge {
  align-self: flex-start;
  font-size: var(--text-label-small-size);
  font-weight: var(--text-label-small-weight);
  line-height: var(--text-label-small-lh);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--color-on-secondary-container);
  background: var(--color-secondary-container);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-pill);
}

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

.lp-hero-note {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-body-small-size);
  color: var(--color-outline);
}

.lp-hero-note-check {
  color: var(--color-claimed);
  display: flex;
}

/* ── Proof strip ────────────────────────────────────────── */

.lp-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-surface-container-highest);
  border: 1px solid var(--color-surface-container-highest);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 64px;
}

.lp-proof-cell {
  background: var(--color-surface-container-lowest);
  padding: var(--space-20) 22px;
}

.lp-proof-title {
  font-family: var(--font-headline);
  font-size: var(--text-headline-medium-size);
  font-weight: var(--text-headline-medium-weight);
  line-height: var(--text-headline-medium-lh);
}

.lp-proof-copy {
  font-size: var(--text-body-small-size);
  color: var(--color-text-secondary);
  margin-top: 5px;
  line-height: 1.45;
}

/* ── Features ───────────────────────────────────────────── */

.lp-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.lp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-20);
}

.lp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
}

.lp-feature {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.lp-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── How it works ───────────────────────────────────────── */

.lp-step {
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.lp-step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-headline);
  font-size: var(--text-label-large-size);
  font-weight: var(--text-headline-large-weight);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Dark "inside the app" band ─────────────────────────── */

.lp-dark {
  background: var(--brand-panel-bg-1);
  color: var(--brand-panel-fg);
}

.lp-dark .lp-eyebrow {
  color: var(--brand-panel-cta-text);
}

.lp-dark .lp-h2,
.lp-dark .lp-h3 {
  color: var(--brand-panel-fg);
}

.lp-dark .lp-body,
.lp-dark .lp-body-sm,
.lp-cta .lp-body {
  color: var(--brand-panel-fg);
  opacity: 0.78;
}

.lp-screens {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.lp-screens-row {
  display: flex;
  gap: var(--space-40);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.lp-screens-notes {
  width: 290px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.lp-note-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.lp-note-block + .lp-note-block {
  padding-top: 22px;
  /* Hairline on the fixed-dark band: a white overlay, not a palette colour,
     so it holds in both themes (same idiom as login.css's brand panel). */
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.lp-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-4);
}

.lp-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-body-small-size);
  font-weight: var(--text-title-small-weight);
  color: var(--brand-panel-fg);
}

.lp-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* The web screenshot is authored for a desktop-width app; below the expanded
   breakpoint it scrolls inside its own box rather than squeezing the app
   layout into something the product never renders. */
.lp-web-shot {
  min-width: 0;
}

.lp-web-row {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: var(--space-40);
  align-items: center;
  padding-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ── Who it is for ──────────────────────────────────────── */

.lp-use-card {
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lp-use-title {
  font-family: var(--font-headline);
  font-size: var(--text-headline-small-size);
  font-weight: var(--text-headline-small-weight);
}

/* ── Closing CTA ────────────────────────────────────────── */

.lp-cta {
  background: var(--brand-panel-bg-1);
  color: var(--brand-panel-fg);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-40);
  flex-wrap: wrap;
}

.lp-cta-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 560px;
}

.lp-cta-title {
  font-family: var(--font-headline);
  font-size: var(--text-headline-large-size);
  font-weight: var(--text-headline-large-weight);
  line-height: var(--text-headline-large-lh);
  margin: 0;
  color: var(--brand-panel-fg);
}

.lp-cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: flex-start;
}

/* ── Footer ─────────────────────────────────────────────── */

.lp-footer {
  border-top: 1px solid var(--color-surface-container-highest);
}

.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding-top: 28px;
  padding-bottom: 28px;
  flex-wrap: wrap;
}

.lp-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.lp-footer-link {
  font-size: var(--text-body-small-size);
  font-weight: var(--text-title-small-weight);
  color: var(--color-text-secondary);
}
.lp-footer-link:hover {
  color: var(--color-secondary);
}

.lp-footer-copy {
  font-size: var(--text-body-small-size);
  color: var(--color-outline);
}

/* ── Device mockups ─────────────────────────────────────── */

/* The phone is authored at a real 390x812 viewport and scaled down; the
   scaler box carries the scaled footprint so surrounding layout reflows. */
.lp-phone-scaler {
  --lp-phone-scale: 0.84;
  width: calc(390px * var(--lp-phone-scale));
  height: calc(812px * var(--lp-phone-scale));
  flex-shrink: 0;
}

.lp-phone {
  width: 390px;
  height: 812px;
  transform: scale(var(--lp-phone-scale));
  transform-origin: top left;
  background: var(--brand-panel-bg-3);
  border-radius: 48px;
  padding: 11px;
  box-shadow: 0 26px 70px -24px rgba(0, 0, 0, 0.55);
}

.lp-phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: var(--font-body);
  color: var(--color-text-primary);
}

.lp-phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: var(--brand-panel-bg-3);
  border-radius: var(--radius-lg);
  z-index: 50;
}

.lp-phone-statusbar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) var(--space-24) 0;
  flex-shrink: 0;
  color: var(--color-text-primary);
}

.lp-phone-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* The golden is a full 393x852 screen; the frame's body is shorter, so crop
   the empty tail rather than squeeze the whole screen. */
.lp-phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.lp-phone-nav {
  background: var(--color-surface-container-lowest);
  border-top: 1px solid var(--color-surface-container-high);
  display: flex;
  flex-shrink: 0;
  padding: var(--space-8) 0 var(--space-14);
}

.lp-phone-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-outline);
}

.lp-phone-nav-item.is-active {
  color: var(--color-on-secondary-container);
}

.lp-phone-nav-icon {
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-14);
  display: flex;
}

.lp-phone-nav-item.is-active .lp-phone-nav-icon {
  background: var(--color-secondary-container);
}

.lp-phone-fab {
  position: absolute;
  right: var(--space-20);
  bottom: 104px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -4px rgba(18, 59, 64, 0.6);
}

/* Browser-chrome mock around the web app screenshot. */
.lp-browser {
  /* Re-roots the inherited colour: the mock sits inside the fixed-dark band,
     whose white foreground would otherwise bleed into the light app screen. */
  color: var(--color-text-primary);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-outline-variant);
  box-shadow: 0 24px 60px -24px rgba(18, 59, 64, 0.35);
  min-width: 0;
}

.lp-browser-bar {
  height: 38px;
  background: var(--color-surface-container-low);
  border-bottom: 1px solid var(--color-outline-variant);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: 0 var(--space-14);
}

.lp-browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-surface-container-highest);
}

.lp-browser-url {
  margin-left: var(--space-12);
  font-size: var(--text-label-small-size);
  font-weight: var(--text-title-small-weight);
  color: var(--color-outline);
  background: var(--color-surface-container);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-pill);
}

.lp-browser-body {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 472px;
}

.lp-web-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
}

.lp-web-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding: 9px var(--space-10);
  border-radius: 9px;
  color: var(--sidebar-fg-mute);
}

.lp-web-nav-item.is-active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-fg);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1100px) {
  .lp-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .lp-web-row {
    grid-template-columns: 1fr;
  }

  .lp-screens-notes {
    width: 100%;
  }
}

@media (max-width: 840px) {
  .lp-nav-links {
    display: none;
  }

  .lp-proof,
  .lp-grid-3,
  .lp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .lp-cta {
    padding: var(--space-32);
  }

  .lp-web-shot {
    overflow-x: auto;
    padding-bottom: var(--space-8);
  }

  .lp-web-shot .lp-browser {
    min-width: 680px;
  }
}

@media (max-width: 600px) {
  .lp-shell {
    padding-left: var(--space-20);
    padding-right: var(--space-20);
  }

  .lp-nav-inner {
    gap: var(--space-12);
    justify-content: space-between;
  }

  .lp-brand-word,
  .lp-nav-signin {
    white-space: nowrap;
  }

  .lp-nav-actions {
    gap: var(--space-12);
  }

  .lp-btn-sm {
    padding: 9px var(--space-14);
  }

  .lp-phone-scaler {
    --lp-phone-scale: 0.66;
  }

  .lp-proof,
  .lp-grid-3,
  .lp-grid-4 {
    grid-template-columns: 1fr;
  }

  .lp-hero {
    gap: var(--space-32);
  }

  .lp-screens-row {
    justify-content: center;
  }
}
