:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-alt: #eef4f1;
  --ink: #17211d;
  --muted: #5c6963;
  --line: #d8dfd9;
  --line-strong: #a9b7af;
  --accent: #146b5c;
  --accent-strong: #0d4d43;
  --blue: #225c9f;
  --amber: #b45f06;
  --red: #b42318;
  --green: #13795b;
  --shadow: 0 18px 40px rgba(23, 33, 29, 0.1);
  --radius: 8px;
  --speed: 180ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition:
    border-color var(--speed) ease,
    box-shadow var(--speed) ease;
}

textarea:focus,
input:focus,
select:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34, 92, 159, 0.16);
}

textarea {
  min-height: 300px;
  padding: 16px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transition: top var(--speed) ease;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 247, 242, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition:
    border-color var(--speed) ease,
    box-shadow var(--speed) ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.08);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

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

.nav a {
  text-decoration: none;
  transition: color var(--speed) ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.section {
  padding: 84px 0;
}

.band {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  padding-top: 70px;
}

.hero-grid,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 48px;
}

.hero-copy h1,
.article-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 710px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform var(--speed) ease,
    box-shadow var(--speed) ease,
    background var(--speed) ease,
    border-color var(--speed) ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 33, 29, 0.12);
}

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

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

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.signal-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.signal-row dt {
  font-weight: 900;
}

.signal-row dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-preview,
.analyzer-panel,
.output-panel,
.waitlist-form,
.feature-card,
.price-card,
.resource-link,
details,
.guide-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 33, 29, 0.03);
}

.product-preview {
  padding: 18px;
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.preview-grid {
  display: grid;
  gap: 12px;
}

.terminal-preview {
  min-height: 190px;
  padding: 16px;
  border-radius: var(--radius);
  background: #101815;
  color: #dce7df;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.terminal-preview p {
  margin: 0 0 8px;
}

.terminal-preview .error-line {
  color: #ffb4aa;
}

.brief-preview {
  padding: 16px;
  border: 1px solid #c8d7cf;
  border-radius: var(--radius);
  background: #f5fbf8;
}

.brief-preview.tall {
  min-height: 220px;
}

.brief-label {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-preview strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.brief-preview p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

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

.section-heading h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.analyzer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.analyzer-panel,
.output-panel,
.waitlist-form {
  padding: 20px;
}

.field-row,
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field-row label {
  font-weight: 900;
}

.privacy-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--red);
  font-weight: 800;
}

.form-success {
  min-height: 26px;
  margin: 16px 0 0;
  color: var(--green);
  font-weight: 800;
}

.confidence-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #bdd6cb;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef8f3;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.brief-output {
  margin-top: 16px;
  padding-top: 2px;
}

.brief-output.empty {
  color: var(--muted);
}

.brief-output.is-updated {
  animation: outputPulse 420ms ease;
}

.brief-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.brief-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.brief-section h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.brief-section p,
.brief-section ul,
.brief-section ol {
  margin: 0;
}

.brief-section ul,
.brief-section ol {
  padding-left: 20px;
}

.brief-section li + li {
  margin-top: 6px;
}

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

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

.feature-card,
.price-card {
  padding: 20px;
  transition:
    transform var(--speed) ease,
    box-shadow var(--speed) ease,
    border-color var(--speed) ease;
}

.feature-card:hover,
.price-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.feature-card h3,
.price-card h3 {
  margin: 0 0 8px;
}

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

.plan-name {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 900;
}

.plan-price {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.featured-price {
  border-color: #8fbcae;
  box-shadow: var(--shadow);
}

.waitlist-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

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

.form-grid label,
.checkbox-row {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.full-span {
  grid-column: 1 / -1;
}

.checkbox-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin: 4px 0 0;
}

.remote-intent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.remote-intent[hidden] {
  display: none;
}

.remote-intent p {
  flex-basis: 100%;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.resources-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  gap: 24px;
  align-items: center;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: 20px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition:
    transform var(--speed) ease,
    border-color var(--speed) ease,
    box-shadow var(--speed) ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

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

.article-hero {
  min-height: 620px;
  display: grid;
  align-items: center;
}

.content-narrow {
  max-width: 920px;
}

.guide-block {
  padding: 22px;
}

.guide-block + .guide-block {
  margin-top: 18px;
}

.guide-block h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.guide-list {
  margin: 0;
  padding-left: 22px;
}

.guide-list li + li {
  margin-top: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

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

th {
  color: var(--accent-strong);
  font-size: 13px;
  text-transform: uppercase;
}

.template-block {
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: #101815;
  color: #dce7df;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #dce7df;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #dce7df;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes outputPulse {
  0% {
    background: rgba(19, 121, 91, 0.08);
  }

  100% {
    background: transparent;
  }
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .article-layout,
  .analyzer-layout,
  .waitlist-layout,
  .resources-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .article-copy h1 {
    font-size: 42px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .feature-grid,
  .pricing-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-row,
  .output-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .hero-copy h1,
  .article-copy h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions,
  .workflow-actions,
  .remote-intent {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  textarea {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
