/* Smart FX Facts — shared styles */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --border: #2b333d;
  --text: #e6edf3;
  --text-dim: #9aa7b4;
  --accent: #d4a437;
  --green: #2ea043;
  --red: #f85149;
  --radius: 12px;
  --maxw: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding-block: 0.875rem;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand span { color: var(--accent); }
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-inline-start: 1.25rem;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding-block: 4rem 3rem; text-align: center; }
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero p.lead {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.badge {
  display: inline-block;
  background: rgba(46, 160, 67, 0.15);
  color: var(--green);
  border: 1px solid rgba(46, 160, 67, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-block-end: 1.25rem;
}
.card h2, .card h3 { margin-top: 0; }

/* Signal card */
.signal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.signal .pair {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.direction {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.direction.buy { background: rgba(46,160,67,.2); color: var(--green); }
.direction.sell { background: rgba(248,81,73,.2); color: var(--red); }
.direction.closed { background: rgba(154,167,180,.15); color: var(--text-dim); }
.signal .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--border);
  padding-block: 0.375rem;
  font-size: 0.95rem;
}
.signal .row:last-child { border-bottom: 0; }
.signal .row b { font-weight: 600; }
.signal .result { color: var(--green); font-weight: 700; }

/* Form */
.signup { max-width: 26rem; margin-inline: auto; }
form.capture { display: grid; gap: 0.875rem; }
form.capture label {
  text-align: start;
  font-size: 0.95rem;
  font-weight: 600;
}
form.capture input[type="email"] {
  font-size: 1rem;
  padding: 0.75rem;
  min-height: 48px;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}
form.capture input[type="email"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
form.capture input[type="email"]:invalid:user-invalid { border-color: var(--red); }

.btn {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #111; width: 100%; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-telegram {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
}
.btn-telegram:hover { border-color: var(--accent); }

/* honeypot */
.hp-field {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding-block: 2rem;
}
.step { text-align: center; }
.step .num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

section.block { padding-block: 2.5rem; }
section.block > h2 { text-align: center; font-size: 1.5rem; }

/* Table (signals history) */
table.signals {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.signals th, table.signals td {
  text-align: start;
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
table.signals th { color: var(--text-dim); font-weight: 600; }
.win { color: var(--green); font-weight: 600; }
.loss { color: var(--red); font-weight: 600; }

/* Disclaimer */
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-block: 1.5rem 2.5rem;
  margin-top: 3rem;
}

/* Thank-you / redirect */
.center-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 3rem;
}

@media (max-width: 560px) {
  .hero { padding-block: 3rem 2rem; }
  .nav a { margin-inline-start: 0.75rem; font-size: 0.85rem; }
}

/* Geo-router pills (/go/ pages) */
.geo-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1.25rem; }
.geo-pill {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-dim); background: none; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 0.95rem; transition: color .2s, border-color .2s, background .2s;
}
.geo-pill:hover { color: var(--text); border-color: var(--accent); }
.geo-pill.active { color: #111; background: var(--accent); border-color: var(--accent); }
#goBtn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Bonus callout — config-driven (window.AFFILIATE_CONFIG.BONUS_CALLOUTS) */
.bonus-callout {
  margin: 1rem 0; padding: 0.875rem 1rem; text-align: start;
  border: 1px solid rgba(212, 164, 55, .45); border-radius: 8px;
  background: rgba(212, 164, 55, .08);
}
.bonus-pill {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #111;
  background: var(--accent); padding: .2rem .65rem; border-radius: 999px;
}
.bonus-text { display: block; margin-top: .5rem; font-size: .95rem; color: var(--text); }
.bonus-foot { display: block; margin-top: .4rem; font-size: .75rem; line-height: 1.55; color: var(--text-dim); }
