/* ---------------------------------------------------------------------------
   Optimizer landing page.

   Kept in its own file rather than in styles.css: nothing here is used by the
   shop, and a sales page gets rewritten far more often than a storefront does.
   --------------------------------------------------------------------------- */

.lp-hero {
  padding: 54px 0 44px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(79, 140, 255, .22), transparent 70%),
    radial-gradient(700px 380px at 95% 0%, rgba(34, 211, 166, .14), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
}
.lp-hero h1 {
  margin: 14px 0 16px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lp-lead { font-size: 16.5px; line-height: 1.6; max-width: 46ch; margin: 0 0 12px; }
.lp-lead-quiet { color: var(--muted); font-size: 15px; }

.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.lp-shot { margin: 0; }
.lp-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  /* The app is dark; a soft lift stops it merging into the page. */
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.lp-shot figcaption { margin-top: 8px; text-align: right; }

.lp-section { padding: 52px 0; }
.lp-section > h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; }
.lp-sub { margin: 0 0 26px; }

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.lp-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lp-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lp-card-accent { border-color: var(--accent); }

.lp-honest {
  padding: 26px 28px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
}
.lp-honest h2 { margin: 0 0 12px; font-size: 21px; }
.lp-honest p { margin: 0 0 12px; color: var(--muted); line-height: 1.65; max-width: 72ch; }
.lp-honest p:last-child { margin-bottom: 0; }

/* Pricing */
.lp-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.lp-plan.is-best { border-color: var(--accent); }
.lp-flag {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  color: #fff; background: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
}
.lp-plan h3 { margin: 0 0 10px; font-size: 15px; color: var(--muted); font-weight: 600; }
.lp-price { margin: 0; font-size: 30px; font-weight: 750; letter-spacing: -0.02em; }
.lp-per { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.lp-save { margin: 8px 0 0; font-size: 12.5px; color: var(--mint, #22d3a6); min-height: 18px; }
.lp-stock { margin: 12px 0 16px; }
.lp-plan .btn { margin-top: auto; }

/* FAQ */
.lp-faq { display: flex; flex-direction: column; gap: 8px; max-width: 78ch; }
.lp-faq details {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.lp-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: " +"; color: var(--muted); float: right; }
.lp-faq details[open] summary::after { content: " –"; }
.lp-faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.lp-final { text-align: center; padding-bottom: 68px; }
.lp-final h2 { margin-bottom: 6px; }
.lp-final .btn { margin-top: 18px; }

@media (max-width: 860px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .lp-hero h1 { font-size: 30px; }
  .lp-shot { order: -1; }
}

/* ---------------- changelog ---------------- */

.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.cl-item:first-child { border-top: 0; padding-top: 0; }
.cl-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cl-version { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.cl-item.is-latest .cl-version { color: var(--accent); }
.cl-body h3 { margin: 0 0 8px; font-size: 15px; }
.cl-body ul { margin: 0; padding-left: 18px; }
.cl-body li { color: var(--muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 640px) {
  .cl-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cl-meta { flex-direction: row; align-items: center; }
}

/* ============ Sentinel: the live drive readout in the hero ============
   Built in markup rather than shipped as a screenshot, so it stays sharp on
   every display and readable on a phone, where a 1200px screenshot of a
   desktop app is unreadable anyway. */
.lp-readout .ro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.ro-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ro-name { margin: 0; font-size: 16px; font-weight: 650; }
.ro-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-faint); }
.ro-pill {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 7px;
  color: #0a0c11;
}
.ro-good { background: var(--mint); }
.ro-headline { margin: 16px 0 0; font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.ro-bar {
  margin-top: 14px;
  height: 7px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
}
.ro-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--mint));
}
.ro-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}
.ro-stats > div { display: flex; flex-direction: column; gap: 4px; }
.ro-k { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--text-faint); }
.ro-v { font-size: 15px; font-variant-numeric: tabular-nums; }

@media (max-width: 420px) {
  .ro-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Registry keys and setting names quoted in the sales copy. Naming the exact
   value is the whole point of that section - it is what separates it from the
   tools that promise a number and cannot tell you what they touched - so it
   should read as something you could go and look up. */
.lp-card code,
.lp-honest code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--accent-text);
  overflow-wrap: anywhere;
}

/* A full-width screenshot of the real app. Bordered and rounded so it reads as
   a window rather than as an image that has bled into the page. */
.lp-wide-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lp-wide-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-wide-shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* The buy-both strip. Loud enough to notice on the way to the pricing table,
   quiet enough not to look like an ad for something else. */
.lp-bundle {
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-bundle-body { flex: 1 1 320px; min-width: 0; }
.lp-bundle h3 { margin: 0 0 7px; font-size: 17px; }
.lp-bundle p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
.lp-bundle code {
  font-family: var(--mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  letter-spacing: .04em;
}
