/* Page Monitor landing page -------------------------------------------------
   This file intentionally builds on style.css. Components are prefixed with
   pm- so the product story can evolve without changing other website pages. */

/* Grid and flex items default to min-width:auto, which can make a long label
   wider than a narrow viewport. Keep every major landing-page region shrinkable
   and let its text wrap inside the available column instead. */
.hero .hero-grid,
.hero .hero-grid > *,
.hero .hero-visual,
.hero .browser,
main.wrap,
main.wrap > *,
.pm-workflow,
.pm-control-path,
.pm-rule-summary,
.pm-focus,
.pm-focus > *,
.pm-console-grid,
.pm-safety > div,
.pm-scenarios,
.pm-matrix,
.pm-feature-list,
.pm-privacy-grid,
.spot,
.spot > * {
  min-width: 0;
  max-width: 100%;
}

.hero .eyebrow { max-width: 100%; }
.hero .hero-grid { max-width: 1160px; }
.hero .eyebrow > span:first-child,
.hero h1,
.hero .lead,
.browser-bar span,
.pm-workflow-card,
.pm-rule-summary > *,
.pm-capability,
.pm-privacy-card,
.pm-safety p,
.pm-example,
.pm-console-rule,
.pm-feature-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.browser-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-card {
  min-width: 0;
  max-width: calc(100% - 20px);
}

.float-card > span:last-child { min-width: 0; }
.float-card b,
.float-card small { overflow-wrap: anywhere; }

.pm-subnav {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: var(--shadow-sm);
}

.pm-subnav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pm-subnav a:hover,
.pm-subnav a:focus-visible {
  color: var(--fg);
  background: var(--soft);
  text-decoration: none;
}

.pm-subnav + .support-guide-link { text-align: center; }

.pm-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pm-workflow-card {
  position: relative;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.pm-workflow-card:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  z-index: 2;
  top: 34px;
  right: -25px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--bg);
  font-size: 17px;
  font-weight: 800;
}

.pm-workflow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pm-workflow-number {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--info);
  font-size: 13px;
  font-weight: 800;
}

.pm-workflow-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.015em;
}

.pm-workflow-card > p {
  min-height: 72px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.pm-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pm-choice-list span,
.pm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.pm-rule-summary {
  max-width: 920px;
  margin: 22px auto 0;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--info) 65%, var(--card));
}

.pm-rule-summary > span {
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pm-rule-summary p {
  margin: 0;
  color: var(--fg);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
}

.pm-rule-summary small {
  color: var(--muted);
  font-size: 12.5px;
}

.pm-rule-summary mark {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  font-weight: 750;
}

.pm-control-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pm-control-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.pm-control-card > span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.pm-control-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.pm-control-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

#controls .support-guide-link { margin: 20px 0 0; text-align: center; }

.pm-focus {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.pm-focus-copy {
  min-width: 0;
  padding: clamp(28px, 5vw, 52px);
}

.pm-focus-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.pm-focus-copy > p {
  color: var(--muted);
  line-height: 1.75;
}

.pm-focus-copy .ticks {
  margin: 24px 0 0;
}

.pm-console {
  min-width: 0;
  padding: clamp(22px, 4vw, 40px);
  color: #e5e7eb;
  background: #111827;
}

.pm-console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.pm-console-head b { flex: 1; font-size: 14px; }
.pm-console-head b { min-width: 0; overflow-wrap: anywhere; }

.pm-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #86efac;
  background: rgba(34,197,94,.14);
  font-size: 11px;
  font-weight: 800;
}

.pm-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.pm-console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.pm-console-field {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
}

.pm-console-field.wide { grid-column: 1 / -1; }
.pm-console-field span { display: block; margin-bottom: 4px; color: #9ca3af; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.pm-console-field b { display: block; overflow: hidden; color: #f9fafb; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.pm-console-rule {
  padding: 15px;
  border: 1px solid rgba(129,140,248,.35);
  border-radius: 12px;
  color: #c7d2fe;
  background: rgba(79,70,229,.14);
  font-size: 13px;
  line-height: 1.65;
}

.pm-console-rule b { color: #fff; }

.pm-console-status {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-console-status span {
  padding: 5px 8px;
  border-radius: 7px;
  color: #d1d5db;
  background: rgba(255,255,255,.07);
  font-size: 11px;
}

.pm-safety {
  margin-top: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid color-mix(in srgb, #f59e0b 34%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, #f59e0b 8%, var(--card));
}

.pm-safety svg { width: 22px; height: 22px; flex: none; color: #d97706; }
.pm-safety h3 { margin: 0 0 4px; font-size: 15px; }
.pm-safety p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.pm-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pm-secondary-head { margin-top: 72px; }

.pm-scenario {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.pm-scenario-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--accent);
  background: var(--info);
}

.pm-scenario-icon svg { width: 20px; height: 20px; }
.pm-scenario h3 { margin: 15px 0 6px; font-size: 16px; }
.pm-scenario > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; flex: 1; }

.pm-example {
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--fg);
  background: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.pm-example span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pm-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pm-capability {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.pm-capability-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.pm-capability-head span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--accent);
  background: var(--info);
}

.pm-capability-head svg { width: 19px; height: 19px; }
.pm-capability h3 { margin: 0; font-size: 18px; }

.pm-feature-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  list-style: none;
}

.pm-feature-list li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.pm-feature-list li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pm-privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pm-privacy-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}

.pm-privacy-card > span {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--accent);
  background: var(--info);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pm-privacy-card h3 { margin: 0 0 8px; font-size: 17px; }
.pm-privacy-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.pm-privacy-foot {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.pm-privacy-foot a { font-weight: 700; }

@media (max-width: 900px) {
  .pm-workflow,
  .pm-control-path,
  .pm-scenarios,
  .pm-privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .pm-workflow-card:not(:last-child)::after { content: "\2193"; top: auto; right: 50%; bottom: -25px; transform: translateX(50%); }
  .pm-workflow-card > p { min-height: 0; }
  .pm-focus { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .pm-subnav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .pm-subnav a { flex: none; }
  .pm-rule-summary { grid-template-columns: minmax(0, 1fr); }
  .pm-rule-summary > span { grid-row: auto; justify-self: start; }
  .pm-matrix { grid-template-columns: minmax(0, 1fr); }
  .pm-feature-list { grid-template-columns: minmax(0, 1fr); }
  .pm-console-grid { grid-template-columns: minmax(0, 1fr); }
  .pm-console-field.wide { grid-column: auto; }
}

@media (max-width: 480px) {
  .pm-workflow-card,
  .pm-control-card,
  .pm-capability,
  .pm-privacy-card,
  .pm-scenario { padding: 20px; }
  .pm-console { padding: 20px; }
  .pm-console-head { align-items: flex-start; flex-wrap: wrap; }
  .pm-live { margin-left: 0; }
  .pm-safety { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-workflow-card,
  .pm-scenario,
  .pm-capability { transition: none; }
}
