/* styles/auth.css — login / signup / account / legal pages
   Part of the former single style.css, split by source order so the cascade is
   unchanged (loaded in sequence: tokens→base→landing→auth→portfolio→research→pages). */
/* ---------- Accounts: login / signup ---------- */
/* A single narrow card, centred, in the same calm language as the tracker. */
.auth {
  max-width: 380px;
  margin: 0 auto;
}
.auth__head {
  text-align: center;
  margin-bottom: 36px;
}
.auth__title {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 8px 0 8px;
}
.auth__subtitle {
  color: var(--ink-soft);
  font-size: 15px;
}
.auth__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

/* A labelled input. Reused by both auth pages. */
.field {
  margin-bottom: 18px;
  text-align: left;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
}
.field__hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* Full-width buttons for the auth forms. */
.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}
.btn--google {
  margin-top: 0;
  color: var(--ink);
}

/* Google's own "Sign in with Google" button (rendered by google-signin.js).
   Just centre whatever Google draws in here. */
.g-signin {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
/* The .g-signin class's display:flex would otherwise beat the UA [hidden] rule. */
.g-signin[hidden] { display: none !important; }

/* A gentle "or" divider between email and Google sign-in. */
.auth__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.auth__or::before,
.auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Feedback lines. */
.auth__error {
  color: var(--neg);
  font-size: 14px;
  margin-bottom: 14px;
  text-align: left;
}
.auth__ok {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 14px;
  text-align: left;
}
.auth__foot {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 22px;
}
.auth__foot a {
  color: var(--accent);
  text-decoration: none;
}
.auth__foot a:hover { text-decoration: underline; }

/* ---------- Register (signup) — eToro-style card over a crystallised demo ---------- */
/* The stage fills the viewport under the sticky bar; the card floats, centred,
   over a frozen (blurred + frosted) glimpse of the portfolio tracker. */
.signup-stage {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 56px;
  overflow: hidden;
  /* EXACTLY the navbar's own .navbar--onband::before gradient (the landing-hero
     green), viewport-anchored (background-attachment: fixed) — so the bar and the
     field are two windows onto ONE continuous gradient and line up pixel-for-pixel
     under the bar, with no seam. (Identical to .pe-stage, which is seamless for the
     same reason. A different gradient here was what caused the abrupt band.) */
  background-color: #4e6157;
  background-image:
    radial-gradient(125% 95% at 50% -6%, rgba(252, 221, 9, 0.18) 0%, rgba(252, 221, 9, 0) 50%),
    radial-gradient(150% 130% at 50% -14%, #6d8579 0%, #4e6157 47%, #384740 100%);
  background-attachment: fixed;
}

/* The crystallised portfolio behind the card — now frozen under the green field. */
.signup-frost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: blur(6px) saturate(0.9);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  /* Dissolve the demo's edges into the green field — no hard blurred rectangle.
     A radial vignette softens the sides/bottom; an extra TOP linear fade
     (intersected) melts the frost's top edge into the field so the panel + its
     sheen dissolve in gently BELOW the navbar instead of starting abruptly right
     under it (the seam the bar seemed to have). Same trick as .pe-frost. */
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 26%),
    radial-gradient(120% 96% at 50% 46%, #000 40%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 26%),
    radial-gradient(120% 96% at 50% 46%, #000 40%, transparent 92%);
  mask-composite: intersect;
}
.signup-frost::after {           /* green sheen that "freezes" the demo into the field */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -6%, rgba(252,221,9,0.12), transparent 55%),
    linear-gradient(180deg, rgba(78,97,87,0.42) 0%, rgba(56,71,64,0.82) 100%);
}
.frost-panel {
  width: min(780px, 94vw);
  /* No border / shadow — those drew the hard rectangle. The card floats as a
     soft translucent wash and its edges fade out via the parent's mask. */
  background: rgba(255,255,255,0.45);
  border-radius: 26px;
  padding: 30px 36px 26px;
}
.frost-eyebrow { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em; }
.frost-value  { font-size: 44px; font-weight: 300; letter-spacing: 0.01em; margin-top: 4px; }
.frost-cents  { color: var(--ink-soft); font-size: 26px; }
.frost-change { color: var(--accent); font-size: 14px; margin-top: 2px; }
.frost-ranges { display: flex; gap: 10px; margin: 20px 0 6px; }
.frost-ranges span {
  font-size: 12px; color: var(--ink-soft);
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.frost-ranges .is-on { color: var(--accent); border-color: var(--line); background: var(--white); }
.frost-chart { display: block; width: 100%; height: 200px; }
.frost-holds { margin-top: 14px; border-top: 1px solid var(--line); }
.frost-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.frost-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.frost-name { flex: 1; font-size: 15px; color: var(--ink); }
.frost-amt  { font-size: 15px; color: var(--ink); }
.frost-pct  { font-size: 13px; width: 66px; text-align: right; }
.frost-pct.up { color: var(--accent); }
.frost-pct.dn { color: var(--neg); }

/* The floating frosted-glass sign-up card. */
.signup-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 22px;
  box-shadow: 0 40px 90px -28px rgba(10,16,13,0.6);
  padding: 34px 32px 28px;
  text-align: center;
}
.signup-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
}

/* Social sign-up buttons (Google / Apple / Microsoft) — uniform pills. */
.signup-social { display: block; }
.sbtn {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* icon + label sit left, so icons line up in a column */
  gap: 12px;
  width: 100%;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}
.sbtn + .sbtn { margin-top: 10px; }
/* .sbtn's display:flex would otherwise beat the UA [hidden] rule (as with .g-signin). */
.sbtn[hidden] { display: none !important; }

/* Google overlay: the real (transparent) Google button sits exactly on top of
   our styled pill, so the user sees our design but the click hits Google's own
   button. See google-signin.js. */
.sbtn-wrap { position: relative; }
.sbtn-wrap + .sbtn { margin-top: 10px; }   /* keep spacing when the pill is wrapped */
.sbtn-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  min-height: 0;                            /* override .g-signin's 44px */
  cursor: pointer;
}
/* Hover: a senyera-gold outline (was a muted sage-grey line). */
.sbtn:hover { border-color: var(--gold); box-shadow: 0 4px 14px -8px rgba(24,34,32,0.45); }
.sbtn:active { transform: translateY(1px); }
/* Fixed-width icon cell → every logo occupies the same box and the labels all
   start at the same x (icons aligned vertically down the column). */
.sbtn__icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sbtn__icon svg { display: block; }

/* "or" divider inside the card. */
.signup-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.signup-or::before, .signup-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* In-box placeholders (labels moved inside the fields — one less thing to read). */
.signup-card .field { margin-bottom: 12px; }
.signup-card .field input { padding: 13px 16px; }
.signup-card .field input::placeholder { color: var(--ink-soft); opacity: 1; }

/* Create account — one calm, confident accent: the brand's sage.
   White text, a hair heavier, a soft lift. Steve-Jobs restraint: a single hue. */
/* Create account — one calm, confident accent: the brand's sage. */
.signup-card .btn--primary {
  margin-top: 6px;
  font-weight: 600;
  box-shadow: 0 16px 34px -16px rgba(20, 29, 25, 0.55);
}
.signup-card .btn--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.signup-foot {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 20px;
}
.signup-foot a { color: var(--accent); text-decoration: none; }
.signup-foot a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .signup-frost { opacity: 0.4; }
  .frost-value { font-size: 36px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Empty-portfolio state (app.html) — an all-green field (the Register page's)
   with a compact, uniformly-blurred sample portfolio behind: the landing-style
   combo (a big value chart + the holdings card floating over it). The landing
   hero title + "Open my portfolio →" pill sit centred over it, and the broker
   logos show just below on the SAME green (body goes green while empty). The
   add-account card lives in its modal (#dropOverlay), opened by the CTA.
   ══════════════════════════════════════════════════════════════════════════ */
/* Whole page turns green while the empty state shows (set by app.js), so the
   broker strip + footer below the field sit on green too — no grey band. */
/* Paint the gradient on the ROOT so it covers the ENTIRE canvas (the body box is
   shorter than the scrollable content, so a body-only background gets clipped and
   leaves a seam below it). The root's background always fills the whole page +
   viewport, viewport-anchored, so the green is one uninterrupted field — no line
   anywhere below the cards. Body carries the identical gradient as a fallback. */
html:has(body.is-empty-portfolio),
body.is-empty-portfolio {
  background-color: #4e6157;
  background-image:
    radial-gradient(125% 95% at 50% -6%, rgba(252, 221, 9, 0.18) 0%, rgba(252, 221, 9, 0) 50%),
    radial-gradient(150% 130% at 50% -14%, #6d8579 0%, #4e6157 47%, #384740 100%);
  background-attachment: fixed;
}

.pe-stage {
  position: relative;
  overflow: hidden;
  /* A little more top room so the top cards clear the bar, and a trimmed bottom
     so the long frost taper melts straight into the logo strip below. */
  padding: 46px 20px 6px;
  /* The EXACT landing-hero green, viewport-anchored (background-attachment: fixed),
     identical to the navbar's own .navbar--onband::before gradient — so the bar,
     the field AND the logo strip below are one continuous green that matches the
     page and the bar at every scroll position. */
  background-color: #4e6157;
  background-image:
    radial-gradient(125% 95% at 50% -6%, rgba(252, 221, 9, 0.18) 0%, rgba(252, 221, 9, 0) 50%),
    radial-gradient(150% 130% at 50% -14%, #6d8579 0%, #4e6157 47%, #384740 100%);
  background-attachment: fixed;
}
.pe-stage[hidden] { display: none; }

/* The blurred sample portfolio behind the invitation — in normal flow so it
   gives the field its height and the logos sit just below. Uniform blur, like
   the Register page (no centre scrim). A getquin-style 2×2 of views tucked into
   the FOUR CORNERS, leaving the centre open (green) for the title. Decorative. */
.pe-frost {
  position: relative; z-index: 0;
  display: flex; justify-content: center;
  pointer-events: none; user-select: none;
  /* The frost is now just the HOST for the darkness veil (::after) and the centred
     collage. The blur + the edge feather live on .pe-collage instead (see below),
     so the fade happens AROUND THE CARDS — melting their outer borders into the
     field — rather than out in the empty green margins, which left the cards as
     four hard-edged white boxes. */
}
/* The green tint veil that dims the collage so the headline + gold pill stay
   legible on top — a soft sage-to-deep-green radial, strongest through the middle
   third (behind the title) and easing off toward the corners so the outer card
   detail keeps a little life. Rendered ABOVE the cards (they're .pe-frost's real
   children; ::after paints last) and inherits the frost's blur + edge masks, so
   it melts into the field exactly like the cards do. Pure palette greens — no
   grey — which is what turns "muddy JPEG" into "frosted glass". */
.pe-frost::after {
  content: "";
  position: absolute; inset: 0; z-index: 5;
  background:
    radial-gradient(125% 92% at 50% 44%,
      rgba(42, 54, 48, 0.62) 0%,
      rgba(52, 66, 59, 0.44) 40%,
      rgba(74, 92, 82, 0.20) 72%,
      rgba(78, 97, 87, 0) 100%);
}

/* ── The CONNECT-SCREEN backdrop (the 3-option card only) ──
   The EXACT same frosted glimpse as the Log in / Register page (.signup-frost):
   one blurred .frost-panel, heavily blurred under a green veil. In normal flow (so
   it gives the green field its height like .pe-frost does), but HIDDEN by default —
   the empty page keeps its 2×2 collage (.pe-frost). The rule below swaps them: when
   the 3-option card (#ocCard) is open, the collage hides and this panel shows. Values
   copied verbatim from .signup-frost / .signup-frost::after. */
.pe-authfrost {
  display: none;                 /* shown only on the Connect screen (see swap below) */
  position: relative; z-index: 0;
  align-items: center; justify-content: center;
  pointer-events: none; user-select: none;
  filter: blur(6px) saturate(0.9);
  opacity: 0.32;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 26%),
    radial-gradient(120% 96% at 50% 46%, #000 40%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 26%),
    radial-gradient(120% 96% at 50% 46%, #000 40%, transparent 92%);
  mask-composite: intersect;
}
.pe-authfrost::after {           /* green sheen that "freezes" the demo into the field */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -6%, rgba(252,221,9,0.12), transparent 55%),
    linear-gradient(180deg, rgba(78,97,87,0.42) 0%, rgba(56,71,64,0.82) 100%);
}
/* The swap — driven purely by whether the Connect card is open (#ocCard not hidden),
   the same :has() approach the page already uses for body.is-empty-portfolio. */
#emptyState:has(#ocCard:not([hidden])) .pe-frost { display: none; }
#emptyState:has(#ocCard:not([hidden])) .pe-authfrost { display: flex; }
/* A centred 2×2 of the tracker's views, at the Register page's width. The
   invitation (.pe-cta) floats over the whole grid. */
.pe-collage {
  position: relative;
  width: min(720px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  /* The frosted look + the edge dissolve now live HERE, on the card block itself.
     A gentle blur pushes the sample behind the title; a single soft radial vignette
     mask feathers ALL FOUR edges (and the corners) at once, so the outer card
     borders melt smoothly into the green instead of ending on a hard rectangle —
     the "abrupt / cut" look. Centre stays fully opaque (behind the title). */
  filter: blur(2.6px) saturate(1.05);
  opacity: 0.9;
  -webkit-mask-image:
    radial-gradient(112% 122% at 50% 44%, #000 0%, #000 46%, rgba(0,0,0,0.32) 78%, transparent 100%);
  mask-image:
    radial-gradient(112% 122% at 50% 44%, #000 0%, #000 46%, rgba(0,0,0,0.32) 78%, transparent 100%);
}
/* Crisp, near-opaque frosted-glass panels — the fix for the "bad quality" look.
   A near-solid warm-white surface (only a whisper of translucency, so the green
   field warms it faintly at the edges without bleeding through and greying the
   content), a hairline highlight border + an inner top highlight so each panel
   reads as a real frozen sheet of glass, and a soft, deep shadow to lift it off
   the field. The dimming for the headline comes from the green veil above, not
   from washing these out — so the chart line, chips, rows and donut all stay
   clean and legible even under the (now light) blur. */
.pe-card {
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 248, 246, 0.84) 100%);
  /* Softer, low-contrast rim (was a bright near-white 1px border) so the panels
     read as frozen glass, not four hard-outlined boxes — the edges melt via the
     collage vignette above, and what's left inside is quiet. */
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  padding: 13px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 22px 46px -30px rgba(10, 16, 13, 0.42);
}

.pe-ptitle { font-size: 12.5px; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.pe-eyebrow { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.04em; }
.pe-value  { font-size: 28px; font-weight: 300; letter-spacing: 0.01em; margin-top: 2px; }
.pe-cents  { color: var(--ink-soft); font-size: 18px; }
.pe-change { color: var(--accent); font-size: 12.5px; margin-top: 2px; }
.pe-ranges { display: flex; gap: 7px; margin: 9px 0 4px; }
.pe-ranges span {
  font-size: 11px; color: var(--ink-soft);
  padding: 3px 8px; border-radius: 999px; border: 1px solid transparent;
}
.pe-ranges .is-on { color: var(--accent); border-color: var(--line); background: var(--white); }
.pe-chart  { display: block; width: 100%; height: 74px; margin-top: 4px; }

/* Holdings rows */
.pe-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 2px; border-top: 1px solid var(--line);
}
.pe-row:first-of-type { border-top: none; }
.pe-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pe-name { flex: 1; font-size: 13px; color: var(--ink); }
.pe-amt  { font-size: 13px; color: var(--ink); }
.pe-pct  { font-size: 11.5px; width: 54px; text-align: right; }
.pe-pct.up { color: var(--accent); }
.pe-pct.dn { color: var(--neg); }

/* A holding's analyst analysis (the "expand a holding" view) */
.pe-consensus { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pe-chip {
  font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px;
  background: rgba(97, 119, 107, 0.16); color: var(--accent);
}
.pe-consensus small { color: var(--ink-soft); font-size: 12px; }
.pe-spread { display: flex; height: 9px; border-radius: 999px; overflow: hidden; margin-bottom: 8px; background: var(--line); }
.pe-spread i { display: block; height: 100%; }
.pe-spread .buy  { background: var(--accent); }
.pe-spread .hold { background: #c9a94e; }
.pe-spread .sell { background: var(--neg); }
.pe-spread-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-soft); }
.pe-anstats { display: flex; gap: 26px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pe-anstat__k { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.03em; }
.pe-anstat__v { font-size: 17px; font-weight: 300; margin-top: 2px; }
.pe-anstat__v.up { color: var(--accent); }

/* Allocation donut */
.pe-alloc-row { display: flex; align-items: center; gap: 16px; }
.pe-donut {
  width: 82px; height: 82px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) 0 62%, #7f9a8b 62% 86%, #c9a94e 86% 95%, #b9c8bf 95% 100%);
  -webkit-mask: radial-gradient(circle, transparent 45%, #000 46%);
  mask: radial-gradient(circle, transparent 45%, #000 46%);
}
.pe-legend { display: grid; gap: 6px; flex: 1; }
.pe-leg { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); }
.pe-leg i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.pe-leg span { margin-left: auto; color: var(--ink-soft); }

/* The invitation — the landing hero title's letter format + the gold pill,
   sitting sharp over the open green centre (no scrim). */
.pe-cta {
  position: absolute; z-index: 3;
  left: 50%; top: 36%; transform: translate(-50%, -50%);   /* raised (was 42%) so the cluster rides higher */
  text-align: center; width: min(620px, 92vw);
}
.pe-cta__title {
  margin: 0 auto 20px;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  color: #f7faf9; white-space: nowrap;   /* ONE line */
  text-shadow: 0 2px 26px rgba(10, 16, 13, 0.85), 0 1px 3px rgba(10, 16, 13, 0.6);
}
.pe-cta__title .lp-hl { color: #ffe04a; }
.pe-cta .btn--gold { font-size: 17px; padding: 17px 40px; cursor: pointer; }

/* ── Onboarding choice card (empty state): the three ways in ──
   A floating frosted-glass card (same surface as the Register page's
   .signup-card) holding three "squares". The card stays a light glass panel
   in both themes because it always sits on the green field. The one gold accent
   marks the most-used, automatic path. Wired in app.js (#ocConnect/Import/Manual). */
.oc-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 460px; margin: 18px auto 0;   /* +18 → ~44px under the title */
  background: rgba(255, 255, 255, 0.75);   /* slightly more transparent frosted glass (was 0.9) */
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: 0 40px 90px -28px rgba(10, 16, 13, 0.6);
  padding: 22px 22px 18px;
}
.oc-choices { display: flex; flex-direction: column; gap: 11px; text-align: left; }
.oc-choice {
  position: relative; display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 15px; width: 100%;
  border: 1px solid var(--line); background: #fff; border-radius: 15px;
  padding: 15px 17px; cursor: pointer; font-family: inherit; color: #182220;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.oc-choice:hover {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 12px 26px -16px rgba(24, 34, 32, 0.4);
}
.oc-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.oc-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(78, 97, 87, 0.1); color: var(--accent); flex: none;
}
.oc-ic svg { width: 22px; height: 22px; }
.oc-tt b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.oc-go {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-soft); flex: none; transition: transform 0.16s ease, color 0.16s ease;
}
.oc-choice:hover .oc-go { transform: translateX(3px); color: var(--accent); }
.oc-go svg { width: 16px; height: 16px; }
/* the one gold accent — the most-used, automatic path */
.oc-choice--gold {
  background: linear-gradient(180deg, var(--gold-tint), transparent 70%), #fff;
  border-color: var(--gold-deep);
}
.oc-choice--gold:hover { border-color: var(--gold-deep); box-shadow: 0 14px 30px -14px rgba(230, 193, 5, 0.5); }
/* Focus ring matches the gold card and hugs its border — no separate green
   mark surrounding it (the shared .oc-choice green offset outline would). */
.oc-choice--gold:focus-visible { outline-color: var(--gold-deep); outline-offset: 0; }
.oc-choice--gold .oc-ic { background: var(--gold); color: var(--gold-ink); }
.oc-badge {
  position: absolute; top: -9px; left: 17px; background: var(--gold); color: var(--gold-ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px -1px rgba(230, 193, 5, 0.5);
}
.oc-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 20px 0 2px; color: #6f7f76; font-size: 12.5px; font-weight: 500;
}
.oc-foot svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .oc-card { max-width: 400px; } }

/* The broker logos + footer, recoloured light while they sit on the green.
   Pulled up so the strip rides much higher — and the dead space below it is
   reclaimed (empty footer hidden, page bottom padding trimmed) so the whole
   empty state fits one MacBook screen with no scroll. */
/* The bar AND the field are fully TRANSPARENT windows onto the page's own
   viewport-anchored gradient — so the BODY alone paints one continuous gradient
   behind the bar, the cards and the logos. One single paint = no seam anywhere
   (no bar line, no band between the logos and the cards) and no fade-in flash. */
body.is-empty-portfolio .navbar,
body.is-empty-portfolio .pe-stage { background: transparent; }
/* The bar keeps a transparent BASE but paints its ::before green layer — the SAME
   viewport-anchored gradient as the field, so it stays pixel-aligned/seamless — as
   an OPAQUE strip. That way, when you scroll, the card slides cleanly BEHIND the bar
   instead of showing through a fully see-through bar (which read as the bar covering
   the card). Forced opaque here so it holds even before nav.js sets navbar--onband. */
body.is-empty-portfolio .navbar::before { display: block; opacity: 1; }

body.is-empty-portfolio .trust {
  /* pulled up, riding closer to the cards' long frost taper above */
  margin-top: -210px;
  /* trust--lp adds a big landing-only top padding (room for its hero) — drop it */
  padding: 0;
  /* break out of the .page max-width → span the whole viewport, like the landing */
  width: 100vw; margin-left: 50%; transform: translateX(-50%);
}
body.is-empty-portfolio .reassurance { display: none; }
/* On the empty page the logo strip is pulled up (negative margin) out of this
   padding, so the big landing top padding is dead space — drop it so the whole
   field + logos fit one screen with no scroll. */
body.is-empty-portfolio .page--app { padding-top: 0; padding-bottom: 10px; }
body.is-empty-portfolio .trust__eyebrow { color: rgba(255, 255, 255, 0.66); opacity: 1; }
/* Real full-colour logos, exactly like the landing strip — no white silhouette. */
body.is-empty-portfolio .trust__logo { color: rgba(255, 255, 255, 0.85); opacity: 1; }
body.is-empty-portfolio .trust__img { filter: none; opacity: 1; }
body.is-empty-portfolio .trust--lp .trust__ing { background: #FF6200; color: #fff; }
body.is-empty-portfolio .reassurance,
body.is-empty-portfolio .reassurance a { color: rgba(255, 255, 255, 0.7); }

/* Narrower: keep chart (top) + holdings (bottom), drop the two right cards; then
   just the chart. The CTA stays centred over the field. */
@media (max-width: 900px) {
  .pe-collage { width: min(560px, 94vw); grid-template-columns: 1fr; }
  .pe-p-analyst, .pe-p-alloc { display: none; }
}
@media (max-width: 560px) {
  .pe-p-holds { display: none; }
  .pe-cta__title { white-space: normal; max-width: 14ch; text-wrap: balance; }
  .pe-value { font-size: 30px; }
}

/* ---------- Account page ---------- */
.acct-note { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.acct-hr { border: none; border-top: 1px solid var(--line); margin: 28px 0 20px; }
.acct-h2 { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
/* Space the stacked full-width buttons on the account page. */
.btn--block + .btn--block { margin-top: 10px; }
.acct-danger { color: var(--neg); border-color: var(--neg); }
.acct-danger:hover { color: var(--on-accent); background: var(--neg); border-color: var(--neg); }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { max-width: 640px; margin: 0 auto; }
.legal h1 { font-size: 32px; font-weight: 300; letter-spacing: 0.03em; margin-bottom: 8px; }
.legal h2 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 15px; }
.legal ul { margin: 8px 0 8px 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal__meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 12px; }
.legal__foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

