/* tryclack.com — tagline + one copiable prompt. Nothing else. */

:root {
  --bg: #fbfbfa;
  --text: #1c1c1a;
  --muted: #6a6a66;
  --border: #e2e2de;
  --code-bg: #101010;
  --code-text: #e8e8e4;
  --accent: #1a56db;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

.tagline {
  margin: 0 0 2.5rem;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tagline.small { font-size: 1.75rem; }

.cta {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.prompt-box {
  position: relative;
  background: var(--code-bg);
  border-radius: 0.6rem;
  border: 1px solid #2a2a2a;
  overflow: hidden;
}

.prompt-box pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  appearance: none;
  border: 1px solid #3a3a3a;
  background: #1c1c1c;
  color: var(--code-text);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.copy-btn:hover { background: #2a2a2a; }
.copy-btn:active { background: #333; }

.status {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .wrap { padding-top: 2.5rem; }
  .tagline { font-size: 1.9rem; }
  .prompt-box pre { font-size: 0.78rem; }
}

/* Approved homepage polish; shared join-page styling stays unchanged. */
.landing {
  --code-bg: #17231f;
  --code-text: #eef3ef;
  --accent: #306f59;
}
.landing .accent-word { color: var(--accent); }
.landing .prompt-box {
  display: flex;
  flex-direction: column;
  border-color: #263b31;
}
.landing .prompt-box pre { padding-bottom: 1rem; }
.landing .copy-btn {
  position: static;
  align-self: flex-end;
  margin: 0 1rem 1rem;
  min-height: 44px;
  min-width: 76px;
  background: #c6e3d3;
  border-color: #c6e3d3;
  color: #173e2e;
  font-weight: 600;
}
.landing .copy-btn:hover { background: #d9edde; }
.landing .copy-btn:active { background: #afd5bf; }
.landing .copy-btn:focus-visible {
  outline: 2px solid #fbfbfa;
  outline-offset: 3px;
}

/* Give the single action a balanced position on larger screens. */
@media (min-width: 768px) and (min-height: 600px) {
  .landing {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 8vh;
    padding-bottom: 8svh;
  }
  .landing .wrap {
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Subpage components (join / relay / selfhost / privacy / terms / hosted). */

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

section { margin: 3rem 0 0; }

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

section p { margin: 0 0 0.75rem; }

.dim { color: var(--muted); font-size: 0.9rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #f0f0ec;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}

.facts { margin: 0 0 0.75rem; }
.facts > div {
  display: flex;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.facts dt { flex: 0 0 8rem; color: var(--muted); font-size: 0.9rem; padding-top: 0.15rem; }
.facts dd { margin: 0; flex: 1; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin: 0 0 0.75rem; }

footer { margin: 4rem 0 0; border-top: 1px solid var(--border); padding-top: 1.25rem; }

/* Native waitlist form (hosted). Posts to the linked Google Sheet via hidden frame. */

.field { margin: 0 0 1rem; max-width: 28rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field input {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--text);
}
.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.btn {
  appearance: none;
  border: none;
  background: #173e2e;
  color: #eef3ef;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  min-height: 44px;
}
.btn:hover { background: #1f5240; }
.btn:active { background: #122e23; }
