/* Slow WordPress page. Shared tokens and components live in landing.css. */

.lp .w-h1-main { font-size: clamp(4rem, 9vw, 8.4rem); }

/* A browser that will not finish loading */

.lp .w-browser {
  justify-self: end;
  width: min(100%, 420px);
  margin-top: 12px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.lp .w-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #efe4ea;
}

.lp .w-browser-dots { display: flex; gap: 6px; }

.lp .w-browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7c4ce;
}

.lp .w-url {
  flex: 1;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--mute);
}

.lp .w-spin { color: var(--magenta); animation: w-spin 1s linear infinite; }

@keyframes w-spin { to { transform: rotate(360deg); } }

.lp .w-progress { height: 3px; background: #efe4ea; }

.lp .w-progress-fill {
  display: block;
  height: 100%;
  background: var(--magenta);
  transform-origin: right center;
  transform: scaleX(0.72);
}

.lp .w-browser-page { display: grid; gap: 12px; padding: 18px; }

.lp .w-sk,
.lp .w-sk-hero,
.lp .w-sk-grid div {
  background: linear-gradient(90deg, #f3eaee 0%, #faf5f7 50%, #f3eaee 100%) 0 0 / 200% 100%;
  animation: w-shimmer 1.4s linear infinite;
}

@keyframes w-shimmer { to { background-position: -200% 0; } }

.lp .w-sk { height: 10px; border-radius: 5px; }
.lp .w-sk-nav { height: 14px; }
.lp .w-sk-title { width: 60%; height: 18px; }

.lp .w-sk-hero {
  display: grid;
  height: 150px;
  place-items: center;
  border-radius: 12px;
  font-size: 2.6rem;
  color: #dccbd3;
}

.lp .w-sk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lp .w-sk-grid div { height: 64px; border-radius: 10px; }

.lp .w-browser-status {
  display: grid;
  padding: 0 18px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mute);
}

/* The targets, printed as a report */

.lp .w-report-wrap { justify-self: end; width: min(100%, 460px); }

.lp .w-report { padding: 26px 26px calc(22px + var(--zz)); }

.lp .w-report-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--rule);
}

.lp .w-report-head strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.lp .w-report-head span { font-size: 0.8rem; color: var(--mute); }

.lp .w-report-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
}

.lp .w-report-rows b { display: block; font-size: 1.05rem; }
.lp .w-report-rows span { display: block; font-size: 0.85rem; line-height: 1.45; color: var(--mute); }

.lp .w-report-rows strong {
  flex: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--magenta);
  white-space: nowrap;
}

.lp .w-report-foot { margin-top: 14px; font-size: 0.88rem; }
.lp .w-report-foot cite { display: block; font-size: 0.78rem; font-style: normal; color: var(--mute); }

/* The 8 causes beside a chart that shrinks as you read */

.lp .w-causes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 80px;
  align-items: start;
}

.lp .w-cause {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}

.lp .w-cause:last-child { border-bottom: 1px solid var(--rule); }

.lp .w-cause-n {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--magenta);
}

.lp .w-cause h3 { margin-bottom: 10px; font-size: 1.45rem; font-weight: 700; line-height: 1.3; }
.lp .w-cause p { max-width: 36em; color: var(--mute); }
.lp .w-cause p + p { margin-top: 10px; }
.lp .w-cause .w-fix { color: var(--ink); }
.lp .w-fix strong { color: var(--magenta); }
.lp .w-fix a { font-weight: 700; color: var(--magenta); text-decoration: underline; text-underline-offset: 4px; }

.lp .w-chart {
  padding: 26px;
  border-radius: 22px;
  background: var(--plum);
  color: #fff;
}

.lp .w-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lp .w-chart-head strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.lp .w-chart-state { font-weight: 700; }
.lp .w-chart-state .is-slow { color: #ff9a9e; }
.lp .w-chart-state .is-fast { color: #b5e48c; }

.lp .w-bars { display: grid; gap: 11px; }

.lp .w-bars li,
.lp .w-total {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.lp .w-bars li > span:first-child { color: rgba(255, 255, 255, 0.65); transition: color 0.2s; }
.lp .w-bars li.is-active > span:first-child { font-weight: 700; color: #fff; }

.lp .w-track {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.lp .w-bars li.is-active .w-track { box-shadow: 0 0 0 2px rgba(242, 179, 207, 0.7); }

.lp .w-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--good);
  transform-origin: right center;
}

.lp .w-total {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.lp .w-total .w-track { height: 16px; border-radius: 8px; }

.lp .w-chart-note { margin-top: 14px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* Responsive */

@media (max-width: 900px) {
  .lp .w-browser,
  .lp .w-report-wrap { justify-self: center; }
  .lp .w-causes-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 560px) {
  .lp .w-sk-hero { height: 110px; }
  .lp .w-chart { padding: 20px; }
  .lp .w-bars li,
  .lp .w-total { grid-template-columns: 7em minmax(0, 1fr); font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lp .w-spin,
  .lp .w-sk,
  .lp .w-sk-hero,
  .lp .w-sk-grid div { animation: none; }
}
