/* FinXure — public website layout (nav, hero, sections, footer). Tokens only; prefix fxp-.
   Built from UI design/Final/public-home.html. Loaded after fx-tokens/base/components. */

body.fxp { background: var(--bg-body); }
.fxp-container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.fxp-narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

/* ---- nav ---- */
.fxp-nav { position: sticky; top: 0; z-index: 50; -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg-body) 80%, transparent); border-bottom: 1px solid var(--border); }
.fxp-nav-in { display: flex; align-items: center; gap: 2rem; height: 64px; }
.fxp-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: var(--text); }
.fxp-logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: .95rem; flex: none; }
.fxp-links { display: flex; gap: .25rem; margin-left: .5rem; }
.fxp-links a { padding: .4rem .8rem; border-radius: var(--r-element); color: var(--text-2); font-weight: 500; } white-space: nowrap;
.fxp-links a:hover { background: rgba(127,127,127,.12); color: var(--text); }
.fxp-links a.active { color: var(--text); font-weight: 700; }
.fxp-cta { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.fxp-more { display: none; position: relative; }
.fxp-more summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-element); border: 1px solid var(--border-strong); background: var(--bg-surface); cursor: pointer; }
.fxp-more summary::-webkit-details-marker { display: none; }
.fxp-more[open] summary { background: var(--bg-muted); }
.fxp-more-panel { position: absolute; right: 0; top: 44px; min-width: 210px; background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-high); padding: .4rem; display: grid; }
.fxp-more-panel a { padding: .6rem .8rem; border-radius: var(--r-element); font-weight: 600; color: var(--text); }
.fxp-more-panel a:hover { background: var(--bg-body); }

/* ---- hero ---- */
.fxp-hero { padding: 5.5rem 0 3rem; text-align: center; position: relative; overflow: hidden; }
.fxp-hero::before { content: ""; position: absolute; inset: -20% 10% auto; height: 520px; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--info) 16%, transparent), transparent 65%); filter: blur(20px); pointer-events: none; }
.fxp-hero > * { position: relative; }
.fxp-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .35rem; border-radius: var(--r-full); background: var(--bg-surface); box-shadow: var(--shadow-low); font-weight: 600; font-size: .8125rem; margin-bottom: 1.5rem; }
.fxp-pill b { background: var(--accent); color: var(--on-accent); padding: .1rem .5rem; border-radius: var(--r-full); font-size: .7rem; }
.fxp-hero h1 { max-width: 15ch; margin: 0 auto 1.25rem; }
.fxp-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--info), var(--success)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fxp-hero .fx-lead { max-width: 56ch; margin: 0 auto 2rem; }
.fxp-hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.fxp-hero-note { margin-top: 1rem; }

.fxp-preview { margin: 3.5rem auto 0; max-width: 1020px; border-radius: var(--r-page); background: var(--bg-surface); box-shadow: var(--shadow-high); padding: 14px; transform: perspective(1600px) rotateX(4deg); transform-origin: top; transition: transform .8s var(--ease); }
.fxp-preview:hover { transform: perspective(1600px) rotateX(0); }
.fxp-pv-bar { display: flex; gap: 6px; padding: 4px 8px 12px; } .fxp-pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--n-85, var(--border-strong)); }
.fxp-pv-body { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; text-align: left; background: var(--bg-body); border-radius: calc(var(--r-page) - 10px); padding: 14px; }
.fxp-pv-body .fx-card { padding: 1rem; }
.fxp-pv-big { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fxp-pv-svg { width: 100%; height: 90px; }
.fxp-area { fill: color-mix(in srgb, var(--info) 22%, transparent); } .fxp-stroke { fill: none; stroke: var(--info); stroke-width: 2.5; stroke-linecap: round; }

.fxp-trust { padding: 2.5rem 0 1rem; }
.fxp-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; color: var(--text-2); font-weight: 600; }
.fxp-trust-row span { display: inline-flex; align-items: center; gap: .5rem; }
.fxp-trust-row svg { width: 18px; height: 18px; color: var(--success); }

/* ---- sections ---- */
.fxp-block { padding: 5.5rem 0; }
.fxp-alt { background: var(--bg-surface); }
.fxp-sec-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.fxp-sec-head .fx-eyebrow { margin-bottom: .75rem; }
.fxp-sec-head p { margin-top: .9rem; }

.fxp-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.fxp-bento .fx-card { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; overflow: hidden; position: relative; }
.fxp-lg { grid-column: span 3; } .fxp-md { grid-column: span 2; }
.fxp-ico { width: 40px; height: 40px; border-radius: var(--r-element); display: grid; place-items: center; background: var(--bg-muted); color: var(--text); }
.fxp-bento p { color: var(--text-2); }
.fxp-dark { background: var(--accent) !important; color: var(--on-accent); }
.fxp-dark p { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.fxp-dark .fxp-ico { background: rgba(255,255,255,.14); color: inherit; }
.fxp-mini { margin-top: auto; padding-top: .8rem; }
.fxp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.fxp-chip { padding: .2rem .6rem; border-radius: var(--r-full); background: var(--bg-muted); font-size: .75rem; font-weight: 600; color: var(--text-2); }
.fxp-dark .fxp-chip { background: rgba(255,255,255,.14); color: inherit; }

.fxp-story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.fxp-checklist { list-style: none; padding: 0; display: grid; gap: .9rem; margin: 1.5rem 0 0; }
.fxp-checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.fxp-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--success-bg); color: var(--success-text); display: grid; place-items: center; font-size: .75rem; font-weight: 800; margin-top: 2px; }
.fxp-vault { padding: 1.5rem; }
.fxp-vrow { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.fxp-vrow:last-child { border: 0; }
.fxp-vrow .fxp-ico { width: 36px; height: 36px; }
.fxp-vrow > div:nth-child(2) { flex: 1; } .fxp-vrow b { display: block; font-weight: 600; }

.fxp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.fxp-step { padding: 1.75rem; position: relative; }
.fxp-step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 1rem; }
.fxp-step p { color: var(--text-2); margin-top: .4rem; }

.fxp-compare { max-width: 860px; margin: 0 auto; overflow: hidden; padding: 0; }
.fxp-compare table { width: 100%; border-collapse: collapse; }
.fxp-compare th, .fxp-compare td { padding: .9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
.fxp-compare th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); background: var(--bg-muted); }
.fxp-compare td:not(:first-child), .fxp-compare th:not(:first-child) { text-align: center; width: 22%; }
.fxp-compare tr:last-child td { border: 0; }
.fxp-yes { color: var(--success-text); font-weight: 800; } .fxp-no { color: var(--text-3); }

.fxp-demo { max-width: 560px; margin: 0 auto; text-align: center; padding: 2rem; }
.fxp-demo-pin { display: inline-flex; align-items: center; gap: .7rem; background: var(--bg-body); border-radius: var(--r-element); padding: .55rem 1.1rem; margin: .4rem 0 1.4rem; }
.fxp-demo-pin code { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 800; font-size: 1.1rem; letter-spacing: .3em; }

.fxp-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.fxp-faq details { background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); padding: 1.1rem 1.3rem; }
.fxp-faq summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.fxp-faq summary::-webkit-details-marker { display: none; }
.fxp-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--text-3); transition: transform .2s; }
.fxp-faq details[open] summary::after { transform: rotate(45deg); }
.fxp-faq details p { margin-top: .7rem; color: var(--text-2); }

.fxp-band { margin: 0 auto 5rem; border-radius: var(--r-page); background: var(--accent); color: var(--on-accent); padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden; }
.fxp-band::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 320px; background: radial-gradient(ellipse, color-mix(in srgb, var(--info) 50%, transparent), transparent 65%); }
.fxp-band > * { position: relative; }
.fxp-band .fx-lead { color: color-mix(in srgb, var(--on-accent) 70%, transparent); margin: .8rem auto 2rem; max-width: 50ch; }
.fxp-band .fx-btn-primary { background: var(--on-accent); color: var(--accent); }
.fxp-band .fx-btn-secondary { background: transparent; border-color: rgba(255,255,255,.35); color: inherit; }

/* ---- footer ---- */
.fxp-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; color: var(--text-2); }
.fxp-foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.fxp-foot h4 { color: var(--text); margin: 0 0 .8rem; font-size: .85rem; }
.fxp-foot a { display: block; padding: .2rem 0; } .fxp-foot a:hover { color: var(--text); }
.fxp-foot .fxp-logo { display: inline-flex; padding: 0; }
.fxp-legal { margin-top: 2.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---- generic content page (about, FAQ, legal …) ---- */
.fxp-page { padding: 3.5rem 0 5rem; }
.fxp-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 0 0 .6rem; }
.fxp-page .fx-lead { margin-bottom: 2rem; }
.fxp-prose { font-size: 1rem; line-height: 1.75; color: var(--text-2); }
.fxp-prose h2 { color: var(--text); font-size: 1.4rem; letter-spacing: -.02em; margin: 2.2rem 0 .6rem; }
.fxp-prose h3 { color: var(--text); font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.fxp-prose p, .fxp-prose ul, .fxp-prose ol { margin: 0 0 1rem; } .fxp-prose ul, .fxp-prose ol { padding-left: 1.3rem; }
.fxp-prose a { color: var(--info-text); text-decoration: underline; text-underline-offset: 2px; }

/* PWA install prompt (public) */
.fxp-install { display: none; position: fixed; left: 12px; right: 12px; bottom: 20px; z-index: 300; max-width: 520px; margin-inline: auto; background: var(--bg-card); color: var(--text); border-radius: var(--r-container); box-shadow: var(--shadow-high); padding: .9rem 1rem; align-items: center; gap: .8rem; font-size: .85rem; }
.fxp-install .fxp-ico { flex: none; }
.fxp-install b { display: block; } .fxp-install span { color: var(--text-3); font-size: .78rem; }
.fxp-install .fxp-x { background: none; border: 0; font-size: 1.4rem; color: var(--text-3); padding: 0 .3rem; }

/* seven menu items: tighten them on mid-size screens so no label wraps onto two lines */
@media (max-width: 1120px) { .fxp-nav-in { gap: 1rem; } .fxp-links { margin-left: 0; } .fxp-links a { padding: .4rem .5rem; font-size: .9rem; } }
@media (max-width: 900px) {
  .fxp-links { display: none; } .fxp-more { display: block; }
  .fxp-nav-in { gap: 1rem; }
  .fxp-cta .fx-btn-ghost { display: none; }
  .fxp-pv-body { grid-template-columns: 1fr; }
  .fxp-bento { grid-template-columns: 1fr; } .fxp-lg, .fxp-md { grid-column: auto; }
  .fxp-story, .fxp-steps, .fxp-foot { grid-template-columns: 1fr; }
  .fxp-compare th, .fxp-compare td { padding: .7rem .6rem; font-size: .8rem; }
  .fxp-compare { overflow-x: auto; }
  .fxp-compare th { font-size: .6rem; letter-spacing: .02em; padding: .6rem .3rem; overflow-wrap: normal; }
  .fxp-compare td:not(:first-child), .fxp-compare th:not(:first-child) { width: 24%; padding-inline: .3rem; }
  .fxp-preview { transform: none; }
  .fxp-block { padding: 3.5rem 0; }
  .fxp-hero { padding-top: 3.5rem; }
}

/* ---- "How to explore" card on the home page: bottom-right, small, never blocks ---- */
.fxp-tip { position: fixed; right: 20px; bottom: 20px; z-index: 200; width: min(340px, calc(100% - 24px)); background: var(--bg-card); color: var(--text); border-radius: var(--r-container); box-shadow: var(--shadow-high); padding: 1rem 2.4rem 1rem 1.1rem; animation: fxp-tip-in .35s var(--ease) both; }
.fxp-tip[hidden] { display: none; }
.fxp-tip h2 { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .45rem; }
.fxp-tip p { font-size: .84rem; line-height: 1.5; color: var(--text-2); margin: 0 0 .4rem; } .fxp-tip p b { color: var(--text); }
.fxp-tip-a { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .65rem; }
.fxp-tip-x { position: absolute; top: .45rem; right: .5rem; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--text-3); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.fxp-tip-x:hover { background: var(--bg-muted); color: var(--text); }
/* when the browser's install banner is showing, sit above it instead of on top of it */
.fxp-install[style*="flex"] ~ .fxp-tip { bottom: 100px; }
@keyframes fxp-tip-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fxp-tip { animation: none; } }
@media (max-width: 640px) { .fxp-tip { right: 12px; left: 12px; bottom: 12px; width: auto; padding: .85rem 2.3rem .85rem 1rem; } .fxp-install[style*="flex"] ~ .fxp-tip { bottom: 96px; } }

@supports not (color: color-mix(in srgb, red 50%, blue)) { .fxp-nav { background: var(--bg-body); } }
