:root {
  --bg: #f7f9f7;
  --surface: #ffffff;
  --surface-soft: #eef6f4;
  --ink: #17211f;
  --muted: #5c6965;
  --line: #d7dfdc;
  --accent: #006d67;
  --accent-dark: #004f4b;
  --gold: #b8860b;
  --warning: #9b3d16;
  --success: #1f7a4d;
  --shadow: 0 16px 40px rgba(23, 33, 31, 0.09);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(247, 249, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 88px clamp(18px, 4vw, 32px);
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(clamp(18px, 4vw, 32px), calc((100% - var(--max)) / 2 + 32px));
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: auto;
  padding-top: 56px;
  padding-bottom: 0;
}

#problem {
  padding-top: 32px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero-subhead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #33423f;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.compact {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.trust-note,
.incubator-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-note {
  margin-top: 24px;
}

.incubator-note {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading.wide {
  max-width: 900px;
}

.section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

.section-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
}

.cards {
  display: grid;
  gap: 16px;
}

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

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

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.04);
}

.card {
  padding: 22px;
}

.card p,
.panel p {
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow article {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.workflow span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 800;
}

.core-line {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
}

.demo-section {
  max-width: 1240px;
}

.demo-sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-weight: 800;
}

.demo-sequence span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.demo-sequence span[aria-hidden="true"] {
  border: 0;
  background: transparent;
  color: var(--gold);
}

.warning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.warning-row span {
  padding: 8px 10px;
  border: 1px solid #e9c6b8;
  border-radius: var(--radius);
  background: #fff8f4;
  color: var(--warning);
  font-size: 0.88rem;
  font-weight: 700;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.panel {
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

label span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.45;
}

input,
select {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(0, 109, 103, 0.16);
}

.selected-question {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.selected-question strong {
  display: block;
  margin-bottom: 8px;
}

.source-card.is-hidden {
  display: none;
}

.source-card small {
  color: var(--warning);
  font-size: 0.84rem;
  font-weight: 700;
}

.checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.checkbox span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.result-panel {
  margin-top: 18px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

#result-state {
  color: var(--muted);
}

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

.result-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.result-card.full {
  grid-column: 1 / -1;
}

.result-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.result-card ul {
  margin: 0;
  padding-left: 20px;
}

.mode-notice {
  border-color: rgba(0, 109, 103, 0.28);
  background: var(--surface-soft);
}

.mode-notice.mock {
  border-color: #e9c6b8;
  background: #fff8f4;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 2.2rem;
  font-weight: 800;
}

.score span {
  color: var(--muted);
  font-size: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.rubric-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rubric-panel summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
}

#rubric-content {
  padding: 0 18px 18px;
}

#rubric-content ul {
  margin: 0;
  padding-left: 20px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.88rem;
}

tr:last-child td {
  border-bottom: 0;
}

.package {
  min-height: 220px;
}

.section-cta {
  margin-top: 22px;
}

.compact-cards .card {
  min-height: 210px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-section {
  padding-top: 72px;
}

.contact-form {
  max-width: 840px;
}

.privacy-inline {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-message {
  margin-top: 14px;
  color: var(--muted);
}

.status-message.success {
  color: var(--success);
}

.status-message.error {
  color: var(--warning);
}

.site-footer {
  padding: 34px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #111917;
  color: #d9e2df;
}

.site-footer p {
  max-width: 980px;
  margin: 0 0 8px;
}

.site-footer strong {
  color: #fff;
}

.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .cards.four,
  .cards.three,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 12px 18px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 14px;
  }

  #problem {
    padding-top: 32px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .site-nav a {
    padding-inline: 5px;
    font-size: 0.8rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 10vw, 2.45rem);
    line-height: 1.02;
  }

  .hero-subhead {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-media {
    display: none;
  }

  .cards.four,
  .cards.three,
  .workflow,
  .form-grid.two,
  .result-output {
    grid-template-columns: 1fr;
  }

  .panel,
  .card {
    padding: 18px;
  }

  .result-header {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
