/* SlopIt — landing + /start + /agent-docs. One stylesheet. */

:root {
  --bg: #fafaf9;
  --surface: #f0efeb;
  --border: #e5e5e2;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #ff4f00;
  --accent-dark: #d34000;
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-lg: 1rem;
  --max: 1080px;
  --reading: 720px;
  --pad-x: 24px;
  --pad-x-desk: 32px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Satoshi',
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

h1,
h2,
h3 {
  font-family: 'Satoshi', sans-serif;
  margin: 0;
  color: var(--text);
}
h1 {
  font-weight: 900;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
@media (min-width: 768px) {
  .container {
    padding: 0 var(--pad-x-desk);
  }
}

.muted {
  color: var(--text-muted);
}
.accent {
  color: var(--accent);
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  padding: 10px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.1s ease,
    border-color 0.1s ease,
    color 0.1s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

/* ============ Nav ============ */

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .nav {
    padding: 24px var(--pad-x-desk);
  }
}
.wordmark {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

/* ============ Hero ============ */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--pad-x) 96px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero {
    padding: 96px var(--pad-x-desk);
  }
}
.display {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 100px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  /* line-height: 0.85 clips the p descender; reserve space for it
     so the subhead clears at any font-size. */
  padding-bottom: 0.25em;
  margin: 0 0 24px;
}
@media (min-width: 768px) {
  .display {
    font-size: 180px;
  }
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============ Sections ============ */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Chat animation */
.chat {
  max-width: 560px;
  margin: 0 auto;
}
.chat-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d9e75;
  flex-shrink: 0;
}
.chat-header-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.chat-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
}
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.bubble.visible {
  opacity: 1;
  transform: translateY(0);
}
.user-bubble {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}
.ai-bubble {
  background: var(--surface);
  color: var(--text);
  align-self: flex-start;
}
.blog-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  cursor: default;
}
.blog-link:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 12px;
  align-self: flex-start;
  width: fit-content;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.typing-indicator.visible {
  opacity: 1;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}
/* ============ Philosophy ============ */

.philosophy {
  padding: 96px var(--pad-x);
  border-top: 1px solid var(--border);
}
.reading {
  max-width: var(--reading);
  margin: 0 auto;
}
.reading h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.reading p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ============ Pricing ============ */

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.tier-featured {
  background: var(--bg);
  border: 2px solid var(--accent);
}
.ribbon {
  position: absolute;
  /* Offset by the featured-card's 2px border so the ribbon sits flush
     with the card's outer edge instead of revealing a coral wedge. */
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-top-right-radius: var(--r);
  border-bottom-left-radius: var(--r-sm);
}
.tier h3 {
  font-size: 20px;
  font-weight: 500;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price .amount {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price .per {
  color: var(--text-muted);
  font-size: 14px;
}
.tier .tagline {
  color: var(--text-muted);
  font-style: italic;
}
.tier ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.tier li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
}
.tier li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.tier .btn {
  align-self: flex-start;
}
.tier-disabled {
  opacity: 0.55;
  border-color: var(--border);
  pointer-events: none;
}
.tier-disabled:hover {
  border-color: var(--border);
}
.badge-soon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-top-right-radius: var(--r);
  border-bottom-left-radius: var(--r-sm);
}
.btn-disabled {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  padding: 10px 22px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: not-allowed;
  align-self: flex-start;
}

/* ============ Developers link ============ */

.devs {
  padding: 48px var(--pad-x);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ============ Footer ============ */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    text-align: left;
  }
}
.footer-left {
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}

/* ============ /start — signup flow ============ */

.start-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px var(--pad-x) 96px;
}
@media (min-width: 768px) {
  .start-main {
    padding: 96px var(--pad-x-desk);
  }
}
.start-main h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.start-main > p.muted {
  margin-bottom: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field label {
  font-size: 14px;
  font-weight: 500;
}
.field .hint {
  font-size: 14px;
  color: var(--text-muted);
}
.field input {
  font-family: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 12px;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 79, 0, 0.2);
}

.err {
  color: var(--accent);
  font-size: 14px;
  min-height: 20px;
  margin-bottom: 16px;
}

.result .result-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  display: inline-block;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 24px;
  word-break: break-all;
}
.result .onboarding-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 16px;
}
.result pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.result .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  cursor: pointer;
}
.result .copy-btn:hover {
  border-color: var(--accent);
}
.result .warning {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ /agent-docs ============ */

.docs-main {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 48px var(--pad-x) 96px;
}
@media (min-width: 768px) {
  .docs-main {
    padding: 64px var(--pad-x-desk) 96px;
  }
}
.docs-main h1 {
  margin-bottom: 16px;
}
.docs-main h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.docs-main p,
.docs-main li {
  margin-bottom: 12px;
}
.docs-main pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.docs-main code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
}
