#pdfRecoveryNote { grid-column: 1 / -1; max-width: 920px; color: var(--muted); font-size: 14px; line-height: 1.7; }

:root {
  --blue: #0066cc;
  --blue-focus: #0071e3;
  --blue-dark: #2997ff;
  --ink: #1d1d1f;
  --ink-soft: #333333;
  --muted: #6e6e73;
  --muted-light: #a1a1a6;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --dark: #272729;
  --dark-2: #2a2a2c;
  --black: #000000;
  --hairline: #e0e0e0;
  --divider: #f0f0f0;
  --danger: #b42318;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --page-width: 1440px;
  --text-width: 980px;
  --nav-height: 44px;
  --subnav-height: 52px;
  --font-display: Geist, "SF Pro Display", "PingFang TC", system-ui, -apple-system, sans-serif;
  --font-text: Geist, "SF Pro Text", "PingFang TC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.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: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--canvas);
  background: var(--blue);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.global-nav {
  position: relative;
  z-index: 70;
  height: var(--nav-height);
  color: var(--canvas);
  background: var(--black);
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.nav-inner,
.sub-nav-inner {
  width: min(100% - 40px, 1100px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}

.brand-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--canvas);
  border-radius: 50%;
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a,
.brand,
.local-state {
  opacity: 0.9;
}

.nav-links a:hover,
.brand:hover {
  opacity: 1;
}

.nav-links a:focus-visible,
.brand:focus-visible,
.text-button:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 4px;
  border-radius: 4px;
}

.local-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.local-state .sync-dot {
  width: 6px;
  height: 6px;
  background: #a6f0c6;
  border-radius: 50%;
}

.local-state.sync-connecting .sync-dot,
.local-state.sync-saving .sync-dot {
  background: #ffd36b;
  box-shadow: 0 0 0 4px rgb(255 211 107 / 14%);
}

.local-state.sync-error .sync-dot {
  background: #ff7b73;
}

.cloud-notice {
  width: min(100%, 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 13px 16px;
  color: #454545;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 12px;
  font-size: 13px;
}

.cloud-notice [data-state="online"] {
  color: #246b48;
}

.cloud-notice [data-state="error"] {
  color: var(--danger);
}

.sub-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--subnav-height);
  color: var(--ink);
  background: rgb(245 245 247 / 86%);
  border-bottom: 1px solid rgb(0 0 0 / 8%);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.sub-nav strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.02em;
}

.sub-nav-inner > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shield-back-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.shield-back-link:hover {
  color: var(--blue-dark);
}

.shield-back-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

#subnavCount {
  color: var(--muted);
  font-size: 12px;
}

.page-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.chapter {
  padding: 160px max(28px, calc((100vw - var(--page-width)) / 2));
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:active {
  transform: scale(0.95);
}

.button:focus-visible,
.filter-button:focus-visible,
.tier-pane:focus-visible,
.topic-choice input:focus-visible + span,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: 3px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  color: var(--canvas);
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-focus);
}

.button-secondary {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}

.button-secondary:hover {
  color: var(--canvas);
  background: var(--blue);
}

.button-dark-outline {
  color: var(--blue-dark);
  background: transparent;
  border-color: var(--blue-dark);
}

.button-dark-outline:hover {
  color: var(--black);
  background: var(--blue-dark);
}

.button-danger {
  color: var(--canvas);
  background: var(--danger);
}

.button-large {
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 300;
}

.button-small {
  min-height: 32px;
  padding: 8px 15px;
  font-size: 14px;
}

.text-button {
  padding: 6px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 14px;
}

.danger-text {
  color: var(--danger);
}

.hero {
  min-height: calc(100vh - var(--subnav-height));
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(400px, 0.93fr);
  align-items: center;
  gap: clamp(64px, 8vw, 132px);
  background: var(--canvas);
}

.hero-copy {
  max-width: 800px;
}

.hero-kicker,
.section-title > p,
.analysis-intro > p:first-child,
.method-stack-heading > p,
.report-action > div > p:first-child,
.roster-toolbar p,
.editor-heading p {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.01em;
}

.hero h1 {
  width: 100%;
  max-width: 72rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.inline-heading-image {
  width: clamp(112px, 12vw, 180px);
  height: auto;
  display: inline-block;
  margin: 0 0.08em;
  vertical-align: 0.04em;
  border-radius: var(--radius-pill);
}

.no-break {
  white-space: nowrap;
}

.hero-lead {
  max-width: 720px;
  margin: 36px 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.hero-product {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  color: var(--ink);
  background: var(--parchment);
  border-radius: 30px;
  box-shadow: rgb(0 0 0 / 22%) 3px 5px 30px 0;
}

.product-topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--muted);
  background: rgb(255 255 255 / 84%);
  border-bottom: 1px solid rgb(0 0 0 / 7%);
  font-size: 12px;
  backdrop-filter: blur(16px);
}

.product-topbar span:first-child {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.product-person {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 42px 36px 28px;
}

.product-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--canvas);
  background: var(--blue);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 600;
}

.product-person strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.product-person p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-fields {
  margin: 8px 36px 0;
  padding: 12px 22px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.product-fields span {
  display: block;
  margin: 15px 0 7px;
  color: var(--muted);
  font-size: 12px;
}

.product-fields i {
  width: 100%;
  height: 12px;
  display: block;
  background: var(--parchment);
  border-radius: var(--radius-pill);
}

.product-fields i.short {
  width: 44%;
}

.product-fields i.medium {
  width: 72%;
  margin-bottom: 16px;
  background: #dceeff;
}

.product-result {
  position: absolute;
  right: 36px;
  bottom: 30px;
  left: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  color: var(--canvas);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.product-result span:not(.product-arrow) {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-light);
  font-size: 12px;
}

.product-result strong {
  font-size: 14px;
  font-weight: 600;
}

.product-arrow {
  color: var(--blue-dark);
  font-size: 26px;
}

.source-marquee {
  width: 100%;
  overflow: hidden;
  color: var(--canvas);
  background: var(--black);
  border-top: 1px solid #161616;
  border-bottom: 1px solid #161616;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 0;
  animation: marquee 34s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.marquee-track i {
  width: 4px;
  height: 4px;
  background: var(--blue-dark);
  border-radius: 50%;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.workflow {
  background: var(--parchment);
}

.section-title {
  max-width: var(--text-width);
}

.centered-title {
  margin: 0 auto 72px;
  text-align: center;
}

.section-title h2,
.analysis-intro h2,
.method-stack-heading h2,
.report-action h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.workflow-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1px;
  overflow: hidden;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.workflow-bento article {
  min-height: 320px;
  padding: 34px;
  background: var(--canvas);
}

.workflow-bento article:nth-child(2),
.workflow-bento article:nth-child(4) {
  background: var(--pearl);
}

.workflow-bento span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.workflow-bento h3 {
  margin: 112px 0 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.workflow-bento p {
  margin: 0;
  color: var(--muted);
}

.workspace {
  background: var(--canvas);
}

.workspace-title {
  margin: 0 0 76px;
}

.section-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(520px, 1.08fr);
  align-items: start;
  gap: 28px;
}

.entry-editor,
.roster-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.entry-editor {
  overflow: hidden;
  background: var(--canvas);
}

.editor-heading,
.roster-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
}

.editor-heading p,
.roster-toolbar p {
  margin-bottom: 6px;
}

.editor-heading h3,
.roster-toolbar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.form-section {
  margin: 0;
  padding: 30px 28px;
  border: 0;
  border-bottom: 1px solid var(--divider);
}

.form-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.form-section-heading strong,
.topic-section legend {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.form-section-heading span,
.topic-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 18px 16px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.field b {
  color: var(--blue);
  font-size: 12px;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-light);
}

select {
  padding-right: 34px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.topic-section legend {
  padding: 0;
}

.topic-section > p {
  margin: 6px 0 18px;
}

.topic-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-choice {
  position: relative;
}

.topic-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.topic-choice span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 14px;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.topic-choice input:checked + span {
  color: var(--blue);
  background: #eef6ff;
  border: 2px solid var(--blue-focus);
  padding: 10px 15px;
}

.live-score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 28px;
  padding: 24px;
  color: var(--canvas);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.score-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 5px solid var(--blue-dark);
  border-radius: 50%;
}

.score-ring strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.score-ring span {
  color: var(--muted-light);
  font-size: 11px;
}

.live-score > div:last-child > span {
  color: var(--blue-dark);
  font-size: 12px;
}

.live-score > div:last-child > strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
}

.live-score p {
  margin: 5px 0 0;
  color: #cccccc;
  font-size: 12px;
}

.editor-actions {
  display: flex;
  gap: 10px;
  padding: 0 28px 28px;
}

.form-error {
  min-height: 20px;
  margin: -16px 28px 24px;
  color: var(--danger);
  font-size: 14px;
}

.roster-panel {
  position: sticky;
  top: calc(var(--subnav-height) + 22px);
  max-height: calc(100vh - var(--subnav-height) - 44px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--parchment);
}

.search-field input {
  width: min(240px, 30vw);
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}

.roster-filters {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  scrollbar-width: thin;
}

.filter-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 14px;
}

.filter-button.active {
  color: var(--canvas);
  background: var(--ink);
  border-color: var(--ink);
}

.roster-list {
  min-height: 420px;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.roster-empty {
  min-height: 380px;
  display: grid;
  place-content: center;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.roster-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
}

.person-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: border-color 180ms ease, transform 220ms ease;
}

.person-card + .person-card {
  margin-top: 10px;
}

.person-card:hover {
  border-color: #b6b6ba;
  transform: translateY(-2px);
}

.person-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--canvas);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 600;
}

.person-card-main {
  min-width: 0;
}

.person-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-card-title strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-chip {
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background: #eef6ff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.tier-chip.incomplete {
  color: var(--muted);
  background: var(--parchment);
}

.person-meta,
.person-action {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-action {
  color: var(--ink-soft);
}

.person-menu {
  display: flex;
  gap: 4px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--blue);
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-size: 13px;
}

.icon-button.delete {
  color: var(--danger);
}

.dark-chapter {
  color: var(--canvas);
  background: var(--dark);
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(600px, 1.3fr);
  align-items: start;
  gap: clamp(64px, 8vw, 128px);
}

.analysis-intro {
  padding-top: 20px;
}

.analysis-intro > p:not(:first-child) {
  max-width: 520px;
  margin: 28px 0 34px;
  color: #cccccc;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}

.analysis-content {
  display: grid;
  gap: 24px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #454547;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.summary-strip div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--dark-2);
}

.summary-strip div + div {
  border-left: 1px solid #454547;
}

.summary-strip span {
  color: #b5b5ba;
  font-size: 12px;
}

.summary-strip strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.analysis-card {
  padding: 34px;
  color: var(--ink);
  background: var(--canvas);
  border-radius: var(--radius-lg);
}

.card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.card-heading span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.card-heading h3 {
  max-width: 560px;
  margin: 7px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.card-heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.tier-bars,
.group-bars {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 16px;
}

.bar-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.bar-label span {
  color: var(--muted);
  font-size: 12px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  background: var(--parchment);
  border-radius: var(--radius-pill);
}

.bar-track i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--blue);
  border-radius: inherit;
}

.bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
}

.market-map {
  position: relative;
  min-height: 520px;
  margin: 44px 28px 28px 54px;
  border: 1px solid var(--hairline);
  isolation: isolate;
}

.market-zone {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--ink-soft);
  background: rgb(0 102 204 / 9%);
  border: 1px solid rgb(0 102 204 / 9%);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.2;
}

.zone-retirement { inset: 0 50% 66% 0; }
.zone-inheritance { inset: 0 0 66% 50%; background: rgb(0 102 204 / 18%); }
.zone-wealth { inset: 25% 50% 43% 13%; background: rgb(0 102 204 / 25%); }
.zone-tax { inset: 25% 13% 43% 50%; background: rgb(0 102 204 / 34%); }
.zone-savings { inset: 50% 50% 25% 13%; background: rgb(0 102 204 / 22%); }
.zone-premium { inset: 50% 13% 25% 50%; background: rgb(0 102 204 / 46%); }
.zone-protection { inset: 66% 50% 0 0; background: rgb(0 102 204 / 3%); }
.zone-care { inset: 66% 0 0 50%; background: rgb(0 102 204 / 38%); }

.axis-label {
  position: absolute;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.axis-income {
  top: 50%;
  left: -48px;
  transform: translateY(-50%) rotate(-90deg);
}

.axis-age {
  right: 0;
  bottom: -34px;
  left: 0;
  text-align: center;
}

.market-points {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.market-point {
  position: absolute;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--canvas);
  background: var(--ink);
  border: 2px solid var(--canvas);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.market-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: min(320px, 78%);
  padding: 18px;
  color: var(--muted);
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.insights-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: insight;
}

.insights-card li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 20px 0;
  counter-increment: insight;
  border-top: 1px solid var(--divider);
}

.insights-card li::before {
  content: counter(insight, decimal-leading-zero);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.insights-card li:last-child {
  padding-bottom: 0;
}

.tier-method {
  background: var(--parchment);
}

.tier-accordion {
  min-height: 520px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.tier-pane {
  min-width: 0;
  flex: 1 1 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 38px;
  padding: 34px;
  color: var(--ink);
  background: var(--canvas);
  border: 0;
  transition: flex 520ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 280ms ease;
}

.tier-pane + .tier-pane {
  border-left: 1px solid var(--hairline);
}

.tier-pane:hover,
.tier-pane:focus-within,
.tier-pane:focus {
  flex: 2.1 1 0;
  background: #eef6ff;
}

.tier-pane > span {
  align-self: start;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.tier-pane h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
}

.tier-pane p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
}

.method-stack {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(520px, 1.25fr);
  align-items: start;
  gap: clamp(64px, 9vw, 150px);
  background: var(--canvas);
}

.method-stack-heading {
  position: sticky;
  top: calc(var(--subnav-height) + 88px);
}

.method-cards {
  display: grid;
  gap: 28px;
  padding-bottom: 96px;
}

.method-card {
  position: sticky;
  min-height: 440px;
  display: grid;
  align-content: end;
  padding: 46px;
  color: var(--canvas);
  background: var(--dark);
  border: 1px solid #404044;
  border-radius: var(--radius-lg);
}

.method-card:nth-child(1) { top: 130px; }
.method-card:nth-child(2) { top: 158px; background: var(--dark-2); }
.method-card:nth-child(3) { top: 186px; background: #252527; }

.method-card span {
  margin-bottom: auto;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 600;
}

.method-card h3 {
  max-width: 680px;
  margin: 140px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.method-card p {
  max-width: 620px;
  margin: 0;
  color: #cccccc;
  font-size: 17px;
}

.report-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 64px;
  background: var(--parchment);
}

.report-action > div:first-child {
  max-width: 920px;
}

.report-action > div:first-child > p:last-child {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.report-buttons {
  display: grid;
  gap: 12px;
  min-width: 250px;
}

.download-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.blank-pdf-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 60px;
  padding: 64px max(28px, calc((100vw - 1100px) / 2));
  color: var(--ink-soft);
  background: var(--parchment);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer strong {
  color: var(--ink);
  font-size: 17px;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer .text-button {
  margin-top: 7px;
  padding-left: 0;
  font-size: 12px;
}

.legal-copy {
  grid-column: 1 / -1;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}

.confirm-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--canvas);
  border: 0;
  border-radius: var(--radius-lg);
}

.confirm-dialog::backdrop {
  background: rgb(0 0 0 / 54%);
  backdrop-filter: blur(5px);
}

.confirm-dialog form {
  padding: 30px;
}

.confirm-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.confirm-dialog p {
  margin: 12px 0 28px;
  color: var(--muted);
}

.confirm-dialog form > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1068px) {
  .chapter {
    padding-top: 128px;
    padding-bottom: 128px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.92fr);
    gap: 54px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6.5vw, 4.8rem);
  }

  .workflow-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-bento article {
    min-height: 270px;
  }

  .workspace-grid {
    grid-template-columns: minmax(400px, 0.9fr) minmax(420px, 1.1fr);
  }

  .analysis-layout,
  .method-stack {
    grid-template-columns: 1fr;
  }

  .analysis-intro,
  .method-stack-heading {
    position: static !important;
    max-width: 800px;
    transform: none !important;
  }

  .method-card {
    min-height: 380px;
  }

  .report-action {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .report-buttons {
    width: min(360px, 100%);
  }
}

@media (max-width: 833px) {
  .nav-links {
    display: none;
  }

  .chapter {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-product {
    width: min(620px, 100%);
    min-height: 540px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .roster-panel {
    position: static;
    max-height: none;
  }

  .roster-list {
    max-height: 680px;
  }

  .analysis-layout {
    gap: 72px;
  }

  .tier-accordion {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier-pane {
    min-height: 320px;
  }

  .tier-pane + .tier-pane {
    border-left: 0;
  }

  .tier-pane:nth-child(even) {
    border-left: 1px solid var(--hairline);
  }

  .tier-pane:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }

  .tier-pane:hover,
  .tier-pane:focus {
    background: #eef6ff;
  }
}

@media (max-width: 640px) {
  :root {
    --subnav-height: 50px;
  }

  body {
    font-size: 16px;
  }

  .nav-inner,
  .sub-nav-inner {
    width: min(100% - 28px, 1100px);
  }

  .local-state {
    max-width: 108px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
  }

  #subnavCount {
    display: none;
  }

  .shield-back-link {
    font-size: 11px;
  }

  .sub-nav strong {
    font-size: 17px;
  }

  .chapter {
    padding: 96px 18px;
  }

  .hero {
    padding-top: 88px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
    line-height: 1;
  }

  .hero-lead {
    font-size: 21px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-product {
    min-height: 500px;
    border-radius: var(--radius-lg);
  }

  .product-person,
  .product-fields {
    margin-right: 20px;
    margin-left: 20px;
  }

  .product-person {
    padding-right: 0;
    padding-left: 0;
  }

  .product-result {
    right: 20px;
    left: 20px;
  }

  .section-title h2,
  .analysis-intro h2,
  .method-stack-heading h2,
  .report-action h2 {
    font-size: 38px;
  }

  .centered-title {
    margin-bottom: 48px;
    text-align: left;
  }

  .workflow-bento {
    grid-template-columns: 1fr;
  }

  .workflow-bento article {
    min-height: 240px;
    padding: 28px;
  }

  .workflow-bento h3 {
    margin-top: 82px;
  }

  .section-lead {
    font-size: 20px;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-section,
  .editor-heading,
  .roster-toolbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .form-section-heading {
    display: grid;
    gap: 4px;
  }

  .live-score {
    grid-template-columns: 1fr;
    margin: 20px;
  }

  .score-ring {
    width: 72px;
    height: 72px;
  }

  .editor-actions {
    display: grid;
    padding-right: 20px;
    padding-left: 20px;
  }

  .form-error {
    margin-right: 20px;
    margin-left: 20px;
  }

  .roster-toolbar {
    display: grid;
  }

  .search-field,
  .search-field input {
    width: 100%;
  }

  .person-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .person-menu {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-strip div:nth-child(3) {
    border-top: 1px solid #454547;
    border-left: 0;
  }

  .summary-strip div:nth-child(4) {
    border-top: 1px solid #454547;
  }

  .analysis-card {
    padding: 24px 20px;
  }

  .card-heading {
    display: grid;
  }

  .card-heading > p {
    max-width: none;
    text-align: left;
  }

  .bar-row {
    grid-template-columns: 102px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .bar-label span {
    display: none;
  }

  .market-map {
    min-height: 410px;
    margin-right: 4px;
    margin-left: 34px;
  }

  .market-zone {
    padding: 6px;
    font-size: 11px;
  }

  .market-point {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }

  .tier-accordion {
    grid-template-columns: 1fr;
  }

  .tier-pane,
  .tier-pane:nth-child(even) {
    min-height: 250px;
    padding: 28px;
    border-left: 0;
  }

  .tier-pane:nth-child(n + 2) {
    border-top: 1px solid var(--hairline);
  }

  .tier-pane > span {
    font-size: 48px;
  }

  .method-card {
    min-height: 410px;
    padding: 32px 26px;
  }

  .method-card:nth-child(1),
  .method-card:nth-child(2),
  .method-card:nth-child(3) {
    top: 76px;
  }

  .method-card h3 {
    margin-top: 120px;
    font-size: 32px;
  }

  .report-buttons {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 20px;
  }

  .legal-copy {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
