:root {
  --bg: #f3eee5;
  --paper: #fffdf8;
  --ink: #18211c;
  --muted: #5d675f;
  --line: rgba(24, 33, 28, 0.12);
  --accent: #a4552d;
  --accent-deep: #7f3c1a;
  --highlight: #d8e7be;
  --panel: #ebe4d8;
  --success: #2f6f4f;
  --shadow: 0 22px 50px rgba(48, 31, 12, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(164, 85, 45, 0.14), transparent 26%),
    radial-gradient(circle at left 20%, rgba(216, 231, 190, 0.5), transparent 22%),
    linear-gradient(180deg, #f7f2ea 0%, #efe8db 100%);
  font-family: "Source Serif 4", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.site-header,
.hero,
.section,
.site-footer {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 22px;
  padding: 16px 22px;
  margin-bottom: 24px;
}

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

.brand-mark,
.status-pill,
.service-card span,
.impact-grid strong {
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.site-nav a,
.nav-cta,
.button,
.chip {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.nav-cta:hover,
.button:hover,
.chip:hover {
  transform: translateY(-1px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.nav-cta,
.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  border-radius: 34px;
  padding: 34px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.board-card span,
.board-header p,
.section-heading p,
.hint,
.contact-grid h3 {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.site-footer h2 {
  margin: 10px 0 14px;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  line-height: 0.95;
  font-weight: 700;
}

.lede,
.section-lede,
.site-footer p,
.hero-signals span,
.board-card p,
.service-card p,
.three-up p,
.sector-list p,
.faq-list p,
.contact-grid p,
.lab-output p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions,
.hero-signals,
.board-tape,
.chip-row,
.lab-actions,
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-signals {
  margin-top: 28px;
}

.hero-signals div {
  min-width: 180px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.hero-signals strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 6px;
}

.command-board {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(24, 33, 28, 0.98), rgba(34, 41, 37, 0.95));
  color: #f8f5ee;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.command-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(216, 231, 190, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 40%);
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(216, 231, 190, 0.14);
  color: #eff7df;
  border: 1px solid rgba(216, 231, 190, 0.24);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94d7aa;
  box-shadow: 0 0 12px rgba(148, 215, 170, 0.75);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.board-card,
.service-card,
.lab-controls,
.lab-output,
.impact-grid article {
  border-radius: 24px;
}

.board-card {
  min-height: 150px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.board-card.accent {
  background: rgba(164, 85, 45, 0.2);
}

.board-card h2 {
  margin: 10px 0;
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
}

.board-card p,
.board-header p {
  color: rgba(248, 245, 238, 0.72);
}

.board-tape {
  gap: 10px;
}

.board-tape span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(248, 245, 238, 0.85);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}

.marquee {
  overflow: hidden;
  margin: 26px 0;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 14px 0;
  animation: drift 28s linear infinite;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--muted);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section,
.site-footer {
  border-radius: 30px;
  padding: 34px;
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 26px;
  max-width: 900px;
}

.section-heading.compact h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.three-up,
.service-grid,
.sector-list,
.impact-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-up article,
.sector-list article {
  padding: 24px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.three-up h3,
.service-card h3,
.sector-list h3,
.lab-output h3,
.site-footer h2,
.contact-grid h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
}

.three-up ul,
.output-grid ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 228, 214, 0.95));
  border: 1px solid var(--line);
}

.service-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 1.3rem;
}

.sector-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.lab-controls,
.lab-output {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.field label,
.output-grid h4,
.transcript h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.field select,
.field textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  color: var(--ink);
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.chip.active {
  background: var(--highlight);
  border-color: rgba(47, 111, 79, 0.35);
}

.lab-actions {
  margin-top: 10px;
}

.hint {
  margin-top: 16px;
  color: var(--muted);
}

.output-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

#labScore {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.output-grid article,
.transcript {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid rgba(24, 33, 28, 0.08);
}

.transcript {
  margin-top: 16px;
}

.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-grid article {
  padding: 24px;
  background: linear-gradient(180deg, rgba(216, 231, 190, 0.36), rgba(255, 255, 255, 0.95));
  border: 1px solid var(--line);
}

.impact-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  color: var(--accent-deep);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  background: var(--paper);
}

.faq-list summary {
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.faq-list p {
  margin: 14px 0 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: linear-gradient(180deg, rgba(24, 33, 28, 0.98), rgba(34, 41, 37, 0.98));
  color: #f7f4ec;
}

.site-footer .eyebrow,
.site-footer p {
  color: rgba(247, 244, 236, 0.8);
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid article {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-grid a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  word-break: break-all;
  overflow-wrap: break-word;
}

.payment-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-note {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.56);
}

.payment-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-link,
.payment-paypal {
  opacity: 0.78;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.payment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 244, 236, 0.78);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.payment-link:hover,
.payment-paypal:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.payment-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 32px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.payment-paypal > div {
  width: 114px;
  transform: translateY(1px) scale(0.84);
  transform-origin: center;
}

.payment-paypal iframe {
  max-height: 30px !important;
}

.payment-gumroad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 32px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.78;
  transition: opacity 180ms ease, transform 180ms ease;
}

.payment-gumroad:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.payment-gumroad > a.gumroad-button {
  transform: scale(0.5) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  box-shadow: none !important;

a.gumroad-button::before {
  display: none !important;
}

.thankyou-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thankyou-card {
  width: min(760px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.thankyou-card h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  font-family: "Space Grotesk", sans-serif;
}

.thankyou-lede,
.thankyou-note {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.thankyou-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.thankyou-meta article {
  padding: 22px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.thankyou-meta h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thankyou-meta p {
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 1120px) {
  .hero,
  .lab-shell,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .three-up,
  .service-grid,
  .sector-list,
  .impact-grid,
  .contact-grid,
  .output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    flex-wrap: wrap;
  }

  .payment-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-actions {
    justify-content: flex-start;
  }

  .thankyou-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    padding: 22px;
    border-radius: 24px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero h1,
  .section-heading h2,
  .site-footer h2 {
    line-height: 1;
  }

  .three-up,
  .service-grid,
  .sector-list,
  .impact-grid,
  .contact-grid,
  .output-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    gap: 12px;
  }

  .hero-actions,
  .hero-signals,
  .chip-row,
  .lab-actions {
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .marquee-track {
    gap: 20px;
    font-size: 0.82rem;
  }

  .payment-actions {
    width: 100%;
  }

  .payment-link,
  .payment-paypal {
    width: 100%;
    max-width: 220px;
  }

  .payment-paypal > div {
    transform-origin: left center;
  }

  .thankyou-card {
    padding: 24px;
    border-radius: 24px;
  }

  .thankyou-actions {
    flex-direction: column;
  }
}

.site-copyright {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(24, 33, 28, 0.08);
  font-size: 0.78rem;
  color: rgba(24, 33, 28, 0.45);
}

.site-copyright a {
  color: var(--accent);
  opacity: 0.8;
  transition: opacity 0.15s;
}

.site-copyright a:hover {
  opacity: 1;
  text-decoration: underline;
}
