/*
  Pressure-Test the Concept: standalone visual layer
  Production integration: inherit the site's existing Fraunces / Inter / Space Mono loading.
*/
:root {
  --pt-ground: #FCFAF7;
  --pt-paper: #F8F5F0;
  --pt-stone: #DDD6CB;
  --pt-stone-soft: #EEE9E1;
  --pt-mulberry: #7E3247;
  --pt-aubergine: #281A22;
  --pt-coral: #B95B49;
  --pt-coral-ink: #9B453A;
  --pt-ink: #242321;
  --pt-slate: #64707A;
  --pt-serif: Fraunces, Georgia, "Times New Roman", serif;
  --pt-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pt-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pt-ground);
  color: var(--pt-ink);
  font-family: var(--pt-sans);
}
button, summary { font: inherit; }
button { color: inherit; }

.pt-app {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 64px 0 96px;
}
.pt-view[hidden] { display: none !important; }
.pt-kicker,
.pt-meta,
.pt-index-link > span {
  margin: 0;
  color: var(--pt-slate);
  font-family: var(--pt-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pt-opening-mark {
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 24px;
  background: var(--pt-mulberry);
}
.pt-hero { max-width: 820px; }
.pt-hero h1,
.pt-question-block h2 {
  margin: 24px 0 0;
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.pt-intro {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--pt-slate);
  font-size: 1.05rem;
  line-height: 1.72;
}

.pt-buyer-section { margin-top: 78px; }
.pt-buyer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 16px;
  margin-top: 18px;
}
.pt-buyer {
  min-height: 44px;
  padding: 22px 0 28px;
  border: 0;
  border-top: 1px solid var(--pt-stone);
  background: transparent;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: padding-left 160ms ease;
}
.pt-buyer:hover { padding-left: 8px; }
.pt-buyer--brand { grid-column: 1 / span 5; }
.pt-buyer--owner { grid-column: 7 / span 6; }
.pt-buyer--ops { grid-column: 3 / span 7; margin-top: 22px; }
.pt-buyer-title {
  display: block;
  margin-top: 13px;
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.12;
  transition: color 160ms ease;
}
.pt-buyer:hover .pt-buyer-title { color: var(--pt-coral-ink); }
.pt-secondary {
  display: block;
  max-width: 390px;
  margin-top: 13px;
  color: var(--pt-slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pt-index { max-width: 760px; margin-top: 120px; }
.pt-index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}
.pt-viewing-context[hidden] { display: none !important; }
.pt-viewing-context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  color: var(--pt-slate);
  font-size: 13px;
}
.pt-index-link {
  min-height: 44px;
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid var(--pt-stone);
  background: transparent;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.pt-index-link:last-child { border-bottom: 1px solid var(--pt-stone); }
.pt-index-link strong {
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  transition: color 150ms ease;
}
.pt-index-link:hover strong { color: var(--pt-coral-ink); }

.pt-assumptions {
  max-width: 760px;
  margin-top: 60px;
  padding-top: 17px;
  border-top: 1px solid var(--pt-stone);
  color: var(--pt-slate);
}
.pt-assumptions summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; touch-action: manipulation; }
.pt-assumptions div { max-width: 700px; margin-top: 18px; font-size: 0.88rem; line-height: 1.65; }

.pt-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pt-stone);
}
.pt-text-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--pt-stone);
  background: transparent;
  color: var(--pt-coral-ink);
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}
.pt-text-button:hover { border-bottom-color: var(--pt-coral-ink); }
.pt-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.pt-reading-column { max-width: 860px; margin-top: 28px; }

.pt-specimen {
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--pt-stone);
}
.pt-specimen-row,
.pt-analysis-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 32px;
}
.pt-specimen-row--effect { margin-top: 20px; }

.pt-promise-stack {
  display: grid;
  gap: 14px;
}
.pt-promise-reference {
  display: flex;
  align-items: center;
}
.pt-reference-trigger {
  width: fit-content;
}
.pt-reference-dialog {
  width: min(100% - 32px, 760px);
  padding: 0;
  border: 0;
  background: transparent;
}
.pt-reference-dialog::backdrop {
  background: #242321;
  opacity: 0.58;
}
.pt-reference-dialog__panel {
  background: var(--pt-paper);
  border: 1px solid var(--pt-stone);
  padding: 28px;
}
.pt-reference-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}
.pt-reference-title {
  margin: 10px 0 0;
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-size: 1.2rem;
  line-height: 1.35;
}
.pt-reference-figure {
  margin: 0;
}
.pt-reference-figure img {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: var(--pt-ground);
}
.pt-reference-figure figcaption {
  margin-top: 14px;
  color: var(--pt-slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pt-specimen-row--moment { margin-top: 46px; }
.pt-promise {
  max-width: 620px;
  margin: 0;
  color: var(--pt-slate);
  font-family: var(--pt-serif);
  font-size: 1.08rem;
  font-style: normal;
  line-height: 1.55;
}
.pt-effect {
  max-width: 620px;
  margin: 0;
  color: var(--pt-mulberry);
  font-family: var(--pt-serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
}
.pt-moment {
  max-width: 700px;
  margin: 0;
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  line-height: 1.36;
}

.pt-history,
.pt-result-history {
  max-width: 610px;
  margin: 28px 0 0 177px;
}
.pt-result-reading {
  margin: 0 0 0 177px;
  color: var(--pt-slate);
}
.pt-margin-note {
  padding: 14px 0 14px 22px;
  border-left: 1px solid var(--pt-mulberry);
}
.pt-margin-note + .pt-margin-note { margin-top: 9px; }
.pt-margin-answer {
  margin: 5px 0 0;
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-size: 1.2rem;
  line-height: 1.45;
}
.pt-evidence-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pt-stone-soft);
}
.pt-evidence-note p:last-child { margin: 6px 0 0; line-height: 1.55; }

.pt-fact {
  max-width: 650px;
  margin: 28px 0 0 177px;
  padding: 5px 0 8px 24px;
  border-left: 2px solid var(--pt-mulberry);
  animation: ptFactIn 320ms ease both;
}
.pt-fact .pt-kicker { color: var(--pt-mulberry); }
.pt-fact-text {
  margin: 8px 0 0;
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-size: 1.45rem;
  line-height: 1.4;
}
@keyframes ptFactIn {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

.pt-question-block { max-width: 740px; margin-top: 58px; outline: none; }
.pt-phase { color: var(--pt-mulberry); }
.pt-question-block h2 { font-size: clamp(2.25rem, 5vw, 3.55rem); }
.pt-helper {
  max-width: 630px;
  margin: 16px 0 0;
  color: var(--pt-slate);
  font-size: 0.92rem;
  line-height: 1.6;
}
.pt-answers { max-width: 700px; margin-top: 34px; }
.pt-answer {
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 0;
  border: 0;
  border-top: 1px solid var(--pt-stone);
  background: transparent;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: padding-left 150ms ease, color 150ms ease;
}
.pt-answer:last-child { border-bottom: 1px solid var(--pt-stone); }
.pt-answer:hover { padding-left: 7px; color: var(--pt-coral-ink); }
.pt-answer-arrow { color: var(--pt-coral-ink); opacity: 0; transition: opacity 150ms ease; }
.pt-answer:hover .pt-answer-arrow { opacity: 1; }

.pt-result-column { margin-top: 34px; }
.pt-analysis-row {
  padding: 29px 0;
  border-top: 1px solid var(--pt-stone);
}
.pt-analysis-row--changed .pt-kicker { color: var(--pt-mulberry); }
.pt-analysis-main,
.pt-field-test > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--pt-aubergine);
  font-family: var(--pt-serif);
  font-size: 1.55rem;
  line-height: 1.4;
}
.pt-analysis-body {
  max-width: 650px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
}
.pt-field-test {
  max-width: 650px;
  margin: 24px 0 12px 177px;
  padding: 26px 30px;
  border-left: 2px solid var(--pt-mulberry);
  background: var(--pt-paper);
}
.pt-field-test > p:last-child { margin-top: 10px; font-size: 1.4rem; }
.pt-closing-note {
  max-width: 620px;
  margin: 30px 0 0 177px;
  color: var(--pt-slate);
  font-size: 0.88rem;
  line-height: 1.6;
}
.pt-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 32px 0 0 177px;
}

button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pt-coral-ink);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .pt-app { width: min(100% - 30px, 1120px); padding: 42px 0 72px; }
  .pt-buyer-grid { display: block; }
  .pt-buyer { width: 100%; margin: 0; }
  .pt-buyer + .pt-buyer { margin-top: 12px; }
  .pt-index { margin-top: 88px; }
  .pt-index-head { display: block; }
  .pt-viewing-context { justify-content: flex-start; margin-top: 10px; }
  .pt-specimen-row,
  .pt-analysis-row { grid-template-columns: 1fr; gap: 8px; }
  .pt-history,
  .pt-result-history,
  .pt-result-reading,
  .pt-fact,
  .pt-field-test,
  .pt-closing-note,
  .pt-result-actions { margin-left: 0; }
  .pt-meta { max-width: 56%; }
  .pt-question-block { margin-top: 48px; }
}


@media (max-width: 360px) {
  .pt-topline {
    flex-direction: column;
    gap: 10px;
  }
  .pt-meta {
    max-width: 100%;
    justify-items: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (pointer: coarse) {
  .pt-app button,
  .pt-app summary {
    min-height: 44px;
  }
}

@media (max-width: 860px) {
  .pt-reference-dialog {
    width: min(100% - 20px, 760px);
  }
  .pt-reference-dialog__panel {
    padding: 18px;
  }
  .pt-reference-figure figcaption {
    font-size: 0.88rem;
  }

}
