/* Talk to Techleet — public voice agent page. Same brand tokens as the
   portal (portal/admin/portal.css): ink background, signal green. */
:root {
  --ink: #06100c;
  --surface: #0e1a15;
  --surface-2: #12221b;
  --paper: #eef4f1;
  --muted: #9db1aa;
  --signal: #10b981;
  --signal-deep: #0e9d6e;
  --line: rgba(16, 185, 129, 0.28);
  --danger: #fb7185;
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(16,185,129,.12), transparent 60%), var(--ink);
  color: var(--paper); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--signal); }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

.top, .foot, .wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--paper); text-decoration: none; letter-spacing: -0.01em; }
.brand .br { color: var(--muted); font-family: var(--font-mono); font-weight: 500; }
.brand .t { color: var(--signal); }
.top-link { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }

.wrap { flex: 1; padding-bottom: 4rem; }
.hero { padding: 3.5rem 0 2.5rem; max-width: 720px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); margin-bottom: 0.9rem; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.02; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.lede { font-size: 1.12rem; color: #cfdcd6; max-width: 620px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; justify-content: center;
  font: 600 0.98rem var(--font-sans); padding: 0.85rem 1.3rem; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  min-height: 44px;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--signal-deep); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--signal); }
.hint { margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); }
.hint.pulse { color: var(--signal); }
.notice { margin-top: 1rem; padding: 0.8rem 1rem; border: 1px solid rgba(251,113,133,.4); border-radius: 10px; background: rgba(251,113,133,.07); font-size: 0.92rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; }
.step .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--signal); }
.step h2 { font-size: 1.1rem; margin: 0.3rem 0 0.35rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

.privacy { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; max-width: 720px; }
.privacy h2 { font-size: 1rem; margin-bottom: 0.6rem; }
.privacy ul { padding-left: 1.1rem; display: grid; gap: 0.4rem; color: #cfdcd6; font-size: 0.93rem; }
.privacy b { color: var(--paper); }
.privacy .fine { margin-top: 0.7rem; font-size: 0.84rem; color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; padding-bottom: 6rem; border-top: 1px solid rgba(16,185,129,.12); font-size: 0.82rem; color: var(--muted); }
.foot a { color: var(--muted); }

/* ── form dialog ── */
.form-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto;
  background: var(--surface); color: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 0; overflow: auto;
}
.form-dialog::backdrop { background: rgba(3, 8, 6, 0.72); backdrop-filter: blur(3px); }
.form-dialog form, .form-done { padding: 1.4rem 1.4rem 1.3rem; }
.fd-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.fd-head .eyebrow { margin-bottom: 0.3rem; }
.fd-head h2 { font-size: 1.35rem; line-height: 1.2; }
.fd-sub { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1.1rem; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--paper); width: 40px; height: 40px; border-radius: 10px; font-size: 1.4rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 0.9rem; }
.field { display: grid; gap: 0.3rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 1rem var(--font-sans); color: var(--paper); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 9px; padding: 0.65rem 0.75rem; min-height: 44px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-size: 0.92rem; color: #cfdcd6; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--signal); flex-shrink: 0; }
.form-error { margin-top: 0.9rem; color: var(--danger); font-size: 0.92rem; }
.fd-actions { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.form-done { text-align: center; padding: 2.4rem 1.6rem; }
.form-done .tick { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: rgba(16,185,129,.15); color: var(--signal); font-size: 1.6rem; }
.form-done h2 { margin-bottom: 0.5rem; }
.form-done p { color: var(--muted); margin-bottom: 1.3rem; }

[data-mode="contact"] [data-only="inquiry"] { display: none; }

@media (max-width: 560px) {
  .hero { padding-top: 2rem; }
  .grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .top-link { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
