@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #0A0A0A;
  --text: #FFFFFF;
  --muted: #999999;
  --accent: #00FF00;
  --btn-border: #333333;
  --code-bg: #1A1A1A;
  --font: 'JetBrains Mono', 'Courier New', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Logo ── */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 48px;
}

.logo:hover {
  color: var(--text);
}

/* ── Nav bar ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-back:hover {
  color: var(--text);
}

.nav-title {
  font-size: 14px;
  color: var(--text);
  text-align: center;
  flex: 1;
  padding: 0 16px;
}

.nav-step {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Hero text ── */
.hero {
  margin-bottom: 40px;
}

.hero-headline {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 32px;
}

.section-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ── Agent buttons ── */
.agent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.agent-btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 60px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.agent-btn:hover,
.agent-btn:active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.agent-btn:hover .agent-name,
.agent-btn:active .agent-name {
  color: #000;
}

.agent-name {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
  transition: color 0.12s;
}

.agent-label {
  color: inherit;
}

/* ── Skip link ── */
.skip-link {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-top: 8px;
}

.skip-link:hover {
  color: var(--text);
}

/* ── Steps list ── */
.steps {
  margin-bottom: 32px;
}

.step {
  margin-bottom: 28px;
}

.step-num {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.step-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Code block ── */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--btn-border);
  padding: 16px;
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
}

.code-block pre {
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  padding-right: 72px;
  line-height: 1.6;
  margin: 0;
}

.code-text {
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  padding-right: 72px;
  display: block;
  line-height: 1.5;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── CTA buttons ── */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  min-height: 48px;
  background: #fff;
  color: #000;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.12s;
}

.cta-primary:hover {
  opacity: 0.9;
}

.cta-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  min-height: 48px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--btn-border);
  font-family: var(--font);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.cta-secondary:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ── Form fields ── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-input {
  background: var(--code-bg);
  border: 1px solid var(--btn-border);
  color: #fff;
  padding: 14px 16px;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.12s;
  display: block;
}

.form-input:focus {
  border-color: #fff;
}

.form-input::placeholder {
  color: #444;
}

.form-input.error {
  border-color: red;
}

.form-error {
  color: red;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ── Prompts page ── */
.prompt-box {
  background: var(--code-bg);
  border: 1px solid var(--btn-border);
  padding: 24px 20px;
  margin-bottom: 8px;
}

.prompt-text {
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.prompt-copy-btn {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
  margin-bottom: 32px;
}

.prompt-copy-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.prompt-copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}

.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.prompt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--btn-border);
  background: var(--code-bg);
}

.prompt-row-text {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  flex: 1;
}

.prompt-row-copy {
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.prompt-row-copy:hover {
  color: var(--text);
  border-color: var(--text);
}

.prompt-row-copy.copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Done page ── */
.done-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  text-align: center;
}

.done-check {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.done-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.done-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.done-prompt-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.done-try {
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 40px;
  display: block;
}

.done-divider {
  border: none;
  border-top: 1px solid var(--btn-border);
  margin: 32px 0;
}

.done-contact {
  font-size: 12px;
  color: var(--muted);
}

.done-contact a {
  color: var(--muted);
}

.done-contact a:hover {
  color: var(--text);
}

/* ── Misc ── */
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

a {
  color: var(--accent);
}

/* intl-tel-input dark theme overrides */
.iti { width: 100%; }
.iti__selected-dial-code { color: var(--text); font-family: var(--font); font-size: 13px; }
.iti__flag-container { background: var(--code-bg); border-right: 1px solid var(--btn-border); }
.iti__selected-flag { background: transparent !important; }
.iti__selected-flag:hover { background: rgba(255,255,255,0.05) !important; }
.iti__dropdown-content { background: #111; border: 1px solid var(--btn-border); font-family: var(--font); font-size: 13px; }
.iti__search-input { background: var(--code-bg); border: none; border-bottom: 1px solid var(--btn-border); color: var(--text); font-family: var(--font); font-size: 13px; padding: 8px 12px; width: 100%; }
.iti__country { padding: 8px 12px; color: var(--muted); }
.iti__country:hover, .iti__country.iti__highlight { background: rgba(255,255,255,0.06); color: var(--text); }
.iti__dial-code { color: var(--accent); }

.done-mark {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 24px;
}

.done-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.done-prompt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.done-prompt em {
  color: var(--text);
  font-style: normal;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  padding: 0 0 24px 32px;
  position: relative;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  color: var(--accent);
}

/* ── FAQ accordion (reusable) ── */
.faq {
  margin-bottom: 32px;
}

.faq-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--btn-border);
  background: var(--code-bg);
  margin-bottom: 8px;
}

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  line-height: 1.5;
  transition: color 0.12s;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] > .faq-q::after {
  content: '\2212'; /* − */
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.faq-a {
  padding: 0 16px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-a p {
  margin-bottom: 12px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a strong {
  color: var(--text);
  font-weight: 700;
}

.faq-a code {
  background: var(--bg);
  border: 1px solid var(--btn-border);
  color: var(--accent);
  padding: 1px 5px;
  font-size: 12px;
  word-break: break-all;
}

.faq-a a {
  color: var(--accent);
}

/* quiet link to the FAQ from other install pages */
.faq-link {
  display: block;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-top: 24px;
  transition: color 0.12s;
}

.faq-link:hover {
  color: var(--text);
}
