@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600&display=swap");

:root {
  --bg: #ffffff;
  --bg-deep: #ffffff;
  --ink: #181a1b;
  --muted: #62676e;
  --accent: #1f5f55;
  --accent-soft: #d7ebe6;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 24px 60px rgba(20, 24, 28, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100%;
}

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

.page {
  background: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  background: #ffffff;
  flex: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 30px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  border: 1px solid transparent;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 95, 85, 0.25);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border-color: #cfd3d7;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 24px 0 60px;
  background: #ffffff;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  margin: 12px 0 16px;
  /* Force optical alignment with paragraph start in this hero block. */
  margin-left: -0.045em;
  text-indent: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  align-items: start;
}

.hero-split > h1 {
  grid-column: 1;
  margin: 12px 0 0;
}

.hero-split > p {
  grid-column: 2;
  margin: 0;
}

.subhead-large {
  font-size: 1.2rem;
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
}

.subhead {
  color: var(--muted);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.hero-cta-center {
  justify-content: center;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.card-value {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 10px;
}

.card-sub {
  color: var(--muted);
}

.section {
  padding: 60px 0;
  background: #ffffff;
}

.section-title {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 820px;
}

.section-title .eyebrow {
  letter-spacing: 2.5px;
  font-size: 12px;
  color: var(--muted);
}

.section-title h2 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.section-title h2,
.section-title .subhead {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-title .subhead {
  margin: 0 auto;
}

.pillars,
.product-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

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

.pillars-note {
  text-align: center;
  margin-top: 24px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  width: 100%;
}

.pillar,
.product-card,
.team-card {
  background: #fbfbfb;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.glass {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 60px 40px;
}

.headshot {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0e7da, #dfe7e4);
  border: 1px dashed #c7cbd1;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.headshot::after {
  content: "Photo";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cta {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta > div {
  flex: 1 1 auto;
  min-width: 0;
}

.cta .demo {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.cta .primary {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  padding: clamp(8px, 1vw, 10px) clamp(14px, 1.8vw, 18px);
  white-space: nowrap;
}

/* Keep CTA in one row when possible, but never clip the button on narrower widths. */
@media (max-width: 1100px) {
  .cta {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .cta .demo {
    justify-content: flex-start;
  }
}

.demo-section {
  margin-top: 80px;
}

.demo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.upload {
  position: relative;
  overflow: hidden;
  border: 1px dashed #c0c6cb;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
}

.upload-block {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 16px 18px;
}

.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  margin-top: auto;
  padding: 56px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer .logo {
  justify-self: start;
}

.footer-links {
  display: flex;
  gap: 34px;
  justify-self: center;
  align-items: baseline;
}

.footer-note {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  line-height: 1;
}

.demo-page {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
  gap: 24px;
  align-items: start;
}

.demo-shell {
  padding-top: 36px;
}

.demo-title {
  margin-bottom: 18px;
}

.demo-title .subhead {
  max-width: 680px;
  margin: 0 auto;
}

.demo-simple {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 8px;
}

.results {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.results-head h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.result-card {
  background: #f7faf9;
  border: 1px solid #dbe8e4;
  border-radius: 14px;
  padding: 12px 14px;
}

.result-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.result-value {
  font-weight: 700;
}

.results-table-wrap {
  border: 1px solid #d8dee3;
  border-radius: 14px;
  overflow: auto;
  background: #fff;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.results-table th,
.results-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
}

.results-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: #fafbfd;
}

.results-table tbody tr:hover {
  background: #f9fbfd;
}

.demo-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 36px rgba(18, 22, 25, 0.08);
  display: grid;
  gap: 12px;
}

.demo-upload-focus {
  border: 2px solid #bfe2da;
  background: linear-gradient(180deg, #f6fcfa 0%, #ffffff 100%);
}

.demo-step {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.demo-panel-title {
  font-size: 1.35rem;
  line-height: 1.3;
}

.demo-help {
  color: var(--muted);
}

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

.upload-cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  border-style: solid;
  box-shadow: 0 14px 30px rgba(31, 95, 85, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.upload-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(31, 95, 85, 0.34);
}

.upload-cta span {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.upload-cta.is-uploaded {
  background: #ffffff;
  color: var(--ink);
  border-color: #cfd3d7;
  box-shadow: none;
}

.upload-cta.is-loading {
  background: #ffffff;
  color: var(--ink);
  border-color: #bfc7ce;
  box-shadow: none;
}

.upload-cta.is-error {
  background: #ffffff;
  color: var(--ink);
  border-color: #cfd3d7;
  box-shadow: none;
}

.demo-preview {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 14px 36px rgba(18, 22, 25, 0.08);
  min-height: 480px;
}

.demo-preview-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
  margin: 6px 8px 10px;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 456px;
  border: none;
  border-radius: 16px;
  background: #f2f4f7;
}

@media (max-width: 900px) {
  .page {
    overflow-x: auto;
  }

  .nav {
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .cta {
    text-align: left;
  }

  .demo {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .demo-page {
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
  }

  .pillars,
  .product-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .nav-cta,
  .hero-cta {
    flex-direction: row;
    width: auto;
    white-space: nowrap;
  }

  .primary,
  .ghost {
    width: auto;
    text-align: center;
  }
}
