:root {
  color-scheme: light;
  --ink: #141816;
  --muted: #5f6f68;
  --line: #d9e3df;
  --paper: #f8faf7;
  --panel: #ffffff;
  --teal: #087f7a;
  --teal-dark: #075f5c;
  --amber: #d88a16;
  --red: #c4483d;
  --blue: #2d6cdf;
  --green: #248a55;
  --shadow: 0 18px 48px rgba(20, 24, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-size: 18px;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  border-color: #aec2ba;
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.ghost {
  background: transparent;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 22px 0 32px;
  background: #f2f5f7;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
  word-break: break-word;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.trust-item {
  padding: 11px 12px;
  border: 1px solid #c7d8d1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.trust-item strong {
  display: block;
  font-size: 15px;
}

.trust-item span {
  display: none;
  color: var(--muted);
  font-size: 13px;
}

.workbench {
  border: 1px solid #c4d7d0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.workbench-body {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  min-height: 420px;
}

.input-panel,
.result-panel {
  padding: 16px;
}

.input-panel {
  border-right: 1px solid var(--line);
}

label {
  display: block;
  margin-bottom: 6px;
  color: #31433b;
  font-size: 13px;
  font-weight: 800;
}

textarea,
select,
input[type="text"] {
  width: 100%;
  border: 1px solid #bfd0c8;
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
  outline: none;
}

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

select,
input[type="text"] {
  min-height: 42px;
  padding: 0 12px;
}

textarea:focus,
select:focus,
input[type="text"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 122, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 14px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdfb;
  font-size: 13px;
  font-weight: 700;
}

.score-wrap {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
}

.score-ring {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--teal) var(--score, 72%), #e1ebe7 0);
}

.score-ring strong {
  font-size: 34px;
  line-height: 1;
}

.score-summary {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}

.result-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.result-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.result-list strong {
  color: var(--ink);
}

.locked-note {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed #a9bdb4;
  border-radius: 8px;
  color: #31433b;
  background: #f5faf7;
  font-size: 14px;
}

.band {
  padding: 58px 0;
}

.band.white {
  background: #ffffff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

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

.feature-card,
.price-card,
.resource-card,
.intent-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-card,
.resource-card,
.intent-card,
.legal-card {
  padding: 18px;
}

.feature-card p,
.resource-card p,
.intent-card p,
.legal-card p {
  margin: 0;
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.workflow-step {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.workflow-step:last-child {
  border-right: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #fff0d6;
  color: #9a5b09;
  font-weight: 900;
}

.pricing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.segmented button {
  min-width: 112px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.segmented button.active {
  background: var(--ink);
  color: #ffffff;
}

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

.price-card {
  padding: 20px;
  position: relative;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.plan-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff0d6;
  color: #9a5b09;
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin: 14px 0 2px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.due {
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
}

.plan-list {
  padding: 0;
  margin: 18px 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #31433b;
  font-size: 14px;
}

.plan-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 900;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  min-height: 164px;
}

.resource-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #31433b;
  background: #edf5f1;
  font-size: 13px;
}

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

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #ffffff;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  background: #f2f5f7;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.article {
  padding: 44px 0 58px;
}

.article-content {
  display: grid;
  gap: 18px;
}

.article-content p {
  margin: 0;
  color: var(--muted);
}

.article-content ul,
.article-content ol {
  margin: 0;
  color: var(--muted);
}

.side-cta {
  position: sticky;
  top: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.side-cta p {
  margin: 0 0 14px;
  color: var(--muted);
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #141816;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
}

.footer a,
.footer p {
  color: #c9d5d0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 24, 22, 0.36);
  backdrop-filter: blur(12px);
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: min(480px, 100%);
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal p {
  color: var(--muted);
}

.status-text {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .workbench-body,
  .feature-grid,
  .workflow,
  .price-grid,
  .resource-grid,
  .two-col,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-step:last-child {
    border-bottom: 0;
  }

  .side-cta {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .nav {
    width: calc(100vw - 32px);
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .hero .container {
    width: calc(100vw - 32px);
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .button {
    flex: 1;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .lead {
    margin-top: 14px;
    font-size: 15px;
  }

  .trust-strip {
    display: none;
  }

  .form-grid,
  .check-grid,
  .score-wrap,
  .footer-grid,
  .section-head,
  .pricing-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-actions,
  .pricing-toolbar {
    align-items: stretch;
  }

  .hero-actions .button,
  .pricing-toolbar .button {
    width: 100%;
  }

  .hero-grid,
  .workbench,
  .input-panel,
  .result-panel {
    min-width: 0;
    width: 100%;
  }

  .workbench-header {
    align-items: flex-start;
  }

  .score-ring {
    margin: 0 auto;
  }

  .result-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
