:root {
  --ink: #161b1a;
  --muted: #596360;
  --paper: #f4f7f4;
  --white: #ffffff;
  --line: #d7dfda;
  --green: #1f6b4f;
  --green-dark: #164c39;
  --green-soft: #dfeee6;
  --coral: #d65d45;
  --yellow: #f2c84b;
  --charcoal: #202725;
  --max-width: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), var(--max-width));
  height: 76px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.role-active .site-header {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.header-link {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  place-items: center;
  overflow: hidden;
  padding: 120px 24px 76px;
  background: var(--charcoal);
}

.hero-inner {
  z-index: 1;
  width: min(100%, 790px);
  margin-bottom: 260px;
  color: var(--white);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f49a83;
}

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

h1 {
  margin-bottom: 10px;
  font-size: 96px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 0 auto;
  color: #dce6e1;
  font-size: 22px;
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.back-button {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  padding: 13px 22px;
}

.primary-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--white);
}

.primary-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: var(--white);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-note {
  margin: 18px 0 0;
  color: #aebdb6;
  font-size: 13px;
}

.bot-preview {
  position: absolute;
  bottom: 20px;
  z-index: 2;
  width: min(calc(100% - 32px), 720px);
  overflow: hidden;
  border: 1px solid #3c4844;
  border-radius: var(--radius);
  background: #29322f;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.33);
  color: var(--white);
}

.preview-topbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #3c4844;
  background: var(--charcoal);
}

.preview-topbar span:nth-child(2) {
  display: grid;
}

.preview-topbar small {
  color: #a8b6b0;
}

.preview-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  font-weight: 900;
}

.preview-status {
  margin-left: auto;
  color: #9de1bd;
  font-size: 12px;
}

.preview-feed {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.preview-message,
.preview-reply {
  display: grid;
  max-width: 78%;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.preview-message {
  background: #3a4541;
}

.preview-reply {
  justify-self: end;
  background: var(--green);
}

.preview-message span,
.preview-reply span {
  color: #e5ece8;
  font-size: 14px;
}

.preview-message small {
  color: #aab8b2;
}

.preview-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
  color: #a9bbb3;
  font-size: 12px;
}

.match-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66ce95;
}

.role-view {
  min-height: 100vh;
  background: var(--paper);
}

.role-heading {
  width: min(calc(100% - 40px), 780px);
  margin: 0 auto;
  padding: 120px 0 82px;
  text-align: center;
}

.role-heading h2 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: 0;
}

.role-heading > p:not(.eyebrow) {
  max-width: 660px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 19px;
}

.back-button {
  position: absolute;
  top: 28px;
  left: max(20px, calc((100% - var(--max-width)) / 2));
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.back-button:hover {
  color: var(--ink);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.process-band {
  padding: 76px 20px;
  background: var(--green-soft);
}

.tester-band {
  background: #f3eadf;
}

.section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.section-inner h3 {
  margin-bottom: 30px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-width: 0;
  padding: 22px;
  border-left: 1px solid rgba(22, 27, 26, 0.17);
}

.steps li:last-child {
  border-right: 1px solid rgba(22, 27, 26, 0.17);
}

.steps span {
  display: block;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-section {
  padding: 80px 20px 110px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 17px;
  right: 2px;
  content: "+";
  color: var(--green);
  font-size: 24px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  justify-content: center;
  padding: 26px 20px;
  border-top: 1px solid #39433f;
  background: var(--charcoal);
  color: #acb9b3;
  font-size: 13px;
}

footer a {
  color: var(--white);
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .hero {
    min-height: 900px;
    padding-top: 110px;
  }

  h1 {
    font-size: 78px;
  }

  .role-heading h2 {
    font-size: 52px;
  }

  .hero-inner {
    margin-bottom: 310px;
  }

  .bot-preview {
    bottom: 18px;
  }

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

  .steps li:nth-child(2) {
    border-right: 1px solid rgba(22, 27, 26, 0.17);
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid rgba(22, 27, 26, 0.17);
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .header-link {
    font-size: 13px;
  }

  .hero {
    min-height: 880px;
    padding: 94px 16px 56px;
  }

  .hero-inner {
    margin-bottom: 340px;
  }

  h1 {
    font-size: 62px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .role-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .bot-preview {
    bottom: 14px;
    width: calc(100% - 24px);
  }

  .preview-feed {
    padding: 12px;
  }

  .preview-message,
  .preview-reply {
    max-width: 92%;
  }

  .preview-match {
    text-align: center;
  }

  .role-heading {
    width: min(calc(100% - 32px), 780px);
    padding: 100px 0 62px;
  }

  .role-heading h2 {
    font-size: 42px;
  }

  .section-inner h3 {
    font-size: 30px;
  }

  .role-heading > p:not(.eyebrow) {
    font-size: 17px;
  }

  .process-band {
    padding: 56px 16px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li:nth-child(2),
  .steps li:last-child {
    border: 0;
    border-top: 1px solid rgba(22, 27, 26, 0.17);
  }

  .steps li:last-child {
    border-bottom: 1px solid rgba(22, 27, 26, 0.17);
  }

  .steps span {
    margin-bottom: 10px;
  }

  .faq-section {
    padding: 58px 16px 80px;
  }
}

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