/* ============================================================
   hafilattopup.org — luxury-gold x bold-color-block (indigo/violet + amber)
   prefix: hx-   seed: N3NOV76J77   theme: light only
   Plain static, no framework, no CDN. Flow: noop_dead_end.
   ============================================================ */

:root {
  --hx-primary: #4b3fd6;          /* indigo-violet */
  --hx-primary-ink: #3a2fb0;
  --hx-primary-soft: #ecebfb;
  --hx-accent: #e0a43a;           /* warm amber (luxury accent) */
  --hx-accent-ink: #9a6b12;
  --hx-ink: #191a2e;
  --hx-ink-2: #5a5c73;
  --hx-paper: #f6f6fb;
  --hx-paper-2: #ececf6;
  --hx-surface: #ffffff;
  --hx-deep: #14152b;             /* premium dark panel (hero/footer) */
  --hx-deep-2: #1e1f3d;
  --hx-border: #d7d8ea;
  --hx-line: #e0e1ef;

  --hx-shadow: 0 20px 46px -22px rgba(20, 21, 43, .5);
  --hx-shadow-sm: 0 10px 26px -16px rgba(20, 21, 43, .42);
  --hx-shadow-in: inset 0 2px 5px rgba(20, 21, 43, .06);

  --hx-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hx-serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --hx-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --hx-maxw: 1150px;
  --hx-radius: 14px;
  --hx-radius-lg: 20px;
  --hx-fs-root: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--hx-sans);
  font-size: var(--hx-fs-root);
  line-height: 1.64;
  color: var(--hx-ink);
  background-color: var(--hx-paper);
  overflow-x: hidden;
}
body.hx-noscroll { overflow: hidden; }
body[dir="rtl"] { font-family: var(--hx-ar); }

h1, h2, h3, h4 { font-family: var(--hx-serif); font-weight: 700; line-height: 1.14; margin: 0 0 .5em; letter-spacing: -.005em; }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { font-family: var(--hx-ar); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
a { color: var(--hx-primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hx-wrap { max-width: var(--hx-maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px); }
.hx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--hx-primary); outline-offset: 2px; border-radius: 4px; }

/* LTR islands inside RTL */
.hx-ltr, a[href^="tel:"], a[href^="mailto:"], a[href*="wa.me"] { direction: ltr; unicode-bidi: isolate; }
.hx-foot address { unicode-bidi: plaintext; }

/* gold-ish accent hairline (luxury cue) */
.hx-hair { height: 2px; background: linear-gradient(90deg, transparent, var(--hx-accent), transparent); border: 0; margin: 0; }

/* announcement */
.hx-annc { background: var(--hx-deep); color: #eceafd; font-size: .82rem; text-align: center; }
.hx-annc .hx-wrap { padding: 8px 16px; }
.hx-annc b { color: var(--hx-accent); }

/* header (centered logo) */
.hx-head { position: sticky; top: 0; z-index: 60; background: rgba(246,246,251,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hx-border); transition: transform .3s ease; }
.hx-head.hx-hidden { transform: translateY(-130%); }
.hx-head .hx-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 68px; }
.hx-nav-l { display: flex; align-items: center; gap: 22px; }
.hx-nav-r { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.hx-nav-l a { font-size: .92rem; color: var(--hx-ink-2); font-weight: 600; }
.hx-nav-l a:hover { color: var(--hx-primary-ink); text-decoration: none; }
.hx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hx-ink); justify-self: center; }
.hx-logo:hover { text-decoration: none; }
.hx-logo-mark { width: 42px; height: 42px; flex: none; }
.hx-logo b { font-family: var(--hx-serif); font-size: 1.32rem; font-weight: 700; line-height: 1; }
.hx-logo b i { color: var(--hx-primary); font-style: italic; }
.hx-logo small { display: block; font-family: var(--hx-sans); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--hx-ink-2); font-weight: 700; }
body[dir="rtl"] .hx-logo small { letter-spacing: normal; font-size: .64rem; }

/* flags language switcher (flags only) */
.hx-lang { display: inline-flex; gap: 6px; }
.hx-lang button { display: inline-flex; align-items: center; background: var(--hx-surface); border: 2px solid var(--hx-line); border-radius: 8px; cursor: pointer; padding: 5px; }
.hx-lang button:hover { border-color: var(--hx-primary); }
.hx-lang button.hx-on { border-color: var(--hx-primary); box-shadow: 0 0 0 2px var(--hx-primary-soft); }
.hx-flag { width: 24px; height: 16px; border-radius: 3px; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }

/* buttons (tab_underline hint via bottom accent) */
.hx-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--hx-sans); font-weight: 700; font-size: .98rem; padding: 14px 26px; min-height: 52px; border: 0; border-radius: 12px 12px 12px 4px; background: var(--hx-primary); color: #fff; text-decoration: none; cursor: pointer; box-shadow: var(--hx-shadow-sm); transition: transform .14s ease, box-shadow .14s ease, background .15s ease; line-height: 1.1; }
.hx-btn:hover { background: var(--hx-primary-ink); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--hx-shadow); }
.hx-btn:active { transform: translateY(0); }
.hx-btn--ghost { background: var(--hx-surface); color: var(--hx-primary-ink); box-shadow: inset 0 0 0 2px var(--hx-border); }
.hx-btn--ghost:hover { background: var(--hx-paper-2); color: var(--hx-primary-ink); }
.hx-btn--gold { background: var(--hx-accent); color: var(--hx-ink); }
.hx-btn--gold:hover { background: #cf9124; color: var(--hx-ink); }
.hx-btn--sm { min-height: 44px; padding: 9px 18px; font-size: .85rem; }
.hx-btn--lg { font-size: 1.05rem; padding: 16px 30px; }
.hx-btn .hx-ic { display: inline-flex; }
body[dir="rtl"] .hx-btn .hx-ic svg { transform: scaleX(-1); }

.hx-burger { display: none; width: 46px; height: 46px; border: 2px solid var(--hx-border); border-radius: 10px; background: var(--hx-surface); cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.hx-burger span { display: block; width: 20px; height: 2px; background: var(--hx-ink); border-radius: 2px; }

/* mobile drawer */
.hx-drawer-back { position: fixed; inset: 0; z-index: 90; background: rgba(20,21,43,.55); visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility .3s ease; }
.hx-drawer-back.hx-open { visibility: visible; opacity: 1; }
.hx-drawer { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 95; background: var(--hx-paper); border-inline-start: 1px solid var(--hx-border); padding: 20px; transform: translateX(100%); visibility: hidden; opacity: 0; transition: transform .34s cubic-bezier(.22,.61,.36,1), visibility .34s ease, opacity .34s ease; overflow-y: auto; }
body[dir="rtl"] .hx-drawer { inset: 0 auto 0 0; border-inline-start: 0; border-inline-end: 1px solid var(--hx-border); transform: translateX(-100%); }
.hx-drawer.hx-open { transform: translateX(0); visibility: visible; opacity: 1; }
.hx-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hx-drawer-close { width: 42px; height: 42px; border: 2px solid var(--hx-border); border-radius: 10px; background: var(--hx-surface); font-size: 1.3rem; cursor: pointer; color: var(--hx-ink); }
.hx-drawer nav { display: flex; flex-direction: column; }
.hx-drawer nav a { padding: 14px 6px; border-bottom: 1px solid var(--hx-line); text-decoration: none; color: var(--hx-ink); font-size: 1.1rem; }
.hx-drawer-foot { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* hero (premium dark, split) */
.hx-hero { position: relative; color: #f2f1fd; background: var(--hx-deep);
  background-image:
    radial-gradient(60% 60% at 82% 10%, rgba(75,63,214,.5), transparent 60%),
    radial-gradient(50% 50% at 8% 92%, rgba(224,164,58,.16), transparent 60%),
    /* damask-ish motif */
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.028) 2px, transparent 3px);
  background-size: auto, auto, 40px 40px;
}
.hx-hero .hx-wrap { padding: clamp(38px, 6vw, 76px) clamp(16px,4vw,36px) clamp(32px, 5vw, 60px); }
.hx-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 4vw, 52px); align-items: center; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--hx-accent); border: 1px solid rgba(224,164,58,.5); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
body[dir="rtl"] .hx-eyebrow { letter-spacing: normal; }
.hx-hero h1 { color: #fff; }
.hx-hero h1 .hx-hl { color: var(--hx-accent); font-style: italic; }
.hx-lede { font-size: 1.12rem; color: #c9c8e6; max-width: 52ch; }
.hx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hx-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .84rem; color: #b9b8dc; }
.hx-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hx-trust svg { color: var(--hx-accent); }

/* balance widget (glass on dark) */
.hx-balance { background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.16); border-radius: var(--hx-radius-lg); padding: 24px; box-shadow: var(--hx-shadow); }
.hx-balance h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
.hx-bal-sub { font-size: .86rem; color: #bcbbdf; margin: 0 0 16px; }
.hx-bal-row { display: flex; gap: 10px; }
.hx-bal-row .hx-field { flex: 1; }
.hx-bal-row label { color: #fff; }
.hx-bal-result { display: none; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(224,164,58,.14); border: 1px solid rgba(224,164,58,.4); }
.hx-bal-result.hx-show { display: block; }
.hx-bal-result span { color: #d9d8f2; }
.hx-bal-result .hx-amt-val { font-family: var(--hx-serif); font-size: 2.1rem; color: #fff; font-weight: 700; }
.hx-bal-result small { display: block; color: #bcbbdf; font-size: .82rem; }
.hx-bal-steps { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.14); counter-reset: s; }
.hx-bal-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: .92rem; color: #c9c8e6; }
.hx-bal-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--hx-accent); border: 1px solid var(--hx-accent); display: grid; place-items: center; font-weight: 800; font-size: .78rem; }

/* sections */
.hx-sec { padding: clamp(38px, 6vw, 74px) 0; position: relative; }
.hx-sec--tint { background: var(--hx-paper-2); border-top: 1px solid var(--hx-border); border-bottom: 1px solid var(--hx-border); }
.hx-sec--deep { background: var(--hx-deep); color: #e9e8fb; }
.hx-sec--deep h2 { color: #fff; }
.hx-sec-head { max-width: 62ch; margin-bottom: 30px; }
.hx-kick { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--hx-accent-ink); margin: 0 0 8px; }
body[dir="rtl"] .hx-kick { letter-spacing: normal; }
.hx-sec--deep .hx-kick { color: var(--hx-accent); }

/* steps */
.hx-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.hx-step { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: var(--hx-radius); padding: 24px; box-shadow: var(--hx-shadow-sm); position: relative; overflow: hidden; }
.hx-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hx-accent); }
body[dir="rtl"] .hx-step::before { left: auto; right: 0; }
.hx-step .hx-stnum { font-family: var(--hx-serif); font-size: 2.1rem; color: var(--hx-primary); line-height: 1; }
.hx-step h3 { margin: 8px 0 6px; }
.hx-step p { margin: 0; color: var(--hx-ink-2); font-size: .95rem; }

/* amount chips */
.hx-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62px; min-width: 110px; padding: 10px 18px; border-radius: 12px; background: var(--hx-surface); border: 2px solid var(--hx-border); text-decoration: none; color: var(--hx-ink); box-shadow: var(--hx-shadow-sm); transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.hx-chip:hover { transform: translateY(-3px); background: var(--hx-primary); color: #fff; border-color: var(--hx-primary); text-decoration: none; }
.hx-chip:hover span { color: rgba(255,255,255,.85); }
.hx-chip b { font-family: var(--hx-serif); font-size: 1.4rem; }
.hx-chip span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hx-ink-2); }

/* feature cards */
.hx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hx-fcard { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: var(--hx-radius); padding: 24px; box-shadow: var(--hx-shadow-sm); }
.hx-fcard .hx-ficon { width: 48px; height: 48px; border-radius: 12px; background: var(--hx-primary-soft); display: grid; place-items: center; color: var(--hx-primary-ink); margin-bottom: 14px; }
.hx-fcard h3 { margin: 0 0 6px; }
.hx-fcard p { margin: 0; color: var(--hx-ink-2); font-size: .95rem; }

/* prose */
.hx-prose { max-width: 72ch; }
.hx-prose h2 { margin-top: 1.5em; }
.hx-prose ul, .hx-prose ol { padding-inline-start: 22px; }
.hx-prose li { margin-bottom: .5em; }
.hx-callout { border-inline-start: 4px solid var(--hx-accent); background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: 12px; padding: 16px 20px; margin: 22px 0; }

/* band */
.hx-band .hx-inner { background: var(--hx-deep); color: #fff; border-radius: var(--hx-radius-lg); padding: clamp(28px,5vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; box-shadow: var(--hx-shadow); position: relative; overflow: hidden;
  background-image: radial-gradient(60% 120% at 90% 10%, rgba(75,63,214,.55), transparent 60%); }
.hx-band h2 { color: #fff; margin: 0 0 6px; }
.hx-band p { color: #c9c8e6; margin: 0; max-width: 46ch; }

/* forms */
.hx-form { display: grid; gap: 20px; }
.hx-field { display: grid; gap: 7px; }
.hx-field label { font-weight: 700; font-size: .92rem; }
.hx-field .hx-hint { font-size: .78rem; color: var(--hx-ink-2); }
.hx-input, .hx-select { font: inherit; font-family: var(--hx-sans); font-size: 1rem; padding: 13px 15px; min-height: 52px; border: 2px solid var(--hx-line); border-radius: 10px; background: var(--hx-surface); color: var(--hx-ink); width: 100%; box-shadow: var(--hx-shadow-in); }
body[dir="rtl"] .hx-input, body[dir="rtl"] .hx-select { font-family: var(--hx-ar); }
.hx-input:focus, .hx-select:focus { outline: 3px solid var(--hx-primary); outline-offset: 1px; border-color: var(--hx-primary); }
.hx-input.hx-invalid, .hx-select.hx-invalid { border-color: #c0392b; background: #fdf3f2; }
.hx-err { color: #c0392b; font-size: .8rem; font-weight: 700; min-height: 1em; }
.hx-bal-row .hx-input { background: rgba(255,255,255,.95); }
.hx-input-wrap { position: relative; }
.hx-input-suffix { position: absolute; inset-inline-end: 15px; top: 50%; transform: translateY(-50%); color: var(--hx-ink-2); font-weight: 700; pointer-events: none; }
.hx-input[inputmode="numeric"], .hx-input[inputmode="decimal"], .hx-input[type="email"] { direction: ltr; text-align: start; }
body[dir="rtl"] .hx-input[inputmode="numeric"], body[dir="rtl"] .hx-input[inputmode="decimal"], body[dir="rtl"] .hx-input[type="email"] { text-align: right; }

.hx-amounts { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-amount { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; min-width: 100px; padding: 8px 16px; border: 2px solid var(--hx-line); border-radius: 12px; background: var(--hx-surface); cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.hx-amount input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hx-amount b { font-family: var(--hx-serif); font-size: 1.35rem; }
.hx-amount span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hx-ink-2); }
.hx-amount.is-on, .hx-amount:has(input:checked) { background: var(--hx-primary); border-color: var(--hx-primary); color: #fff; }
.hx-amount.is-on span, .hx-amount:has(input:checked) span { color: rgba(255,255,255,.85); }

.hx-summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 2px dashed var(--hx-border); border-radius: 12px; background: var(--hx-paper-2); }
.hx-summary .hx-total { font-family: var(--hx-serif); font-size: 1.7rem; color: var(--hx-primary-ink); font-weight: 700; }

.hx-form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.hx-form-card { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: var(--hx-radius-lg); box-shadow: var(--hx-shadow); padding: clamp(20px, 3vw, 34px); }
.hx-aside-card { background: var(--hx-paper-2); border: 1px solid var(--hx-border); border-radius: var(--hx-radius); padding: 22px; }
.hx-aside-card h3 { margin-top: 0; }
.hx-aside-card ul { padding-inline-start: 18px; margin: 0; }
.hx-aside-card li { margin-bottom: 9px; font-size: .92rem; }

/* faq */
.hx-faq details { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: var(--hx-radius); margin-bottom: 12px; box-shadow: var(--hx-shadow-sm); }
.hx-faq summary { cursor: pointer; list-style: none; padding: 17px 46px 17px 20px; font-weight: 700; position: relative; font-family: var(--hx-serif); }
body[dir="rtl"] .hx-faq summary { padding: 17px 20px 17px 46px; font-family: var(--hx-ar); }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 13px; font-size: 1.4rem; color: var(--hx-primary); }
.hx-faq details[open] summary::after { content: "\2212"; }
.hx-faq .hx-faq-a { padding: 0 20px 18px; color: var(--hx-ink-2); }
.hx-faq .hx-faq-a p { margin: 0; }

/* page head */
.hx-phead { padding: clamp(26px, 5vw, 52px) 0 clamp(16px, 3vw, 28px); background: var(--hx-deep); color: #fff; }
.hx-phead h1 { color: #fff; }
.hx-phead .hx-kick { color: var(--hx-accent); }
.hx-crumb { font-size: .78rem; color: #b9b8dc; margin: 0 0 12px; }
.hx-crumb a { color: #b9b8dc; }
.hx-phead time, .hx-phead p { color: #c9c8e6; }

/* contact grid */
.hx-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }

/* footer (1 column, centered) */
.hx-foot { background: var(--hx-deep); color: #b6b5d6; text-align: center; }
.hx-foot .hx-wrap { padding-top: 48px; padding-bottom: 26px; }
.hx-foot-logo b { font-family: var(--hx-serif); font-size: 1.5rem; color: #fff; }
.hx-foot-logo b i { color: var(--hx-accent); font-style: italic; }
.hx-foot-blurb { font-size: .92rem; max-width: 56ch; margin: 14px auto; }
.hx-foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 18px 0; }
.hx-foot-links a { color: #cbcae8; font-size: .9rem; text-decoration: none; }
.hx-foot-links a:hover { color: #fff; text-decoration: underline; }
.hx-foot address { font-style: normal; font-size: .86rem; line-height: 1.7; color: #b6b5d6; }
.hx-cards-note { display: inline-flex; gap: 8px; margin-top: 12px; align-items: center; font-size: .8rem; color: #9695bd; }
.hx-cards-note svg { color: #cbcae8; }
.hx-foot-bar { border-top: 1px solid #2a2b4d; margin-top: 26px; padding-top: 18px; display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; font-size: .8rem; }

/* cookie banner */
.hx-cookie { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 80; max-width: 680px; margin: 0 auto; background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: 14px; box-shadow: var(--hx-shadow); padding: 16px 18px; display: none; gap: 14px; align-items: center; flex-wrap: wrap; }
.hx-cookie.hx-show { display: flex; }
.hx-cookie p { margin: 0; font-size: .86rem; flex: 1 1 260px; }

/* scroll top + progress */
.hx-top { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 70; width: 48px; height: 48px; border-radius: 12px 12px 12px 4px; border: 0; background: var(--hx-primary); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease, transform .15s ease; box-shadow: var(--hx-shadow-sm); }
.hx-top.hx-show { opacity: 1; visibility: visible; }
.hx-top:hover { transform: translateY(-3px); }
.hx-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: var(--hx-accent); z-index: 100; transition: width .1s linear; }

/* reveal */
.hx-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.hx-reveal.hx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hx-reveal { opacity: 1; transform: none; transition: none; } .hx-head { transition: none; } }

/* thanks modal (noop dead-end) */
.hx-modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(20,21,43,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; }
.hx-modal-back.hx-show { display: flex; }
.hx-modal { background: var(--hx-surface); border: 1px solid var(--hx-border); border-radius: 16px; box-shadow: var(--hx-shadow); max-width: 460px; width: 100%; padding: 30px; text-align: center; }
.hx-modal .hx-modal-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--hx-primary-soft); border: 2px solid var(--hx-primary); display: grid; place-items: center; color: var(--hx-primary-ink); }
.hx-modal h2 { margin: 0 0 8px; }
.hx-modal p { color: var(--hx-ink-2); margin: 0 0 20px; }

.hx-noscript { background: var(--hx-accent); color: var(--hx-ink); text-align: center; padding: 10px; font-size: .85rem; font-weight: 600; }

/* responsive */
@media (max-width: 900px) {
  .hx-hero-grid { grid-template-columns: 1fr; }
  .hx-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hx-nav-l { display: none; }
  .hx-head .hx-wrap { grid-template-columns: auto 1fr auto; }
  .hx-logo { justify-self: start; }
  .hx-burger { display: inline-flex; }
  .hx-head-cta { display: none; }
}
@media (max-width: 560px) {
  :root { --hx-fs-root: 17px; }
  .hx-band .hx-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .hx-btn { width: 100%; justify-content: center; }
  .hx-hero-cta .hx-btn { width: 100%; }
}
