/* compass-public-visual-system: uxhc-v1 */
:root {
  --bg: #f7faf7;
  --paper: #ffffff;
  --ink: #17211f;
  --muted: #5f6f6a;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --coral: #d95f43;
  --leaf: #527a39;
  --gold: #d99c2b;
  --line: #d9e5df;
  --soft: #eef6f1;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.06), transparent 340px),
    var(--bg);
  line-height: 1.58;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--teal-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a:focus,
button:focus,
summary:focus {
  outline: 3px solid rgba(217, 95, 67, 0.35);
  outline-offset: 3px;
}

header,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 44px 0 24px;
}

.brand {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
}

.brand img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.05rem;
}

.lead {
  max-width: 880px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.header-actions .button {
  margin: 0;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.83rem;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 22px;
  border-bottom: 1px solid var(--line);
}

.tab-nav button {
  appearance: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 12px 15px;
  background: #edf5f0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-nav button[aria-selected="true"] {
  background: var(--paper);
  color: var(--teal-dark);
  box-shadow: 0 -3px 0 var(--coral) inset;
}

.tab-panel {
  animation: fade 160ms ease-out;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  min-width: 0;
}

.card {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.card p:last-child,
.card ol:last-child,
.card table:last-child,
.card textarea:last-child {
  margin-bottom: 0;
}

.notice {
  border-left: 4px solid var(--gold);
}

.download-chooser {
  border-left: 4px solid var(--teal);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.chooser-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.chooser-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.chooser-grid span {
  display: block;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.example-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 20px;
  align-items: start;
}

.example-screenshot {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.example-output {
  margin: 0 0 18px;
}

.example-output-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.example-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.example-switcher button {
  appearance: none;
  min-height: 44px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 11px 15px;
  background: #edf5f0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.example-switcher button[aria-selected="true"] {
  background: var(--paper);
  color: var(--teal-dark);
  box-shadow: 0 -3px 0 var(--coral) inset;
}

.example-panel[hidden] {
  display: none;
}

.report-link-grid {
  align-items: stretch;
}

.report-snapshot-stack {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
}

.report-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.report-selector button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fbfdfb;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.report-selector button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--soft);
  color: var(--teal-dark);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.report-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 4px 8px 4px 0;
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 11px 15px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.button.secondary {
  border-color: var(--teal);
  background: var(--teal);
}

.button.ghost,
.button.quiet {
  background: transparent;
  color: var(--teal-dark);
}

.button.disabled,
.button:disabled {
  border-color: #a9b8b2;
  background: #e4ebe7;
  color: #5e6f68;
  cursor: not-allowed;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td,
th {
  border-top: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #edf5f0;
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.93em;
}

textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfb;
  color: var(--ink);
  font: 0.94rem/1.52 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.prompt-card textarea {
  min-height: 330px;
}

.author-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: start;
}

.author-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.about-link {
  margin: 0 0 24px;
}

.section-heading {
  margin: 0 0 18px;
}

.tool-breakdown dt {
  margin: 14px 0 6px;
  font-weight: 800;
}

.tool-breakdown dd {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfb;
}

summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
}

footer {
  padding: 28px 0 44px;
  color: var(--muted);
}

@media (max-width: 720px) {
  header,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    grid-template-columns: 64px 1fr;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .tab-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border-bottom: 0;
  }

  .tab-nav button {
    width: 100%;
    min-height: 48px;
    text-align: left;
    border-radius: 8px;
    border: 1px solid var(--line);
  }

  .author-card {
    grid-template-columns: 1fr;
  }

  .example-card {
    grid-template-columns: 1fr;
  }

  .example-switcher {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .example-switcher button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
  }

  .report-frame {
    height: 560px;
  }

  .author-photo {
    width: 88px;
    height: 88px;
  }

  td,
  th {
    display: block;
    width: 100%;
  }
}
