/* exponustraders.com — shared stylesheet */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f5;
  --dark: #1b1f27;
  --dark-2: #262d3a;
  --accent: #12805c;
  --accent-hover: #0e6a4c;
  --accent-light: #6ee7b7;
  --accent-tint: #e3f3ec;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #d9e2df;
  --footer-text: #c7d0cd;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: max(16px, calc((100% - 1100px) / 2));
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 16px; color: var(--dark); }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.5vw, 32px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--dark); }

.accent { color: var(--accent-hover); font-weight: 700; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding-inline: var(--gutter);
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  border-bottom: 2px solid var(--accent);
  color: #ffffff;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 36px; width: auto; }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  background: var(--dark);
  border-bottom: 2px solid var(--accent);
}
.main-nav.open { display: flex; }
.main-nav a:not(.btn) {
  display: block;
  padding: 12px 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.main-nav a:not(.btn):hover { background: var(--dark-2); color: var(--accent-light); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--dark-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #ffffff; border-radius: 2px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .main-nav a:not(.btn) { padding: 8px 12px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  font: 700 16px/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; }
.btn-outline { background: transparent; color: var(--accent-hover); }
.btn-outline:hover { background: var(--accent-hover); color: #ffffff; }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }


/* Sections */
main > section { padding: 40px var(--gutter); }
main > section.alt { background: var(--bg-alt); }

.hero {
  margin: 20px var(--gutter) 0;
  padding: 32px 28px 28px;
  background: var(--bg-alt);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
}
main > section.hero { padding: 32px 28px 28px; }
.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-hover);
  background: var(--accent-tint);
  border-radius: 999px;
}
.hero p.lead { font-size: 19px; max-width: 760px; }

/* Numbered rows */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; }
.steps li {
  position: relative;
  counter-increment: step;
  min-height: 68px;
  margin: 0 0 12px;
  padding: 16px 20px 16px 84px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
main > section.alt .steps li { background: #ffffff; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font: 700 22px/1 var(--font-head);
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.card { padding: 20px 22px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; }

/* Tables */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #ffffff; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--dark); color: #ffffff; border-bottom: 0; }
.data-table tbody tr:nth-child(even) td, .data-table tbody tr:nth-child(even) th { background: var(--bg-alt); }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody th { font-weight: 700; color: var(--dark); width: 30%; }

/* FAQ */
.faq-item { margin-bottom: 12px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 20px 18px; }

/* Author and editors */
.author-line { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.author-line img { display: block; width: 44px; height: 44px; border-radius: 50%; }
.author-card { display: flex; align-items: flex-start; gap: 20px; padding: 24px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); }
.author-card img { display: block; flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; }
.author-card h3 { margin-bottom: 4px; }
.author-role { margin: 0 0 10px; font-weight: 700; color: var(--accent-hover); }
.author-card p:last-child { margin-bottom: 0; }
.editors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.editor-card { padding: 22px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); }
.editor-card img { display: block; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; }
.editor-card h3 { margin-bottom: 4px; }
.editor-card p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .author-card { flex-direction: column; }
}

/* Footer */
.site-footer { margin-top: 20px; padding: 40px var(--gutter) 28px; background: var(--dark); color: var(--footer-text); font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-title { margin: 0 0 12px; font-weight: 700; color: #ffffff; }
.site-footer img { display: block; height: 36px; width: auto; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: #ffffff; }
.site-footer p { margin: 0 0 12px; }
.footer-bottom { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--dark-2); font-size: 14px; }

/* Sticky mobile button */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 0;
    font-size: 17px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  }
  .steps li { padding-left: 76px; }
}

/* Offer popup */
.offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 18, 24, 0.7);
}
.offer-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 24px;
  background: #ffffff;
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
}
.offer-title { margin: 0 0 10px; font: 700 24px/1.25 var(--font-head); color: var(--dark); }
.offer-modal p { margin: 0 0 18px; }
.offer-actions { display: flex; flex-direction: column; gap: 10px; }
.offer-decline { padding: 11px; font: 600 15px/1.2 var(--font-body); color: var(--muted); background: transparent; border: 0; cursor: pointer; text-decoration: underline; }
.offer-fineprint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 767px) {
  .hero { margin-inline: 16px; padding: 24px 20px; }
  main > section.hero { padding: 24px 20px; }
  main > section { padding-block: 32px; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 15px; }
}
