/* =========================================================================
   EverSign SEO Pages — premium front-end (v2, violet build).
   Matches the DSC Finder design DNA: violet #5f3a9e brand, orange action,
   Bricolage Grotesque display + Hanken Grotesk body. Tuned for long-form
   reading — generous measure, comfortable rhythm, lighter section fills.
   Scoped under .evs-page so it never bleeds into the rest of the theme.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;450;500;600;700&display=swap');

.evs-page{
  --ink:#161b2e; --ink2:#333a56; --muted:#5a6178; --faint:#8a90a8; --hair:#eef1f7;
  --line:#e6e9f2; --paper:#f8f9fd; --card:#fff;
  --violet:#5f3a9e; --violet2:#8257c9; --violet-ink:#3a2168; --violet-bg:#f4effc; --violet-line:#e5d9f6;
  --orange:#ec5a13; --orange2:#ff7b38; --orange-ink:#b8420a;
  --green:#12a05e; --green-bg:#e8f7ef; --green-line:#c3ecd6;
  --gold2:#e0a83a;
  --grad-violet:linear-gradient(150deg,#734cb8 0%,#502f8c 52%,#3a2168 100%);
  --sh-xs:0 1px 2px rgba(22,27,46,.06);
  --sh-sm:0 3px 10px -3px rgba(22,27,46,.1),0 1px 3px rgba(22,27,46,.05);
  --sh-md:0 14px 34px -14px rgba(22,27,46,.2),0 3px 8px -4px rgba(22,27,46,.08);
  --r-lg:20px; --r-md:14px; --r-sm:10px;
  --ease:cubic-bezier(.22,1,.36,1);
  font-family:'Hanken Grotesk',system-ui,-apple-system,sans-serif;
  color:var(--ink); line-height:1.68; font-size:17px; -webkit-font-smoothing:antialiased;
}
.evs-page{ max-width:1080px; margin-inline:auto; }
/* Keep long-form prose at a readable measure even though the page is wide,
   so text lines don't run too long — but let widgets/tables use full width. */
.evs-page > p,.evs-hero p,.evs-answer,.evs-page ol,.evs-faq{ max-width:none; }
.evs-page *{ box-sizing:border-box; }

.evs-page h1,.evs-page h2,.evs-page h3{ font-family:'Bricolage Grotesque',Georgia,serif; color:var(--ink); line-height:1.16; letter-spacing:-.022em; margin:1.7em 0 .5em; }
.evs-page h1{ font-size:clamp(1.9rem,4vw,2.85rem); font-weight:800; margin-top:0; }
.evs-page h2{ font-size:clamp(1.4rem,2.4vw,1.85rem); font-weight:700; padding-top:.15em; }
.evs-page h2 em,.evs-page h1 em{ font-style:italic; color:var(--violet); }
.evs-page h3{ font-size:1.12rem; font-weight:700; margin:1.3em 0 .3em; }
.evs-page p{ margin:0 0 1.05em; }
.evs-page a{ color:var(--violet); text-decoration:none; font-weight:600; }
.evs-page a:hover{ text-decoration:underline; }
.evs-page strong,.evs-page b{ color:var(--ink); font-weight:700; }

/* ---- Hero band ---- */
.evs-hero{
  position:relative; overflow:hidden; margin:0 0 30px;
  border:1px solid var(--violet-line); border-radius:var(--r-lg);
  padding:clamp(26px,4vw,44px);
  background:
    radial-gradient(90% 130% at 100% -10%, rgba(95,58,158,.10), transparent 55%),
    radial-gradient(70% 100% at -5% 0%, rgba(236,90,19,.04), transparent 55%),
    linear-gradient(180deg,#fff,#fcfbff);
  box-shadow:var(--sh-md);
}
.evs-hero::before{ content:""; position:absolute; inset:0 0 auto 0; height:4px; background:linear-gradient(90deg,var(--violet),var(--violet2) 55%,var(--orange)); }
.evs-hero-art{ position:absolute; top:0; bottom:0; right:clamp(24px,4vw,52px); margin:auto 0; height:fit-content; width:clamp(150px,17vw,215px); color:var(--violet); opacity:.14; pointer-events:none; z-index:0; }
.evs-hero-art svg{ width:100%; height:auto; display:block; }
.evs-hero > *:not(.evs-hero-art){ position:relative; z-index:1; }
.evs-hero p{ font-size:1.06rem; color:var(--ink2); margin:0 0 4px; max-width:62ch; }
@media(max-width:820px){ .evs-hero-art{ opacity:.07; width:120px; top:auto; bottom:12px; right:10px; margin:0; } .evs-hero p{ max-width:100%; } }
.evs-eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--violet); background:var(--violet-bg); border:1px solid var(--violet-line); padding:7px 14px; border-radius:100px; margin-bottom:16px; }

/* ---- Requirement chips ---- */
.evs-chips{ display:flex; flex-wrap:wrap; gap:9px; margin:16px 0 4px; padding:0; list-style:none; }
.evs-chip{ display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line); border-radius:100px; padding:8px 15px; font-size:.9rem; font-weight:600; color:var(--ink2); box-shadow:var(--sh-xs); }
.evs-chip b{ color:var(--violet); font-weight:700; }
.evs-chip--ok b{ color:var(--green); }

/* ---- Primary CTA ---- */
.evs-cta-primary{
  display:inline-flex; align-items:center; gap:9px;
  background:linear-gradient(180deg,var(--orange2),var(--orange)); color:#fff !important;
  font-weight:750; font-size:1.02rem; padding:15px 28px; border-radius:var(--r-sm);
  text-decoration:none !important; box-shadow:0 14px 30px -10px rgba(236,90,19,.6);
  transition:transform .16s var(--ease),box-shadow .16s var(--ease);
}
.evs-cta-primary:hover{ transform:translateY(-2px); box-shadow:0 20px 38px -10px rgba(236,90,19,.68); }
.evs-cta-primary::after{ content:"→"; font-weight:700; transition:transform .16s var(--ease); }
.evs-cta-primary:hover::after{ transform:translateX(3px); }

/* ---- Trust strip ---- */
.evs-trust{ display:flex; flex-wrap:wrap; gap:14px 24px; align-items:center; margin:20px 0 2px; padding:16px 0 0; border-top:1px dashed var(--violet-line); font-size:.9rem; color:var(--muted); }
.evs-trust span{ display:inline-flex; align-items:center; gap:7px; font-weight:600; }
.evs-trust span::before{ content:"✓"; color:var(--green); font-weight:800; }

/* ---- Steps (ordered list) ---- */
.evs-page ol{ counter-reset:evs; list-style:none; padding:0; margin:0 0 1.4em; display:grid; gap:11px; }
.evs-page ol>li{ counter-increment:evs; position:relative; background:var(--card); border:1px solid var(--line); border-radius:var(--r-md); padding:16px 18px 16px 60px; box-shadow:var(--sh-xs); }
.evs-page ol>li::before{ content:counter(evs); position:absolute; left:15px; top:50%; transform:translateY(-50%); width:32px; height:32px; border-radius:9px; background:var(--grad-violet); color:#fff; font-weight:800; font-size:.95rem; display:grid; place-items:center; box-shadow:0 8px 18px -8px rgba(72,42,128,.6); }

/* ---- FAQ ---- */
.evs-faq{ margin-top:1.4em; }
.evs-faq h2{ margin-bottom:.4em; }
.evs-faq h3{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-sm) var(--r-sm) 0 0; border-bottom:none; padding:15px 18px; margin:11px 0 0; font-size:1.02rem; }
.evs-faq h3+p{ background:var(--card); border:1px solid var(--line); border-radius:0 0 var(--r-sm) var(--r-sm); padding:2px 18px 16px; margin:0; color:var(--muted); font-size:.96rem; }

/* ---- Quick answer callout ---- */
.evs-answer{ position:relative; background:linear-gradient(180deg,var(--violet-bg),#fff 90%); border:1px solid var(--violet-line); border-left:4px solid var(--violet); border-radius:var(--r-md); padding:18px 22px; margin:0 0 22px; box-shadow:var(--sh-xs); }
.evs-answer-lbl{ display:inline-block; font-size:.66rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--violet); margin-bottom:6px; }
.evs-answer p{ margin:0; font-size:1.05rem; color:var(--ink2); }
.evs-answer strong{ color:var(--violet-ink); }

/* ---- KYC document list ---- */
.evs-page ul.evs-doclist{ list-style:none; padding:0; margin:0 0 1em; display:grid; gap:9px; }
.evs-page ul.evs-doclist li{ position:relative; padding:12px 16px 12px 44px; background:var(--card); border:1px solid var(--line); border-radius:var(--r-sm); box-shadow:var(--sh-xs); font-size:.97rem; }
.evs-page ul.evs-doclist li::before{ content:"✓"; position:absolute; left:15px; top:50%; transform:translateY(-50%); width:20px; height:20px; border-radius:6px; background:var(--green-bg); color:var(--green); border:1px solid var(--green-line); display:grid; place-items:center; font-size:.7rem; font-weight:800; }
.evs-doc-note{ font-size:.9rem; color:var(--muted); background:var(--violet-bg); border:1px solid var(--violet-line); border-radius:var(--r-sm); padding:11px 15px; }

/* ---- Official portal reference ---- */
.evs-portal-ref{ font-size:.92rem; color:var(--muted); background:var(--violet-bg); border:1px solid var(--violet-line); border-radius:var(--r-sm); padding:13px 16px; margin-top:24px; }
.evs-portal-ref a{ font-weight:700; }

/* ---- Fallback widget (when Finder/PSE inactive) ---- */
.evs-sp-fallback{ border:1px solid var(--violet-line) !important; border-radius:var(--r-md) !important; background:linear-gradient(180deg,#fff,var(--violet-bg)) !important; padding:24px !important; box-shadow:var(--sh-sm); }
.evs-sp-fallback p{ font-family:'Bricolage Grotesque',serif; font-size:1.1rem; color:var(--violet-ink) !important; }

@media(max-width:640px){
  .evs-page{ font-size:16px; }
  .evs-cta-primary{ width:100%; justify-content:center; }
}
