/* ezSign marketing site — design ported from the "3-suite" mockup.
   Inline styles in the mockup are consolidated here so the markup stays readable
   and the JS templates below it stay short. Colour tokens match the mockup exactly. */

:root {
  --ink: #17101f;
  --ink-soft: #b9aecb;
  --brand: #9900ff;
  --brand-deep: #6a00b3;
  --lilac: #c79bff;
  --txt: #2b2235;
  --txt-soft: #645a72;
  --line: #e4dcee;
  --wash: #f5f1fa;
  --wash-lilac: #f1e4ff;
  --page: #fbfafd;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--txt);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}
.mono { font-family: var(--mono); }
.lilac { color: var(--lilac); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(153,0,255,.5); }
  100% { box-shadow: 0 0 0 9px rgba(153,0,255,0); }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrapNarrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.centre { text-align: center; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrowLilac { color: var(--lilac); }
.rule { width: 22px; height: 2px; background: var(--brand); display: inline-block; }
.ruleLilac { background: var(--lilac); }
.h2 {
  font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800; letter-spacing: -.015em; color: var(--ink); margin: 14px 0 16px;
}
.h2Tight { margin-bottom: 0; }
.h2Small { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.lead { font-size: 1.12rem; color: var(--txt-soft); margin: 0; }
.secHead { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.secHeadWide { max-width: 760px; margin-bottom: 56px; }
.secHeadTight { margin-bottom: 30px; }

/* ---------- buttons ---------- */
.btnPrimary, .btnGhost, .btnOutline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; text-decoration: none; border-radius: 10px;
}
.btnPrimary {
  font-size: 1rem; padding: .85em 1.7em; background: var(--brand); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(153,0,255,.55); transition: background .18s, transform .18s;
}
.btnPrimary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btnGhost {
  font-size: 1rem; padding: .85em 1.7em; border: 2px solid rgba(255,255,255,.4);
  color: #fff; background: transparent; transition: border-color .18s, background .18s;
}
.btnGhost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btnOutline {
  font-size: .92rem; padding: .6em 1.3em; border: 2px solid var(--brand);
  color: var(--brand); background: transparent; transition: background .18s, color .18s;
}
.btnOutline:hover { background: var(--brand); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; background: rgba(251,250,253,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.navInner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logoLink { display: flex; align-items: center; }
.logo { height: 44px; width: auto; }
.navRight { display: flex; align-items: center; gap: 28px; }
.navLink { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); }
.navLink:hover { color: var(--brand); }
.langWrap { position: relative; }
.langBtn {
  display: flex; align-items: center; gap: 8px; padding: .55em 1em; background: #fff;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--txt);
}
.langIcon { font-size: 16px; color: var(--brand); }
.caret { font-size: .6rem; color: var(--txt-soft); }
.langMenu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 190px;
  max-height: 320px; overflow-y: auto; overflow-x: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 40px -18px rgba(23,16,31,.28); z-index: 70;
}
.langOpt {
  padding: 10px 16px; font-size: .88rem; font-weight: 500; cursor: pointer;
  border-bottom: 1px solid var(--wash); color: var(--txt); text-align: start;
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font-family: inherit;
}
.langOpt:hover, .langOpt[aria-selected="true"] { background: var(--wash-lilac); color: var(--brand-deep); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #f4effb; position: relative; overflow: hidden; }
.heroGlow {
  position: absolute; inset: auto -180px -260px auto; width: 640px; height: 640px;
  border-radius: 50%; background: radial-gradient(circle, rgba(153,0,255,.32), transparent 65%);
  pointer-events: none;
}
.heroMetaBar {
  border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--mono);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.heroMetaInner { padding-top: 12px; padding-bottom: 12px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.heroMetaInner b { color: var(--lilac); font-weight: 600; }
.heroGrid {
  padding-top: 80px; padding-bottom: 92px; display: grid;
  grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; z-index: 1;
}
.heroTitle {
  font-family: var(--display); color: #fff; font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.015em; margin: 22px 0 0;
}
.heroSub { font-size: 1.18rem; color: var(--ink-soft); margin: 26px 0 36px; max-width: 34em; line-height: 1.65; }
.heroCtas { display: flex; gap: 14px; flex-wrap: wrap; }

.runCard {
  background: #fff; color: var(--txt); border-radius: 14px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); position: relative;
  padding-inline-start: 30px; overflow: hidden; max-width: 460px; justify-self: end; width: 100%;
}
.runSpine { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 30px; background: var(--ink); }
.runHead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.runHeadTitle { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-soft); }
.runLive { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .7rem; font-weight: 600; color: var(--brand); }
.pulseDot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s ease-out infinite; display: inline-block; }
#runList { min-height: 244px; } /* 4 rows reserved so a re-render never resizes the card (CLS) */
.runRow { display: flex; align-items: center; gap: 13px; padding: 12px 20px; border-bottom: 1px solid var(--wash); }
.runAv { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .7rem; font-weight: 600; color: #fff; }
.runName { font-weight: 600; font-size: .93rem; color: var(--ink); }
.runRole { font-size: .78rem; color: var(--txt-soft); }
.runTime { font-family: var(--mono); font-size: .78rem; color: var(--txt-soft); }
.runTag { font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; }
.runFoot { padding: 13px 20px; background: var(--wash); font-family: var(--mono); font-size: .72rem; color: var(--txt-soft); display: flex; justify-content: space-between; }
.runFoot b { color: var(--brand-deep); font-weight: 600; }

/* ---------- chit strip ---------- */
.chitStrip { background: var(--ink); padding: 0 0 88px; }
.chitPanel { background: var(--wash); border-radius: 14px; position: relative; padding: 44px 40px; box-shadow: 0 24px 60px -28px rgba(0,0,0,.55); }
.chitTitle { text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--txt-soft); margin-bottom: 34px; }
.chitGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.chitNum { font-family: var(--mono); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--brand); letter-spacing: -.04em; }
.chitLbl { font-size: .98rem; color: var(--txt-soft); margin-top: 8px; }

/* ---------- toolset ---------- */
.secToolset { padding: 96px 0 72px; }
.modGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin: 0 auto; }
.modCard {
  border: 2px solid var(--line); border-radius: 14px; padding: 30px; cursor: pointer;
  position: relative; background: #fff; text-align: start; width: 100%; font-family: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.modCard:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -18px rgba(23,16,31,.28); }
.modCard.on { background: var(--ink); border-color: var(--ink); color: #f4effb; }
.modNew { position: absolute; top: 18px; inset-inline-end: 18px; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .12em; background: var(--brand); color: #fff; padding: 5px 10px; border-radius: 99px; }
.modTop { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modIcon { font-size: 26px; color: var(--brand); }
.modCard.on .modIcon, .modCard.on .modTag, .modCard.on .modGo { color: var(--lilac); }
.modTag { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; }
.modName { font-family: var(--display); font-size: 1.45rem; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.modCard.on .modName { color: #fff; }
.modBlurb { font-size: .95rem; line-height: 1.6; margin: 0; color: var(--txt-soft); }
.modCard.on .modBlurb { color: var(--ink-soft); }
.modGo { margin-top: 18px; font-weight: 600; font-size: .92rem; display: flex; gap: 8px; align-items: center; color: var(--brand); }

/* ---------- journey ---------- */
.secJourney { padding: 24px 0 96px; }
.journeyWrap { max-width: 880px; margin: 0 auto; }
.jRow { display: grid; grid-template-columns: 150px 1fr; position: relative; }
.jGutter { position: relative; display: flex; justify-content: center; }
.jSpine {
  position: absolute; top: 0; bottom: 0; width: 26px; background: var(--ink); border-radius: 2px;
  background-image: radial-gradient(circle at 50% 50%, var(--page) 4.5px, transparent 5px);
  background-size: 26px 24px; background-repeat: repeat-y; background-position: center top;
}
.jTime {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
  box-shadow: 0 6px 16px -6px rgba(153,0,255,.6);
}
.jBody { padding: 0 0 40px 38px; }
.jCard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px; box-shadow: 0 10px 30px -22px rgba(23,16,31,.35); }
.jHead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jIcon { font-size: 24px; color: var(--brand); }
.jTitle { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--ink); }
.jDesc { color: var(--txt-soft); line-height: 1.65; margin: 0 0 18px; }
.jNote { border-inline-start: 3px solid var(--brand); background: var(--wash-lilac); border-radius: 0 10px 10px 0; padding: 13px 18px; }
.jNote strong { color: var(--brand-deep); font-weight: 600; font-size: .9rem; font-family: var(--mono); line-height: 1.5; display: block; }

/* ---------- features ---------- */
.secFeatures { padding: 96px 0; background: var(--wash); }
.featGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featCard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; position: relative; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.featCard:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 14px 40px -18px rgba(23,16,31,.28); }
.featFlag { position: absolute; top: 20px; inset-inline-end: 20px; font-family: var(--mono); font-size: .58rem; font-weight: 600; letter-spacing: .1em; background: var(--brand); color: #fff; padding: 5px 9px; border-radius: 99px; }
.featIcon { width: 44px; height: 44px; border-radius: 11px; background: var(--wash-lilac); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.featIcon .ms { font-size: 22px; }
.featTitle { font-family: var(--display); font-size: 1.08rem; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.featDesc { font-size: .92rem; color: var(--txt-soft); line-height: 1.62; margin: 0; }

/* ---------- platform ---------- */
.secPlatform { padding: 96px 0; }
.platGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.platCard { background: var(--ink); color: #f4effb; border-radius: 14px; padding: 34px 34px 30px; position: relative; overflow: hidden; }
.platGlow { position: absolute; inset: auto -80px -120px auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(153,0,255,.22), transparent 65%); pointer-events: none; }
.platInner { position: relative; }
.platHead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.platIcon { width: 48px; height: 48px; border-radius: 12px; background: rgba(153,0,255,.18); color: var(--lilac); display: flex; align-items: center; justify-content: center; flex: none; }
.platIcon .ms { font-size: 25px; }
.platTitle { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin: 0; color: #fff; }
.platDesc { font-size: .95rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }
.platItems { display: flex; flex-direction: column; gap: 11px; }
.platItem { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: #d8d0e6; }
.platItem .ms { font-size: 19px; color: var(--lilac); flex: none; margin-top: 1px; }

/* ---------- testimonial ---------- */
.secQuote { background: var(--ink); color: #f4effb; padding: 100px 0; }
.quoteInner { text-align: center; }
.quoteStage { position: relative; min-height: 290px; display: flex; flex-direction: column; justify-content: center; }
.quoteStage blockquote {
  margin: 26px 0 34px; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.45; color: #fff;
  white-space: pre-line; text-wrap: pretty;
}
.quoteAttr { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.quoteName { color: var(--lilac); font-weight: 600; }
.quoteRole { color: var(--ink-soft); margin-top: 6px; }
.quoteNav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.quoteArrow { width: 40px; height: 40px; flex: none; border-radius: 50%; cursor: pointer; background: transparent; border: 1px solid rgba(255,255,255,.28); color: var(--lilac); display: flex; align-items: center; justify-content: center; }
.quoteArrow:hover { border-color: var(--lilac); background: rgba(153,0,255,.18); }
.quoteArrow .ms { font-size: 20px; }
.quoteDots { display: flex; gap: 9px; }
.qDot { width: 9px; height: 9px; padding: 0; flex: none; border: none; border-radius: 50%; cursor: pointer; transition: background .2s, transform .2s; background: rgba(255,255,255,.28); }
.qDot.on { background: var(--lilac); transform: scale(1.35); }

/* ---------- pricing ---------- */
.secPricing { padding: 96px 0; background: var(--wash); }
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px; gap: 4px; margin-bottom: 14px; }
.tab { border: none; cursor: pointer; border-radius: 99px; font-family: inherit; font-weight: 600; font-size: 1rem; padding: .7em 1.9em; }
.tabOn { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(153,0,255,.6); }
.tabOff { background: transparent; color: var(--txt-soft); }
.useTypeDesc { margin: 0 auto 34px; max-width: 36em; font-size: 1.1rem; }
.planGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1020px; margin: 0 auto 36px; }
.planCard { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 34px 30px; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.planCard:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -18px rgba(23,16,31,.28); }
.planCard.featured { border-color: var(--brand); box-shadow: 0 18px 50px -22px rgba(153,0,255,.35); }
.planName { font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 18px; }
.planPrice { font-family: var(--mono); font-weight: 600; font-size: 2.6rem; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.planVat { font-size: .78rem; color: var(--txt-soft); min-height: 1.2em; margin-top: 6px; }
.planPer { font-size: .92rem; color: var(--txt-soft); margin: 4px 0 20px; }
.planBox { background: var(--wash-lilac); border-radius: 10px; padding: 13px 16px; margin-bottom: 24px; }
.planBoxTitle { font-weight: 600; color: var(--brand-deep); font-size: .97rem; }
.planBoxNote { font-size: .78rem; color: var(--txt-soft); margin-top: 3px; }
.planCta { margin-top: auto; width: 100%; }
.planSub { font-size: .83rem; color: var(--txt-soft); text-align: center; margin: 14px 0 0; }
.dataSafe { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px dashed var(--brand); border-radius: 14px; padding: 22px 28px; font-size: .98rem; color: var(--txt-soft); display: flex; align-items: center; gap: 12px; justify-content: center; }
.dataSafe strong { color: var(--brand-deep); }
.dataSafeIcon { font-size: 22px; color: var(--brand-deep); }

/* ---------- returning ---------- */
.secReturning { padding: 80px 0; }
.quickGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quickCard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s; }
.quickCard:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 14px 40px -18px rgba(23,16,31,.28); }
.quickIcon { width: 44px; height: 44px; border-radius: 11px; background: var(--wash-lilac); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.quickIcon .ms { font-size: 22px; }
.quickTitle { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.quickDesc { font-size: .88rem; color: var(--txt-soft); flex-grow: 1; margin: 0 0 18px; }
.quickCta { font-size: .9rem; padding: .7em 1.2em; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--ink-soft); padding: 72px 0 36px; }
.footGrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footLogo { height: 40px; width: auto; margin-bottom: 14px; }
.footBlurb { font-size: .92rem; margin: 0; }
.footH { color: #fff; font-family: var(--display); font-size: 1rem; font-weight: 700; margin: 0 0 16px; }
.footLink { display: block; color: var(--ink-soft); text-decoration: none; font-size: .92rem; padding: 4px 0; }
.footLink:hover { color: var(--lilac); }
.footLinkInline { display: inline; padding: 0; }
.footText { font-size: .92rem; padding: 4px 0; margin: 0; }
.footBar { border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; }
.footCopy { margin: 0; }
.footPrivacy { margin: 10px 0 0; }
.footPrivacy a { color: var(--lilac); text-decoration: none; }

/* ---------- RTL ----------
   Only Arabic is RTL in the supported set (lib/translations/index.ts). Logical
   properties handle most of it; these are the cases that need mirroring. */
[dir="rtl"] .jRow { grid-template-columns: 1fr 150px; }
[dir="rtl"] .jGutter { order: 2; }
[dir="rtl"] .jBody { order: 1; padding: 0 38px 40px 0; }
[dir="rtl"] .heroGrid { grid-template-columns: .95fr 1.05fr; }
[dir="rtl"] .runCard { justify-self: start; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .heroGrid, [dir="rtl"] .heroGrid { grid-template-columns: 1fr; gap: 40px; }
  .runCard, [dir="rtl"] .runCard { justify-self: stretch; max-width: none; }
  .modGrid, .featGrid, .platGrid, .planGrid, .chitGrid { grid-template-columns: 1fr; }
  .quickGrid { grid-template-columns: repeat(2, 1fr); }
  .footGrid { grid-template-columns: 1fr 1fr; }
  .navRight { gap: 16px; }
  .navLink { display: none; }
}
@media (max-width: 620px) {
  .jRow, [dir="rtl"] .jRow { grid-template-columns: 1fr; }
  .jGutter { display: none; }
  .jBody, [dir="rtl"] .jBody { padding: 0 0 28px; }
  .quickGrid, .footGrid { grid-template-columns: 1fr; }
  .heroGrid { padding-top: 52px; padding-bottom: 60px; }
  .heroMetaInner { min-height: calc(2.6em + 24px); } /* wrapped meta bar sits above the hero grid (CLS) */
  .chitPanel { padding: 32px 22px; }
}
