/* AIdea Foundry — home page
   Built from Figma "AIdea Foundry — Responsive Wireframes" (Home — Desktop 1440, node 3:2)
   and the "Responsive rules" frame (node 2:142):
   mobile 320–767 · tablet 768–1279 · desktop 1280+ (content max 1200px, centred). */

:root {
  /* Colour */
  --ink: #1b1a17;
  --paper: #f3f1ec;
  --white: #ffffff;
  --line: #cfcac1;
  --dash: #8c867c;
  --muted: #5e5a53;
  --body: #3a3732;
  --accent: #b8430f;
  --accent-deep: #8f3209;
  --accent-tint: #fbf1ea;
  --placeholder: #e4e0d8;
  --on-dark-muted: #b9b3a8;
  --on-dark-body: #d6d1c7;

  /* Type */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Mobile-first scale (overridden at tablet / desktop) */
  --gutter: 16px;
  --section-pad: 56px;
  --page-title: clamp(36px, 10vw, 40px);
  --section-title: 28px;
  --card-title: 19px;
  --stage-title: 19px;
  --lead: 17px;
  --core-lead: 16px;
  --label: 12px;
  --cta-title: 28px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section-pad: 72px;
    --page-title: clamp(48px, calc(5vw + 10px), 52px);
    --section-title: 34px;
    --card-title: 20px;
    --stage-title: 22px;
    --lead: 18px;
    --core-lead: 17px;
    --label: 12px;
    --cta-title: 30px;
  }
}

@media (min-width: 1280px) {
  :root {
    --section-pad: 96px;
    --page-title: clamp(60px, 5vw, 72px);
    --section-title: clamp(36px, 3.06vw, 44px);
    --card-title: 22px;
    --stage-title: 28px;
    --lead: 20px;
    --core-lead: 18px;
    --label: 13px;
    --cta-title: 32px;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id],
div[id] {
  scroll-margin-top: 24px;
}

/* ---------- Shared type ---------- */

.label,
.card-label,
.footer-label {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: normal;
  color: var(--muted);
}

.label {
  font-size: var(--label);
}

.label--accent {
  color: var(--accent);
}

.card-label {
  font-size: 12px;
}

.page-title {
  font-size: var(--page-title);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: var(--section-title);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--lead);
  line-height: 1.5;
  color: var(--body);
}

.body-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}

.card-title {
  font-size: var(--card-title);
  font-weight: 800;
  line-height: normal;
}

.card-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--body);
}

/* Text links keep their visual size but get a 44px touch target */
.text-link {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: var(--ink);
  text-decoration: underline;
  text-underline-position: from-font;
  white-space: nowrap;
}

.text-link::after {
  content: "";
  position: absolute;
  inset: 50% -6px auto;
  height: 44px;
  transform: translateY(-50%);
}

.text-link:hover {
  color: var(--accent);
}

.text-link--sm {
  font-size: 14px;
}

.text-link--plain {
  text-decoration: none;
}

.text-link--plain:hover {
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 16px 24px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-deep);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--accent);
}

.btn-nav {
  padding: 12px 18px;
  font-size: 15px;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* The design puts an 8px spacer between two flex gaps above each button row */
.hero-copy .btn-row {
  margin-top: 28px;
}

.cta .btn-row {
  margin-top: 24px;
}

.btn-row .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-row .btn {
    width: auto;
  }
}

/* ---------- 01 Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 63px; /* heights include the 1px bottom border: 64 / 72 / 80 */
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 71px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--ink);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 19px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile + tablet menu panel */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.js .main-nav:not(.is-open) {
  display: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a[aria-current] {
  font-weight: 600;
}

.nav-menu-cta {
  width: 100%;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }

  .nav-menu-cta {
    display: none;
  }
}

@media (min-width: 1280px) {
  .header-inner {
    min-height: 79px; /* 80px including the bottom border */
  }

  .header-actions {
    display: none;
  }

  .main-nav,
  .js .main-nav:not(.is-open) {
    position: static;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: 0;
    background: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .nav-links a {
    position: relative;
    min-height: 0;
    padding-block: 8px;
    border: 0;
    font-size: 15px;
  }

  .nav-links a[aria-current] {
    padding-block: 8px 6px;
    border-bottom: 2px solid var(--ink);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    inset: 50% -8px auto;
    height: 44px;
    transform: translateY(-50%);
  }

  .nav-menu-cta {
    display: inline-flex;
    width: auto;
    margin: 0;
  }
}

/* ---------- 02 Hero ---------- */

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 48px 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.hero-lead {
  max-width: 600px;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.org-parent {
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
  font-weight: 800;
  line-height: normal;
  white-space: nowrap;
}

.org-connector {
  width: 1px;
  height: 20px;
  background: var(--ink);
}

.org-core {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--accent);
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: normal;
  text-align: center;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.org-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 8px 4px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  line-height: normal;
  text-align: center;
}

.org-tile strong {
  font-size: 20px;
  font-weight: 800;
}

.org-tile span {
  font-size: 12px;
}

.org-grid > li {
  display: flex;
}

.org-grid .org-tile {
  flex: 1 1 auto;
  min-width: 0;
}

a.org-tile {
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.org-tile:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.org-tile--empty {
  border: 1px dashed var(--dash);
  background: none;
  color: var(--muted);
}

.org-tile--empty strong {
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-block: 80px 72px;
  }

  .hero-copy {
    gap: 24px;
  }

  .hero-copy .btn-row {
    margin-top: 32px;
  }

  .org-chart {
    padding: 32px;
  }

  .org-grid {
    gap: 12px;
  }

  .org-tile {
    min-height: 106px;
  }
}

@media (min-width: 1280px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    padding-block: 112px 96px;
  }

  .hero-copy {
    flex: 1 1 0;
  }

  .org-chart {
    flex: 0 0 472px;
    max-width: 472px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-pad);
}

.section--white {
  padding-block: calc(var(--section-pad) + 1px);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
}

@media (min-width: 1280px) {
  .section-head--wide {
    margin-bottom: 40px;
  }
}

/* ---------- 03 Portfolio ---------- */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.15s ease;
}

/* The title link stretches over the whole card */
.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-link:focus-visible {
  outline: none;
}

.product-card:hover,
.product-card:has(.card-link:focus-visible) {
  border-color: var(--ink);
}

.product-card:has(.card-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-card:hover .card-link,
.product-card:hover .product-foot .text-link {
  text-decoration: underline;
  text-underline-position: from-font;
}

.product-card:hover .product-foot .text-link {
  color: var(--accent);
}

.product-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 171px;
  border-bottom: 1px solid var(--line);
  background: var(--placeholder);
  overflow: hidden;
}

.product-screen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 1px);
  max-width: none;
}

.product-screen-tag {
  position: relative;
  padding: 2px 6px;
  background: var(--placeholder);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: normal;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  line-height: normal;
}

.stage {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.next-venture {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 24px 20px;
  border: 1px dashed var(--dash);
  line-height: normal;
}

.next-venture > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-venture-name {
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .next-venture {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 25px 29px;
  }
}

/* ---------- 04 Stages ---------- */

.stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 24px;
}

@media (min-width: 768px) {
  .stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .stages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stage-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.stage-item--accent {
  border-top-color: var(--accent);
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: normal;
  color: var(--muted);
}

.stage-title {
  font-size: var(--stage-title);
  font-weight: 800;
  line-height: normal;
}

/* ---------- 05 Foundry Core ---------- */

.core-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.core-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.core-lead {
  font-size: var(--core-lead);
  line-height: 1.5;
  color: var(--body);
  max-width: 600px;
}

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .core-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .core-intro {
    flex: 0 0 368px;
  }

  .services {
    flex: 1 1 0;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--white);
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

/* ---------- 06 Calls to action ---------- */

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .cta {
    padding: 40px;
  }

  .cta--light {
    padding: 41px;
  }
}

.cta--dark {
  background: var(--ink);
  color: var(--paper);
}

.cta--light {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.cta-title {
  font-size: var(--cta-title);
  font-weight: 800;
  line-height: 1.15;
}

.cta-text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}

.cta--dark .cta-text {
  color: var(--on-dark-body);
}

/* ---------- 07 Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 1280px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-block: 56px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand--footer {
  min-height: 0;
  color: var(--paper);
}

.brand--footer .brand-mark {
  width: 20px;
  height: 20px;
  background: var(--paper);
}

.brand--footer .brand-name {
  font-size: 17px;
  letter-spacing: 0;
}

.footer-tagline {
  font-size: 14px;
  line-height: normal;
  color: var(--on-dark-muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: normal;
}

.footer-label {
  font-size: 12px;
  color: var(--on-dark-muted);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--on-dark-muted);
  text-decoration: underline;
}

.footer-muted {
  color: var(--on-dark-muted);
}

/* Below desktop, footer links become full 44px touch targets */
@media (max-width: 1279px) {
  .brand--footer {
    min-height: 44px;
  }

  .footer-col ul {
    gap: 0;
  }

  .footer-col li {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-col a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
  }
}

/* ==========================================================
   Product pages (Figma "Product pages" 30:3 / 30:174 / 30:348
   and "Product template" 5:2): sat-master, vectorleit,
   supply-chain-finance, foreclosure
   ========================================================== */

:root {
  --p-title: 36px;
  --p-lead: 17px;
  --p-problem: 24px;
  --p-section: 28px;
  --p-audience: 19px;
}

@media (min-width: 768px) {
  :root {
    --p-title: 50px;
    --p-lead: 18px;
    --p-problem: 28px;
    --p-section: 34px;
    --p-audience: 20px;
  }
}

@media (min-width: 1280px) {
  :root {
    --p-title: 60px;
    --p-problem: 32px;
    --p-section: 40px;
  }
}

/* Breadcrumb */
.breadcrumb {
  padding-top: 16px;
}

@media (min-width: 1280px) {
  .breadcrumb {
    padding-top: 20px;
  }
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: normal;
  color: var(--body);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.breadcrumb a {
  position: relative;
  text-decoration: underline;
  text-underline-position: from-font;
}

.breadcrumb a::after {
  content: "";
  position: absolute;
  inset: 50% -6px auto;
  height: 44px;
  transform: translateY(-50%);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current] {
  color: var(--ink);
}

/* Hero */
.p-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 24px 56px;
}

.p-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.p-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-initials,
.p-mini-initials {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  line-height: normal;
}

.p-initials {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

.p-lockup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: normal;
}

.p-lockup-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}

.working-name {
  padding: 3px 8px;
  border: 1px solid var(--dash);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.p-lockup-sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.p-title {
  font-size: var(--p-title);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.p-lead {
  font-size: var(--p-lead);
  line-height: 1.5;
  color: var(--body);
}

.p-btn {
  padding-block: 14px;
}

.p-arrow {
  margin-left: 0.25em;
  font-family: var(--font-mono);
  font-weight: 500;
}

.p-facts {
  display: flex;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  line-height: normal;
}

.p-facts > div {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.p-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.p-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.p-screenshot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 240px;
  border: 1px solid var(--line);
  background: var(--placeholder);
  overflow: hidden;
}

.p-screenshot img {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
}

.p-screenshot-tag {
  position: relative;
  padding: 2px 6px;
  background: var(--placeholder);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: normal;
}

@media (min-width: 768px) {
  .p-hero-inner {
    padding-block: 32px 72px;
  }

  .p-screenshot {
    height: 380px;
  }
}

@media (min-width: 1280px) {
  .p-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding-block: 40px 96px;
  }

  .p-hero-copy {
    flex: 1 1 0;
  }

  .p-screenshot {
    flex: 0 0 576px;
    height: 460px;
  }
}

/* Shared section pieces */
.p-section {
  padding-block: var(--section-pad);
}

.p-section--white {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.p-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: normal;
}

.p-label--accent {
  color: var(--accent-deep);
}

.p-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

.p-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.p-section-title {
  font-size: var(--p-section);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.p-cap-text {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--body);
}

/* Problem and capabilities */
.p-problem-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-problem-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-problem-title {
  font-size: var(--p-problem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.p-capabilities {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.p-cap {
  display: flex;
  gap: 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.p-cap:last-child {
  border-bottom: 1px solid var(--line);
}

.p-cap > div {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.p-cap-num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: normal;
}

.p-cap-title {
  font-size: 17px;
  font-weight: 700;
  line-height: normal;
}

@media (min-width: 1280px) {
  .p-problem-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }

  .p-problem-intro {
    flex: 0 0 473px;
  }
}

/* Audiences */
.p-audiences {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.p-audience {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.p-audience-title {
  font-size: var(--p-audience);
  font-weight: 800;
  line-height: normal;
}

@media (min-width: 768px) {
  .p-audiences {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Built on Foundry Core */
.p-core {
  border-block: 1px solid var(--accent);
  background: var(--accent-tint);
}

.p-core-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 40px;
}

.p-core-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-core-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.p-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-pills li {
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 14px;
  line-height: normal;
}

@media (min-width: 1280px) {
  .p-core-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .p-core-intro {
    flex: 0 0 473px;
  }

  .p-pills {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Milestones */
.p-milestones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.p-milestone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  line-height: normal;
}

.p-milestone--next {
  border-top: 2px dashed var(--dash);
}

.p-milestone-when {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.p-milestone-what {
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .p-milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .p-milestones {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* More from the Foundry */
.p-more {
  border-bottom: 0;
}

.p-more-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.p-mini-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.p-mini {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.p-mini:hover {
  border-color: var(--ink);
}

.p-mini:hover .p-mini-name {
  text-decoration: underline;
}

.p-mini-initials {
  width: 36px;
  height: 36px;
  font-size: 11px;
}

.p-mini-text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.p-mini-name {
  font-size: 18px;
  font-weight: 800;
  line-height: normal;
}

@media (min-width: 768px) {
  .p-more-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
}

@media (min-width: 1280px) {
  .p-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* 404 page: four product cards sit 2 x 2 instead of 3 across */
@media (min-width: 768px) {
  .p-mini-grid.not-found-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
