/* ========================================
   LOX landing page — site-specific styles
   Tokens, fonts, and base primitives live in ../shared/
   ======================================== */

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  background-position: center center;
  background-size: cover;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

/* ========================================
   Hero background — drifting rectangles
   Adapted from CodePen Johnm__/qZqgGJ.
   100cqh keeps the travel bound to hero height (not viewport).
   ======================================== */
.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  container-type: size;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__bg::before {
  top: 0;
  height: 60%;
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
}

.hero__bg::after {
  bottom: 0;
  height: 30%;
  background: linear-gradient(0deg, var(--surface) 0%, transparent 100%);
}

.hero__square {
  align-self: flex-end;
  width: 1em;
  height: 1em;
  background: var(--outline-muted);
  border-radius: var(--corner-xs);
  transform: translateY(100%);
  animation: hero-squares 9.5s linear infinite;
}

.hero__square:nth-child(2)  { height: 1.5em;  width: 3em;   animation-delay: 1s;   animation-duration: 17s; filter: blur(5px); }
.hero__square:nth-child(3)  { height: 2em;    width: 1em;   animation-delay: 1.5s; animation-duration: 8s; }
.hero__square:nth-child(4)  { height: 1em;    width: 1.5em; animation-delay: 0.5s; animation-duration: 13s; filter: blur(3px); }
.hero__square:nth-child(5)  { height: 1.25em; width: 2em;   animation-delay: 4s;   animation-duration: 11s; filter: blur(2px); }
.hero__square:nth-child(6)  { height: 2.5em;  width: 2em;   animation-delay: 2s;   animation-duration: 9s;  filter: blur(1px); }
.hero__square:nth-child(7)  { height: 5em;    width: 2em;                          animation-duration: 12s; filter: blur(2.5px); }
.hero__square:nth-child(8)  { height: 1em;    width: 3em;   animation-delay: 5s;   animation-duration: 18s; filter: blur(6px); }
.hero__square:nth-child(9)  { height: 1.5em;  width: 2em;                          animation-duration: 9s;  filter: blur(0.5px); }
.hero__square:nth-child(10) { height: 3em;    width: 2.4em; animation-delay: 6s;   animation-duration: 12s; filter: blur(0.5px); }

@keyframes hero-squares {
  from { transform: translateY(100%) rotate(-50deg); }
  to   { transform: translateY(calc(-100cqh - 100%)) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { display: none; }
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  /* font-weight: 600; */
  line-height: 1.1;
  /* letter-spacing: -0.03em; */
  margin-bottom: var(--space-l);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Trust strip
   ======================================== */
.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s) var(--space-l);
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-strip li {
  position: relative;
  padding-left: var(--space);
}

.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ========================================
   Feature cards
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--outline-muted);
  border-radius: var(--corner-l);
  padding: var(--space-l);
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-card__number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space);
  letter-spacing: 0.08em;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-s);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================
   Steps
   ======================================== */
.steps {
  max-width: 640px;
  margin: var(--space-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.step {
  display: flex;
  gap: var(--space-l);
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50%;
}

.step__content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.step__content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================
   Two-up vault cards
   ======================================== */
.two-up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

.vault-card {
  background: var(--surface-card);
  border: 1px solid var(--outline-muted);
  border-radius: var(--corner-l);
  padding: var(--space-xl);
}

.vault-card__badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--corner-xs);
  margin-bottom: var(--space);
}

.vault-card__badge--neutral {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text-muted);
}

.vault-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-s);
}

.vault-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================
   Use-case lines
   ======================================== */
.use-case {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space);
}

.use-case__line {
  background: var(--surface-card);
  border: 1px solid var(--outline-muted);
  border-left: 3px solid var(--accent);
  border-radius: var(--corner);
  padding: var(--space) var(--space-l);
  color: var(--text-muted);
  line-height: 1.65;
}

.use-case__line strong {
  color: var(--text);
  font-weight: 600;
}

/* ========================================
   Add-on card (pricing teaser)
   ======================================== */
.addon-card {
  background: var(--surface-card);
  border: 1px solid var(--outline-muted);
  border-radius: var(--corner-l);
  padding: var(--space-xl);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.addon-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.addon-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  margin-bottom: var(--space);
  flex-wrap: wrap;
}

.addon-card__head h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.addon-card__tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--corner-xs);
}

.addon-card__tag--neutral {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text-muted);
}

.addon-card__list {
  list-style: none;
  margin: 0 0 var(--space-l);
  color: var(--text-muted);
}

.addon-card__list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  line-height: 1.55;
}

.addon-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.faq details {
  background: var(--surface-card);
  border: 1px solid var(--outline-muted);
  border-radius: var(--corner);
  padding: var(--space) var(--space-l);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--accent);
}

.faq summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: var(--space-s);
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .features-grid,
  .two-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
  }

  .addon-card,
  .vault-card {
    padding: var(--space-l);
  }
}
