/* EFT Payment Console — marketing theme styles. */

:root {
  --epc-brand: #2a3f6e;
  --epc-brand-dark: #1f2f53;
  --epc-fg: #0f172a;
  --epc-fg-muted: #475569;
  --epc-bg: #f4f6fa;
  --epc-card: #ffffff;
  --epc-border: rgba(15, 23, 42, 0.08);
  --epc-border-strong: rgba(15, 23, 42, 0.14);
  --epc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --epc-shadow-md: 0 6px 22px rgba(15, 23, 42, 0.06);
  --epc-radius: 14px;
  --epc-radius-sm: 8px;
  --epc-max: 1180px;
  --epc-pad: 24px;
  --epc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--epc-font);
  color: var(--epc-fg);
  background: var(--epc-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--epc-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--epc-fg); margin: 0 0 0.4em; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--epc-fg-muted); }

.epc-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.epc-skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--epc-brand); color: #fff; padding: 8px 12px; border-radius: 4px;
  z-index: 1000;
}
.epc-skip-link:focus { left: 8px; top: 8px; outline: 2px solid #fff; }

.epc-container {
  max-width: var(--epc-max);
  margin: 0 auto;
  padding-left: var(--epc-pad);
  padding-right: var(--epc-pad);
}

/* ───── Buttons ───── */
.epc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none; white-space: nowrap;
}
.epc-btn:hover { text-decoration: none; }
.epc-btn:active { transform: translateY(1px); }
.epc-btn--primary { background: var(--epc-brand); color: #fff; }
.epc-btn--primary:hover { background: var(--epc-brand-dark); color: #fff; }
.epc-btn--ghost { background: transparent; color: var(--epc-fg); border-color: var(--epc-border-strong); }
.epc-btn--ghost:hover { background: rgba(15, 23, 42, 0.04); color: var(--epc-fg); }
.epc-btn--lg { padding: 14px 24px; font-size: 15px; }
.epc-btn--block { display: flex; width: 100%; }

/* ───── Top nav ───── */
.epc-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--epc-border);
}
.epc-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.epc-nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--epc-fg); font-weight: 700; font-size: 16px;
}
.epc-nav__brand:hover { text-decoration: none; }
.epc-nav__mark { color: var(--epc-brand); display: inline-flex; }
.epc-nav__menu { display: flex; align-items: center; gap: 28px; }
.epc-nav__list {
  display: flex; gap: 24px; list-style: none; padding: 0; margin: 0;
}
.epc-nav__list a {
  color: var(--epc-fg-muted); font-weight: 500; font-size: 14px; padding: 6px 0;
}
.epc-nav__list a:hover { color: var(--epc-fg); text-decoration: none; }
.epc-nav__ctas { display: inline-flex; gap: 8px; }
.epc-nav__toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  cursor: pointer; flex-direction: column; gap: 4px;
}
.epc-nav__toggle-bar { width: 22px; height: 2px; background: var(--epc-fg); display: block; border-radius: 2px; }

/* ───── Sections ───── */
.epc-section { padding: 88px 0; }
.epc-section + .epc-section { border-top: 1px solid var(--epc-border); }
.epc-section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.epc-section__headline { font-size: 32px; font-weight: 700; }
.epc-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; font-size: 12px; color: var(--epc-brand);
  background: rgba(42, 63, 110, 0.08); padding: 4px 10px; border-radius: 999px;
  margin-bottom: 14px;
}

/* ───── Hero ───── */
.epc-hero { padding-top: 64px; }
.epc-hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
}
.epc-hero__headline { font-size: 44px; font-weight: 750; letter-spacing: -0.02em; }
.epc-hero__subhead { font-size: 17px; color: var(--epc-fg-muted); max-width: 560px; }
.epc-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.epc-hero__trust {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--epc-fg-muted); font-size: 13px;
}
.epc-hero__trust li::before { content: "✓ "; color: var(--epc-brand); font-weight: 700; }
.epc-hero__art {
  background: linear-gradient(135deg, rgba(42, 63, 110, 0.08), rgba(42, 63, 110, 0.02));
  border-radius: 18px; padding: 16px;
}
.epc-hero__svg { width: 100%; height: auto; }

/* ───── Problem ───── */
.epc-problem__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.epc-problem__body { margin-top: 24px; }
.epc-problem__body p { font-size: 16px; }

/* ───── Grids ───── */
.epc-grid { display: grid; gap: 20px; }
.epc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.epc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.epc-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.epc-grid--tight { gap: 16px; }

/* ───── Cards ───── */
.epc-card {
  background: var(--epc-card); border: 1px solid var(--epc-border);
  border-radius: var(--epc-radius); padding: 24px;
  box-shadow: var(--epc-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.epc-card:hover { box-shadow: var(--epc-shadow-md); transform: translateY(-2px); }
.epc-card__icon {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(42, 63, 110, 0.10); color: var(--epc-brand);
  margin-bottom: 14px;
}
.epc-card__title { font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.epc-card__body { color: var(--epc-fg-muted); font-size: 14px; margin-bottom: 0; }

/* Format cards */
.epc-card--format { padding: 22px; }
.epc-tag {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; font-weight: 700; color: var(--epc-brand);
  background: rgba(42, 63, 110, 0.10); padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}

/* ───── Steps ───── */
.epc-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  counter-reset: epc-step;
}
.epc-step {
  background: var(--epc-card); border: 1px solid var(--epc-border);
  border-radius: var(--epc-radius); padding: 28px;
}
.epc-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--epc-brand); color: #fff; font-weight: 700;
  margin-bottom: 14px;
}
.epc-step__title { font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.epc-step__body { color: var(--epc-fg-muted); font-size: 14px; margin: 0; }

/* ───── Pricing ───── */
.epc-tier {
  position: relative;
  background: var(--epc-card); border: 1px solid var(--epc-border);
  border-radius: var(--epc-radius); padding: 28px 22px;
  display: flex; flex-direction: column;
}
.epc-tier--featured {
  border: 2px solid var(--epc-brand);
  box-shadow: 0 12px 32px rgba(42, 63, 110, 0.18);
  transform: translateY(-4px);
}
.epc-tier__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--epc-brand); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.epc-tier__name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--epc-fg-muted); margin-bottom: 12px; }
.epc-tier__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.epc-tier__amount { font-size: 36px; font-weight: 750; letter-spacing: -0.02em; }
.epc-tier__period { color: var(--epc-fg-muted); font-size: 14px; }
.epc-tier__features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.epc-tier__features li {
  font-size: 14px; padding: 6px 0 6px 22px; position: relative; color: var(--epc-fg);
}
.epc-tier__features li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 12px;
  background: rgba(42, 63, 110, 0.14); border-radius: 4px;
  background-image: linear-gradient(45deg, transparent 35%, var(--epc-brand) 35%, var(--epc-brand) 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 55%, var(--epc-brand) 55%, var(--epc-brand) 70%, transparent 70%);
}
.epc-pricing__note {
  text-align: center; color: var(--epc-fg-muted); font-size: 13px; margin-top: 28px;
}

/* ───── FAQ ───── */
.epc-faq__inner { max-width: 820px; margin: 0 auto; }
.epc-faq__list {
  background: var(--epc-card); border: 1px solid var(--epc-border);
  border-radius: var(--epc-radius); overflow: hidden;
}
.epc-faq__item { padding: 0; border-top: 1px solid var(--epc-border); }
.epc-faq__item:first-child { border-top: 0; }
.epc-faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16px; color: var(--epc-fg);
  display: flex; justify-content: space-between; align-items: center;
}
.epc-faq__item summary::-webkit-details-marker { display: none; }
.epc-faq__item summary::after {
  content: "+"; color: var(--epc-brand); font-size: 22px; font-weight: 400;
  transition: transform 0.2s ease;
}
.epc-faq__item[open] summary::after { transform: rotate(45deg); }
.epc-faq__item p { padding: 0 22px 22px; margin: 0; color: var(--epc-fg-muted); }

/* ───── Final CTA ───── */
.epc-cta { background: var(--epc-brand); color: #fff; }
.epc-cta__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.epc-cta .epc-cta__headline { color: #fff; font-size: 32px; font-weight: 700; }
.epc-cta__subhead { color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.epc-cta__buttons { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.epc-cta .epc-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.epc-cta .epc-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.epc-cta .epc-btn--primary { background: #fff; color: var(--epc-brand); }
.epc-cta .epc-btn--primary:hover { background: rgba(255, 255, 255, 0.92); color: var(--epc-brand); }

/* ───── Footer ───── */
.epc-footer {
  background: #0f172a; color: rgba(255, 255, 255, 0.7); padding: 56px 0 28px;
}
.epc-footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start;
}
.epc-footer__col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.epc-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.epc-footer__col a { color: rgba(255, 255, 255, 0.78); font-size: 14px; }
.epc-footer__col a:hover { color: #fff; text-decoration: none; }
.epc-footer__brand {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  font-weight: 700; font-size: 16px; margin-bottom: 12px;
}
.epc-footer__tagline { color: rgba(255, 255, 255, 0.6); font-size: 13px; max-width: 360px; }
.epc-footer__col--cta { display: flex; align-items: flex-start; }
.epc-footer__legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.epc-footer__legal p { color: rgba(255, 255, 255, 0.55); font-size: 12px; margin: 0; }

/* ───── Inner pages ───── */
.epc-page__inner { max-width: 760px; margin: 0 auto; }
.epc-page__title { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.epc-page__content { font-size: 16px; }
.epc-page__content p { color: var(--epc-fg); }
.epc-page__content h2, .epc-page__content h3 { margin-top: 1.6em; }
.epc-404 { text-align: center; padding: 60px 0; }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
  .epc-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .epc-grid--3, .epc-grid--4, .epc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epc-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epc-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .epc-section { padding: 64px 0; }
  .epc-section__headline { font-size: 26px; }
  .epc-hero__headline { font-size: 32px; }
  .epc-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .epc-grid--3, .epc-grid--4, .epc-grid--5, .epc-steps { grid-template-columns: 1fr; }
  .epc-footer__inner { grid-template-columns: 1fr; }
  .epc-tier--featured { transform: none; }

  .epc-nav__toggle { display: inline-flex; }
  .epc-nav__menu {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--epc-border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px; display: none;
  }
  .epc-nav--open .epc-nav__menu { display: flex; }
  .epc-nav__list { flex-direction: column; gap: 4px; }
  .epc-nav__list a { padding: 12px 0; }
  .epc-nav__ctas { flex-direction: column; padding: 12px 0 4px; }
  .epc-nav__ctas .epc-btn { justify-content: center; }
}

/* ───── French-only top advisory bar (task #367 (FR-only advisory bar)) ───── */
.epc-fr-bar {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.5;
}
.epc-fr-bar__inner {
  padding: 12px 24px;
}
.epc-fr-bar__msg {
  margin: 0;
  color: inherit;
}
.epc-fr-bar__msg strong { color: #7c2d12; font-weight: 700; }
.epc-fr-bar__link {
  color: #7c2d12;
  text-decoration: underline;
  font-weight: 600;
}
.epc-fr-bar__link:hover { color: #431407; }

/* ───── EN / FR language switcher (task #367 (FR-only advisory bar)) ───── */
.epc-nav__lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--epc-fg-muted);
}
.epc-nav__lang-link {
  color: var(--epc-fg-muted); padding: 4px 6px; border-radius: 4px;
}
.epc-nav__lang-link:hover { color: var(--epc-fg); text-decoration: none; }
.epc-nav__lang-link.is-active { color: var(--epc-brand); }
.epc-nav__lang-sep { color: var(--epc-border-strong); }
@media (max-width: 768px) {
  .epc-nav__lang { padding: 12px 0; justify-content: center; }
}

/* ───── Contact form (task #286) ───── */
.epc-contact__inner { max-width: 760px; margin: 0 auto; }
.epc-contact__subhead {
  text-align: center; color: var(--epc-fg-muted); font-size: 17px;
  max-width: 620px; margin: 0 auto 8px;
}
.epc-contact__intro { margin: 0 auto 32px; }
.epc-contact__card {
  background: var(--epc-card);
  border: 1px solid var(--epc-border);
  border-radius: var(--epc-radius);
  box-shadow: var(--epc-shadow-md);
  padding: 32px;
}
.epc-contact-form__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.epc-contact-form__field { display: flex; flex-direction: column; margin-bottom: 16px; }
.epc-contact-form__field label {
  font-size: 13px; font-weight: 600; color: var(--epc-fg);
  margin-bottom: 6px; letter-spacing: 0.01em;
}
.epc-contact-form__field input,
.epc-contact-form__field textarea {
  font: inherit; color: var(--epc-fg);
  background: #fff;
  border: 1px solid var(--epc-border-strong);
  border-radius: var(--epc-radius-sm);
  padding: 10px 12px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.epc-contact-form__field input:focus,
.epc-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--epc-brand);
  box-shadow: 0 0 0 3px rgba(42, 63, 110, 0.15);
}
.epc-contact-form__field textarea { resize: vertical; min-height: 140px; }
.epc-contact-form__honeypot {
  position: absolute !important; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.epc-contact-form__actions { margin-top: 8px; }
.epc-contact-form__actions .epc-btn { min-width: 200px; }
.epc-contact-form__msg {
  margin-top: 18px; padding: 12px 14px;
  border-radius: var(--epc-radius-sm);
  font-size: 14px; line-height: 1.5;
}
.epc-contact-form__msg--ok {
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
}
.epc-contact-form__msg--err {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}
@media (max-width: 768px) {
  .epc-contact__card { padding: 22px; }
  .epc-contact-form__grid { grid-template-columns: 1fr; gap: 0; }
  .epc-contact-form__actions .epc-btn { width: 100%; }
}
