/* Asset-Guard — design system: white + shades of blue (#1b89c5) */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap");

:root {
  --blue-900: #08314a;
  --blue-800: #0d4b6e;
  --blue-700: #12658f;
  --blue-600: #1b89c5;
  --blue-500: #3ba0d8;
  --blue-400: #6fbde6;
  --blue-200: #b9dcf1;
  --blue-100: #e2f0f9;
  --blue-050: #f2f8fc;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f9fc;
  --ink: #0b2233;
  --ink-2: #46647a;
  --line: #dbe8f1;
  --success: #12866a;
  --warn: #b4531a;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 51, 0.05);
  --shadow: 0 12px 30px -16px rgba(9, 63, 94, 0.28);
  --shadow-lg: 0 28px 60px -30px rgba(9, 63, 94, 0.42);
  --gradient: linear-gradient(135deg, var(--blue-700), var(--blue-600) 55%, var(--blue-500));
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: Sora, Manrope, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tight { padding-top: 0; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-700); background: transparent;
  border: none; padding: 0;

}

.h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.h3 { font-size: 1.125rem; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 12px 20px; font-weight: 700; font-size: 0.94rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 137, 197, .9); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(27, 137, 197, .95); }
.btn-outline { border-color: var(--blue-200); color: var(--blue-800); background: #fff; }
.btn-outline:hover { background: var(--blue-050); border-color: var(--blue-400); }
.btn-ghost { color: var(--blue-800); }
.btn-ghost:hover { background: var(--blue-050); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Panels */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.panel.soft { background: var(--surface-2); }
.panel.pad { padding: 26px; }
.panel.hover { transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.panel.hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue-200); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.flexrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }

/* Icon badge */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--blue-100); color: var(--blue-700); border: 1px solid var(--blue-200);
}
.ico.lg { width: 54px; height: 54px; border-radius: 14px; }
.ico.solid { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -14px rgba(27,137,197,.95); }
.ico svg { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hbar { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Sora; font-weight: 700; font-size: 1.02rem; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient); color: #fff; display: grid; place-items: center; }
.brand .mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.nav a:hover { background: var(--blue-050); color: var(--blue-800); }
.nav a.active { color: var(--blue-700); background: var(--blue-100); }
.hactions { display: flex; gap: 8px; }
.burger { display: none; margin-left: auto; border: 1.5px solid var(--blue-200); background: var(--blue-050); border-radius: 10px; padding: 10px; cursor: pointer; color: var(--blue-800); }
.burger:hover { background: var(--blue-100); border-color: var(--blue-300); }
.burger .b-ico { display: none; width: 22px; height: 22px; }
.burger .b-ico svg { width: 100%; height: 100%; }
.burger .open-ico { display: inline-flex; }
.burger.open .open-ico { display: none; }
.burger.open .close-ico { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 0 18px; }
.mobile-nav.open { display: block; animation: dropIn .18s ease; }
.mobile-nav a { display: block; padding: 11px 4px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--blue-050); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: #fff url("../assets/background.png") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #ffffff 22%, rgba(255,255,255,.86) 46%, rgba(255,255,255,.1) 78%);
}
.hero .wrap { position: relative; }
.hero-inner { padding: 92px 0 96px; max-width: 660px; }
.stats { display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap; }
.stats .v { font-family: Sora; font-size: 1.7rem; font-weight: 700; color: var(--blue-700); }
.stats .l { font-size: .78rem; color: var(--ink-2); }

.page-hero {
  position: relative; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-050), #fff);
  padding: 68px 0 56px;
}

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: .88rem; font-weight: 600; }
.step .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--blue-600); color: #fff; font-size: .74rem; margin-bottom: 8px; }

/* Plans */
.plan { display: flex; flex-direction: column; padding: 26px; position: relative; }
.plan.featured { border-color: var(--blue-400); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--gradient); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan .price { font-family: Sora; font-size: 2rem; font-weight: 700; color: var(--blue-700); margin-top: 12px; }
.plan .meta { font-size: .8rem; color: var(--ink-2); }
.feat { display: flex; gap: 9px; font-size: .88rem; color: var(--ink-2); margin-top: 9px; }
.feat svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 3px; }

.pill { border: 1px solid var(--blue-200); background: var(--blue-050); color: var(--blue-800); border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 600; }

/* Forms */
.field { margin-top: 16px; }
.label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: .94rem; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(27,137,197,.14); }
.input.err { border-color: #c2410c; }
.hint { font-size: .78rem; color: var(--ink-2); margin-top: 7px; }
.error-msg { font-size: .8rem; color: #c2410c; margin-top: 7px; display: none; }
.error-msg.show { display: block; }

.notice { display: flex; gap: 14px; padding: 18px; border-radius: 12px; border: 1px solid #f2d3bd; background: #fdf6f1; font-size: .9rem; }
.notice svg { width: 20px; height: 20px; color: var(--warn); flex: none; }

/* Modal / loading */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 49, 74, .45); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 18px;
  padding: 38px 30px; text-align: center; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.spinner { width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid var(--blue-100); border-top-color: var(--blue-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tickwrap { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue-100); display: grid; place-items: center; animation: pop .35s ease; }
.tickwrap svg { width: 34px; height: 34px; color: var(--blue-600); }
.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 14px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 54px 0 28px; margin-top: 20px; }
.fgrid { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-800); margin-bottom: 12px; }
.site-footer a { display: block; font-size: .88rem; color: var(--ink-2); padding: 5px 0; }
.site-footer a:hover { color: var(--blue-700); }
.fbottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav, .hactions { display: none; }
  .burger { display: block; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero { background-position: 78% center; }
  .hero-inner { padding: 62px 0 68px; }
  .section { padding: 52px 0; }
}

/* Live market prices */
.market-live { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.market-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: marketPulse 1.8s infinite; }
@keyframes marketPulse {
  0% { box-shadow: 0 0 0 0 rgba(18,134,106,.45); }
  70% { box-shadow: 0 0 0 8px rgba(18,134,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,134,106,0); }
}
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.market-card { display: flex; flex-direction: column; gap: 10px; }
.market-top { display: flex; align-items: center; gap: 10px; }
.market-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: .82rem; flex: none; }
.market-icon-skel { width: 32px; height: 32px; border-radius: 50%; background: var(--line); }
.market-name-skel { width: 70px; height: 12px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.market-line-skel { width: 46px; height: 10px; border-radius: 4px; background: var(--line); }
.market-name { font-weight: 700; font-size: .92rem; }
.market-sym { color: var(--ink-2); font-size: .75rem; font-weight: 700; letter-spacing: .04em; margin-top: 2px; }
.market-price { font-family: Sora, Manrope, sans-serif; font-size: 1.4rem; font-weight: 700; }
.market-change { font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 10px; border-radius: 999px; }
.market-change.up { color: var(--success); background: rgba(18,134,106,.1); }
.market-change.down { color: #c0392b; background: rgba(192,57,43,.1); }
.market-spark { width: 100%; height: 44px; margin-top: 2px; display: block; }
.market-source { margin-top: 16px; font-size: .78rem; }
.market-error { grid-column: 1 / -1; text-align: center; padding: 10px 0; }
@media (max-width: 860px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .market-grid { grid-template-columns: 1fr; } }

/* Brand logo */
.brand .logo { height: 40px; width: auto; display: block; }
@media (max-width: 720px) { .brand .logo { height: 34px; } }
.site-footer .brand .logo { height: 44px; }

/* Tier badges */
.tier-ico { display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, var(--blue-050) 70%); border: 1px solid var(--blue-200); box-shadow: inset 0 1px 0 #fff, 0 8px 18px -14px rgba(11,34,51,.6); }
.tier-ico img { width: 54px; height: 54px; object-fit: contain; }

/* Nav dropdown */
.navdrop { position: relative; }
.navdrop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; font-family: inherit; color: var(--ink-2); background: none; border: none; cursor: pointer; }
.navdrop-btn:hover { background: var(--blue-050); color: var(--blue-800); }
.navdrop-btn.active { color: var(--blue-700); background: var(--blue-100); }
.navdrop-btn .chev { display: flex; width: 15px; height: 15px; transition: transform .2s ease; }
.navdrop-btn .chev svg, .mdrop-btn .chev svg { width: 100%; height: 100%; }
.navdrop-btn .close-ico, .mdrop-btn .close-ico { display: none; }
.navdrop.open .navdrop-btn { background: var(--blue-100); color: var(--blue-800); }
.navdrop.open .navdrop-btn .open-ico { display: none; }
.navdrop.open .navdrop-btn .close-ico { display: flex; }
.navdrop-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 214px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.navdrop.open .navdrop-menu { display: block; animation: pop .18s ease; }
.navdrop-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.navdrop-menu a:hover { background: var(--blue-050); color: var(--blue-800); }

/* Mobile dropdown */
.mdrop-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 11px 4px; font: inherit; font-weight: 600; color: var(--ink-2); background: none; border: none; border-bottom: 1px solid var(--blue-050); cursor: pointer; }
.mdrop-btn .chev { display: flex; width: 15px; height: 15px; }
.mdrop-btn.open .open-ico { display: none; }
.mdrop-btn.open .close-ico { display: flex; }
.mdrop { display: none; padding-left: 14px; border-left: 2px solid var(--blue-100); }
.mdrop.open { display: block; }

/* Portal CTA */
.portal-cta {
  position: relative; overflow: hidden; border: none; color: #fff;
  padding: 56px 42px !important;
  background-image: linear-gradient(100deg, rgba(8,49,74,.94) 0%, rgba(8,49,74,.86) 45%, rgba(8,49,74,.45) 100%), url("../assets/Customer care.png");
  background-size: cover; background-position: center right;
  box-shadow: var(--shadow);
}
.portal-cta-copy { width: 60%; text-align: left; position: relative; z-index: 1; }
.portal-cta-copy h2, .portal-cta-copy p, .portal-cta-copy strong, .portal-cta-copy span { color: #fff; }
.portal-cta-copy p { color: rgba(255,255,255,.86); }
.portal-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.portal-list li { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.portal-list li strong { display: block; font-size: .95rem; }
.portal-list li > div > span { display: block; font-size: .85rem; margin-top: 2px; color: rgba(255,255,255,.78); }
.portal-list .ico { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.portal-cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.portal-cta .btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }
@media (max-width: 860px) {
  .portal-cta { padding: 30px 22px !important; background-position: center; }
  .portal-cta-copy { width: 100%; }
  .portal-cta .btn { flex: 1 1 100%; }
}

/* ---------- Client dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 0; align-items: start; max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 70px; }
.dash-side { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 14px; }
.dash-side-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); margin: 2px 8px 12px; }
.dash-nav { display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.dash-nav a:hover { background: var(--blue-050); color: var(--blue-800); }
.dash-nav a.active { background: var(--gradient); color: #fff; box-shadow: var(--shadow-sm); }
.dash-nav .dico { display: flex; }
.dash-nav .dico svg { width: 17px; height: 17px; }
.dash-side-foot { border-top: 1px solid var(--line); margin-top: 16px; padding: 14px 8px 4px; }
.dash-main { padding: 0 0 0 24px; min-width: 0; }
.dash-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dash-menu-btn { display: none; }
.kpi .kpi-v { font-family: Sora, Manrope, sans-serif; font-size: 1.6rem; font-weight: 700; margin: 6px 0 2px; color: var(--blue-800); }
.kpis { gap: 16px; }
.dash-table-wrap { overflow-x: auto; margin-top: 16px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
.dash-table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; text-transform: capitalize; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; color: var(--ink-2); text-transform: none; word-break: break-all; }
.dash .tag, .dash-table .tag { display: inline-block; border-radius: 999px; padding: 4px 11px; font-size: .72rem; font-weight: 700; text-transform: capitalize; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.dash .tag.ok, .dash-table .tag.ok { background: #e7f6f1; color: var(--success); border-color: #bfe6da; }
.dash .tag.warn, .dash-table .tag.warn { background: #fdf1e8; color: var(--warn); border-color: #f2d3bd; }
.dash .steps .step { font-size: .82rem; }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; padding: 20px 16px 60px; }
  .dash-main { padding: 0; }
  .dash-menu-btn { display: inline-flex; }
  .dash-side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 260px; border-radius: 0; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; top: 0; }
  .dash-side.open { transform: translateX(0); }
}

/* Live price chart — Coinbase-style, blue themed */
.pc-panel { position: relative; border: 1px solid var(--line); background:
  linear-gradient(180deg, var(--blue-050), #fff 45%); box-shadow: var(--shadow); }
.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pc-title { font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--blue-900); }
.pc-meta { font-size: .76rem; margin-top: 4px; }
.pc-head-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pc-price { font-family: Sora, Manrope, sans-serif; font-size: 2.35rem; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--blue-900); }
.pc-change { font-size: .78rem; }
.pc-change.up { color: var(--blue-700); background: var(--blue-100); }
.pc-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.pc-tabs { display: inline-flex; gap: 2px; padding: 4px; background: var(--blue-050); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.pc-tab { appearance: none; border: none; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .78rem; letter-spacing: .02em; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.pc-tab:hover { color: var(--blue-700); background: #fff; }
.pc-tab.active { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px -8px rgba(27,137,197,.9); }
.pc-plot { position: relative; margin-top: 22px; }
.pc-svg { width: 100%; height: 300px; display: block; touch-action: pan-y; overflow: visible; }
.pc-panel.loading .pc-svg { opacity: .4; transition: opacity .2s ease; }
.pc-grid { stroke: var(--blue-100); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pc-axis { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-family: Manrope, sans-serif; }
.pc-cursor { stroke: var(--blue-500); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.pc-dot { pointer-events: none; filter: drop-shadow(0 0 6px rgba(27,137,197,.55)); }
.pc-tooltip { position: absolute; top: 0; transform: translateX(-50%); background: var(--blue-900); color: #fff; border-radius: 10px; padding: 7px 11px; font-size: .74rem; font-weight: 700; display: none; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.pc-tooltip.show { display: block; }
.pc-tooltip span { display: block; font-weight: 500; opacity: .8; margin-top: 2px; }
.pc-status { margin-top: 12px; font-size: .78rem; color: var(--ink-2); }
.pc-status.error { color: #c0392b; font-weight: 600; }
.pc-status.hide { display: none; }
@media (max-width: 700px) {
  .pc-controls { flex-direction: column; align-items: stretch; }
  .pc-tabs { justify-content: center; }
  .pc-head-right { text-align: left; align-items: flex-start; }
  .pc-price { font-size: 1.8rem; }
  .pc-svg { height: 230px; }
  .pc-axis { font-size: 14px; }
}


/* ============ 404 / error page ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.err-section { padding-top: 56px; }
.err-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}
.err-title { margin-top: 20px; font-size: clamp(2rem, 5.2vw, 3.2rem); }
.err-lead { margin-top: 16px; max-width: 56ch; }

.err-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 8px 8px 8px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.err-search:focus-within { border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-100); }
.err-search-ico { display: flex; width: 20px; height: 20px; color: var(--blue-600); flex: none; }
.err-search-ico svg { width: 100%; height: 100%; }
.err-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: .95rem; color: var(--ink); padding: 10px 0;
}
.err-search input::placeholder { color: var(--ink-2); }
.err-search .btn { flex: none; }

.err-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; max-height: 300px; overflow: auto;
}
.err-results.show { display: block; }
.err-results a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 10px; font-size: .9rem;
}
.err-results a span { font-size: .76rem; }
.err-results a.active, .err-results a:hover { background: var(--blue-050); color: var(--blue-800); }
.err-empty { padding: 12px; font-size: .85rem; color: var(--ink-2); }

.err-help { margin-top: 10px; font-size: .78rem; }
.err-help kbd {
  font-family: inherit; font-size: .72rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: var(--ink);
}
.err-actions { margin-top: 26px; justify-content: flex-start; }
.err-path { margin-top: 20px; font-size: .8rem; word-break: break-all; }
.err-path code {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; font-size: .78rem; color: var(--blue-800);
}

.err-visual { display: flex; justify-content: center; min-width: 0; }
.err-lottie {
  width: 100%; max-width: 520px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.err-lottie svg { display: block; width: 100% !important; height: 100% !important; }
.err-lottie-fallback { text-align: center; padding: 24px; }
.err-404 {
  display: block; font-family: Sora, Manrope, sans-serif; font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 6rem); letter-spacing: -0.04em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.err-links {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; max-width: 1080px; margin: 56px auto 0;
}
.err-link {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-width: 0; gap: 16px; padding: 24px 16px; text-align: center;
}
.err-link .ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; }
.err-link .ico svg { display: block; width: 24px; height: 24px; flex: none; }
.err-link-copy { min-width: 0; }
.err-link strong { display: block; font-size: .92rem; line-height: 1.45; text-wrap: balance; }
.err-link-copy > span { display: block; margin-top: 5px; font-size: .8rem; line-height: 1.5; text-wrap: balance; }
.err-link:active { background: var(--blue-050); }

@media (max-width: 980px) {
  .err-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .err-visual { order: -1; }
  .err-lottie { max-width: 380px; }
  .err-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}
@media (max-width: 620px) {
  .err-section { padding-top: 36px; }
  .err-search { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .err-search input { flex: 1 1 140px; padding: 6px 0; }
  .err-search .btn { width: 100%; justify-content: center; }
  .err-actions .btn { width: 100%; justify-content: center; }
  .err-links { gap: 12px; margin-top: 40px; }
  .err-link { gap: 12px; padding: 20px 12px; }
  .err-lottie { max-width: 300px; }
}
@media (max-width: 360px) {
  .err-links { grid-template-columns: minmax(0, 1fr); }
}

/* Responsive form layout and keyboard access. */
.contact-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start}
:focus-visible{outline:3px solid var(--blue-600);outline-offset:3px}
.btn:disabled{opacity:.6;cursor:not-allowed}
.grid>*{min-width:0}
@media(max-width:760px){.contact-layout{grid-template-columns:minmax(0,1fr)}.input{font-size:16px}.burger{min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.market-dot{animation:none}}

/* Consistent investment tiers across the site and customer portal. */
.tier-plan{--tier-accent:#755037;--tier-tint:#faf5f0;border-radius:20px;border-top:3px solid var(--tier-accent);gap:0;min-width:0;padding:26px 24px;background:linear-gradient(180deg,var(--tier-tint),#fff 160px)}
.tier-gold{--tier-accent:#876114;--tier-tint:#fffae9}
.tier-silver{--tier-accent:#596579;--tier-tint:#f3f5f9}
.tier-platinum{--tier-accent:#244c5b;--tier-tint:#eef7f8}
.tier-heading{display:flex;align-items:center;gap:12px}
.tier-heading .tier-ico{width:48px;height:48px}
.tier-heading .tier-ico img{width:48px;height:48px;object-fit:contain}
.tier-return{font-family:Manrope,system-ui,sans-serif;font-weight:800;font-size:3.25rem;letter-spacing:-.05em;color:#11151f;margin-top:24px;line-height:1.1}
.tier-return>span{font-size:1.6rem;margin-left:3px}
.tier-period{font-size:.85rem;font-weight:600;color:var(--tier-accent);margin-top:8px}
.tier-description{font-size:.9rem;line-height:1.6;color:var(--ink-2);margin:18px 0}
.tier-perks{padding:20px 0 0;margin:0 0 26px;list-style:none;border-top:1px solid var(--line);display:grid;gap:14px}
.tier-perks li{display:flex;align-items:flex-start;gap:8px;font-size:.84rem;line-height:1.5}
.tier-perks svg{flex:0 0 18px;width:18px;height:18px;margin-top:1px;color:var(--tier-accent)}
.tier-plan>.btn{margin-top:auto;border-radius:12px;min-height:48px}
.tier-plan.tier-platinum>.btn{background:#11151f;border-color:#11151f;color:#fff}
.plan-minimum{font-size:.82rem;margin-bottom:16px}
.tier-disclosure{grid-column:1/-1;color:var(--ink-2);font-size:.8rem;line-height:1.65;margin-top:0}
