/* =====================================================================
   PROTIDEFX HOME PAGE  (view: core/resources/views/custom/templates/basic/home*)

   Colors: ONLY the shared tokens from assets/custom/theme/tokens.css.
     --pfx-primary  = Admin → General Settings → Site Base Color
     --pfx-brand-dark / --pfx-on-brand / --pfx-success / --pfx-warning
     + the neutral tokens (bg, surface, section, border, text…)
   Soft fills are the same tokens with alpha. Light/dark mode follows
   <html data-pfx-theme>. Every selector is scoped under .pfx-home (or
   prefixed .ph-) so the rest of the site is untouched.

   Breakpoints: ≥1100 desktop · 768–1099 tablet · <768 mobile
   ===================================================================== */

.pfx-home {
  /* Aliases of the shared tokens (no new colors) */
  --ph-primary: hsl(var(--pfx-primary));
  --ph-primary-ink: color-mix(in srgb, hsl(var(--pfx-primary)) 72%, hsl(var(--pfx-text-strong)));
  --ph-primary-light: color-mix(in srgb, hsl(var(--pfx-primary)) 55%, hsl(var(--pfx-on-brand)));
  --ph-strong: hsl(var(--pfx-text-strong));
  --ph-text: hsl(var(--pfx-text));
  --ph-muted: hsl(var(--pfx-text-muted));
  --ph-bg: hsl(var(--pfx-bg));
  --ph-surface: hsl(var(--pfx-surface));
  --ph-section: hsl(var(--pfx-section));
  --ph-border: hsl(var(--pfx-border));
  --ph-ink: hsl(var(--pfx-brand-dark));
  --ph-on-ink: hsl(var(--pfx-on-brand));

  --ph-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ph-display: 'Manrope', 'DM Sans', system-ui, sans-serif;
  --ph-container: 1120px;
  --ph-gutter: 24px;
  --ph-radius: 24px;
  --ph-shadow: 0 18px 40px -18px hsl(var(--pfx-brand-dark) / 0.25), 0 2px 6px hsl(var(--pfx-brand-dark) / 0.05);
  --ph-shadow-primary: 0 12px 26px -10px hsl(var(--pfx-primary) / 0.6);

  width: 100%;
  font-family: var(--ph-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ph-text);
  background: var(--ph-bg);
  overflow-x: clip;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-font-smoothing: antialiased;
}
.pfx-home *, .pfx-home *::before, .pfx-home *::after { box-sizing: border-box; }
.pfx-home :where(h1, h2, h3, p, ul, li, figure) { margin: 0; padding: 0; list-style: none; }
.pfx-home :where(p) { font-size: inherit; color: inherit; font-family: inherit; }
.pfx-home :where(a) { color: inherit; text-decoration: none; display: inline; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.pfx-home :where(a:hover) { color: inherit; }
.pfx-home :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.pfx-home img { max-width: 100%; display: block; }
.pfx-home :focus-visible { outline: 2px solid var(--ph-primary); outline-offset: 3px; border-radius: 6px; }
.pfx-home [id] { scroll-margin-top: 90px; }
html:has(.pfx-home) { scroll-behavior: smooth; }

.ph-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ph-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-i--sm { width: 15px; height: 15px; stroke-width: 2.2; }

.ph-container { width: 100%; max-width: calc(var(--ph-container) + var(--ph-gutter) * 2); margin: 0 auto; padding: 0 var(--ph-gutter); }

/* ---------- Shared type ---------- */
.ph-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ph-primary); }
.ph-eyebrow--dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ph-primary); box-shadow: 0 0 0 5px hsl(var(--pfx-primary) / 0.14); }
.ph-hero__title, .ph-h2 { font-family: var(--ph-display); font-weight: 800; color: var(--ph-strong); letter-spacing: -0.045em; }
.ph-h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.08; margin-bottom: 18px; }
.ph-accent { display: block; color: var(--ph-primary); }
.ph-lead { font-size: 17px; line-height: 1.7; color: var(--ph-muted); }
.ph-note { font-size: 13px; color: var(--ph-muted); }
.ph-head { margin-bottom: 56px; }
.ph-head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.ph-head--center .ph-lead { max-width: 600px; margin: 0 auto; }

.ph-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ph-primary); flex: none; }
.ph-dot--up { background: hsl(var(--pfx-up)); }

/* ---------- Buttons & links ---------- */
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.ph-btn--sm { height: 44px; padding: 0 22px; font-size: 14.5px; gap: 10px; }
.ph-btn--primary { background: var(--ph-primary); color: var(--ph-on-ink); box-shadow: var(--ph-shadow-primary); }
.ph-btn--primary:hover { color: var(--ph-on-ink); transform: translateY(-1px); box-shadow: 0 16px 30px -10px hsl(var(--pfx-primary) / 0.7); }
.ph-btn--outline { background: var(--ph-surface); color: var(--ph-strong); border-color: var(--ph-border); }
.ph-btn--outline:hover { color: var(--ph-primary); border-color: hsl(var(--pfx-primary) / 0.5); }
.ph-btn .ph-i { transition: transform .2s; }
.ph-btn:hover .ph-i { transform: translateX(3px); }

.ph-textlink { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ph-strong); font-size: 15px; font-weight: 700; color: var(--ph-strong); }
.ph-textlink:hover { color: var(--ph-primary); border-color: var(--ph-primary); }
.ph-textlink--primary { padding: 0; border: 0; color: var(--ph-primary); }
.ph-textlink--primary:hover { color: var(--ph-primary-ink); }

/* ---------- Sections ---------- */
.ph-section { padding: 110px 0; }
.ph-section--soft { background: hsl(var(--pfx-primary) / 0.035); }
.ph-dark { background: var(--ph-ink); color: hsl(var(--pfx-on-brand) / 0.72); }
.ph-dark .ph-h2 { color: var(--ph-on-ink); }
.ph-dark .ph-accent, .ph-dark .ph-eyebrow { color: var(--ph-primary-light); }

/* ================================ HERO ================================ */
.ph-hero { position: relative; padding: 96px 0 34px; text-align: center; overflow: hidden;
  background:
    radial-gradient(38% 46% at 6% 42%, hsl(var(--pfx-success) / 0.11), transparent 70%),
    radial-gradient(40% 52% at 98% 46%, hsl(var(--pfx-primary) / 0.16), transparent 72%),
    linear-gradient(180deg, transparent 55%, hsl(var(--pfx-primary) / 0.08));
}
.ph-hero__title { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 1.02; margin-bottom: 26px; letter-spacing: -0.05em; }
.ph-hero .ph-lead { max-width: 640px; margin: 0 auto; font-size: 18px; }
.ph-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.ph-hero__stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; margin-top: 64px; }
.ph-hero__phone { position: relative; z-index: 2; padding-bottom: 6px; }
.ph-hero__phone .ph-phone { width: 222px; transform: rotate(-2deg); }
.ph-hero__side { position: relative; width: 100%; max-width: 380px; padding-top: 70px; }
.ph-hero__side--left { justify-self: end; margin-right: -46px; padding-right: 30px; }
.ph-hero__side--right { justify-self: start; margin-left: -46px; padding-left: 30px; }

.ph-float-card { position: relative; padding: 18px 20px 20px; text-align: left; background: hsl(var(--pfx-surface) / 0.86); border: 1px solid hsl(var(--pfx-border) / 0.9); border-radius: 22px; box-shadow: var(--ph-shadow); backdrop-filter: blur(6px); }
.ph-float-card--left { transform: rotate(-3deg); }
.ph-float-card--right { transform: rotate(2.5deg); }
.ph-float-card__label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-primary); }
.ph-float-card__art { display: flex; align-items: center; justify-content: center; height: 150px; margin: 12px 0 10px; border-radius: 16px; background: linear-gradient(160deg, hsl(var(--pfx-primary) / 0.05), hsl(var(--pfx-primary) / 0.16)); }
.ph-float-card__art .ph-art { height: 120px; width: auto; }
.ph-float-card__title { font-family: var(--ph-display); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--ph-strong); }
.ph-chip-card { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; padding: 14px 18px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); border-radius: 14px; box-shadow: var(--ph-shadow); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-primary-ink); }
.ph-chip-card--left { transform: rotate(-2deg); }
.ph-hero__side .ph-chip-card { white-space: nowrap; font-size: 11px; letter-spacing: .1em; }
.ph-float-card--right { padding-left: 34px; }
.ph-float-card--left { padding-right: 34px; }
.ph-chip-card--right { transform: rotate(2deg); }

.ph-equity { position: absolute; z-index: 3; top: 92px; right: -112px; width: 176px; padding: 14px 16px; text-align: left; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); border-radius: 16px; box-shadow: var(--ph-shadow); transform: rotate(3deg); }
.ph-equity__label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-muted); }
.ph-equity__value { margin: 4px 0 2px !important; font-family: var(--ph-display); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ph-primary); }
.ph-equity__note { font-size: 12px; color: var(--ph-muted); }


/* ---------- Device frames ---------- */
.ph-phone { position: relative; width: 240px; padding: 9px; border-radius: 40px; background: var(--ph-ink); box-shadow: 0 0 0 1px hsl(var(--pfx-on-brand) / 0.08) inset, 0 0 0 4px hsl(var(--pfx-primary) / 0.18), 0 30px 60px -24px hsl(var(--pfx-brand-dark) / 0.55); }
.ph-phone img { width: 100%; height: auto; border-radius: 31px; background: hsl(var(--pfx-surface)); }
.ph-phone__notch { position: absolute; z-index: 1; top: 9px; left: 50%; width: 38%; height: 20px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: var(--ph-ink); }
.ph-phone--sm { width: 170px; padding: 7px; border-radius: 30px; }
.ph-phone--sm img { border-radius: 24px; }
.ph-phone--sm .ph-phone__notch { top: 7px; height: 14px; }

.ph-laptop { position: relative; width: 100%; }
.ph-laptop__screen { padding: 10px 10px 12px; border-radius: 18px 18px 6px 6px; background: var(--ph-ink); box-shadow: 0 0 0 1px hsl(var(--pfx-on-brand) / 0.08) inset; }
.ph-laptop__screen img { width: 100%; height: auto; border-radius: 8px; background: hsl(var(--pfx-surface)); }
.ph-laptop__base { height: 16px; margin: 0 -4%; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, hsl(var(--pfx-text-muted) / 0.45), hsl(var(--pfx-text-muted) / 0.25)); box-shadow: 0 26px 40px -16px hsl(var(--pfx-brand-dark) / 0.45); }

/* =============================== TICKER =============================== */
.ph-ticker { background: var(--ph-ink); color: var(--ph-on-ink); }
.ph-ticker__inner { display: grid; grid-template-columns: 220px 1fr; align-items: center; min-height: 92px; }
.ph-ticker__head { display: grid; grid-template-columns: auto; gap: 2px; padding-right: 20px; border-right: 1px solid hsl(var(--pfx-on-brand) / 0.14); }
.ph-ticker__head .ph-dot { margin-bottom: 4px; }
.ph-ticker__title { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ph-ticker__sub { font-size: 13px; color: hsl(var(--pfx-on-brand) / 0.65); }
.ph-ticker__list { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.ph-ticker__list::-webkit-scrollbar { display: none; }
.ph-ticker__item { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 18px 16px 18px 20px; white-space: nowrap; border-right: 1px solid hsl(var(--pfx-on-brand) / 0.14); scroll-snap-align: start; }
.ph-ticker__item:last-child { border-right: 0; }
.ph-ticker__pair { display: block; font-size: 15px; font-weight: 700; }
.ph-ticker__price { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ph-ticker__chg { display: block; grid-column: 2; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.ph-ticker__chg.is-up { color: hsl(var(--pfx-up)); }
.ph-ticker__chg.is-down { color: hsl(var(--pfx-down)); }

/* ============================== ECOSYSTEM ============================== */
.ph-eco__grid { display: grid; grid-template-columns: 1fr minmax(0, 1.75fr) 1fr; gap: 44px; align-items: start; }
.ph-eco__col { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ph-eco__icon { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; color: var(--ph-on-ink); box-shadow: var(--ph-shadow); }
.ph-eco__icon .ph-i { width: 26px; height: 26px; }
.ph-eco__icon--primary { background: var(--ph-primary); box-shadow: var(--ph-shadow-primary); }
.ph-eco__icon--ink { background: var(--ph-ink); }
.ph-eco__wire { position: absolute; top: 30px; height: 90px; border-top: 2px solid hsl(var(--pfx-primary) / 0.55); pointer-events: none; }
.ph-eco__wire::after { content: ''; position: absolute; bottom: -7px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ph-primary); background: var(--ph-bg); }
.ph-eco__wire--left { left: calc(50% + 40px); right: -34px; border-right: 2px solid hsl(var(--pfx-primary) / 0.55); border-top-right-radius: 22px; }
.ph-eco__wire--left::after { right: -7px; }
.ph-eco__wire--right { right: calc(50% + 40px); left: -34px; border-left: 2px solid hsl(var(--pfx-primary) / 0.55); border-top-left-radius: 22px; }
.ph-eco__wire--right::after { left: -7px; }
.ph-eco__title { margin: 26px 0 6px; font-family: var(--ph-display); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--ph-strong); }
.ph-eco__desc { margin-bottom: 26px !important; font-size: 15px; color: var(--ph-muted); }
.ph-pills { display: grid; gap: 14px; width: 100%; }
.ph-pills li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px; border-radius: 999px; background: hsl(var(--pfx-primary) / 0.06); border: 1px solid hsl(var(--pfx-primary) / 0.1); font-size: 15px; font-weight: 600; color: var(--ph-primary-ink); }

.ph-eco__devices { position: relative; padding: 14px 40px 30px 0; }
.ph-eco__phone.ph-phone { position: absolute; right: -6px; bottom: -14px; width: 132px; padding: 6px; border-radius: 24px; transform: rotate(12deg); }
.ph-eco__phone.ph-phone img { border-radius: 19px; }
.ph-eco__phone .ph-phone__notch { top: 6px; height: 11px; }
.ph-eco__cta { margin-top: 64px; text-align: center; }
.ph-eco__cta .ph-note { margin-top: 14px !important; }

/* =============================== MARKETS =============================== */
.ph-markets__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 56px; padding: 0 0 0 4%; }
.ph-markets__head .ph-h2 { margin-bottom: 0; }
.ph-markets__intro .ph-lead { margin-bottom: 26px !important; }
.ph-markets__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.ph-mcard { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 26px; border-radius: var(--ph-radius); overflow: hidden; border: 1px solid hsl(var(--pfx-primary) / 0.08); background: linear-gradient(150deg, hsl(var(--pfx-primary) / 0.05), hsl(var(--pfx-primary) / 0.12)); color: var(--ph-text); }
.ph-mcard:hover { color: var(--ph-text); transform: translateY(-3px); box-shadow: var(--ph-shadow); }
.ph-mcard--forex, .ph-mcard--indices { grid-column: span 2; }
.ph-mcard--metals { background: linear-gradient(150deg, hsl(var(--pfx-warning) / 0.08), hsl(var(--pfx-warning) / 0.18)); border-color: hsl(var(--pfx-warning) / 0.12); }
.ph-mcard--crypto, .ph-mcard--indices { background: linear-gradient(150deg, hsl(var(--pfx-primary) / 0.03), hsl(var(--pfx-primary) / 0.09)); }
.ph-mcard__label { position: relative; z-index: 1; display: block; padding-right: 50px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-muted); }
.ph-mcard__go { position: absolute; z-index: 2; top: 20px; right: 20px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid hsl(var(--pfx-text-muted) / 0.35); color: var(--ph-strong); }
.ph-mcard:hover .ph-mcard__go { background: var(--ph-primary); border-color: var(--ph-primary); color: var(--ph-on-ink); }
.ph-mcard__art { display: flex; align-items: center; justify-content: center; height: 120px; margin: 16px 0 14px; }
.ph-mcard__art .ph-art { height: 100%; width: auto; max-width: 100%; transition: transform .35s; }
.ph-mcard:hover .ph-art { transform: translateY(-4px) scale(1.03); }
.ph-mcard__body { display: block; margin-top: auto; }
.ph-mcard__title { display: block; font-family: var(--ph-display); font-size: 25px; font-weight: 800; letter-spacing: -0.04em; color: var(--ph-strong); line-height: 1.1; }
.ph-mcard__desc { display: block; margin-top: 10px; font-size: 15px; color: var(--ph-muted); }
.ph-mcard__symbols { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid hsl(var(--pfx-text-muted) / 0.22); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--ph-muted); }
/* wide cards: art on the right */
.ph-mcard--forex .ph-mcard__art, .ph-mcard--indices .ph-mcard__art { position: absolute; top: 50%; right: 6%; width: 44%; height: 170px; margin: 0; transform: translateY(-50%); }
.ph-mcard--forex .ph-mcard__body, .ph-mcard--indices .ph-mcard__body { max-width: 50%; }
.ph-mcard--forex .ph-mcard__title, .ph-mcard--indices .ph-mcard__title { font-size: 32px; }

/* ============================== WORKSPACE ============================== */
.ph-work__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.ph-work__head .ph-h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.ph-work__bar { display: block; width: 62px; height: 4px; margin-top: 26px; border-radius: 4px; background: var(--ph-primary); }
.ph-work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ph-tool { position: relative; display: block; padding: 26px; border-radius: 20px; background: hsl(var(--pfx-on-brand) / 0.04); border: 1px solid hsl(var(--pfx-on-brand) / 0.09); transition: background .2s, border-color .2s, transform .2s; }
.ph-tool:hover { background: hsl(var(--pfx-on-brand) / 0.07); border-color: hsl(var(--pfx-primary) / 0.45); transform: translateY(-2px); }
.ph-tool__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 32px; border-radius: 13px; background: hsl(var(--pfx-primary) / 0.22); color: var(--ph-primary-light); }
.ph-tool__num { position: absolute; top: 38px; right: 26px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: hsl(var(--pfx-on-brand) / 0.6); }
.ph-tool__title { display: block; font-family: var(--ph-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ph-on-ink); }
.ph-tool__desc { display: block; margin-top: 6px; font-size: 14.5px; color: hsl(var(--pfx-on-brand) / 0.62); }

/* =============================== SUPPORT =============================== */
.ph-support__card { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border-radius: 30px; background: var(--ph-surface); border: 1px solid hsl(var(--pfx-border) / 0.9); box-shadow: var(--ph-shadow); }
.ph-support__copy { padding: 64px 0 56px 60px; }
.ph-support__copy .ph-lead { max-width: 470px; }
.ph-support__chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.ph-chip { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--ph-border); background: var(--ph-surface); font-size: 15px; font-weight: 700; color: var(--ph-strong); }
.ph-chip .ph-i { color: var(--ph-primary); }
.ph-chip:hover { border-color: hsl(var(--pfx-primary) / 0.5); color: var(--ph-primary); }
.ph-support__more { margin-top: 30px; padding-top: 28px; border-top: 1px solid hsl(var(--pfx-border) / 0.8); max-width: 470px; }
.ph-support__more-title { font-weight: 700; color: var(--ph-strong); }
.ph-support__more-text { margin: 2px 0 18px !important; font-size: 14.5px; color: var(--ph-muted); }
.ph-support__media { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 100%; background: radial-gradient(60% 70% at 45% 40%, hsl(var(--pfx-primary) / 0.2), transparent 72%); }
.ph-support__media img { width: 100%; max-width: 560px; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.ph-bubble { position: absolute; top: 36px; right: 34px; max-width: 250px; padding: 16px 20px; border-radius: 18px 18px 18px 4px; background: var(--ph-primary); color: var(--ph-on-ink); font-family: var(--ph-display); font-size: 16px; font-weight: 800; line-height: 1.35; box-shadow: var(--ph-shadow-primary); }
.ph-bubble .ph-dot { margin-right: 10px; vertical-align: 2px; }

/* ============================== NEXT STEP ============================== */
.ph-next__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ph-ncard { position: relative; display: flex; min-height: 440px; overflow: hidden; border-radius: 30px; border: 1px solid hsl(var(--pfx-primary) / 0.1); }
.ph-ncard--web { background: linear-gradient(150deg, hsl(var(--pfx-primary) / 0.16), hsl(var(--pfx-primary) / 0.04) 70%); }
.ph-ncard--start { background: linear-gradient(150deg, hsl(var(--pfx-success) / 0.12), hsl(var(--pfx-success) / 0.03) 70%); border-color: hsl(var(--pfx-success) / 0.14); }
.ph-ncard__copy { position: relative; z-index: 2; width: 50%; padding: 48px 0 48px 44px; }
.ph-ncard__eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-primary); }
.ph-ncard__title { margin: 14px 0 12px; font-family: var(--ph-display); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--ph-strong); line-height: 1.12; }
.ph-ncard__text { margin-bottom: 28px !important; font-size: 15.5px; color: var(--ph-muted); }
.ph-ncard__media { position: absolute; inset: 0 0 0 auto; width: 50%; pointer-events: none; }
.ph-window { position: absolute; left: 10%; top: 150px; width: 150%; border-radius: 14px; overflow: hidden; background: var(--ph-ink); box-shadow: 0 30px 60px -20px hsl(var(--pfx-brand-dark) / 0.5); transform: rotate(-5deg); transform-origin: left bottom; }
.ph-window__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; color: hsl(var(--pfx-on-brand) / 0.85); font-size: 11px; font-weight: 700; }
.ph-window__bar i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--pfx-on-brand) / 0.35); }
.ph-window__bar span { margin-left: auto; }
.ph-window img { width: 100%; }
.ph-ncard__badge { position: absolute; top: 34px; right: 24px; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 20px; background: var(--ph-primary); color: var(--ph-on-ink); box-shadow: var(--ph-shadow-primary); }
.ph-ncard__badge .ph-i { width: 32px; height: 32px; }
.ph-ncard .ph-phone--tilt-r { position: absolute; top: 30px; right: 34px; transform: rotate(-8deg); }
.ph-ncard__fx { position: absolute; bottom: 40px; left: 6%; display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; background: var(--ph-primary); color: var(--ph-on-ink); font-family: var(--ph-display); font-size: 24px; font-weight: 800; font-style: italic; box-shadow: 0 0 0 8px hsl(var(--pfx-primary) / 0.18), var(--ph-shadow-primary); }
.ph-ncard__coin { position: absolute; right: 10px; bottom: 6px; width: 92px; }
.ph-ncard__coin .ph-art { width: 100%; height: auto; }

/* ================================ RISK ================================ */
.ph-risk { background: var(--ph-section); border-top: 1px solid hsl(var(--pfx-border) / 0.6); }
.ph-risk__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 26px 36px; align-items: center; padding-top: 34px; padding-bottom: 34px; }
.ph-risk__icon { width: 28px; height: 28px; color: var(--ph-primary); }
.ph-risk__title { font-weight: 700; color: var(--ph-strong); }
.ph-risk__text { margin-top: 4px !important; font-size: 14px; color: var(--ph-muted); }
.ph-risk__link { font-size: 14.5px; white-space: nowrap; }



/* ============================= SCROLL REVEAL =============================
   Hidden only when JS is running and motion is allowed; home.js adds
   .is-in. Without JS everything is visible. */
@media (prefers-reduced-motion: no-preference) {
  html.ph-js .pfx-home [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  html.ph-js .pfx-home [data-reveal].is-in { opacity: 1; transform: none; }
  html.ph-js .pfx-home .ph-mcard[data-reveal].is-in:hover { transform: translateY(-3px); }
  html.ph-js .pfx-home .ph-tool[data-reveal].is-in:hover { transform: translateY(-2px); }
}

/* ============================ ILLUSTRATIONS ============================ */
.ph-f-primary { fill: hsl(var(--pfx-primary)); }
.ph-f-gold { fill: hsl(var(--pfx-warning)); }
.ph-f-silver { fill: hsl(var(--pfx-text-muted)); }
.ph-f-ink { fill: hsl(var(--pfx-brand-dark)); }
.ph-f-card { fill: hsl(var(--pfx-surface)); }
.ph-f-up { fill: hsl(var(--pfx-up)); }
.ph-f-down { fill: hsl(var(--pfx-down)); }
.ph-s-line { stroke: hsl(var(--pfx-border)); stroke-width: 1.5; }
.ph-s-primary { stroke: hsl(var(--pfx-primary)); }
.ph-art__glyph { fill: hsl(var(--pfx-on-brand)); font-family: var(--ph-display, 'Manrope', sans-serif); font-weight: 800; }
html[data-pfx-theme="dark"] .ph-f-ink { fill: hsl(var(--pfx-surface)); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1199px) {
  .ph-eco__grid { gap: 30px; }
  .ph-equity { right: -96px; width: 160px; }
}

/* ---- Tablet: burger menu ---- */
@media (max-width: 1099px) {

  .ph-section { padding: 88px 0; }
  .ph-hero { padding-top: 76px; }
  .ph-hero__phone .ph-phone { width: 200px; }
  .ph-hero__side { padding-top: 50px; }
  .ph-float-card__art { height: 120px; }
  .ph-float-card__art .ph-art { height: 96px; }
  .ph-chip-card { padding: 12px 14px; font-size: 11px; letter-spacing: .1em; }
  .ph-equity { top: 110px; right: -70px; width: 150px; padding: 12px 14px; }
  .ph-equity__value { font-size: 20px; }

  .ph-ticker__inner { grid-template-columns: 1fr; padding-top: 16px; }
  .ph-ticker__head { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; }
  .ph-ticker__head .ph-dot { margin: 0; }
  .ph-ticker__item { padding: 14px 20px 16px 0; margin-right: 20px; }

  .ph-eco__grid { grid-template-columns: 1fr 1fr; gap: 48px 30px; }
  .ph-eco__devices { grid-column: 1 / -1; grid-row: 1; max-width: 640px; width: 100%; margin: 0 auto; }
  .ph-eco__wire { display: none; }
  .ph-eco__title { margin-top: 20px; font-size: 26px; }
  .ph-pills { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph-pills li { min-height: 46px; padding: 8px 12px; font-size: 13.5px; border-radius: 16px; }

  .ph-markets__head { padding: 0; }
  .ph-markets__grid { grid-template-columns: 1fr 1fr; }
  .ph-mcard--forex, .ph-mcard--indices { grid-column: 1 / -1; }

  .ph-work__inner { grid-template-columns: 1fr; gap: 40px; }

  .ph-support__copy { padding: 48px 0 44px 40px; }
  .ph-bubble { top: 24px; right: 20px; max-width: 200px; padding: 12px 16px; font-size: 14px; }
  .ph-support__media { align-items: stretch; }
  .ph-support__media img { height: 100%; max-width: none; object-fit: cover; object-position: 50% 20%; }

  .ph-ncard { flex-direction: column; min-height: 0; }
  .ph-ncard__copy { width: 100%; padding: 40px 36px 0; }
  .ph-ncard__media { position: relative; inset: auto; width: 100%; height: 250px; }
  .ph-window { left: 10%; top: 40px; width: 110%; }
  .ph-ncard__badge { top: auto; bottom: 120px; right: 24px; width: 60px; height: 60px; }
  .ph-ncard .ph-phone--tilt-r { top: 20px; right: 22%; }
  .ph-ncard__fx { bottom: 26px; left: 12%; width: 62px; height: 62px; font-size: 20px; }

}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .pfx-home { --ph-gutter: 18px; --ph-radius: 20px; }

  .ph-section { padding: 72px 0; }
  .ph-head { margin-bottom: 40px; }
  .ph-lead { font-size: 16px; }
  .ph-eyebrow { font-size: 11.5px; letter-spacing: .18em; }

  .ph-hero { padding: 56px 0 26px; }
  .ph-hero__title { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .ph-hero__actions { flex-direction: column; align-items: center; }
  .ph-hero__actions .ph-btn { width: 100%; max-width: 320px; }
  .ph-hero__stage { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 46px; }
  .ph-hero__phone { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 18px; }
  .ph-hero__phone .ph-phone { width: 210px; }
  .ph-hero__side, .ph-hero__side--left, .ph-hero__side--right { margin: 0; padding: 0; }
  .ph-float-card { padding: 14px; border-radius: 18px; }
  .ph-float-card--left, .ph-float-card--right, .ph-chip-card--left, .ph-chip-card--right { transform: none; }
  .ph-float-card__label { font-size: 10px; letter-spacing: .1em; }
  .ph-float-card__art { height: 92px; margin: 10px 0 8px; }
  .ph-float-card__art .ph-art { height: 74px; }
  .ph-float-card__title { font-size: 16px; }
  .ph-chip-card { flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; padding: 10px; font-size: 9.5px; text-align: center; }
  .ph-equity { top: 120px; right: -64px; width: 138px; }

  .ph-ticker__list { grid-template-columns: repeat(5, minmax(150px, 1fr)); }

  .ph-eco__grid { grid-template-columns: 1fr; gap: 44px; }
  .ph-eco__devices { padding-right: 26px; }
  .ph-eco__phone.ph-phone { width: 96px; right: 0; bottom: -18px; }
  .ph-pills li { font-size: 13px; }

  .ph-markets__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .ph-markets__grid { gap: 12px; }
  .ph-mcard { min-height: 0; padding: 18px; }
  .ph-mcard__label { font-size: 10px; letter-spacing: .1em; padding-right: 40px; }
  .ph-mcard__go { top: 12px; right: 12px; width: 34px; height: 34px; }
  .ph-mcard__art { height: 84px; margin: 12px 0 10px; }
  .ph-mcard__title { font-size: clamp(14px, 4vw, 20px); letter-spacing: -0.03em; }
  .ph-mcard__desc { font-size: 13px; }
  .ph-mcard__symbols { font-size: 10.5px; letter-spacing: .08em; }
  .ph-mcard--forex .ph-mcard__art, .ph-mcard--indices .ph-mcard__art { position: static; width: 100%; height: 110px; transform: none; margin: 14px 0 6px; justify-content: flex-end; }
  .ph-mcard--forex .ph-mcard__body, .ph-mcard--indices .ph-mcard__body { max-width: none; }
  .ph-mcard--forex .ph-mcard__title, .ph-mcard--indices .ph-mcard__title { font-size: 26px; }

  .ph-work__grid { gap: 12px; }
  .ph-tool { padding: 18px; border-radius: 16px; }
  .ph-tool__icon { width: 40px; height: 40px; margin-bottom: 22px; }
  .ph-tool__num { top: 28px; right: 18px; font-size: 12px; }
  .ph-tool__title { font-size: 16px; }
  .ph-tool__desc { font-size: 13px; }

  .ph-support__card { grid-template-columns: 1fr; border-radius: 24px; }
  .ph-support__copy { padding: 36px 24px 8px; }
  .ph-chip { height: 44px; padding: 0 14px; font-size: 14px; }
  .ph-support__media { min-height: 0; padding-top: 30px; }
  .ph-bubble { top: 14px; right: 14px; }

  .ph-next__grid { grid-template-columns: 1fr; }
  .ph-ncard { border-radius: 24px; }
  .ph-ncard__copy { padding: 32px 24px 0; }
  .ph-ncard__title { font-size: 26px; }
  .ph-ncard__media { height: 230px; }

  .ph-risk__inner { grid-template-columns: auto 1fr; align-items: start; }
  .ph-support__media img { height: auto; object-fit: initial; }
  .ph-risk__link { grid-column: 2; }

}

@media (max-width: 380px) {
  .ph-hero__phone .ph-phone { width: 190px; }
  .ph-equity { right: -40px; width: 126px; top: 140px; }
}

/* The site header (vendor .header) is position:absolute below 992px and
   overlays the page top, so the hero adds its height (61px) there. */
@media (max-width: 991px) {
  .pfx-home .ph-hero { padding-top: 137px; }
}
@media (max-width: 767px) {
  .pfx-home .ph-hero { padding-top: 112px; }
}

/* ======================= LIGHT / DARK IMAGE SWAP =======================
   Terminal screenshots exist in two versions (img/*.webp and *-dark.webp);
   only the one matching the theme is shown (hidden lazy images are not
   downloaded). */
.pfx-home .ph-img-dark { display: none; }
html[data-pfx-theme="dark"] .pfx-home .ph-img-light { display: none; }
html[data-pfx-theme="dark"] .pfx-home .ph-img-dark { display: block; }

/* Support photo in dark mode: its light studio backdrop is part of the
   photo, so it is shown as a framed picture instead of fading into the
   dark card. Replace img/support-agent.webp to change the photo. */
html[data-pfx-theme="dark"] .pfx-home .ph-support__media { align-items: stretch; padding: 22px 22px 22px 0; background: none; }
html[data-pfx-theme="dark"] .pfx-home .ph-support__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 18%; border-radius: 22px; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 767px) {
  html[data-pfx-theme="dark"] .pfx-home .ph-support__media { padding: 26px 18px 18px; }
  html[data-pfx-theme="dark"] .pfx-home .ph-support__media img { height: auto; aspect-ratio: 1 / 1; }
}
