:root {
  --be-ink: #101418;
  --be-muted: #5f6a64;
  --be-soft: #f7f8f5;
  --be-panel: #ffffff;
  --be-line: #dfe4dc;
  --be-mint: #0f8f7e;
  --be-lime: #d8ff6a;
  --be-coral: #ff6b57;
  --be-blue: #2b6df6;
}

* {
  box-sizing: border-box;
}

body.be-page {
  margin: 0;
  background: var(--be-soft);
  color: var(--be-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.be-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--be-line);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(14px);
  padding: 18px max(18px, calc((100vw - 1180px) / 2));
}

.be-brand,
.be-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.be-brand {
  color: var(--be-ink);
  font-size: 1.02rem;
  font-weight: 900;
  text-decoration: none;
}

.be-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #13232b;
  color: #8df0d3;
}

.be-nav a {
  color: var(--be-muted);
  font-weight: 850;
  text-decoration: none;
}

.be-nav a[aria-current="page"] {
  color: var(--be-ink);
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.be-hero {
  display: grid;
  gap: 22px;
  padding: 52px 0 34px;
}

.be-hero-copy {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.be-kicker {
  margin: 0;
  color: var(--be-mint);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.be-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--be-ink);
  font-size: 5.8rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.be-hero-copy > p:not(.be-kicker),
.be-section-head p,
.be-use-cases p,
.be-why p,
.be-faq p {
  margin: 0;
  color: var(--be-muted);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.55;
}

.be-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.be-proof-row span {
  border: 1px solid var(--be-line);
  border-radius: 999px;
  background: #fff;
  color: var(--be-ink);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 12px;
}

.be-tool {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
}

.be-control-panel,
.be-preview-panel,
.be-example-grid article,
.be-use-cases article,
.be-why-grid article,
.be-faq details {
  border: 1px solid var(--be-line);
  border-radius: 8px;
  background: var(--be-panel);
  box-shadow: 0 18px 42px rgba(16, 20, 24, 0.06);
}

.be-control-panel,
.be-preview-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.be-upload,
.be-prompt,
.be-consent,
.be-refinement,
.be-body-goals,
.be-field-head {
  display: grid;
  gap: 8px;
}

.be-upload {
  min-height: 132px;
  place-items: center;
  border: 1.5px dashed #9fcac1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfffd, #effbf7);
  color: var(--be-ink);
  cursor: pointer;
  padding: 16px;
  text-align: center;
}

.be-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.be-upload span,
.be-prompt span,
.be-preview-head span {
  color: var(--be-ink);
  font-weight: 950;
}

.be-upload small {
  color: var(--be-muted);
  font-weight: 750;
}

.be-consent {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: var(--be-muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.35;
}

.be-refinement {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--be-muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.35;
  padding: 10px;
}

.be-refinement input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--be-coral);
}

.be-refinement span,
.be-refinement small {
  grid-column: 2;
}

.be-refinement span {
  color: var(--be-ink);
  font-weight: 950;
}

.be-refinement small {
  color: var(--be-muted);
}

.be-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--be-mint);
}

.be-prompt textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--be-line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--be-ink);
  font: inherit;
  font-weight: 760;
  padding: 12px;
}

.be-action-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 8px;
}

.be-field-head {
  gap: 2px;
}

.be-field-head span {
  color: var(--be-ink);
  font-weight: 950;
}

.be-field-head small {
  color: var(--be-muted);
  font-weight: 750;
}

.be-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.be-preset-button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  text-align: left;
  padding: 10px;
}

.be-preset-button span {
  color: var(--be-ink);
  font-size: 0.9rem;
  line-height: 1.15;
}

.be-preset-button small {
  color: var(--be-muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.25;
}

.be-preset-button.is-active {
  border-color: #12231f;
  background: #12231f;
  color: #fff;
}

.be-preset-button.is-active span,
.be-preset-button.is-active small {
  color: #fff;
}

.be-strength {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.be-strength button.is-active {
  border-color: var(--be-mint);
  background: #e9fbf4;
  color: #06483f;
}

button {
  min-height: 44px;
  border: 1px solid var(--be-line);
  border-radius: 8px;
  background: #fff;
  color: var(--be-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.be-action-row button:first-child {
  border-color: #12231f;
  background: #12231f;
  color: #fff;
}

.be-job-summary {
  margin: 0;
  border: 1px solid #cfe5dc;
  border-radius: 8px;
  background: #f6fbf8;
  color: var(--be-muted);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.4;
  padding: 10px 12px;
}

.be-safety-note {
  margin: 0;
  border: 1px solid #f0d8c8;
  border-radius: 8px;
  background: #fff8f2;
  color: #6d4937;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.4;
  padding: 10px 12px;
}

.be-pipeline-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--be-line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.be-pipeline-mini strong {
  flex-basis: 100%;
  color: var(--be-ink);
  font-size: 0.86rem;
}

.be-phase-chip {
  border: 1px solid #d4ded8;
  border-radius: 999px;
  background: #fff;
  color: #41514b;
  font-size: 0.72rem;
  font-weight: 880;
  padding: 6px 8px;
}

.be-phase-implemented,
.be-phase-implemented_heuristic {
  border-color: #bfe8d9;
  background: #edf9f4;
  color: #07584b;
}

.be-phase-partial,
.be-phase-optional_configured_provider {
  border-color: #f1dcc2;
  background: #fff8ed;
  color: #745026;
}

.be-pipeline-mini small {
  flex-basis: 100%;
  color: var(--be-muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
}

.be-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.be-preview-head strong {
  border-radius: 999px;
  background: var(--be-lime);
  color: #233000;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.be-chatgpt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.be-marking-stage,
.be-result-stage {
  display: grid;
  gap: 8px;
  margin: 0;
}

.be-marking-canvas,
.be-result-stage {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #b8ddd4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 143, 126, 0.12), rgba(43, 109, 246, 0.08)),
    #edf5f2;
}

.be-marking-canvas img,
.be-result-stage img {
  width: min(100%, 520px);
  max-height: 100%;
  object-fit: contain;
}

.be-marking-canvas canvas {
  position: absolute;
  width: min(100%, 520px);
  max-height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.be-result-stage img[hidden],
.be-result-placeholder[hidden] {
  display: none;
}

.be-result-placeholder {
  display: grid;
  width: min(100%, 520px);
  min-height: 360px;
  place-items: center;
  border: 1px dashed #9fcac1;
  border-radius: 8px;
  color: var(--be-muted);
  font-weight: 900;
  text-align: center;
}

.be-marking-stage figcaption,
.be-result-stage figcaption {
  color: var(--be-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.be-section {
  display: grid;
  gap: 18px;
  padding: 42px 0;
}

.be-section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.be-section h2 {
  margin: 0;
  color: var(--be-ink);
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: 0;
}

.be-example-grid,
.be-use-cases,
.be-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.be-example-grid article,
.be-use-cases article,
.be-why-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
}

.be-example-grid strong,
.be-use-cases h3,
.be-why h3 {
  margin: 0;
  color: var(--be-ink);
  font-size: 1.02rem;
}

.be-example-grid p {
  margin: 0;
  color: var(--be-muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.45;
}

.be-use-cases {
  grid-template-columns: 1fr 1fr 1fr;
}

.be-use-cases > div {
  grid-column: 1 / -1;
}

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

.be-why-grid span {
  color: var(--be-coral);
  font-weight: 950;
}

.be-faq {
  padding-bottom: 70px;
}

.be-faq details {
  padding: 16px;
}

.be-faq summary {
  cursor: pointer;
  color: var(--be-ink);
  font-weight: 950;
}

.be-faq p {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .be-hero h1 {
    font-size: 4.1rem;
  }

  .be-section h2 {
    font-size: 2.55rem;
  }

  .be-tool,
  .be-example-grid,
  .be-use-cases,
  .be-why-grid {
    grid-template-columns: 1fr;
  }

  .be-marking-canvas,
  .be-result-stage {
    min-height: 480px;
  }

  .be-chatgpt-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .be-topbar,
  .be-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .be-hero {
    padding-top: 34px;
  }

  .be-hero h1 {
    font-size: 3rem;
  }

  .be-section h2 {
    font-size: 2rem;
  }

  .be-action-row,
  .be-preset-grid,
  .be-strength {
    grid-template-columns: 1fr;
  }
}
