/* ============================================================
   Opvion — Personal Features page, page-specific redesign.
   Scoped under .pf-page so its own palette/resets never leak
   onto the shared nav/footer (styles.css) or other pages —
   features-business.html reuses classnames like .feature-block
   that must stay untouched.
   ============================================================ */

.pf-page {
  --bg: #080b13;
  --card-bg-1: #1b2140;
  --card-bg-2: #0e1226;
  --panel: #10141f;
  --panel-2: #151b2b;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f7f9fc;
  --text-2: #98a2b9;
  --text-3: #5f6982;
  --blue: #4f8dff;
  --blue-soft: rgba(79,141,255,0.15);
  --green: #34d399;
  --green-soft: rgba(52,211,153,0.15);
  --amber: #f5a623;
  --amber-soft: rgba(245,166,35,0.16);
  --red: #f3665f;

  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(79,141,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 4%, rgba(139,124,246,0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  padding: 76px 0 120px;
}

@media (prefers-reduced-motion: reduce) {
  .pf-page * { animation: none !important; transition: none !important; }
}

/* Matches .container / .nav-inner exactly so content edges line up with the logo and Get Early Access button. */
.pf-page .wrap { width: 100%; max-width: clamp(1280px, 88vw, 1840px); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.pf-page .eyebrow {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
}
.pf-page .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.pf-page h1 { font-size: clamp(32px,4.6vw,54px); line-height: 1.06; letter-spacing: -.022em; font-weight: 700; max-width: 760px; margin-top: 32px; margin-bottom: 16px; }
.pf-page .lede { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 520px; margin-bottom: 40px; }

/* ---------- carousel ---------- */
.pf-page .shell { position: relative; }
.pf-page .shell-nav { position: absolute; top: -70px; right: 0; display: flex; gap: 10px; }
.pf-page .shell-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--panel-2); color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, transform .15s;
}
.pf-page .shell-nav button:hover { background: #1d2536; }
.pf-page .shell-nav button:active { transform: scale(.94); }
.pf-page .shell-nav svg { width: 16px; height: 16px; }

.pf-page .rail {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 4px 4px 26px; margin: 0 -4px; scrollbar-width: none;
  cursor: grab;
}
.pf-page .rail:active { cursor: grabbing; }
.pf-page .rail::-webkit-scrollbar { display: none; }

.pf-page .card {
  flex: 0 0 500px; height: 730px;
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(165deg,var(--card-bg-1),var(--card-bg-2));
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.pf-page .card:hover, .pf-page .card:focus-visible {
  transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.7);
}
.pf-page .card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pf-page .card .art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.pf-page .card .card-scene {
  position: absolute; top: 210px; left: 50%; margin: 0 0 0 -280px;
  width: 560px; max-width: none;
  transform: scale(.7);
  transform-origin: top center;
}
.pf-page .card .wealth-scene.card-scene { top: 220px; transform: scale(.72); }
.pf-page .card .spend-scene.card-scene { top: 175px; transform: scale(.62); }
.pf-page .card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(10,13,26,.88) 0%,rgba(10,13,26,.45) 26%,rgba(10,13,26,0) 46%);
}
.pf-page .card .copy { position: relative; padding: 38px 38px 0; }
.pf-page .card .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.pf-page .card h3 { font-size: 27px; line-height: 1.25; letter-spacing: -.012em; font-weight: 700; }
.pf-page .card .go {
  position: absolute; left: 38px; bottom: 30px;
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #cdd6e6;
  opacity: .75; transition: opacity .2s, gap .2s;
}
.pf-page .card:hover .go { opacity: 1; gap: 12px; }
.pf-page .card .go svg { width: 16px; height: 16px; }

/* Cards 1–5: exact source screenshots, filling the card edge-to-edge */
.pf-page .card.card-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

.pf-page .dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.pf-page .dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); border: none; padding: 0; cursor: pointer; transition: .2s; }
.pf-page .dots button.on { background: var(--blue); transform: scale(1.35); }

/* ---------- detail sections ---------- */
.pf-page .sections { margin-top: 110px; display: flex; flex-direction: column; gap: 120px; }
.pf-page .section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  scroll-margin-top: 40px;
}
.pf-page .section.flip .figure { order: 2; }

.pf-page .figure {
  border-radius: 22px; overflow: hidden; position: relative;
  min-height: 580px;
  background: linear-gradient(165deg,#1a2140,#0d1122);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.pf-page .figure.figure-photo { padding: 0; }
/* The figure is a centring flexbox, so a percentage height on the image has
   nothing to resolve against — absolute positioning makes it fill the tile. */
.pf-page .figure.figure-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

.pf-page .content h2 { font-size: clamp(30px,3.9vw,46px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin-bottom: 28px; }
.pf-page .content .intro { color: var(--text-2); font-size: 18px; line-height: 1.75; margin-bottom: 34px; max-width: 480px; }
.pf-page .bullets { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 38px; }
.pf-page .bullets li { position: relative; padding-left: 24px; font-size: 17.5px; line-height: 1.6; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.pf-page .bullets li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.pf-page .pf-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.pf-page .pf-tag.free { background: rgba(255,255,255,.08); color: #a7afc2; }
.pf-page .pf-tag.basic { background: var(--green-soft); color: var(--green); }
.pf-page .pf-tag.pro { background: var(--blue-soft); color: var(--blue); }
.pf-page .pf-tag.soon { background: var(--amber-soft); color: var(--amber); }
.pf-page .pf-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff; font-size: 16px; font-weight: 600;
  padding: 15px 27px; border-radius: 999px; text-decoration: none;
  transition: transform .15s, filter .15s;
}
.pf-page .pf-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* mini UI bits inside figures */
.pf-page .nw { display: flex; align-items: center; gap: 26px; }
.pf-page .ring { width: 152px; height: 152px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--blue) 0 78%,rgba(255,255,255,.08) 78% 100%); display: flex; align-items: center; justify-content: center; }
.pf-page .ring i { width: 118px; height: 118px; border-radius: 50%; background: #101526; display: flex; flex-direction: column; align-items: center; justify-content: center; font-style: normal; text-align: center; }
.pf-page .ring .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.pf-page .ring .val { font-size: 21px; font-weight: 700; }
.pf-page .ring .dlt { font-size: 12px; font-weight: 600; color: var(--green); }
.pf-page .cat { display: flex; align-items: center; justify-content: space-between; font-size: 16px; padding: 10px 0; }
.pf-page .cat .l { display: flex; align-items: center; gap: 11px; }
.pf-page .sw { width: 11px; height: 11px; border-radius: 3px; }
.pf-page .cat .a { color: var(--text-2); font-variant-numeric: tabular-nums; }

.pf-page .pf-head { display: flex; align-items: baseline; gap: 11px; margin-bottom: 14px; }
.pf-page .pf-head .amt { font-size: 28px; font-weight: 700; }
.pf-page .pf-head .chg { font-size: 16px; font-weight: 600; color: var(--green); }
.pf-page .tk { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; padding: 12px 0; border-top: 1px solid var(--border); }
.pf-page .tk .l { display: flex; align-items: center; gap: 11px; }
.pf-page .sym { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.09); border-radius: 6px; padding: 4px 7px; }
.pf-page .nm { color: var(--text-2); }
.pf-page .up { color: var(--green); font-weight: 600; }
.pf-page .dn { color: var(--red); font-weight: 600; }

/* ---------- connectivity: linked-accounts card + base ---------- */
.pf-page .conn-scene { position: relative; width: 100%; max-width: 560px; margin: 0 auto; perspective: 1000px; }
.pf-page .conn-card {
  transform: rotateX(4deg) rotateY(-7deg);
  transform-origin: bottom center;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.9);
}
.pf-page .conn-row { margin-bottom: 10px; }
.pf-page .conn-logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
}
.pf-page .conn-logo svg { width: 20px; height: 20px; }
.pf-page .conn-logo--revolut { background: #0a0a0a; }
.pf-page .conn-logo--db { background: #0a3d9e; }
.pf-page .conn-logo--db svg { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.pf-page .conn-logo--ib { background: #0a0a0a; }
.pf-page .conn-logo--ib svg { stroke: #f3665f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pf-page .conn-logo--ly { background: #4b3f8f; }
.pf-page .conn-logo--ly svg { fill: #fff; }
.pf-page .conn-logo--cc { background: #0b1a3a; }
.pf-page .conn-logo--cc svg { stroke: #fff; stroke-width: 1.6; }
.pf-page .conn-beams { display: block; width: 100%; height: auto; margin-top: -6px; }

/* ---------- wealth: net worth dashboard ---------- */
.pf-page .wealth-scene { display: flex; gap: 16px; align-items: flex-start; width: 100%; max-width: 560px; margin: 0 auto; }
.pf-page .wealth-icons { flex: 0 0 62px; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.pf-page .wealth-icon-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pf-page .wealth-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pf-page .wealth-icon-item span { font-size: 10px; color: var(--text-3); text-align: center; line-height: 1.25; }
.pf-page .wealth-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pf-page .wealth-card { position: relative; }
.pf-page .wealth-currencies { position: absolute; top: -14px; right: -14px; display: flex; flex-direction: column; gap: 8px; }
.pf-page .wealth-curr {
  width: 34px; height: 34px; border-radius: 50%; background: #151b2e; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.6);
}
.pf-page .wealth-lbl { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.pf-page .wealth-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pf-page .wealth-big { font-size: 32px; font-weight: 700; }
.pf-page .wealth-big small { font-size: 18px; font-weight: 600; color: var(--text-2); }
.pf-page .wealth-chg { font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 4px 10px; }
.pf-page .wealth-chart { display: block; width: 100%; height: auto; margin-bottom: 14px; }
.pf-page .wealth-tabs { display: flex; gap: 8px; }
.pf-page .wealth-tabs span { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 6px 12px; border-radius: 999px; }
.pf-page .wealth-tabs span.on { color: var(--text); background: rgba(255,255,255,.08); }
.pf-page .wealth-breakdown .row:last-of-type { margin-bottom: 14px; }
.pf-page .wealth-flag { font-size: 16px; }
.pf-page .wealth-more {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2);
  text-decoration: none; transition: gap .2s, color .2s;
}
.pf-page .wealth-more:hover { gap: 12px; color: var(--text); }
.pf-page .wealth-more svg { width: 15px; height: 15px; }

/* ---------- spending insights: overview + categories + AI insight ---------- */
.pf-page .spend-scene { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }
.pf-page .spend-card { padding: 22px; }
.pf-page .spend-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.pf-page .spend-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2);
  background: rgba(255,255,255,.06); border-radius: 999px; padding: 5px 11px;
}
.pf-page .spend-chip svg { width: 12px; height: 12px; }
.pf-page .spend-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.pf-page .spend-pills span {
  font-size: 11px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px 11px;
}
.pf-page .spend-pills span.on { color: var(--text); border-color: var(--blue); background: var(--blue-soft); }
.pf-page .spend-pills span.muted { color: var(--text-3); border-color: var(--border); }
.pf-page .spend-total { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.pf-page .spend-bars { display: block; width: 100%; height: auto; }

.pf-page .spend-cats-head { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.pf-page .spend-cats-body { display: flex; align-items: center; gap: 18px; }
.pf-page .spend-cat-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pf-page .spend-cat-row { display: flex; align-items: center; gap: 12px; }
.pf-page .spend-cat-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.pf-page .spend-cat-info { flex: 1; min-width: 0; }
.pf-page .spend-cat-top { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; margin-bottom: 6px; }
.pf-page .spend-cat-top span { color: var(--text); font-weight: 600; }
.pf-page .spend-cat-top b { margin-left: auto; font-weight: 700; }
.pf-page .spend-cat-top em { font-style: normal; font-weight: 700; font-size: 12px; min-width: 30px; text-align: right; }
.pf-page .spend-pie { flex: none; width: 124px; height: 124px; }

.pf-page .spend-ai { display: flex; align-items: flex-start; gap: 12px; }
.pf-page .spend-ai-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #4b3f8f; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.pf-page .spend-ai-body { flex: 1; min-width: 0; }
.pf-page .spend-ai-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.pf-page .spend-ai-text { font-size: 14.5px; line-height: 1.45; }
.pf-page .spend-ai-spark { flex: none; font-size: 15px; opacity: .8; }

/* ---------- bottom cross-links ---------- */
.pf-page .pf-more { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 130px; }
.pf-page .pf-more-card {
  border: 1px solid var(--border); border-radius: 20px; padding: 34px;
  background: linear-gradient(165deg,rgba(255,255,255,.04),rgba(255,255,255,0));
}
.pf-page .pf-more-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.pf-page .pf-more-card p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin-bottom: 20px; max-width: 40ch; }
.pf-page .pf-more-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--border-strong); padding-bottom: 3px;
  transition: gap .2s, color .2s;
}
.pf-page .pf-more-link:hover { gap: 12px; color: var(--blue); }
.pf-page .pf-more-link svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .pf-page .section { grid-template-columns: 1fr; gap: 34px; }
  .pf-page .section.flip .figure { order: 0; }
  .pf-page .figure { min-height: 420px; }
  .pf-page .sections { gap: 90px; margin-top: 80px; }
  .pf-page .pf-more { grid-template-columns: 1fr; margin-top: 90px; }
}
@media (max-width: 560px) {
  .pf-page { padding: 48px 0 80px; }
  .pf-page .wrap { padding: 0 16px; }
  .pf-page .shell-nav { display: none; }
  .pf-page .card { flex-basis: 82vw; height: 540px; }
  .pf-page .card .copy { padding: 26px 26px 0; }
  .pf-page .card .kicker { font-size: 11px; margin-bottom: 10px; }
  .pf-page .card h3 { font-size: 20px; }
  .pf-page .card .go { left: 26px; bottom: 22px; font-size: 13px; }
  .pf-page .figure { min-height: 360px; padding: 16px; }
  .pf-page .card .card-scene { top: 150px; transform: scale(.5); }
  .pf-page .card .wealth-scene.card-scene { top: 155px; transform: scale(.46); }
  .pf-page .card .spend-scene.card-scene { top: 130px; transform: scale(.4); }
}

