:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #1d1d18;
  --muted: #6c6a63;
  --line: #dddbd2;
  --soft: #f0efe8;
  --accent: #315f52;
}

* {
  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;
  line-height: 1.55;
}

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

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

code,
pre {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--soft);
  font-size: 0.9em;
}

.site-header,
.hero,
.site-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.block,
.legal-main {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  padding: 24px 0;
}

.site-footer {
  margin-top: 72px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.brand {
  color: var(--ink);
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(36px, 7vw, 78px);
  align-items: center;
  padding: 78px 0 12px;
}

.hero-copy {
  min-width: 0;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.hero-text {
  display: grid;
  max-width: 650px;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-text p:last-child {
  color: var(--ink);
  font-weight: 500;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  box-shadow: 0 16px 34px rgba(29, 29, 24, 0.055);
  overflow: hidden;
}

.visual-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

.visual-bar span:last-child {
  color: var(--accent);
}

.visual-section {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.visual-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-visual pre {
  margin: 0;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.58;
}

.hero-visual code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.flow-step {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  animation: flow-step 16s ease-in-out infinite;
}

.flow-step:nth-of-type(3) {
  animation-delay: 3.2s;
}

.flow-step:nth-of-type(5) {
  animation-delay: 6.4s;
}

.flow-step:nth-of-type(7) {
  animation-delay: 9.6s;
}

.flow-step:nth-of-type(9) {
  animation-delay: 12.8s;
}

.flow-step.gate {
  animation: none;
  background: #e9f0ec;
  border-color: rgba(49, 95, 82, 0.38);
  color: var(--accent);
}

.flow-arrow {
  color: #9b998f;
  font-size: 0.86rem;
}

.approval-note {
  padding: 13px 14px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}

@keyframes flow-step {
  0%,
  19%,
  100% {
    background: var(--surface);
    border-color: var(--line);
    color: var(--muted);
  }

  6%,
  13% {
    background: #e9f0ec;
    border-color: rgba(49, 95, 82, 0.34);
    color: var(--accent);
  }
}

.block {
  padding-top: 56px;
}

.setup-block {
  width: min(1040px, calc(100% - 40px));
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 64px);
  align-items: start;
}

ol,
ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.setup-demo {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  box-shadow: 0 14px 30px rgba(29, 29, 24, 0.045);
  overflow: hidden;
}

.setup-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

.setup-top span:last-child {
  color: var(--accent);
}

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

.setup-item {
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  opacity: 0.62;
  transform: translateY(4px);
  animation: setup-focus 12s ease-in-out infinite;
}

.setup-folder,
.setup-ready {
  min-height: 156px;
}

.setup-chat,
.setup-ready {
  grid-column: span 2;
}

.setup-folder {
  animation-delay: 1.6s;
}

.setup-project {
  animation-delay: 3.2s;
}

.setup-prompt {
  animation-delay: 4.8s;
}

.setup-chat {
  animation-delay: 6.4s;
}

.setup-ready {
  animation-delay: 8.3s;
}

.setup-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.setup-item pre,
.setup-item p {
  margin: 0;
}

.setup-item pre {
  overflow-x: auto;
  font-size: 0.76rem;
  line-height: 1.55;
}

.setup-item code {
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
}

.setup-zip code,
.setup-prompt code {
  display: inline-block;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.setup-chat p + p {
  margin-top: 8px;
}

.setup-ready ul {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.setup-ready p {
  color: var(--ink);
  font-size: 0.94rem;
}

@keyframes setup-focus {
  0%,
  14%,
  100% {
    opacity: 0.62;
    transform: translateY(4px);
    border-color: var(--line);
  }

  4%,
  10% {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(49, 95, 82, 0.42);
  }
}

.code-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.code-title {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.code-block pre {
  margin: 0;
  padding: 15px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.code-block code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}

.price-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 1fr);
  gap: clamp(28px, 6vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.price-value {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

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

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

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

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
}

details p {
  margin: -2px 0 16px;
}

.legal-main {
  max-width: 820px;
  padding: 68px 0 24px;
}

.legal-main h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.legal-main h2 {
  margin-top: 38px;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-main p,
.legal-main ul {
  margin-top: 14px;
}

.eyebrow,
.legal-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-notice {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-notice p {
  margin: 0;
}

@media (max-width: 720px) {
  .hero,
  .setup-layout,
  .price-faq {
    grid-template-columns: 1fr;
  }

  .setup-block {
    width: min(840px, calc(100% - 40px));
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .block,
  .site-footer,
  .legal-main {
    width: min(100% - 28px, 1040px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding-top: 48px;
  }

  .setup-content {
    grid-template-columns: 1fr;
  }

  .setup-chat,
  .setup-ready {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-step,
  .setup-item {
    animation: none;
  }

  .setup-item {
    opacity: 1;
    transform: none;
  }

  .setup-ready {
    border-color: rgba(49, 95, 82, 0.42);
    background: #fffefa;
  }
}
