:root {
  --lps-bg: #FAF7F0;
  --lps-text: #1B1B1B;
  --lps-muted: #66625A;
  --lps-accent: #0E6B5C;
  --lps-accent-dark: #0A4F44;
  --lps-rule: #E4DFD3;
  --lps-panel: #F2EEE4;
}

html, body {
  background-color: var(--lps-bg);
  color: var(--lps-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* Single narrow column, generous whitespace */
.lps-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section.lps-section {
  padding: 3.5rem 0 1rem 0;
}

.title, .subtitle, h1, h2, h3 {
  color: var(--lps-text);
  font-family: inherit;
}

h2.title.is-3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.content p {
  color: var(--lps-text);
}

/* Hero */
.lps-hero {
  padding: 4.5rem 0 1.5rem 0;
  text-align: center;
}

.lps-hero-logo {
  height: 110px;
  width: auto;
  margin-bottom: 1.1rem;
}

.lps-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.lps-hero .lps-subtitle {
  font-size: 1.2rem;
  color: var(--lps-muted);
  max-width: 640px;
  margin: 0 auto 1.75rem auto;
}

.lps-hero-buttons {
  margin-bottom: 2.25rem;
}

.button.lps-button {
  background-color: var(--lps-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  padding-left: 1.4em;
  padding-right: 1.4em;
}

.button.lps-button:hover {
  background-color: var(--lps-accent-dark);
  color: #ffffff;
}

.button.lps-button-outline {
  background-color: transparent;
  color: var(--lps-accent);
  border: 1.5px solid var(--lps-accent);
  border-radius: 6px;
  font-weight: 500;
  padding-left: 1.4em;
  padding-right: 1.4em;
}

.button.lps-button-outline:hover {
  background-color: var(--lps-accent);
  color: #ffffff;
}

/* Video */
video.lps-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background-color: #000;
}

figure.lps-figure {
  margin: 0 0 1rem 0;
}

figure.lps-figure figcaption {
  font-size: 0.9rem;
  color: var(--lps-muted);
  margin-top: 0.6rem;
  text-align: center;
}

/* Stats line under each result video */
.lps-stats {
  font-size: 0.95rem;
  color: var(--lps-text);
  background-color: var(--lps-panel);
  border-left: 3px solid var(--lps-accent);
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 1rem;
  margin-top: 0.9rem;
}

/* a heading straight after a stats line starts a new demo: give it room */
.lps-stats + h3.title {
  margin-top: 2.5rem;
}

.lps-caveat {
  font-size: 0.88rem;
  color: var(--lps-muted);
  margin-top: 0.75rem;
}

/* Comparison table */
.lps-table-wrapper {
  overflow-x: auto;
}

table.table.lps-table {
  background-color: transparent;
  width: 100%;
}

table.table.lps-table th {
  color: var(--lps-text);
  border-color: var(--lps-rule);
  font-weight: 600;
}

table.table.lps-table td {
  border-color: var(--lps-rule);
  color: var(--lps-text);
  vertical-align: middle;
}

.lps-profile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 240px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.lps-profile img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.lps-mounts img {
  width: 100%;
  max-width: 220px;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.lps-table-note {
  font-size: 0.85rem;
  color: var(--lps-muted);
  margin-top: 0.4rem;
}

/* Integration specs: cards rather than a second table, so the section does not
   read as one long grid. A headerless spec table stacked under the cost table
   was being read as more cost rows. */
.lps-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 0.25rem 0 1.75rem 0;
}

.lps-spec-card {
  background-color: var(--lps-panel);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}

.lps-spec-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lps-accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.lps-spec-value {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .lps-specs {
    grid-template-columns: 1fr;
  }
}

/* Subheads inside a section. Scoped to its own class rather than restyling
   .title.is-4, which the Results subheadings also use: Bulma sizes is-4 at
   1.5rem against this page's 1.6rem h2, which is too close to read as a level
   down when two of them sit in one section. */
.lps-subhead {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* a subhead following a table's footnote needs the gap the note does not give */
.lps-table-note + .lps-subhead {
  margin-top: 2.5rem;
}

/* Privacy comparison */
.lps-compare img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.lps-compare .lps-compare-label {
  font-size: 0.9rem;
  color: var(--lps-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Deployment steps */
.lps-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lps-steps li {
  position: relative;
  padding: 0 0 1.1rem 3rem;
}

/* a heading following the step list needs the gap the list does not supply */
.lps-steps + h2.title.is-3 {
  margin-top: 2.5rem;
}

.lps-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--lps-accent);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Integration spec table: label column carries the field name, so it reads as a
   spec sheet rather than a comparison grid */
table.lps-spec th {
  width: 34%;
  white-space: nowrap;
  border-bottom: 1px solid var(--lps-rule);
  vertical-align: top;
}

@media (max-width: 560px) {
  table.lps-spec th { white-space: normal; width: 40%; }
}

/* Status list: the tag encodes maturity, so it has to read at a glance rather
   than being inferred from the sentence */
.lps-status {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lps-status li {
  border-top: 1px solid var(--lps-rule);
  padding: 0.8rem 0;
  font-size: 0.97rem;
}

.lps-status li:last-child {
  border-bottom: 1px solid var(--lps-rule);
}

.lps-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.16em 0.6em;
  border-radius: 3px;
  margin-right: 0.6rem;
  vertical-align: 0.08em;
  white-space: nowrap;
}

.lps-tag-done {
  background-color: var(--lps-accent);
  color: #fff;
}

.lps-tag-wip {
  background-color: #EFE7D2;
  color: #6B5A2E;
}

/* Beyond-transport strip: deliberately smaller than the transport imagery */
.lps-beyond img {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 231 / 297;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

/* FAQ */
.lps-faq details {
  border-top: 1px solid var(--lps-rule);
  padding: 0.9rem 0;
}

.lps-faq details:last-child {
  border-bottom: 1px solid var(--lps-rule);
}

.lps-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--lps-text);
}

.lps-faq details p {
  margin-top: 0.6rem;
  color: var(--lps-text);
}

/* Supported-by strip */
.lps-sponsors {
  border-top: 1px solid var(--lps-rule);
  margin-top: 3.5rem;
  padding: 2.25rem 0 1.5rem 0;
  text-align: center;
}

.lps-sponsors .lps-sponsors-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lps-muted);
  margin-bottom: 1.1rem;
}

.lps-sponsors img {
  height: 90px;
  width: auto;
  margin: 0.75rem 1.5rem;
  vertical-align: middle;
}

/* Footer */
footer.lps-footer {
  background-color: transparent;
  padding: 1rem 0 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--lps-muted);
}

footer.lps-footer a {
  color: var(--lps-muted);
  text-decoration: underline;
}

/* Links */
a {
  color: var(--lps-accent);
}

a:hover {
  color: var(--lps-accent-dark);
}

/* Hero video carousel */
/* Three across the page width: the playing video in front, its neighbours smaller behind it. Positions are set
   from index.js; --w is the front video's width, sized so the three fit the page. The height fits a 16:9 video,
   and wider ones sit centred in it. */
.lps-hero-carousel {
  --w: 46vw;
  position: relative;
  width: 100%;
  height: calc(var(--w) * 9 / 16);
  margin-top: 2.5rem;
  overflow: hidden;
}

.lps-hero-carousel .item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--w);
  transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
  cursor: pointer;
}

.lps-hero-carousel .item.is-front {
  cursor: default;
}

.lps-hero-carousel video {
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lps-hero-carousel .item .lps-carousel-caption {
  display: none;
}

.lps-carousel-caption {
  font-size: 0.9rem;
  color: var(--lps-muted);
  margin-top: 0.6rem;
  text-align: center;
}

.lps-hero-caption {
  max-width: 860px;
  min-height: 3em;
  margin: 0.8rem auto 0 auto;
  padding: 0 16px;
  transition: opacity 0.6s ease-in-out;
}

.lps-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: -1.2rem;
  border-radius: 50%;
  border: 1px solid var(--lps-rule);
  background-color: rgba(250, 247, 240, 0.85);
  color: var(--lps-accent);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lps-hero-prev { left: 16px; }
.lps-hero-next { right: 16px; }

@media (max-width: 700px) {
  .lps-hero-carousel { --w: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
  .lps-hero-carousel .item { transition: none; }
}

@media (max-width: 480px) {
  .lps-hero-logo {
    height: 80px;
  }

  .lps-hero h1 {
    font-size: 1.9rem;
  }

  .lps-hero .lps-subtitle {
    font-size: 1.05rem;
  }

  section.lps-section {
    padding: 2.5rem 0 0.5rem 0;
  }
}

/* ---- headline figures (ZOE tunnel accuracy) ---------------------------- */
.lps-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0.25rem 0 0;
}
.lps-metric {
  background-color: var(--lps-panel);
  border-radius: 8px;
  padding: 0.9rem 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.lps-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--lps-accent);
  font-variant-numeric: tabular-nums;
}
.lps-metric-label {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--lps-muted);
}
@media (max-width: 640px) {
  .lps-metrics { grid-template-columns: repeat(2, 1fr); }
  .lps-metric-value { font-size: 1.45rem; }
}

/* ZOE mount photos: two portrait shots, one crop */
.lps-mounts-zoe img {
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.lps-metrics-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lps-muted);
  font-weight: 600;
  margin: 0.4rem 0 0.5rem;
}

/* Red ring marking the LPS sensor: drawn over the photo, not into it, so it stays sharp at any size */
.lps-ringed { position: relative; margin: 0 auto; }
.lps-ringed-zoe { max-width: 340px; }
.lps-ringed-beyond { max-width: 170px; }
.lps-ringed img { display: block; width: 100%; max-width: 100%; }
.lps-ring {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--d);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid #e02424;
  border-radius: 50%;
  pointer-events: none;
}
.lps-ringed-beyond .lps-ring { border-width: 1.5px; }
.lps-footer .lps-footer-credit { margin-top: 0.35rem; }

