/* ── Feature rows ───────────────────────────────────────────
   Copy on one side, one large product visual on the other, alternating
   (views/landing-features.js). Each visual sits on a flat stage; the
   product panels on it share the hero window's tokens. */

.lp-features { display: flex; flex-direction: column; gap: clamp(104px, 11vw, 152px); }

.lp-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.lp-feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lp-feature--flip .lp-feature-copy { order: 2; }

.lp-feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lp-feature-copy .lp-h2 { max-width: 14ch; }
.lp-feature-copy .lp-lede { max-width: 42ch; }
.lp-feature-copy .lp-link-btn { margin-top: 4px; }

.lp-fstage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 7 / 6;
  border-radius: 28px;
  background: var(--lp-stage);
}

/* A product panel floating on a stage. */
.lp-cv-page, .lp-cv-answer, .lp-vv-call, .lp-sv-panel {
  background: var(--lp-panel);
  box-shadow: var(--lp-shadow);
  border-radius: 18px;
}

/* ── Citations: the answer in front, its source page behind ─ */

.lp-cv-page {
  position: absolute;
  top: 47%;
  right: 6%;
  bottom: -12%;
  width: 60%;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.lp-cv-page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--lp-hair);
  font-size: 12.5px;
  color: var(--muted);
}

.lp-cv-page-head svg { width: 14px; height: 14px; color: var(--subtle); }
.lp-cv-page-no { margin-left: auto; color: var(--subtle); }
.lp-cv-page-h { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 2px; }

.lp-line { display: block; height: 7px; border-radius: 4px; background: var(--lp-chip); flex: none; }

.lp-cv-mark {
  position: relative;
  margin: 4px 0;
  padding: 10px 12px 10px 14px;
  border-left: 2px solid var(--text);
  border-radius: 3px 10px 10px 3px;
  background: var(--lp-chip-hi);
  font-size: 13px;
  line-height: 1.55;
}

.lp-cv-mark-n {
  position: absolute;
  top: -9px;
  left: -10px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 0 0 3px var(--lp-panel);
}

.lp-cv-answer {
  position: absolute;
  left: 6%;
  top: 7%;
  z-index: 1;
  width: 58%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-cv-q {
  align-self: flex-end;
  max-width: 92%;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--lp-chip);
  box-shadow: inset 0 0 0 1px var(--lp-hair);
  font-size: 13px;
  line-height: 1.45;
}

.lp-cv-a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; }
.lp-cv-a p { font-size: 14px; line-height: 1.58; padding-top: 3px; }
.lp-cv-source { align-self: flex-start; margin-left: 39px; }

/* ── Voice: a live call ─────────────────────────────────── */

.lp-vv { display: grid; place-items: center; }

.lp-vv-call {
  width: min(64%, 360px);
  height: 86%;
  border-radius: 30px;
  padding: 36px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The caller: the persona's portrait, with two hairline rings easing out
   of it while it speaks. No gradient, no glow. */
.lp-vv-orb { position: relative; width: 104px; height: 104px; margin-top: 8px; flex: none; }

.lp-vv-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #efefef;
}

.lp-vv-orb i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  animation: lp-ring 2.8s ease-out infinite;
}

.lp-vv-orb i:nth-child(2) { animation-delay: 1.4s; }

@keyframes lp-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }

.lp-vv-name { margin-top: 26px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }

.lp-vv-meta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.lp-vv-meta .dot { color: var(--good); }
.lp-vv-time { font-variant-numeric: tabular-nums; color: var(--subtle); }

.lp-vv-transcript { margin: auto 0; padding: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.lp-vv-heard { font-size: 13px; color: var(--subtle); line-height: 1.5; }
.lp-vv-said { font-size: 15px; line-height: 1.5; text-wrap: balance; }
.lp-vv-dim { color: var(--subtle); }

.lp-vv-controls { display: flex; gap: 16px; }

.lp-vv-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lp-chip);
  box-shadow: inset 0 0 0 1px var(--lp-hair);
  color: var(--text);
}

.lp-vv-btn svg { width: 19px; height: 19px; }
.lp-vv-btn--end { background: var(--accent); box-shadow: none; color: var(--on-accent); }

/* ── Sharing: the share panel ───────────────────────────── */

.lp-sv { display: grid; place-items: center; padding: 6%; }

.lp-sv-panel { width: 100%; max-width: 440px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.lp-sv-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; }
.lp-sv-done { font-size: 13px; font-weight: 500; color: var(--subtle); }

.lp-sv-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 13px;
  border-radius: 12px;
  background: var(--lp-chip);
  box-shadow: inset 0 0 0 1px var(--lp-hair);
  font-size: 13.5px;
  min-width: 0;
}

.lp-sv-link > svg { width: 15px; height: 15px; color: var(--subtle); }
.lp-sv-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-sv-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12.5px;
  font-weight: 600;
}

.lp-sv-copy svg { width: 12px; height: 12px; }

.lp-sv-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.lp-sv-access { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.lp-sv-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--lp-hair);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
}

.lp-sv-opt > svg { width: 15px; height: 15px; }

.lp-sv-radio {
  width: 15px;
  height: 15px;
  margin-left: auto;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1.5px var(--line-hi);
}

.lp-sv-opt.is-on { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.lp-sv-opt.is-on .lp-sv-radio { background: var(--text); box-shadow: inset 0 0 0 3.5px var(--lp-panel), 0 0 0 1.5px var(--text); }

.lp-sv-rows { display: flex; flex-direction: column; margin-top: 2px; border-top: 1px solid var(--lp-hair); }

.lp-sv-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--lp-hair);
  font-size: 13.5px;
  min-width: 0;
}

.lp-sv-row:last-child { border-bottom: none; padding-bottom: 2px; }
.lp-sv-row > svg { width: 16px; height: 16px; color: var(--subtle); }
.lp-sv-row-label { white-space: nowrap; }

.lp-sv-val {
  margin-left: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.lp-sv-ok {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--good) 18%, transparent);
  color: var(--good);
}

.lp-sv-ok svg { width: 11px; height: 11px; stroke-width: 2.6; }

/* A switch in the on position. */
.lp-sv-toggle {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent);
}

.lp-sv-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--on-accent);
}

.lp-sv-code { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--lp-chip); }

/* ── Small screens ──────────────────────────────────────── */

@media (max-width: 900px) {
  .lp-feature, .lp-feature--flip { grid-template-columns: 1fr; gap: 36px; }
  .lp-feature--flip .lp-feature-copy { order: 0; }
  .lp-fstage { aspect-ratio: 6 / 5; }
}

@media (max-width: 600px) {
  .lp-fstage { border-radius: 24px; }

  /* The two citation panels stop floating and stack in reading order: the
     answer, then its source page tucked just beneath it, running off the
     bottom of the stage the way it does on desktop. */
  .lp-cv { aspect-ratio: auto; display: flex; flex-direction: column; padding: 20px 14px 0; }
  .lp-cv-answer { order: -1; position: relative; inset: auto; width: 94%; padding: 16px; }
  .lp-cv-page { position: relative; inset: auto; width: 90%; align-self: flex-end; margin-top: -14px; padding: 30px 18px 22px; border-radius: 18px 18px 0 0; }

  .lp-vv { aspect-ratio: auto; padding: 28px 0; }
  .lp-vv-call { width: 86%; height: auto; min-height: 400px; padding: 30px 20px 22px; }

  .lp-sv { aspect-ratio: auto; padding: 22px 12px; }
  .lp-sv-panel { padding: 16px; }
  .lp-sv-access { grid-template-columns: 1fr; }
}
