@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  margin: 0;
  background: #fafaf9;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--gold-ink);
  text-underline-offset: 0.2em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(10 10 10 / 8%);
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(16px);
}

.header-inner,
.site-nav,
.brand {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 72px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.site-nav {
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a {
  color: #525252;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

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

main {
  min-height: calc(100vh - 150px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 88px;
  background:
    radial-gradient(ellipse at 18% 0%, rgb(201 154 69 / 13%), transparent 42%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1814 54%, #0a0a0a 100%);
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
  content: "";
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-copy {
  max-width: 630px;
  color: #e5e5e5;
  font-size: 1.125rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  background: #f5f5f4;
  box-shadow: 0 12px 28px rgb(0 0 0 / 22%);
  color: var(--ink);
}

.page-content .button {
  background: var(--ink);
  color: white;
}

.page-content .button:hover {
  background: #262626;
  color: white;
}

.text-link {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: white;
  text-decoration: underline;
}

.workflow-card {
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 16px;
  background: rgb(255 255 255 / 5%);
  box-shadow: 0 24px 65px rgb(0 0 0 / 28%);
  backdrop-filter: blur(12px);
}

.workflow-card h2 {
  margin-bottom: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.contract-symbol {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 8px 8px 8px 16px;
}

.contract-symbol img {
  width: 102px;
  height: 102px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 24px rgb(201 154 69 / 24%));
}

.contract-symbol figcaption {
  display: grid;
  gap: 7px;
  color: #e5e5e5;
  line-height: 1.45;
}

.contract-symbol figcaption span {
  color: #e6c98f;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contract-symbol figcaption strong {
  max-width: 210px;
  color: white;
  font-size: 1.06rem;
  font-weight: 600;
}

.workflow-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  gap: 11px;
  font-size: 0.9rem;
}

.workflow-card-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 13%);
  color: #d4d4d4;
  font-size: 0.82rem;
  line-height: 1.55;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 12px;
  color: #e5e5e5;
  font-size: 0.94rem;
  line-height: 1.55;
}

.step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(201 154 69 / 35%);
  border-radius: 50%;
  background: rgb(201 154 69 / 14%);
  color: #e6c98f;
  font-size: 0.8rem;
  font-weight: 700;
}

.section {
  padding: 80px 0;
  background: #fafaf9;
}

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

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

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

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 1px 3px rgb(10 10 10 / 4%);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgb(201 154 69 / 36%);
  box-shadow: 0 8px 24px rgb(10 10 10 / 7%);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.stage-card {
  min-height: 208px;
}

.stage-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--gold-ink);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-card h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.review-band {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
  padding: 26px 30px;
  border: 1px solid rgb(201 154 69 / 24%);
  border-radius: 16px;
  background: #f4f0e7;
}

.review-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(138 104 44 / 22%);
  border-radius: 50%;
  background: white;
  color: var(--gold-ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.review-band-label {
  margin-bottom: 6px;
  color: var(--gold-ink);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-band h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.review-band p:last-child {
  max-width: 760px;
  color: #52504b;
  line-height: 1.7;
}

.example-section {
  background: #f1f0ed;
}

.example-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 0.8rem;
}

.example-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(138 104 44 / 20%);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgb(10 10 10 / 8%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 52px rgb(10 10 10 / 7%);
}

.message-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0 0 17px;
}

.message-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.message-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.assistant-avatar {
  border: 1px solid rgb(201 154 69 / 20%);
  background: #fffaf0;
}

.user-avatar {
  background: #efeeeb;
  color: #45433e;
  font-size: 0.8rem;
  font-weight: 700;
}

.message-body {
  min-width: 0;
  padding: 2px 0;
}

.speaker-label {
  display: block;
  margin: 0 0 5px;
  color: #77746f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-body p {
  color: #24231f;
  line-height: 1.65;
}

.user-message {
  grid-template-columns: minmax(0, 1fr) 34px;
  margin-top: 21px;
}

.user-message .message-avatar {
  grid-column: 2;
  grid-row: 1;
}

.user-message .message-body {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  max-width: 78%;
  padding: 12px 15px;
  border-radius: 16px 4px 16px 16px;
  background: #f0efed;
}

.user-message .speaker-label {
  color: #65615a;
}

.app-preview {
  pointer-events: none;
  overflow: hidden;
  margin: 0 0 26px 46px;
  border: 1px solid rgb(10 10 10 / 12%);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(10 10 10 / 7%);
}

.app-main {
  width: min(960px, 100%);
  margin: auto;
  padding: 12px;
  color: #0a0a0a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.app-header,
.app-brand,
.app-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-header {
  justify-content: space-between;
  margin-bottom: 8px;
}

.app-brand {
  gap: 6px;
  color: #0a0a0a;
  font-size: 0.85rem;
  font-weight: 600;
}

.app-brand img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.app-icon-button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  min-height: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(10 10 10 / 9%);
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 1.1rem;
}

.app-stage-nav {
  overflow-x: auto;
  margin: 8px 0 16px;
  scrollbar-width: thin;
}

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

.app-steps li {
  min-width: 0;
}

.app-step {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border: 1px solid rgb(10 10 10 / 9%);
  border-radius: 8px;
  background: #fff;
  color: #525252;
  font: inherit;
  font-size: 0.72rem;
  cursor: default;
}

.app-step:disabled {
  opacity: 1;
}

.app-step-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-step-number {
  display: grid;
  width: 21px;
  height: 21px;
  flex: none;
  place-items: center;
  border: 1px solid rgb(10 10 10 / 9%);
  border-radius: 50%;
  font-size: 0.7rem;
}

.app-step[aria-current="step"] {
  border-color: var(--gold);
  color: #0a0a0a;
  font-weight: 650;
}

.app-step[aria-current="step"] .app-step-number {
  border-color: var(--gold);
  background: var(--gold);
  color: #0a0a0a;
}

.app-card {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0a0a0a;
}

.app-card > h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.app-editor-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 4px 0;
}

.app-editor-field > span {
  color: #525252;
  font-size: 0.78rem;
}

.app-editor-field textarea,
.app-format-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid rgb(10 10 10 / 9%);
  border-radius: 6px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  resize: none;
}

.question-editor textarea {
  overflow: hidden;
}

.app-preview button,
.app-preview input,
.app-preview select,
.app-preview [role="button"] {
  pointer-events: none;
}

.app-preview .app-copy-button,
.app-preview .app-export-output textarea {
  pointer-events: auto;
}

.app-copy-button {
  cursor: pointer;
}

.app-copy-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.app-copy-button.is-copied {
  border-color: var(--gold);
  color: #0a0a0a;
}

.app-copy-button.copy-failed {
  border-color: #b42318;
  color: #b42318;
}

.app-values-field > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-placeholder-reference {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #0a0a0a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.5;
}

.app-tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-tag-list {
  display: contents;
}

.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 7px 2px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.8rem;
}

.app-tag > span {
  overflow-wrap: anywhere;
}

.app-tag button {
  position: relative;
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #737373;
  font-size: 0;
  line-height: 1;
}

.app-tag button::before,
.app-tag button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.app-tag button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.app-tag-input input {
  flex: 1 1 80px;
  width: 80px;
  min-width: 60px;
  padding: 2px;
  border: 0;
  outline: none;
  background: transparent;
}

.app-terms-table {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.app-terms-heading,
.app-terms-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.8fr);
}

.app-terms-heading {
  color: #525252;
  font-size: 0.72rem;
  font-weight: 650;
}

.app-terms-heading span,
.app-terms-row > * {
  min-width: 0;
  padding: 4px 6px;
}

.app-terms-row {
  border-top: 1px solid var(--line);
}

.app-terms-row .app-editor-field {
  padding: 0;
  border-right: 1px solid var(--line);
}

.app-terms-row .app-editor-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-terms-row textarea {
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  border-radius: 0;
  resize: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-sources-column-headings,
.app-sources-column-headings,
.app-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 110px;
  align-items: stretch;
}

.app-sources-column-headings {
  background: #f7f7f6;
  color: #525252;
  font-size: 0.78rem;
  font-weight: 650;
}

.app-sources-column-headings > span {
  padding: 6px;
  border-right: 1px solid var(--line);
}

.app-source-row {
  border-top: 1px solid var(--line);
}

.app-source-row > .app-editor-field {
  padding: 4px 6px;
  border-right: 1px solid var(--line);
}

.app-source-row .app-editor-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-source-row .app-editor-field textarea {
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  border-radius: 0;
  font-size: 0.82rem;
}

.app-source-url-review {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 10px;
  border-right: 1px solid var(--line);
}

.app-source-url-review .app-static-link,
.app-news-url-review .app-static-link {
  max-width: 100%;
  overflow: hidden;
  color: #075eaa;
  font-size: 0.9rem;
  text-decoration: underline;
  text-overflow: ellipsis;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.app-source-url-toggle {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #075eaa;
  font: inherit;
  font-size: 0.68rem;
  text-decoration: underline;
}

.app-source-url-toggle:disabled {
  opacity: 1;
}

.app-source-priority {
  display: flex;
  align-items: center;
  padding: 4px 6px;
}

.app-primary-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgb(201 154 69 / 42%);
  border-radius: 999px;
  background: rgb(201 154 69 / 10%);
  color: #8a682c;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
}

.app-markdown-field {
  display: block;
  margin: 0 0 1rem;
  padding: 0;
}

.app-markdown-field > span {
  display: block;
  margin: 0 0 0.6rem;
  color: #0a0a0a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-markdown-preview {
  min-height: 120px;
  padding: 8px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  line-height: 1.5;
  white-space: normal;
}

.app-markdown-preview p {
  margin-block: 1em;
}

.app-markdown-preview .app-static-link {
  color: #075eaa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-news-row {
  display: grid;
  grid-template-columns: 140px minmax(140px, 1fr) minmax(120px, 1fr);
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.app-news-date,
.app-news-publisher,
.app-news-url-review {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  padding: 4px 8px;
  border-right: 1px solid var(--line);
}

.app-news-date input,
.app-news-publisher textarea {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0a0a0a;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.3;
}

.app-news-date input:disabled {
  opacity: 1;
  -webkit-text-fill-color: #0a0a0a;
}

.app-news-publisher {
  padding: 0;
}

.app-news-publisher textarea {
  min-height: 38px;
  max-height: 72px;
  padding: 8px 6px;
  overflow-wrap: anywhere;
  resize: none;
}

.app-news-url-review {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 4px 6px;
}

.app-news-url-review .app-static-link {
  font-size: 0.75rem;
}

.app-news-url-review .app-source-url-toggle {
  align-self: flex-start;
}

.app-news-summary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  background: #f7f7f6;
}

.app-news-summary > span {
  padding: 7px 8px 0 0;
  color: #525252;
  font-size: 0.72rem;
  font-weight: 700;
}

.app-news-summary textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 4px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0a0a0a;
  font: inherit;
  font-size: 0.78rem;
  resize: none;
}

.app-export-section {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.app-format-field {
  display: grid;
  max-width: 360px;
  gap: 6px;
  color: #525252;
  font-size: 0.78rem;
  font-weight: 650;
}

.app-format-field select {
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.app-export-output {
  min-width: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.app-export-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.app-export-heading h3 {
  margin: 0;
  font-size: 0.82rem;
}

.app-export-output textarea {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow: auto;
  resize: none;
}

.page-main {
  padding: 72px 0 88px;
  background: #fafaf9;
}

.page-content {
  max-width: 760px;
}

.page-content > .eyebrow {
  margin-bottom: 18px;
}

.page-content h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.page-intro {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-content h2 {
  margin: 38px 0 14px;
  padding-top: 28px;
  border-top: 1px solid rgb(10 10 10 / 9%);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.page-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-content p,
.page-content li {
  color: #404040;
  line-height: 1.75;
}

.page-content p + p {
  margin-top: 1rem;
}

.page-content code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: #f0efed;
  color: var(--ink);
  font-size: 0.9em;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgb(10 10 10 / 8%);
  background: white;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 40px, 1024px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    padding: 68px 0 56px;
  }

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

  .hero-grid {
    gap: 36px;
  }

  .section,
  .page-main {
    padding: 56px 0;
  }

  .stage-card {
    min-height: 0;
  }

  .review-band {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    padding: 22px 18px;
  }

  .review-mark {
    width: 36px;
    height: 36px;
  }

  .conversation {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .app-preview {
    margin-left: 0;
  }

  .user-message .message-body {
    max-width: 92%;
  }

  .app-terms-heading {
    display: none;
  }

  .app-terms-row,
  .app-source-row,
  .app-news-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-terms-row > * + *,
  .app-source-row > *,
  .app-news-row > * {
    border-top: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
  }

  .app-source-priority {
    min-height: 32px;
  }

  .app-news-summary {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

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