/* try.css — layered on top of legal.css for the /try landing page.
   Brand palette inherited via :root in legal.css (--accent gold etc.) */

.try-main {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 28px 96px;
}

.view { display: none; animation: fadeIn 0.25s ease-out; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.try-main h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}
.try-main h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.try-main h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.try-main h2 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.try-main .lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 540px;
}

/* ── Forms ───────────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: 16px; }

input[type=url],
input[type=text],
input[type=tel],
input[type=email] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  background: #131722;
}
input::placeholder { color: var(--dim); }

#capture-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#capture-form label > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.btn-cta {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #1a1408;
  border: none;
  padding: 16px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 0 0 0 rgba(212,181,114,0);
}
.btn-cta:hover:not(:disabled) {
  box-shadow: 0 0 24px rgba(212,181,114,0.25);
  transform: translateY(-1px);
}
.btn-cta:active:not(:disabled) { transform: translateY(0); }
.btn-cta:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-cta.as-link {
  display: inline-block;
  text-decoration: none;
  margin-top: 12px;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(212,181,114,0.05); }

.fineprint {
  color: var(--dim);
  font-size: 13px;
  text-align: center;
  margin-top: 6px;
}

.error {
  color: #ff8a8a;
  font-size: 13px;
  min-height: 18px;
  margin: 2px 0 0;
}

/* ── Demo meter (timer + status bar) ────────────────────── */
.demo-meter { margin: 24px 0 18px; }
.demo-meter-bar {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
#demo-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.5s linear;
}
.demo-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}
#demo-timer { color: var(--accent); font-variant-numeric: tabular-nums; }
#demo-status { color: var(--muted); }
#demo-status.live { color: #6ee7a3; }
#demo-status.warn { color: #f5c66a; }
#demo-status.err  { color: #ff8a8a; }

/* ── Transcript ─────────────────────────────────────────── */
.transcript {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  max-height: 280px;
  min-height: 140px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.transcript .line { margin: 0 0 10px; }
.transcript .line:last-child { margin-bottom: 0; }
.transcript .line .speaker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 8px;
}
.transcript .line.you .speaker  { color: var(--accent); }
.transcript .line.them .speaker { color: var(--muted); }
.transcript .empty {
  color: var(--dim);
  font-style: italic;
  text-align: center;
  padding: 24px 0;
}

.demo-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.cf-turnstile { display: flex; justify-content: center; min-height: 65px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.site-footer a { color: var(--muted); transition: color 0.15s; }
.site-footer a:hover { color: var(--accent); }

/* Mobile tweaks */
@media (max-width: 640px) {
  .try-main { padding: 110px 20px 80px; }
  nav { padding: 14px 20px; }
  .nav-links a.hide-mobile { display: none; }
}
