/* Public Market Trust Project — Static site */

:root {
  --paper: #F7FAF8;
  --frosted: #ECF4F0;
  --sage: #E3EFE9;
  --text: #1F2D28;
  --muted: #556B60;
  --border: #C9DCD2;
  --accent: #1F6F4A;
  --accent-hover: #15583B;
  --purple: rgba(199, 65, 236, 0.12);

  --shadow-sm: 0 1px 0 rgba(31, 45, 40, 0.06), 0 10px 20px -16px rgba(31, 45, 40, 0.25);
  --shadow-md: 0 1px 0 rgba(31, 45, 40, 0.06), 0 22px 46px -34px rgba(31, 45, 40, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.page {
  min-height: 100vh;
  background:
    radial-gradient(900px 450px at 15% -10%, rgba(31, 111, 74, 0.14), transparent 60%),
    radial-gradient(700px 350px at 90% 10%, rgba(201, 220, 210, 0.55), transparent 55%),
    radial-gradient(800px 520px at 40% 110%, rgba(199, 65, 236, 0.10), transparent 55%),
    linear-gradient(to bottom, var(--paper), #F3F8F5);
  position: relative;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(31, 45, 40, 0.025) 0px, rgba(31, 45, 40, 0.025) 1px, transparent 1px, transparent 6px);
  mix-blend-mode: multiply;
  opacity: 0.33;
  z-index: -1;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(201, 220, 210, 0.7);
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.brand-title {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 650;
  letter-spacing: -0.015em;
  font-size: 18px;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.topnav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 80px;
}

.hero {
  padding-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 220, 210, 0.8);
  background: rgba(255,255,255,0.65);
  color: var(--muted);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 16px 0 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(34px, 4.6vw, 64px);
}

.hero-desc {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.whitepaper-hero {
  margin-top: 22px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(201, 220, 210, 0.72);
  background: rgba(236, 244, 240, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  padding: 22px;
}

.whitepaper-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.kicker {
  font-size: 12px;
  color: var(--muted);
}

.whitepaper-hero__title {
  margin-top: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 28px;
}

.whitepaper-hero__desc {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.iconbox {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(201, 220, 210, 0.75);
  background: rgba(255,255,255,0.65);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.whitepaper-hero__actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.whitepaper-hero__meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(201, 220, 210, 0.9);
  background: rgba(255,255,255,0.6);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(31, 45, 40, 0.05);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0px); }

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: rgba(31, 111, 74, 0.65);
  box-shadow: 0 10px 22px -16px rgba(31, 111, 74, 0.52);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: rgba(21, 88, 59, 0.72);
  box-shadow: 0 14px 30px -18px rgba(31, 111, 74, 0.55);
}

.btn-secondary {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
}

.btn-xl {
  min-height: 62px;
  border-radius: 22px;
  padding: 16px 18px;
  font-size: 16px;
}

.btn-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(201, 220, 210, 0.8);
  background: rgba(236, 244, 240, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  padding: 18px;
}

.card-lg { padding: 20px; }

.card-title {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
}

.card-title-xl {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 24px;
}

.card-body {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.two {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.input {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(201, 220, 210, 1);
  background: rgba(255,255,255,0.7);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  color: var(--text);
}

.input:focus {
  border-color: rgba(31, 111, 74, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 111, 74, 0.14);
}

.helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.helper.error { color: #B22A2A; }
.helper.success { color: var(--accent); }

.divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(201, 220, 210, 0.9);
  border-radius: 999px;
}

.divider.pmtp-purple {
  box-shadow: 0 0 0 1px var(--purple);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.label { font-size: 12px; color: var(--muted); }
.value { font-size: 14px; font-weight: 600; }

.link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link:hover { border-bottom-color: rgba(31, 45, 40, 0.3); }

.footer {
  margin-top: 22px;
}

.footer-divider {
  height: 1px;
  background: rgba(201, 220, 210, 0.95);
  border-radius: 999px;
  margin: 18px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.small { font-size: 12px; 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-width: 0;
}

@media (min-width: 720px) {
  .whitepaper-hero { padding: 26px; }
  .whitepaper-hero__actions { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
}
