/* Layout: a right-aligned reading column on cool statement paper; the dark AmoSight report
   is the page's one bold object, set in an ink band like a screen laid on a desk of paperwork. */
:root {
  color-scheme: light;

  /* Paper and ink: the world of fund statements */
  --paper:      #F1F3F7;
  --paper-2:    #E6EAF2;
  --surface:    #FFFFFF;
  --ink:        #0B1530;
  --ink-2:      #44506B;
  --ink-3:      #6A758E;
  --line:       #D5DBE6;
  --cobalt:     #2448D8;
  --cobalt-2:   #1A36A8;
  --cobalt-soft:#E3E9FC;
  --gain:       #0B8F62;
  --gain-soft:  #DDF3EA;
  --gold:       #B87204;
  --danger:     #C2342B;

  /* The report screen: AmoSight's own palette */
  --r-bg:     #050816;
  --r-card:   #0B1124;
  --r-card-2: #10182F;
  --r-line:   #1E293B;
  --r-fg:     #F8FAFC;
  --r-fg-2:   #A3B1C6;
  --r-fg-3:   #7C8AA0;
  --r-green:  #10B981;
  --r-blue:   #3B82F6;
  --r-purple: #8B5CF6;
  --r-amber:  #F59E0B;
  --r-red:    #EF4444;
  --r-pink:   #EC4899;

  --font-display: 'Frank Ruhl Libre', 'David Libre', 'Times New Roman', serif;
  --font-body:    'Assistant', 'Arial Hebrew', Arial, sans-serif;
  --font-data:    'Rubik', 'Assistant', Arial, sans-serif;

  --t-xs:  0.8125rem;
  --t-sm:  0.9375rem;
  --t-md:  1.0625rem;
  --t-lg:  1.25rem;
  --t-xl:  1.625rem;
  --t-2xl: clamp(1.85rem, 1.2rem + 2.4vw, 2.75rem);
  --t-3xl: clamp(2.25rem, 1.3rem + 3.9vw, 4rem);

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 12px 32px -12px rgba(11, 21, 48, .18);
}

/* ─── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.65;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-2xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cobalt);
}
.eyebrow--light { color: #9DB1FF; }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p:not(.eyebrow) { color: var(--ink-2); }
.section-head--light h2 { color: var(--r-fg); }
.section-head--light p:not(.eyebrow) { color: var(--r-fg-2); }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: var(--t-md);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--t-sm); }
.btn-block { width: 100%; }

/* ─── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 34px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: var(--t-lg); }
.brand-role { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }

.nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: var(--t-sm);
  font-weight: 600;
}
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--cobalt); }

@media (max-width: 900px) {
  .nav { display: none; }
  .topbar .btn { margin-inline-start: auto; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy { display: grid; gap: 22px; min-width: 0; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--t-3xl);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero-title-em {
  display: block;
  color: var(--cobalt);
  margin-top: .12em;
}

.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: 54ch; line-height: 1.6; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* What the fund shows you, and what it never says */
.hero-visual {
  margin: 0;
  display: grid;
  min-width: 0;
  position: relative;
}

.statement {
  width: min(100%, 380px);
  margin-inline-end: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px 26px;
  box-shadow: var(--shadow);
  transform: rotate(1.6deg);
  font-family: var(--font-data);
  color: var(--ink-2);
  font-size: var(--t-xs);
}
.statement-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 0.75rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}
.statement-logo { width: 46px; height: 10px; border-radius: 2px; background: var(--paper-2); }
.statement-title { font-weight: 600; color: var(--ink); font-size: var(--t-sm); margin: 12px 0 8px; }
.statement-rows { margin: 0; display: grid; }
.statement-rows div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.statement-rows dt { margin: 0; }
.statement-rows dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.statement-total { font-weight: 700; border-bottom: 0 !important; }
.statement-total dd { font-weight: 700; }
.statement-lines { display: grid; gap: 6px; margin-top: 12px; padding-bottom: 48px; }
.statement-lines i { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); }
.statement-lines i:nth-child(2) { width: 82%; }
.statement-lines i:nth-child(3) { width: 64%; }
.statement-ask {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--cobalt);
}

.insight {
  width: min(100%, 350px);
  margin-inline-start: auto;
  margin-top: -64px;
  position: relative;
  background: var(--r-bg);
  color: var(--r-fg);
  border: 1px solid var(--r-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 24px 48px -16px rgba(5, 8, 22, .55);
  transform: rotate(-1.2deg);
  font-family: var(--font-data);
}
.insight-head { display: grid; gap: 2px; }
.insight-brand { font-weight: 800; font-size: var(--t-sm); background: linear-gradient(90deg, #A78BFA, #3B82F6); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.insight-sub { font-size: 0.75rem; color: var(--r-fg-2); }
.insight-main { display: flex; gap: 16px; align-items: center; margin: 14px 0; }
.insight-ring { width: 92px; height: 92px; flex-shrink: 0; }
.ring-track { fill: none; stroke: var(--r-line); stroke-width: 9; }
.ring-fill {
  fill: none;
  stroke: var(--r-amber);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 97 251.3; /* 38.6% of the circle */
  transform: rotate(-90deg);
  transform-box: view-box;
  transform-origin: center;
}
.insight-ring text {
  fill: var(--r-fg);
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  font-family: var(--font-data);
}
.insight-facts { display: grid; gap: 4px; flex: 1; min-width: 0; }
.insight-label { font-size: 0.75rem; color: var(--r-fg-2); letter-spacing: .04em; }
.insight-rank { font-weight: 700; color: var(--r-amber); font-size: var(--t-md); }
.insight-bars { display: grid; gap: 6px; margin-top: 6px; }
.ibar { display: grid; grid-template-columns: 48px 1fr 44px; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--r-fg-2); }
.ibar b { height: 8px; border-radius: 4px; width: var(--w); }
.ibar em { font-style: normal; color: var(--r-fg); font-variant-numeric: tabular-nums; }
.ibar-you { background: var(--r-red); }
.ibar-top { background: linear-gradient(90deg, #10B981, #34D399); }
.insight-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--r-line);
  padding-top: 12px;
  font-size: var(--t-sm);
  color: var(--r-fg-2);
}
.insight-foot strong { color: var(--r-green); font-size: var(--t-xl); font-weight: 800; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ─── Sources strip ────────────────────────────────────────────────────── */
.sources {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  padding-block: 26px;
}
.sources-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.sources-title {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-3);
  flex-shrink: 0;
}
.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 28px;
  flex: 1;
  min-width: 0;
}
.sources-list li { display: grid; line-height: 1.35; padding-inline-start: 14px; border-inline-start: 2px solid var(--cobalt); }
.sources-list strong { font-size: var(--t-md); }
.sources-list span { font-size: var(--t-xs); color: var(--ink-3); }
@media (max-width: 860px) {
  .sources-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .sources-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) { .sources-list { grid-template-columns: minmax(0, 1fr); } }

/* ─── Sneak peek: the report ───────────────────────────────────────────── */
.peek {
  background: var(--ink);
  padding-block: clamp(56px, 8vw, 104px);
  background-image:
    radial-gradient(60% 50% at 85% 0%, rgba(36, 72, 216, .35), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(16, 185, 129, .12), transparent 70%);
}

.report {
  background: var(--r-bg);
  border: 1px solid var(--r-line);
  border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  overflow: hidden;
  color: var(--r-fg);
  font-family: var(--font-data);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.report-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--r-card);
  border-bottom: 1px solid var(--r-line);
  font-size: var(--t-xs);
  color: var(--r-fg-2);
  flex-wrap: wrap;
}
.report-dots { display: flex; gap: 6px; direction: ltr; }
.report-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--r-line); }
.report-bar-title { color: var(--r-fg); font-weight: 600; }
.report-bar-title b { color: var(--r-fg); font-weight: 800; }
.report-bar-client {
  margin-inline-start: auto;
  background: var(--r-card-2);
  border: 1px solid var(--r-line);
  border-radius: 999px;
  padding: 3px 12px;
}

.report-overall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--r-line);
}
.overall-cell { padding: 18px 22px; display: grid; gap: 2px; min-width: 0; }
.overall-cell + .overall-cell { border-inline-start: 1px solid var(--r-line); }
.overall-label { font-size: var(--t-xs); color: var(--r-fg-2); }
.overall-value { font-size: var(--t-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.overall-value--gain { color: var(--r-green); }
.overall-note { font-size: 0.75rem; color: var(--r-fg-3); }

.report-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 18px 0;
  border-bottom: 1px solid var(--r-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.report-tab {
  font: inherit;
  font-weight: 600;
  color: var(--r-fg-2);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-tab:hover { color: var(--r-fg); }
.report-tab[aria-selected="true"] {
  color: var(--r-fg);
  background: var(--r-card);
  border-color: var(--r-line);
  margin-bottom: -1px;
  padding-bottom: 11px;
}
.tab-count {
  font-size: 0.72rem;
  background: var(--r-line);
  color: var(--r-fg-2);
  border-radius: 999px;
  padding: 1px 8px;
}
.report-tab[aria-selected="true"] .tab-count { background: rgba(59, 130, 246, .2); color: #93B8FB; }
.report-tab:focus-visible { outline-color: var(--r-blue); }

.report-panel {
  padding: 20px 18px 8px;
  background: var(--r-card);
  display: grid;
  gap: 16px;
}
.report-noscript { color: var(--r-fg-2); padding: 20px 0; }

.r-card {
  background: var(--r-bg);
  border: 1px solid var(--r-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}
.r-card-title { font-weight: 700; font-size: var(--t-md); }
.r-card-sub { font-size: var(--t-xs); color: var(--r-fg-2); }

/* Holdings list */
.holdings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.holdings-score { font-size: var(--t-xs); color: var(--r-fg-2); }
.holdings-score strong { font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.holdings { display: grid; gap: 8px; }
.holding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: start;
  font: inherit;
  color: inherit;
  background: var(--r-card);
  border: 1px solid var(--r-line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.holding:hover { border-color: #334155; }
.holding[aria-pressed="true"] { border-color: var(--r-blue); background: rgba(59, 130, 246, .08); }
.holding:focus-visible { outline-color: var(--r-blue); }
.holding-name { font-weight: 600; min-width: 0; }
.holding-name small { display: block; font-weight: 400; color: var(--r-fg-2); font-size: 0.75rem; }
.holding-amount { font-variant-numeric: tabular-nums; color: var(--r-fg-2); }
.holding-rank { font-size: 0.75rem; color: var(--r-fg-3); font-variant-numeric: tabular-nums; }
.score-chip {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: var(--t-xs);
  border: 1px solid currentColor;
  min-width: 52px;
  text-align: center;
}

/* Client card */
.client {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.client::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--accent, var(--r-blue));
}
.client-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid;
}
.pill--risk { color: #93B8FB; border-color: rgba(59, 130, 246, .4); background: rgba(59, 130, 246, .12); }
.pill--bad { color: #FCA5A5; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .12); }
.pill--good { color: #6EE7B7; border-color: rgba(16, 185, 129, .4); background: rgba(16, 185, 129, .12); }
.client-name { font-size: var(--t-xl); font-weight: 800; margin-top: 10px; line-height: 1.2; }
.client-meta { color: var(--r-fg-2); font-size: var(--t-xs); margin-top: 4px; }
.client-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
}
.cstat { display: grid; gap: 2px; }
.cstat-label { font-size: 0.75rem; color: var(--r-fg-2); }
.cstat-val { font-weight: 700; font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.client-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--r-line);
  font-size: var(--t-xs);
  color: var(--r-fg-2);
}
.client-profile strong { color: var(--r-fg); font-weight: 600; }

.client-score { display: grid; justify-items: center; align-content: center; gap: 2px; text-align: center; min-width: 150px; }
.client-score-label { font-size: 0.75rem; color: var(--r-fg-2); letter-spacing: .06em; }
.client-score-val { font-size: 2.25rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge { width: 140px; height: 80px; }
.gauge text { font-family: var(--font-data); text-anchor: middle; }
.gauge .g-num { fill: var(--r-fg); font-size: 24px; font-weight: 700; }
.gauge .g-cap { fill: var(--r-fg-2); font-size: 10px; }
.verdict { font-size: var(--t-xs); font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.verdict--bad { color: #FCA5A5; background: rgba(239, 68, 68, .12); }
.verdict--good { color: #6EE7B7; background: rgba(16, 185, 129, .12); }

/* Bars */
.bars { display: grid; gap: 10px; margin-top: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 14px; align-items: center; }
.bar-label { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); min-width: 0; }
.bar-rank { font-weight: 700; min-width: 28px; font-variant-numeric: tabular-nums; }
.bar-you { font-weight: 700; }
.bar-tag {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
  background: rgba(239, 68, 68, .15);
  color: #FCA5A5;
}
.bar-tag--good { background: rgba(16, 185, 129, .15); color: #6EE7B7; }
.redacted {
  display: inline-block;
  height: 12px;
  width: var(--rw, 96px);
  max-width: 100%;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #334155 0 7px, #2A3547 7px 9px);
  vertical-align: middle;
}
.bar-track {
  height: 30px;
  background: var(--r-card-2);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: 10px;
  transform-origin: right center;
}
.bar-fill span { font-weight: 700; font-size: var(--t-xs); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.bar-fill--you { background: linear-gradient(90deg, #DC2626, #EF4444); }
.bar-fill--you-good { background: linear-gradient(90deg, #059669, #10B981); }
.bar-fill--a0 { background: linear-gradient(90deg, #10B981, #34D399); }
.bar-fill--a1 { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.bar-fill--a2 { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }

.is-animating .bar-fill { animation: grow .7s cubic-bezier(.2, .7, .2, 1) both; }
.is-animating .bar-row:nth-child(2) .bar-fill { animation-delay: .06s; }
.is-animating .bar-row:nth-child(3) .bar-fill { animation-delay: .12s; }
.is-animating .bar-row:nth-child(4) .bar-fill { animation-delay: .18s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Missed + golden */
.moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.moves--single { grid-template-columns: minmax(0, 1fr); }
.move-title { font-weight: 800; font-size: var(--t-md); display: flex; align-items: center; gap: 8px; }
.move-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.move-desc { color: var(--r-fg-2); font-size: var(--t-xs); margin-top: 4px; }
.move-desc strong { color: var(--r-fg); }
.move-amounts { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.move-amount { display: grid; gap: 0; }
.move-amount-label { font-size: 0.72rem; color: var(--r-fg-3); }
.move-amount-val { font-weight: 800; font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.move-amount-sub { font-size: 0.72rem; color: var(--r-fg-2); }
.move-arrow { color: var(--r-fg-3); font-size: var(--t-lg); }
.move--missed .move-title { color: #FCD34D; }
.move--missed .move-gain { color: var(--r-green); }
.move--gold {
  border-color: rgba(245, 158, 11, .35);
  background: linear-gradient(160deg, rgba(245, 158, 11, .1), var(--r-bg) 55%);
}
.move--gold .move-title { color: var(--r-amber); }
.move--gold .move-gain { color: var(--r-amber); }
.move-fund { margin-top: 10px; font-size: 0.75rem; color: var(--r-fg-2); display: flex; align-items: center; gap: 8px; }

.advisor-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px dashed #334155;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: var(--t-xs);
  color: var(--r-fg-2);
}
.advisor-note b { color: var(--r-fg); display: block; font-size: var(--t-sm); margin-bottom: 2px; }
.advisor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
}

/* The locked part */
.report-locked {
  position: relative;
  background: var(--r-card);
  padding: 8px 18px 22px;
  overflow: hidden;
  min-height: 330px;
}
.locked-table {
  filter: blur(5px);
  opacity: .55;
  user-select: none;
  pointer-events: none;
  display: grid;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.locked-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 2.4fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  background: var(--r-bg);
  border-radius: 6px;
}
.locked-row--head { background: transparent; color: var(--r-fg-2); font-size: var(--t-xs); }
.locked-row--you { background: rgba(239, 68, 68, .1); }

.locked-cta {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  background: radial-gradient(70% 90% at 50% 50%, rgba(11, 17, 36, .92), rgba(11, 17, 36, .35));
}
.locked-cta h3 { font-family: var(--font-display); font-size: var(--t-xl); }
.locked-cta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--r-fg-2);
  font-family: var(--font-body);
  font-size: var(--t-md);
}
.locked-cta li::before { content: '✓'; color: var(--r-green); margin-inline-end: 8px; font-weight: 700; }
.locked-cta .btn { margin-top: 6px; }

.peek-disclaimer { margin-top: 18px; font-size: var(--t-xs); color: #8A97B3; text-align: center; }

@media (max-width: 760px) {
  .report-overall { grid-template-columns: minmax(0, 1fr); }
  .overall-cell + .overall-cell { border-inline-start: 0; border-top: 1px solid var(--r-line); }
  .overall-cell { padding: 12px 18px; }
  .client { grid-template-columns: minmax(0, 1fr); }
  .client-score { border-top: 1px solid var(--r-line); padding-top: 14px; }
  .moves { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .holding { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .holding-amount { grid-row: 2; }
  .holding-rank { grid-row: 2; justify-self: end; }
  .report-locked { min-height: 380px; }
  .locked-row { grid-template-columns: 30px minmax(0, 2fr) minmax(0, 1fr); }
  .locked-row span:nth-child(n+4) { display: none; }
  .report-panel { padding-inline: 12px; }
  .r-card { padding: 16px; }
}
@media (max-width: 520px) {
  .report-tabs { padding: 12px 10px 0; gap: 2px; }
  .report-tab { padding: 9px 10px; font-size: var(--t-xs); gap: 6px; flex: 1 1 auto; justify-content: center; }
  .report-tab[aria-selected="true"] { padding-bottom: 10px; }
  .report-bar-client { margin-inline-start: 0; }
  .wa-float { width: 50px; height: 50px; inset-inline-end: 14px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (max-width: 400px) {
  .tab-count { display: none; }
}

/* ─── The gap / calculator ─────────────────────────────────────────────── */
.gap { padding-block: clamp(56px, 8vw, 104px); }
.gap-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.gap-copy { display: grid; gap: 16px; position: sticky; top: 100px; }
.gap-copy p:not(.eyebrow) { color: var(--ink-2); max-width: 46ch; }

.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  min-width: 0;
}
.calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.calc-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 8px;
}
.calc-field label { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
.calc-field output { font-family: var(--font-data); font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-field input { grid-column: 1 / -1; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to left, var(--cobalt) var(--fill, 50%), var(--paper-2) var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--paper-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--cobalt); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--cobalt);
  box-shadow: 0 2px 6px rgba(11, 21, 48, .2);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--cobalt);
}

.calc-result {
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--gain-soft);
}
.calc-result-label { font-size: var(--t-sm); font-weight: 600; color: var(--gain); }
.calc-result-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calc-result-sub { font-size: var(--t-sm); color: var(--ink-2); }

.calc-chart { position: relative; min-width: 0; }
.calc-chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.calc-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.calc-chart .axis-text { fill: var(--ink-3); font-size: 11px; font-family: var(--font-data); }
.calc-chart .line-base { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.calc-chart .line-better { fill: none; stroke: var(--gain); stroke-width: 2.5; }
.calc-chart .gap-area { fill: var(--gain); opacity: .12; }
.calc-chart .end-dot-base { fill: var(--ink-3); stroke: var(--surface); stroke-width: 2; }
.calc-chart .end-dot-better { fill: var(--gain); stroke: var(--surface); stroke-width: 2; }
.calc-chart .end-label { font-size: 12px; font-weight: 700; font-family: var(--font-data); fill: var(--gain); }
.calc-chart .end-label--base { fill: var(--ink-3); }
.calc-chart .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.calc-tip {
  position: absolute;
  top: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: var(--t-xs);
  font-family: var(--font-data);
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.calc-tip b { font-weight: 700; }
.calc-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--t-xs); color: var(--ink-2); }
.calc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.lg-base { background: var(--ink-3); }
.lg-better { background: var(--gain); }
.calc-note { font-size: var(--t-xs); color: var(--ink-3); }

@media (max-width: 860px) {
  .gap-grid { grid-template-columns: minmax(0, 1fr); }
  .gap-copy { position: static; }
}
@media (max-width: 480px) {
  .calc-inputs { grid-template-columns: minmax(0, 1fr); }
  .calc-chart svg { height: 200px; }
}

/* ─── AmoScore ─────────────────────────────────────────────────────────── */
.score {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 104px);
}
.score-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.score-copy { display: grid; gap: 16px; }
.score-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 52ch; }

.bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.band { padding: 12px 14px; display: grid; gap: 2px; background: var(--paper); border-top: 4px solid; }
.band b { font-size: var(--t-md); }
.band span { font-size: var(--t-xs); color: var(--ink-3); font-family: var(--font-data); }
.band--low { border-color: var(--gain); }
.band--mid { border-color: var(--cobalt); }
.band--high { border-color: var(--gold); }
.band:first-child { border-radius: 0 0 8px 0; }
.band:last-child { border-radius: 0 0 0 8px; }

.weights { display: grid; gap: 20px; min-width: 0; }
.weights-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  gap: 2px;
  background: var(--surface);
}
.weights-bar .w { flex: var(--w) 1 0; }
.w1 { background: #10B981; }
.w3 { background: #3B82F6; }
.w5 { background: #8B5CF6; }
.ws { background: #F59E0B; }
.wl { background: #EC4899; }

.weights-list { list-style: none; margin: 0; padding: 0; display: grid; }
.weights-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.weights-list li:first-child { padding-top: 0; }
.weights-list i { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.weights-list b { font-size: var(--t-md); }
.weights-list .pct { font-family: var(--font-data); font-weight: 700; font-variant-numeric: tabular-nums; }
.weights-list p { grid-column: 2 / -1; color: var(--ink-3); font-size: var(--t-sm); }

.golden-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  background: #FBF3E2;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.golden-note svg { width: 28px; height: 28px; fill: #E9A23B; stroke: #8A5A12; stroke-width: 1.2; }
.golden-note b { color: var(--gold); }

@media (max-width: 860px) {
  .score-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ─── How it works ─────────────────────────────────────────────────────── */
.how { padding-block: clamp(56px, 8vw, 104px); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0 0 0 24px;
  position: relative;
}
.steps li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--cobalt);
}
.steps p { color: var(--ink-2); font-size: var(--t-md); }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .steps li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li, .steps li + li {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 8px;
    border-inline-start: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
  }
  .steps li > :not(.step-num) { grid-column: 2; }
  .step-num { grid-row: span 2; font-size: 2.4rem; }
}

/* ─── About ────────────────────────────────────────────────────────────── */
.about { padding-block: clamp(56px, 8vw, 96px); background: var(--paper-2); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.about-mark {
  width: clamp(140px, 18vw, 220px);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.about-mark span { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); }
.about-mark img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: grid; gap: 14px; max-width: 64ch; }
.about-copy > p:not(.eyebrow) { color: var(--ink-2); }
.about-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.about-points li { padding-inline-start: 20px; position: relative; color: var(--ink-2); }
.about-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gain);
}
.about-points b { color: var(--ink); }

@media (max-width: 640px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-mark { width: 120px; }
}

/* ─── FAQ ──────────────────────────────────────────────────────────────── */
.faq { padding-block: clamp(56px, 8vw, 104px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: var(--t-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cobalt);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq .section-head { margin-bottom: 0; } }

/* ─── Contact ──────────────────────────────────────────────────────────── */
.contact {
  background: var(--ink);
  color: var(--r-fg);
  padding-block: clamp(56px, 8vw, 104px);
  background-image: radial-gradient(50% 60% at 0% 0%, rgba(36, 72, 216, .35), transparent 70%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-copy { display: grid; gap: 16px; }
.contact-copy h2 { color: var(--r-fg); }
.contact-copy > p:not(.eyebrow) { color: var(--r-fg-2); font-size: var(--t-lg); }
.contact-direct { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.contact-direct li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(163, 177, 198, .2);
}
.contact-direct span { color: var(--r-fg-2); }
.contact-direct a { font-weight: 700; text-decoration: none; color: var(--r-fg); font-family: var(--font-data); }
.contact-direct a:hover { color: #9DB1FF; }
.contact-area { color: var(--r-fg-3); font-size: var(--t-sm); }

.lead-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: var(--t-sm); padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: var(--surface); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--t-xs); font-weight: 600; }
.field input[type="tel"] { text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: all .15s;
}
.chip input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.form-hint { font-size: var(--t-xs); color: var(--ink-3); text-align: center; }
.form-status { font-weight: 700; text-align: center; padding: 12px; border-radius: 10px; background: var(--gain-soft); color: var(--gain); }
.form-status--error { background: #FBE7E5; color: var(--danger); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: #060C1E;
  color: #8A97B3;
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
  font-size: var(--t-xs);
}
.footer-inner { display: grid; gap: 10px; }
.footer-brand { color: var(--r-fg); font-size: var(--t-sm); }
.footer-legal { max-width: 90ch; line-height: 1.7; }

/* ─── WhatsApp button ──────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  inset-inline-end: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1FAF54;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -6px rgba(11, 21, 48, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ─── Motion ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .statement { animation: settle-a .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .insight { animation: settle-b .9s cubic-bezier(.2, .7, .2, 1) .35s both; }
  .ring-fill { animation: ring 1.2s cubic-bezier(.2, .7, .2, 1) .6s both; }
}
@keyframes rise { from { transform: translateY(14px); opacity: .01; } }
@keyframes settle-a { from { transform: rotate(5deg) translateY(16px); } }
@keyframes settle-b { from { transform: rotate(-5deg) translateY(36px); } }
@keyframes ring { from { stroke-dasharray: 0 251.3; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-animating .bar-fill { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
