/* buyable — minimal landing page. Calm, refined, mobile-first. */

:root {
  --bg: #fcfcfb;
  --fg: #1a1a1e;
  --muted: #6c6c74;
  --line: #e8e7e3;
  --line-strong: #d9d8d3;
  --accent: #1d1d20;
  --accent-fg: #ffffff;
  --soft: #f5f4f1;
  --soft-2: #f0efeb;
  --ring: rgba(29, 29, 32, 0.32);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 720px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 25, 0.04), 0 1px 3px rgba(20, 20, 25, 0.06);
  --shadow-lg: 0 24px 60px -32px rgba(20, 20, 25, 0.45), 0 8px 24px -20px rgba(20, 20, 25, 0.25);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt", "cv05";
}

::selection { background: #e7e5dd; color: var(--fg); }

h1, h2, h3 { letter-spacing: -0.021em; }
h1, h2 { line-height: 1.12; }

section { padding: clamp(56px, 8vw, 96px) 24px; }
section > * { width: 100%; max-width: var(--maxw); margin-left: auto; margin-right: auto; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  padding: 11px 21px;
  border-radius: 11px;
  font-weight: 560;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -16px rgba(20, 20, 25, 0.5);
  background: #2a2a2e;
}
.btn:active { transform: translateY(0); }

/* Hero */
.hero {
  background:
    radial-gradient(110% 120% at 50% -10%, #ffffff 0%, var(--soft) 60%, var(--soft-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: 0 24px clamp(112px, 14vw, 168px);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.wordmark { font-weight: 640; letter-spacing: -0.02em; font-size: 17px; }
.nav-cta {
  text-decoration: none;
  font-weight: 450;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.nav-cta:hover { color: var(--fg); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding-top: clamp(40px, 7vw, 72px); }
.hero h1 {
  font-size: clamp(36px, 6vw, 52px);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  font-weight: 680;
}
.subhead {
  font-size: clamp(19px, 2.4vw, 22px);
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 600px;
  line-height: 1.5;
}

/* Mockup — tucks up under the hero */
.mockup {
  padding-top: 0;
  margin-top: clamp(-108px, -9vw, -68px);
  position: relative;
  z-index: 1;
}
.mockup figure { margin: 0 auto; }
.mockup img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.mockup figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
  letter-spacing: -0.005em;
}

/* Agent compatibility */
.works-with {
  padding-top: 24px;
  padding-bottom: clamp(56px, 8vw, 88px);
  text-align: center;
}
.eyebrow {
  margin-top: 0;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.agent-logo {
  min-height: 70px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #34343a;
  font-size: 14px;
  font-weight: 580;
  box-shadow: var(--shadow-sm);
}
.agent-logo img {
  width: 21px;
  height: 21px;
  opacity: 0.76;
}
.compatibility-note {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Install prompt */
.install {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.install-inner { text-align: center; }
.install h2 {
  margin: 0 auto 12px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 670;
}
.install-intro {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 16px;
}
.prompt-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 18px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.prompt-box code {
  overflow-wrap: anywhere;
  color: #34343a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  white-space: nowrap;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.copy-button svg { width: 15px; height: 15px; }
.copy-status {
  min-height: 21px;
  margin: 10px auto 2px;
  color: var(--muted);
  font-size: 13px;
}
.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.repo-link:hover { color: var(--fg); }
.repo-link svg { width: 14px; height: 14px; }

/* Signup */
.signup {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.signup h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 0 auto 28px; font-weight: 660; }
#signup-form {
  display: grid;
  gap: 15px;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 30px 26px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
#signup-form label { display: grid; gap: 7px; }
/* Honeypot — kept out of view and out of the tab order; real people never fill it. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
#signup-form label span { font-weight: 560; font-size: 13px; letter-spacing: -0.005em; }
#signup-form input {
  font: inherit;
  font-size: 15px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--fg);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
#signup-form input::placeholder { color: #a3a39c; }
#signup-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}
#signup-form button {
  font: inherit;
  font-weight: 560;
  font-size: 15px;
  width: auto;
  justify-self: center;
  margin-top: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  padding: 11px 30px;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
#signup-form button:hover {
  transform: translateY(-1px);
  background: #2a2a2e;
  box-shadow: 0 12px 28px -16px rgba(20, 20, 25, 0.5);
}
#signup-form button:active { transform: translateY(0); }
#signup-form button:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.form-msg { font-size: 14px; margin: 4px 0 0; text-align: center; }
.form-msg.ok { color: #2f7d4f; }
.form-msg.err { color: #b84a3c; }

/* Section headings */
.alternatives h2, .getting-started h2, .faq h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  margin: 0 auto 32px;
  font-weight: 660;
}

/* Alternatives */
.alt-grid { display: grid; gap: 14px; }
.alt-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.alt-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -24px rgba(20, 20, 25, 0.4);
}
.alt-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--fg);
}
.alt-icon svg { width: 19px; height: 19px; stroke-width: 1.6; }
.alt-item h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.alt-item p { margin: 0; color: var(--muted); font-size: 16px; }

/* Steps */
.steps { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  padding-top: 4px;
  min-height: 34px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 14px; font-weight: 580;
  box-shadow: var(--shadow-sm);
}

/* FAQ — accordion (native <details>/<summary>) */
.faq-list { display: grid; gap: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.faq-item p {
  margin: 0;
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
}

/* Footer */
.footer {
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}
.footer a { text-decoration: none; transition: color 0.18s var(--ease); }
.footer a:hover { color: var(--fg); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding: 48px 20px; }
  .works-with { padding-top: 16px; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-logo { justify-content: flex-start; }
  .prompt-box { grid-template-columns: 1fr; }
  .copy-button { justify-content: center; }
  .footer { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
