/* Public site design layer (ADR-0109). The homepage below the hero, and every
   page that opts in with body.site (pricing, about, contact, legal, the public
   form and template pages). Everything is scoped under .hp / .hp-* / body.site,
   so the app and other pages are untouched. Motion comes from static/js/site.js,
   which base.html loads; .hp-js on <html> is what hides not-yet-revealed
   elements, so without JS (or with reduced motion) every section simply shows.
   Logical properties throughout, so Arabic mirrors. */

.hp, .hp-float {
  --hp-bg: #fbfcfd;
  --hp-ink: #0b2036;
  --hp-text: #3d4654;
  --hp-muted: #6b7684;
  --hp-line: #e6eaf0;
  --hp-accent: #0c64ae;
  --hp-accent-soft: #eaf2fb;
  --hp-amber: #e59a2b;
  --hp-red: #d64545;
  --hp-green: #1d9a5b;
  --hp-ease: cubic-bezier(.2, .7, .2, 1);
}
.hp {
  position: relative;
  background: var(--hp-bg);
  color: var(--hp-text);
  overflow-x: clip;   /* not hidden: hidden would break the sticky columns */
}
body.home .footer { margin-top: 0; }

/* ---- the blueprint frame: two hairlines down the column edges ---- */
.hp-guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hp-guides span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hp-line); }
.hp-guides span:first-child { inset-inline-start: calc(50% - 560px); }
.hp-guides span:last-child { inset-inline-end: calc(50% - 560px); }
@media (max-width: 1180px) { .hp-guides { display: none; } }

.hp-col { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.hp-center { text-align: center; }
.hp-sec { position: relative; padding: 112px 0; }
.hp-sec-line { border-top: 1px solid var(--hp-line); }

/* ---- type ---- */
.hp-kicker { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--hp-accent); margin: 0 0 16px; }
html[lang="ar"] .hp-kicker, html[lang="zh"] .hp-kicker { letter-spacing: .02em; }
.hp-h2 { font-size: clamp(2rem, 3.7vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; color: var(--hp-ink); margin: 0; }
.hp-soft { color: #8391a6; }
.hp-lede { font-size: 1.08rem; line-height: 1.65; color: var(--hp-muted); margin: 18px 0 0; max-width: 580px; }
.hp-center .hp-lede { margin-inline: auto; }
.hp-head { max-width: 760px; margin-bottom: 56px; }
.on-dark { color: #fff !important; }
.hp-lede.on-dark { color: #b9c8da !important; }
.hp-kicker.on-dark { color: #7ac0f5 !important; }

/* ---- buttons ---- */
.hp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .2s var(--hp-ease), background .2s, box-shadow .2s; text-decoration: none !important; }
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn-dark { background: var(--hp-ink); color: #fff !important; box-shadow: 0 10px 24px rgba(11, 32, 54, .18); }
.hp-btn-dark:hover { background: var(--hp-accent); }
.hp-btn-light { background: #fff; color: var(--hp-ink) !important; border-color: var(--hp-line); }
.hp-btn-light:hover { border-color: #c9d4e2; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--hp-accent) !important; }
.hp-link :is(i, svg) { font-size: .8rem; transition: transform .2s; }
.hp-link:hover :is(i, svg) { transform: translateX(3px); }
[dir="rtl"] .hp-link :is(i, svg), [dir="rtl"] .hp-btn .fa-arrow-right { transform: scaleX(-1); }

/* ---- reveal-on-scroll ---- */
.hp-js .rv { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s var(--hp-ease), transform .9s var(--hp-ease), filter .9s var(--hp-ease); transition-delay: var(--d, 0ms); }
.hp-js .rv.in { opacity: 1; transform: none; filter: none; }

/* ---- cards ---- */
.hp-card { position: relative; background: #fff; border: 1px solid var(--hp-line); border-radius: 20px; padding: 28px;
  box-shadow: 0 1px 2px rgba(11, 32, 54, .04); transition: transform .35s var(--hp-ease), box-shadow .35s var(--hp-ease), border-color .35s; }
.hp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 32, 54, .09); border-color: #d6dfea; }
.hp-js .hp-card.rv:hover { transition-delay: 0ms; }
.hp-card h3 { font-size: 1.16rem; font-weight: 600; color: var(--hp-ink); letter-spacing: -.01em; margin: 0 0 8px; }
.hp-card p { font-size: .95rem; line-height: 1.6; color: var(--hp-muted); margin: 0; }
.hp-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--hp-accent-soft); color: var(--hp-accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 18px; }
.hp-visual { position: relative; border-radius: 14px; border: 1px solid var(--hp-line); padding: 22px; margin-bottom: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #f1f6fc 0%, #f8fafc 55%, #fbfcfd 100%); }
.hp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #f1f4f8; color: var(--hp-text); border: 1px solid var(--hp-line); }
.hp-chip-blue { background: var(--hp-accent-soft); color: var(--hp-accent); border-color: #cfe0f3; }
.hp-av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700;
  color: #fff; background: #0c64ae; border: 2px solid #fff; flex: none; }
.hp-av.b { background: #e59a2b; }
.hp-av.c { background: #1d9a5b; }

/* ---- marquee ---- */
.hp-marquee-sec { position: relative; z-index: 1; padding: 56px 0 18px; }
.hp-marquee { display: flex; overflow: hidden; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hp-marquee-track { flex: none; display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; animation: hpMarquee 38s linear infinite; }
.hp-marquee:hover .hp-marquee-track { animation-play-state: paused; }
.hp-marquee-track li { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 11px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hp-line); font-weight: 600; font-size: .95rem; color: var(--hp-ink); }
.hp-marquee-track :is(i, svg) { color: var(--hp-accent); }
@keyframes hpMarquee { to { transform: translateX(calc(-100% - 14px)); } }
[dir="rtl"] .hp-marquee-track { animation-name: hpMarqueeRtl; }
@keyframes hpMarqueeRtl { to { transform: translateX(calc(100% + 14px)); } }

/* ---- statement ---- */
.hp-statement { position: relative; padding: 120px 0 128px; }
.hp-statement .hp-col { max-width: 900px; }
.hp-words { font-size: clamp(1.6rem, 3.1vw, 2.45rem); line-height: 1.32; font-weight: 500; letter-spacing: -.022em; color: var(--hp-ink); margin: 0 0 28px; }
.hp-words-strong { color: var(--hp-accent); font-weight: 700; margin: 0; }
.hp-js .hp-words .w { opacity: .14; filter: blur(3px); transition: opacity .45s var(--hp-ease), filter .45s var(--hp-ease); }
.hp-js .hp-words .w.on { opacity: 1; filter: none; }

/* ---- how it works: sticky story ---- */
.hp-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.hp-story-pin { position: sticky; top: 108px; }
.hp-steps { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-direction: column; gap: 6px; }
.hp-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; font-weight: 600; color: #98a3b3;
  border: 1px solid transparent; transition: all .45s var(--hp-ease); }
.hp-steps li span { font-size: .78rem; font-weight: 700; width: 34px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: #eef2f6; color: #98a3b3; transition: all .45s var(--hp-ease); }
.hp-steps li.on { color: var(--hp-ink); background: #fff; border-color: var(--hp-line); box-shadow: 0 10px 24px rgba(11, 32, 54, .06); }
.hp-steps li.on span { background: var(--hp-ink); color: #fff; }
.hp-story-cards { display: flex; flex-direction: column; gap: 28px; }
.hp-num { font-size: .8rem; font-weight: 700; color: var(--hp-accent); margin-inline-end: 6px; }
.hp-story-card .hp-visual { min-height: 236px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }

/* upload */
.hp-drop { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border: 1.5px dashed #c5d3e3; border-radius: 12px;
  color: var(--hp-muted); font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .6); }
.hp-drop :is(i, svg) { color: var(--hp-accent); font-size: 1.3rem; }
.hp-file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--hp-line); border-radius: 11px; }
.hp-file > :is(i, svg) { color: var(--hp-accent); font-size: 1.1rem; }
.hp-file b { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; color: var(--hp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.hp-bar { width: 96px; height: 6px; border-radius: 99px; background: #e8edf3; overflow: hidden; flex: none; }
.hp-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #0c64ae, #5ea7e0); }
.hp-js .hp-bar i { width: 0; transition: width 1.6s var(--hp-ease) .35s; }
.hp-js .in .hp-bar i { width: var(--w); }

/* read */
.hp-detect { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 28px rgba(11, 32, 54, .06); }
.hp-detect-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hp-detect-head b { font-size: 1.05rem; color: var(--hp-ink); }
.hp-detect dl { margin: 0; }
.hp-detect dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef1f5; font-size: .86rem; }
.hp-detect dt { color: var(--hp-muted); }
.hp-detect dd { margin: 0; font-weight: 600; color: var(--hp-ink); direction: ltr; }
.hp-detect .hp-hl dd { color: var(--hp-accent); }
.hp-filed :is(i, svg) { flex: none; }
.hp-filed { margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--hp-accent); background: var(--hp-accent-soft); border-radius: 9px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; }
.hp-js .hp-detect dl div, .hp-js .hp-filed { opacity: 0; transform: translateX(-10px); transition: all .5s var(--hp-ease); }
.hp-js .in .hp-detect dl div, .hp-js .in .hp-filed { opacity: 1; transform: none; }
.hp-js .in .hp-detect dl div:nth-child(1) { transition-delay: .3s; }
.hp-js .in .hp-detect dl div:nth-child(2) { transition-delay: .5s; }
.hp-js .in .hp-detect dl div:nth-child(3) { transition-delay: .7s; }
.hp-js .in .hp-detect dl div:nth-child(4) { transition-delay: .9s; }
.hp-js .in .hp-filed { transition-delay: 1.2s; }

/* remind */
.hp-timeline { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; justify-content: space-between; position: relative; }
.hp-timeline::before { content: ""; position: absolute; inset-inline: 18px; top: 50%; height: 2px; background: #d9e3ee; }
.hp-timeline li { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--hp-accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .86rem; box-shadow: 0 0 0 5px #f4f8fc; }
.hp-timeline li.now { background: var(--hp-amber); }
.hp-timeline li.now::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--hp-amber); animation: hpPing 2s var(--hp-ease) infinite; }
.hp-timeline li.end { background: var(--hp-red); }
@keyframes hpPing { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hp-toast { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--hp-line); border-radius: 13px; padding: 14px 16px; box-shadow: 0 14px 30px rgba(11, 32, 54, .08); }
.hp-toast > :is(i, svg) { color: var(--hp-amber); font-size: 1.3rem; margin-top: 2px; flex: none; }
.hp-toast b { display: block; font-size: .92rem; color: var(--hp-ink); }
.hp-toast span { font-size: .83rem; color: var(--hp-muted); }
.hp-js .hp-toast { opacity: 0; transform: translateY(14px) scale(.98); transition: all .7s var(--hp-ease) .6s; }
.hp-js .in .hp-toast { opacity: 1; transform: none; }

/* ---- features bento ---- */
.hp-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-b-radar { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: center; }
.hp-b-radar .hp-radar { grid-row: span 2; }
.hp-b-radar h3 { align-self: end; font-size: 1.35rem; }
.hp-b-radar p { align-self: start; }
.hp-radar { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hp-ring { width: 150px; height: 150px; }
.hp-ring circle { fill: none; stroke-width: 13; }
.hp-ring .trk { stroke: #eef2f6; }
.hp-ring .seg { stroke-dasharray: var(--len) 289; transform-origin: 60px 60px; transform: rotate(calc(var(--rot, 0) * 1.2457deg - 90deg)); }
.hp-ring .ok { stroke: var(--hp-green); }
.hp-ring .warn { stroke: var(--hp-amber); }
.hp-ring .bad { stroke: var(--hp-red); }
.hp-js .hp-ring .seg { stroke-dasharray: 0 289; transition: stroke-dasharray 1.3s var(--hp-ease) .3s; }
.hp-js .in .hp-ring .seg { stroke-dasharray: var(--len) 289; }
.hp-radar-key { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--hp-muted); min-width: 160px; }
.hp-radar-key li { display: flex; align-items: center; gap: 8px; }
.hp-radar-key i { width: 9px; height: 9px; border-radius: 50%; }
.hp-radar-key i.ok { background: var(--hp-green); } .hp-radar-key i.warn { background: var(--hp-amber); } .hp-radar-key i.bad { background: var(--hp-red); }
.hp-radar-key b { margin-inline-start: auto; color: var(--hp-ink); }
.hp-phone { width: 62px; height: 96px; border-radius: 14px; border: 2px solid var(--hp-ink); padding: 14px 8px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; background: #fff; }
.hp-phone span { height: 9px; border-radius: 4px; background: var(--hp-accent-soft); }
.hp-phone span:first-child { background: var(--hp-accent); width: 70%; }
.hp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.hp-share .hp-av + .hp-av { margin-inline-start: -12px; }
.hp-share .hp-av:nth-child(3) { margin-inline-end: 8px; }
.hp-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; }
.hp-pills li { display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--hp-line); font-size: .87rem; font-weight: 600; color: var(--hp-text); }
.hp-pills :is(i, svg) { color: var(--hp-accent); }

/* ---- apps ---- */
.hp-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-app { display: flex; flex-direction: column; }
.hp-app .hp-visual { height: 212px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hp-app-name { display: flex; align-items: center; gap: 10px; font-size: 1.22rem; font-weight: 600; color: var(--hp-ink); margin-bottom: 8px; }
.hp-app-name :is(i, svg) { color: var(--hp-accent); }
.hp-app .hp-link { margin-top: auto; padding-top: 16px; }
.hp-sigline { background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; padding: 8px 14px 4px; border-bottom: 2px solid #c9d4e2; }
.hp-sigline svg { width: 100%; height: 56px; display: block; }
.hp-sigline path { fill: none; stroke: var(--hp-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 0; }
.hp-js .hp-sigline path { stroke-dashoffset: 700; transition: stroke-dashoffset 2.2s ease-in-out .4s; }
.hp-js .in .hp-sigline path { stroke-dashoffset: 0; }
.hp-signers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-signers li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--hp-ink); }
.hp-signers .hp-av { width: 26px; height: 26px; font-size: .7rem; }
.hp-signers em { margin-inline-start: auto; font-style: normal; font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: #fdf1de; color: #a3620b; }
.hp-signers em.ok { background: #e3f5ea; color: var(--hp-green); }
.hp-bignum b { display: block; font-size: 3.4rem; line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--hp-accent); }
.hp-bignum span { font-size: .88rem; color: var(--hp-muted); }
.hp-formchips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-formchips span { font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--hp-line); color: var(--hp-ink); direction: ltr; }
.hp-mini-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; padding: 14px; }
.hp-mini-form .l { height: 7px; width: 60%; background: #d6dfea; border-radius: 4px; grid-column: span 2; }
.hp-mini-form .l.s { width: 40%; }
.hp-mini-form .f { height: 22px; border: 1px solid var(--hp-line); border-radius: 7px; grid-column: span 2; background: #fbfcfd; }
.hp-mini-form .opt { height: 22px; border-radius: 7px; border: 1px solid var(--hp-line); }
.hp-mini-form .opt.on { border-color: var(--hp-accent); background: var(--hp-accent-soft); }
.hp-resp { display: flex; align-items: center; gap: 10px; align-self: flex-end; background: #fff; border: 1px solid var(--hp-line); border-radius: 11px; padding: 8px 13px;
  font-size: .82rem; box-shadow: 0 10px 22px rgba(11, 32, 54, .08); }
.hp-resp :is(i, svg) { color: var(--hp-red); }
.hp-js .hp-resp { opacity: 0; transform: translateY(10px); transition: all .6s var(--hp-ease) .8s; }
.hp-js .in .hp-resp { opacity: 1; transform: none; }
.hp-apps-more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.hp-mini { display: flex; align-items: center; gap: 18px; padding: 22px 26px; }
.hp-mini-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--hp-accent-soft); color: var(--hp-accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.hp-mini b { display: block; color: var(--hp-ink); font-size: 1.02rem; margin-bottom: 2px; }
.hp-mini span { font-size: .9rem; color: var(--hp-muted); }

/* ---- who ---- */
.hp-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
.hp-who-item { padding: 34px 28px 36px; border-inline-start: 1px solid var(--hp-line); transition: background .3s; }
.hp-who-item:first-child { border-inline-start: 0; }
.hp-who-item:hover { background: #fff; }
.hp-who-item > :is(i, svg) { font-size: 1.9rem; color: var(--hp-accent); margin-bottom: 18px; display: block; }
.hp-who-item h3 { font-size: 1.1rem; font-weight: 600; color: var(--hp-ink); margin: 0 0 8px; }
.hp-who-item p { font-size: .93rem; line-height: 1.6; color: var(--hp-muted); margin: 0; }

/* ---- security (dark) ---- */
.hp-dark { position: relative; background: radial-gradient(90% 120% at 15% 0%, #16365a 0%, #0b2036 55%, #081827 100%); color: #fff; overflow: hidden; }
.hp-stars { position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #9cc9f0, transparent), radial-gradient(1px 1px at 28% 68%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 44% 36%, #7ac0f5, transparent), radial-gradient(1px 1px at 61% 80%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 74% 18%, #9cc9f0, transparent), radial-gradient(1px 1px at 86% 58%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 93% 30%, #7ac0f5, transparent), radial-gradient(1px 1px at 6% 84%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 52% 10%, #fff, transparent), radial-gradient(1px 1px at 36% 92%, #9cc9f0, transparent);
  background-size: 520px 360px; animation: hpTwinkle 6s ease-in-out infinite alternate; }
@keyframes hpTwinkle { from { opacity: .45; } to { opacity: .9; } }
.hp-sec-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 112px; padding-bottom: 112px; }
.hp-sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-sec-list li { display: flex; align-items: center; gap: 12px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); font-weight: 600; font-size: .95rem; backdrop-filter: blur(4px); }
.hp-sec-list :is(i, svg) { color: #7ac0f5; font-size: 1.25rem; flex: none; }

/* ---- numbers ---- */
.hp-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 20px; }
.hp-stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.hp-stat b { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; color: var(--hp-ink); line-height: 1.05; direction: ltr; text-align: start; }
.hp-stat span { font-size: .92rem; color: var(--hp-muted); }
.hp-stat-lg { grid-row: span 2; background: linear-gradient(160deg, #0c64ae 0%, #0b2036 100%); border-color: transparent; color: #fff; }
.hp-stat-lg b { color: #fff; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.hp-stat-lg span { color: #c7d8ea; font-size: 1rem; }

/* ---- FAQ ---- */
.hp-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 72px; align-items: start; }
.hp-faq-side { position: sticky; top: 108px; }
.hp-faq details { border-bottom: 1px solid var(--hp-line); }
.hp-faq details:first-child { border-top: 1px solid var(--hp-line); }
.hp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  font-size: 1.04rem; font-weight: 600; color: var(--hp-ink); }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hp-line); display: flex; align-items: center; justify-content: center;
  font-weight: 400; font-size: 1.2rem; color: var(--hp-accent); transition: transform .35s var(--hp-ease), background .3s; }
.hp-faq details[open] summary::after { transform: rotate(45deg); background: var(--hp-accent-soft); }
.hp-faq details p { margin: -6px 0 22px; font-size: .96rem; line-height: 1.65; color: var(--hp-muted); max-width: 640px; }
.hp-faq details p a { color: var(--hp-accent); font-weight: 600; }

/* ---- closing CTA + network ---- */
.hp-cta { position: relative; border-top: 1px solid var(--hp-line); padding: 72px 0 120px; }
.hp-net { position: relative; max-width: 1000px; height: 300px; margin: 0 auto 36px; }
.hp-net svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hp-net path { fill: none; stroke: #cdd8e5; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hp-net path.flow { stroke: var(--hp-accent); stroke-dasharray: 4 16; stroke-width: 2; animation: hpFlow 1.4s linear infinite; opacity: .75; }
@keyframes hpFlow { to { stroke-dashoffset: -40; } }
.hp-js .hp-net path:not(.flow) { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.6s var(--hp-ease); }
.hp-js .hp-net.in path:not(.flow) { stroke-dashoffset: 0; }
.hp-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); white-space: nowrap; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hp-line); font-size: .86rem; font-weight: 600; color: var(--hp-ink); box-shadow: 0 6px 16px rgba(11, 32, 54, .06); }
.hp-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: #fff;
  border: 1px solid var(--hp-line); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(12, 100, 174, .22); }
.hp-hub::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(12, 100, 174, .25); animation: hpPing 2.6s var(--hp-ease) infinite; }
.hp-hub img { width: 34px; height: 34px; }

/* ---- floating pill nav ---- */
.hp-float { position: fixed; top: 14px; left: 50%; z-index: 60; display: flex; align-items: center; gap: 18px; padding: 7px 7px 7px 18px;
  background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(11, 32, 54, .08); border-radius: 999px; box-shadow: 0 12px 34px rgba(11, 32, 54, .12);
  opacity: 0; transform: translate(-50%, -24px); pointer-events: none; transition: opacity .4s var(--hp-ease), transform .4s var(--hp-ease); }
.hp-float.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
[dir="rtl"] .hp-float { padding: 7px 18px 7px 7px; }
.hp-float-logo img { height: 22px; width: auto; display: block; }
.hp-float-links { display: flex; gap: 4px; }
.hp-float-links a { position: relative; padding: 7px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--hp-muted, #6b7684); text-decoration: none !important; transition: color .2s, background .2s; }
.hp-float-links a:hover { color: #0b2036; background: rgba(11, 32, 54, .05); }
.hp-float-links a.on { color: #0b2036; }
.hp-float-links a.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 2px; border-radius: 2px; background: #0c64ae; transform: translateX(-50%); }
.hp-float-links a, .hp-float-cta { white-space: nowrap; }
.hp-float-cta { padding: 9px 16px; font-size: .86rem; border-radius: 999px; }
.hp-float-cta:hover { transform: none; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .hp-col { padding: 0 32px; }
  .hp-sec { padding: 88px 0; }
  .hp-story { grid-template-columns: 1fr; gap: 40px; }
  .hp-story-pin { position: static; }
  .hp-steps { display: none; }
  .hp-bento, .hp-apps { grid-template-columns: 1fr 1fr; }
  .hp-apps .hp-app:last-child { grid-column: span 2; }
  .hp-who { grid-template-columns: 1fr 1fr; }
  .hp-who-item:nth-child(3) { border-inline-start: 0; }
  .hp-who-item:nth-child(n+3) { border-top: 1px solid var(--hp-line); }
  .hp-sec-grid, .hp-faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .hp-faq-side { position: static; }
  .hp-stats { grid-template-columns: 1fr 1fr; }
  .hp-stat-lg { grid-column: span 2; grid-row: auto; }
  .hp-float-links { display: none; }
}
@media (max-width: 700px) {
  .hp-net { display: none; }
  .hp-cta { padding-top: 88px; }
}
@media (max-width: 640px) {
  .hp-col { padding: 0 20px; }
  .hp-sec { padding: 72px 0; }
  .hp-statement { padding: 80px 0 88px; }
  .hp-bento, .hp-apps, .hp-apps-more, .hp-who, .hp-sec-list, .hp-stats { grid-template-columns: 1fr; }
  .hp-b-radar, .hp-apps .hp-app:last-child, .hp-stat-lg { grid-column: auto; }
  .hp-b-radar { grid-template-columns: 1fr; }
  .hp-b-radar .hp-radar { flex-direction: row; grid-row: auto; }
  .hp-who-item { border-inline-start: 0; border-top: 1px solid var(--hp-line); padding: 26px 4px; }
  .hp-who-item:first-child { border-top: 0; }
  .hp-card { padding: 22px; }
  .hp-float { gap: 10px; top: 10px; }
  .hp-float-cta { padding: 8px 13px; font-size: .8rem; }
}

/* ---- reduced motion: no movement, everything visible ---- */
@media (prefers-reduced-motion: reduce) {
  .hp-js .rv, .hp-js .hp-words .w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hp-marquee-track, .hp-stars, .hp-timeline li.now::after, .hp-hub::before, .hp-net path.flow { animation: none !important; }
  .hp-marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .hp-marquee-track[aria-hidden="true"] { display: none; }
  .hp-marquee-track { flex-wrap: wrap; justify-content: center; }
  .hp-js .hp-bar i, .hp-js .hp-ring .seg, .hp-js .hp-sigline path, .hp-js .hp-net path:not(.flow),
  .hp-js .hp-detect dl div, .hp-js .hp-filed, .hp-js .hp-toast, .hp-js .hp-resp { transition: none !important; }
}

/* =====================================================================
   Site pages (body.site): pricing, about, contact, legal, the public
   form and template pages. Same frame and components as the homepage.
   ===================================================================== */
body.site { background: #fbfcfd; }
body.site .footer { margin-top: 0; }
.hp-page { min-height: 60vh; padding-bottom: 20px; }

/* ---- the pill nav ---- */
body.site .nav { position: sticky; top: 0; z-index: 50; background: transparent; padding-top: 12px; pointer-events: none; }
body.site .nav-inner { pointer-events: auto; width: calc(100% - 32px); max-width: 1120px; height: 58px; padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(11, 32, 54, .08); border-radius: 999px; box-shadow: 0 10px 30px rgba(11, 32, 54, .08); }
[dir="rtl"] body.site .nav-inner { padding: 0 22px 0 10px; }
body.site .nav .nav-logo-full { filter: none; height: 26px !important; }
body.site .nav-links a { color: #4a5565; font-weight: 500; }
body.site .nav-links a:hover { color: #0b2036; }
body.site .nav-links a.active { color: #0b2036; font-weight: 600; }
body.site .nav-links a.btn-primary { color: #fff; background: #0b2036; border-color: #0b2036; border-radius: 999px; padding: 9px 18px; }
body.site .nav-links a.btn-primary:hover { background: #0c64ae; border-color: #0c64ae; }
body.site .lang-switch summary { color: #3d4654; border-color: #e1e6ed; }
body.site .lang-switch summary:hover, body.site .lang-switch[open] summary { background: #f3f6fa; border-color: #cfd8e3; color: #0b2036; }
body.site .store-btn :is(i, svg) { color: #0b2036; }

/* ---- page header ---- */
.hp-pagehead { position: relative; z-index: 1; padding: 76px 0 44px; }
.hp-pagehead.hp-center .hp-lede { margin-inline: auto; }
.hp-h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); line-height: 1.04; font-weight: 600; letter-spacing: -.038em; color: var(--hp-ink); margin: 0; }
.hp-pagehead .hp-lede { font-size: 1.14rem; }
.hp-meta { font-size: .88rem; color: var(--hp-muted); margin: 18px 0 0; }

/* ---- a closing band shared by the site pages ---- */
.hp-band { position: relative; z-index: 1; border-top: 1px solid var(--hp-line); padding: 96px 0 110px; text-align: center; }

/* ---- about ---- */
.hp-statement-sm { padding: 12px 0 96px; }
.hp-statement-sm .hp-col { max-width: 1120px; }
.hp-story-text { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.42; font-weight: 500; letter-spacing: -.018em; color: var(--hp-ink); margin: 0; max-width: 860px; }
.hp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp-two .hp-card p + p { margin-top: 12px; }
.hp-card-dark { background: linear-gradient(160deg, #13304f 0%, #0b2036 100%); border-color: transparent; }
.hp-card-dark h3 { color: #fff; }
.hp-card-dark p { color: #c2d1e2; }
.hp-card-dark .hp-icon { background: rgba(255, 255, 255, .1); color: #7ac0f5; }

/* ---- contact ---- */
.hp-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; padding: 76px 0 100px; }
.hp-contact-list { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hp-contact-list li { display: flex; align-items: center; gap: 14px; }
.hp-contact-list .hp-icon { margin: 0; flex: none; }
.hp-contact-list b { display: block; color: var(--hp-ink); font-size: .98rem; }
.hp-contact-list span, .hp-contact-list a { font-size: .92rem; color: var(--hp-muted); }
.hp-contact-list a { color: var(--hp-accent); font-weight: 600; }
.hp-form .field { margin-bottom: 16px; }
.hp-form .field label { display: block; font-size: .86rem; font-weight: 600; color: var(--hp-ink); margin-bottom: 6px; }
.hp-form .field input, .hp-form .field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--hp-line); border-radius: 12px;
  font: inherit; font-size: .95rem; background: #fbfcfd; color: var(--hp-ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.hp-form .field input:focus, .hp-form .field textarea:focus { outline: none; background: #fff; border-color: var(--hp-accent); box-shadow: 0 0 0 4px rgba(12, 100, 174, .12); }
.hp-form .hp-btn { width: 100%; justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hp-form .alert { border-radius: 12px; }

/* ---- pricing ---- */
.hp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.hp-plan { display: flex; flex-direction: column; padding: 32px; }
.hp-plan-name { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--hp-accent); }
.hp-plan-tag { font-size: .68rem; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: #fdf1de; color: #a3620b; }
.hp-plan-price { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; color: var(--hp-ink); margin: 18px 0 2px; line-height: 1; }
.hp-plan-price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--hp-muted); margin-inline-start: 4px; }
.hp-plan-sub { font-size: .9rem; color: var(--hp-muted); min-height: 1.4em; }
.hp-plan ul { list-style: none; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--hp-line); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hp-plan li { position: relative; padding-inline-start: 26px; font-size: .93rem; line-height: 1.5; color: var(--hp-text); }
.hp-plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--hp-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230c64ae' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.hp-plan .hp-btn { justify-content: center; }
.hp-plan-featured { background: linear-gradient(165deg, #0c64ae 0%, #0b2036 100%); border-color: transparent; color: #fff; box-shadow: 0 24px 48px rgba(12, 100, 174, .22); }
.hp-plan-featured .hp-plan-name { color: #9fd0f7; }
.hp-plan-featured .hp-plan-price, .hp-plan-featured li { color: #fff; }
.hp-plan-featured .hp-plan-sub { color: #c7d8ea; }
.hp-plan-featured ul { border-color: rgba(255, 255, 255, .18); }
.hp-plan-featured li::before { background-color: rgba(255, 255, 255, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hp-plan-featured .hp-btn-light { border-color: transparent; }
.hp-plan li strong { color: inherit; }
.hp-plan-no { list-style: none; margin: -12px 0 24px !important; padding: 0 !important; border: 0 !important; display: flex; flex-direction: column; gap: 8px; flex: 0 !important; }
.hp-plan-no li { color: var(--hp-muted) !important; text-decoration: line-through; text-decoration-color: rgba(107, 118, 132, .45); }
.hp-plan-no li::before { background: #f1f3f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='%239aa4b2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat !important; }
.hp-app-price { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; border-top: 1px solid var(--hp-line); margin-inline: 0; }
.hp-app-price b { font-size: 1.35rem; font-weight: 600; color: var(--hp-ink); letter-spacing: -.02em; }
.hp-app-price span { font-size: .88rem; color: var(--hp-muted); }
.hp-app-price em { flex-basis: 100%; font-style: normal; font-size: .82rem; font-weight: 600; color: var(--hp-green); }
.hp-app > p { margin-bottom: 4px; }
.hp-note { text-align: center; font-size: .95rem; color: var(--hp-muted); max-width: 760px; margin: 30px auto 0; line-height: 1.6; }
.hp-note a { color: var(--hp-accent); font-weight: 600; }
.hp-includes { margin-top: 64px; text-align: center; }
.hp-includes .hp-pills { margin-top: 18px; }

/* ---- legal pages: sticky contents + a readable column ---- */
body.site .legal { max-width: none; margin: 0; padding: 0; }
body.site .legal .page-head { display: none; }
body.site .legal > .legal-meta { margin: 0 0 18px; }
.hp-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 100px; }
.hp-legal-toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow-y: auto; font-size: .86rem; padding-inline-end: 6px; }
.hp-legal-toc p { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--hp-muted); margin: 0 0 12px; }
.hp-legal-toc a { display: block; padding: 6px 12px; border-inline-start: 2px solid var(--hp-line); color: var(--hp-muted); line-height: 1.35; transition: color .2s, border-color .2s; }
.hp-legal-toc a:hover { color: var(--hp-ink); text-decoration: none; }
.hp-legal-toc a.on { color: var(--hp-accent); border-color: var(--hp-accent); font-weight: 600; }
body.site .legal .legal-body { background: #fff; border: 1px solid var(--hp-line); border-radius: 20px; padding: 40px 48px; box-shadow: 0 1px 2px rgba(11, 32, 54, .04); font-size: 1rem; line-height: 1.75; }
body.site .legal .legal-body h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; margin: 44px 0 12px; scroll-margin-top: 100px; }
body.site .legal .legal-note { background: #f4f8fc; border-color: #dbe6f2; border-radius: 14px; }
body.site.hp-toc-on .legal .legal-toc { display: none; }

/* ---- public form & template pages (fx-/fl- markup, restyled) ---- */
body.site .fx, body.site .fl { position: relative; z-index: 1; }
body.site .fl-crumbs { margin: 34px 0 10px; }
body.site .fx-hero, body.site .fl-hero { margin-top: 26px; margin-bottom: 34px; }
body.site .fl-hero h1, body.site .fx-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; color: #0b2036; }
body.site .fl-tagline { font-size: 1.1rem; }
body.site .fx-search input { border-radius: 999px; padding-block: 14px; border-color: #dfe5ec; box-shadow: 0 10px 30px rgba(11, 32, 54, .06); }
body.site .fx-chip, body.site .fl-badge { background: #fff; border-color: #e6eaf0; font-weight: 600; transition: border-color .2s, color .2s; }
body.site .fx-chip:hover { border-color: #0c64ae; color: #0c64ae; text-decoration: none; }
body.site .fx-country h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: #0b2036; }
body.site .fl-rcard, body.site .fx-card { border-radius: 16px; padding: 18px 20px; border-color: #e6eaf0; background: #fff;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
body.site .fl-rcard:hover, body.site .fx-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 32, 54, .08); border-color: #d6dfea; text-decoration: none; }
body.site .fl .card, body.site .fx .card, body.site .fl-viewer, body.site .fl-cta, body.site .fl-how, body.site .fl-meta { border-radius: 18px; border-color: #e6eaf0; box-shadow: 0 1px 2px rgba(11, 32, 54, .04); }
body.site .fl-pages { background: #eef2f7; }
body.site .fl-article h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; color: #0b2036; }
body.site .fl-faq { border-radius: 14px; }
body.site .fl-cta { background: linear-gradient(165deg, #0c64ae 0%, #0b2036 100%); border-color: transparent; color: #fff; }
body.site .fl-cta .fl-cta-code { color: #9fd0f7; }
body.site .fl-cta .fl-cta-title { color: #fff; }
body.site .fl-cta .fl-cta-sub, body.site .fl-cta p, body.site .fl-cta li { color: #c7d8ea; }
body.site .fl-cta .btn-primary { background: #fff; color: #0b2036; border-color: #fff; }

@media (max-width: 1000px) {
  .hp-contact, .hp-two { grid-template-columns: 1fr; gap: 32px; }
  .hp-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .hp-legal { grid-template-columns: 1fr; }
  .hp-legal-toc { display: none; }
  body.site.hp-toc-on .legal .legal-toc { display: block; }
}
@media (max-width: 640px) {
  body.site .nav-inner { width: calc(100% - 20px); padding: 0 8px 0 14px; height: 54px; gap: 10px; }
  body.site .store-btns { display: none; }
  body.site .nav-links { gap: 10px; }
  body.site .nav-links a { white-space: nowrap; }
  body.site .nav .nav-logo-full { height: 22px !important; }
  body.site .lang-switch summary > span { display: none; }
  .hp-pagehead { padding: 52px 0 32px; }
  body.site .legal .legal-body { padding: 26px 22px; }
  .hp-plan { padding: 26px; }
}
