:root {
  color-scheme: light;
  --ink: #0a1628;
  --muted: #5f6875;
  --paper: #faf8f3;
  --paper-deep: #f2efe6;
  --stone: #8a8478;
  --line: #d4cfc0;
  --line-strong: #aaa293;
  --red: #6b1f1f;
  --blue: #1e3a5f;
  --green: #2f6f5a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgb(250 248 243 / 0.98), rgb(242 239 230 / 0.9)),
    linear-gradient(to right, rgb(212 207 192 / 0.26) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(212 207 192 / 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  color: var(--ink);
  font-family:
    "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  transition:
    padding 260ms ease,
    place-items 260ms ease;
}

.ask-surface {
  width: min(880px, 100%);
  text-align: center;
}

.page.has-answer {
  display: block;
  padding: 40px 32px 210px;
}

.page.has-answer .ask-surface {
  width: min(980px, 100%);
  margin: 0 auto;
}

.intro {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    margin 220ms ease;
}

.page.has-answer .intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
  opacity: 0.92;
  transform: translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
}

.brand-name {
  display: inline-grid;
  gap: 8px;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1;
  letter-spacing: 0;
  transition: font-size 260ms ease;
}

.brand-name::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--red);
  content: "";
}

.slogan {
  max-width: 620px;
  margin: 22px auto 54px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  transition:
    opacity 220ms ease,
    margin 220ms ease,
    font-size 220ms ease;
}

.page.has-answer .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.page.has-answer .brand-name {
  font-size: 30px;
}

.page.has-answer .slogan {
  display: none;
}

.composer-shell {
  transition:
    transform 300ms ease,
    background 300ms ease,
    box-shadow 300ms ease,
    padding 300ms ease;
}

.page.has-answer .composer-shell {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 18px 24px 22px;
  background: linear-gradient(
    180deg,
    rgb(251 250 247 / 0),
    rgb(251 250 247 / 0.92) 22%,
    rgb(251 250 247 / 0.98)
  );
  box-shadow: 0 -24px 60px rgb(16 24 32 / 0.08);
}

.ask-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  width: min(760px, 100%);
  margin: 0 auto;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 12px;
}

.page.has-answer .ask-form {
  width: min(820px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(250 248 243 / 0.9);
  box-shadow: 0 18px 50px rgb(10 22 40 / 0.12);
  padding: 10px 12px 10px 22px;
}

.ask-form:focus-within {
  border-bottom-color: var(--ink);
}

.page.has-answer .ask-form:focus-within {
  border-color: var(--ink);
}

.ask-form input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 26px);
  outline: 0;
  padding: 8px 0;
}

.page.has-answer .ask-form input {
  font-size: 18px;
}

.ask-form input::placeholder {
  color: rgb(89 101 117 / 0.72);
}

.ask-form button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  min-width: 72px;
  padding: 10px 18px;
}

.ask-form button:hover {
  background: transparent;
  color: var(--ink);
}

.ask-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  width: min(760px, 100%);
}

.page.has-answer .prompt-row {
  width: min(820px, 100%);
  margin-top: 12px;
}

.page.has-answer .prompt-row button {
  background: rgb(255 255 255 / 0.52);
}

.prompt-row button {
  border: 1px solid rgb(16 24 32 / 0.16);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.28);
  color: var(--ink);
  padding: 9px 14px;
}

.prompt-row button:hover {
  border-color: var(--ink);
  background: rgb(255 255 255 / 0.64);
}

.answer {
  display: none;
  width: min(760px, 100%);
  margin: 56px auto 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.page.has-answer .answer {
  display: block;
  width: min(980px, 100%);
  margin: 0 auto;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  text-align: left;
}

.page.is-preparing .answer {
  display: none;
}

.answer.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.answer-kicker {
  display: none;
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.answer h1 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.02;
}

.page.has-answer .answer h1 {
  max-width: 860px;
  font-size: clamp(44px, 7vw, 78px);
}

.answer > p:not(.answer-kicker) {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.answer-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.page.has-answer .answer-points {
  margin-top: 44px;
}

.answer-point {
  min-height: 118px;
  border-top: 1px solid var(--line);
  padding: 16px 10px 0;
  text-align: left;
  min-width: 0;
}

.answer-point strong {
  display: block;
  margin-bottom: 8px;
}

.answer-point span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.builder-loader {
  display: none;
}

.page.is-preparing .builder-loader {
  display: grid;
  min-height: 52vh;
  place-items: center;
  text-align: center;
}

.loader-orbit {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 26px;
  border: 1px solid rgb(16 24 32 / 0.16);
  border-radius: 999px;
}

.loader-orbit::before {
  position: absolute;
  inset: 19px;
  border: 1px solid rgb(16 24 32 / 0.12);
  border-radius: inherit;
  content: "";
}

.loader-orbit span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ink);
  animation: orbit-pulse 1.2s ease-in-out infinite;
}

.loader-orbit span:nth-child(1) {
  left: 45px;
  top: -7px;
}

.loader-orbit span:nth-child(2) {
  right: 3px;
  bottom: 20px;
  animation-delay: 160ms;
  background: var(--blue);
}

.loader-orbit span:nth-child(3) {
  bottom: 20px;
  left: 3px;
  animation-delay: 320ms;
  background: var(--red);
}

.builder-loader p {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

.builder-loader small {
  display: block;
  max-width: 480px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.generated-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 54px;
}

.generated-block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.build-item {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  animation: build-into-place 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--build-delay, 0ms);
}

.build-slot-1 {
  grid-column: 2;
  grid-row: 1;
}

.build-slot-2 {
  grid-column: 1;
  grid-row: 1;
}

.build-slot-3,
.build-slot-full,
.build-slot-5 {
  grid-column: 1 / -1;
}

.build-slot-4 {
  grid-column: 1 / -1;
}

.build-slot-1,
.build-slot-2 {
  min-height: 0;
}

.section-eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.generated-block h2 {
  max-width: 760px;
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 520;
  line-height: 1.08;
}

.generated-block > p:not(.section-eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

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

.module-card {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(250 248 243 / 0.72);
  padding: 20px;
  min-width: 0;
}

.module-card strong {
  display: block;
  margin-bottom: 10px;
}

.module-card span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.module-link {
  align-self: start;
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.module-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.problem-block,
.flow-block,
.visual-block {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.problem-copy {
  align-self: center;
}

.problem-copy p:not(.section-eyebrow),
.flow-copy p:not(.section-eyebrow),
.visual-block p:not(.section-eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.stat-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--red);
  background: rgb(250 248 243 / 0.74);
  padding: 22px;
}

.stat-card strong {
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 520;
  line-height: 0.95;
}

.stat-card span {
  color: var(--muted);
  line-height: 1.45;
}

.stat-card small {
  margin-top: auto;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card-context {
  min-height: 190px;
}

.stat-card-context strong {
  font-family:
    "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.pricing-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.pricing-card {
  display: grid;
  gap: 18px;
  min-height: 460px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--red);
  background: rgb(250 248 243 / 0.82);
  padding: 34px;
}

.pricing-card p {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-card div > span,
.pricing-card > small,
.pricing-card > span {
  color: var(--muted);
  line-height: 1.45;
}

.pricing-card strong {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8vw, 92px);
  font-weight: 520;
  line-height: 0.9;
}

.pricing-card em {
  color: var(--ink);
  font-size: 18px;
}

.text-action {
  justify-self: start;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  padding: 0 0 3px;
}

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

.flow-copy {
  display: grid;
  align-content: start;
}

.diagram-placeholder,
.architecture-placeholder {
  display: grid;
  position: relative;
  min-height: 280px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgb(49 95 138 / 0.08), rgb(140 47 42 / 0.08)),
    linear-gradient(to right, rgb(216 210 198 / 0.36) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(216 210 198 / 0.32) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px, 26px 26px;
}

.diagram-placeholder {
  align-content: center;
  gap: 18px;
  padding: 28px;
}

.diagram-placeholder::before,
.diagram-placeholder::after {
  position: absolute;
  right: 24%;
  left: 24%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.diagram-placeholder::before {
  top: 35%;
}

.diagram-placeholder::after {
  bottom: 35%;
}

.diagram-placeholder span {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 330px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgb(250 248 243 / 0.9);
  color: var(--ink);
  font-weight: 800;
  padding: 14px 16px;
  text-align: center;
}

.image-note {
  max-width: none;
  margin-top: 12px;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.45;
}

.step-list {
  display: grid;
  gap: 0;
  align-self: stretch;
}

.step-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  border-top: 1px solid var(--line);
  background: rgb(250 248 243 / 0.34);
  padding: 28px 0;
}

.step-item span {
  color: var(--red);
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.step-item p {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.55;
}

.architecture-placeholder {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 14px;
  padding: 18px;
}

.architecture-placeholder span {
  display: grid;
  min-height: 110px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgb(250 248 243 / 0.82);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.generated-cta {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
}

.generated-cta .section-eyebrow,
.generated-cta p {
  color: rgb(251 250 247 / 0.78);
}

.conversion-block {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(250 248 243 / 0.5);
  padding: 28px;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 360px), 1fr));
  gap: 18px;
  margin-top: 24px;
}

.conversion-grid.is-single {
  grid-template-columns: minmax(0, 720px);
}

.lead-form,
.pricing-form {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(250 248 243 / 0.88);
  padding: 22px;
}

.lead-form h3,
.pricing-form h3 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 520;
}

.lead-form p,
.pricing-form p {
  min-height: 74px;
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.5;
}

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

.lead-form label,
.pricing-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.lead-form label span {
  color: var(--muted);
  font-weight: 500;
}

.lead-form input,
.lead-form textarea,
.pricing-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  outline: 0;
}

.lead-form textarea {
  min-height: 110px;
  resize: vertical;
  color: var(--muted);
  line-height: 1.45;
}

.field-error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.4;
}

.lead-form.is-submitted .field-error {
  color: var(--green);
}

.lead-form input:focus,
.lead-form textarea:focus,
.pricing-form input:focus {
  border-color: var(--ink);
}

.lead-form button {
  justify-self: start;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
}

.price-result {
  display: grid;
  gap: 6px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px;
}

.price-result strong {
  color: rgb(251 250 247 / 0.72);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-result span,
.price-result small {
  color: rgb(251 250 247 / 0.72);
}

.price-result b {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 520;
}

.pricing-tiers {
  display: grid;
  gap: 8px;
}

.pricing-tiers div {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.pricing-tiers span {
  color: var(--muted);
  font-size: 13px;
}

@keyframes build-into-place {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .page {
    align-items: start;
    padding: 42px 20px;
  }

  .page.has-answer {
    padding: 24px 18px 230px;
  }

  .brand {
    flex-direction: column;
    gap: 12px;
  }

  .page.has-answer .intro {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
  }

  .slogan {
    margin-bottom: 42px;
  }

  .ask-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page.has-answer .ask-form {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 8px;
    padding: 10px 10px 10px 16px;
  }

  .ask-form button {
    justify-self: center;
  }

  .page.has-answer .ask-form button {
    justify-self: auto;
  }

  .answer {
    margin-top: 42px;
  }

  .page.has-answer .answer {
    margin-top: 0;
  }

  .page.has-answer .answer h1 {
    font-size: 40px;
  }

  .answer-points {
    grid-template-columns: 1fr;
  }

  .answer-point {
    min-height: auto;
    text-align: left;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .problem-block,
  .flow-block,
  .visual-block,
  .pricing-showcase,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
    padding: 24px;
  }

  .stat-card {
    min-height: auto;
  }

  .conversion-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .generated-sections {
    grid-template-columns: 1fr;
  }

  .build-slot-1,
  .build-slot-2,
  .build-slot-3,
  .build-slot-4,
  .build-slot-5,
  .build-slot-full {
    grid-column: 1;
    grid-row: auto;
  }

  .step-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .page.has-answer .answer {
    width: min(900px, 100%);
  }

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

  .problem-block,
  .flow-block,
  .visual-block {
    grid-template-columns: 1fr;
  }
}
