/* =========================================================
   Economist Theme — 言中
   Editorial, restrained, rule-driven, warm-paper palette
   ========================================================= */

:root {
  color-scheme: light;
  --copy-geo-side-nav-width: 136px;
  --copy-geo-side-nav-gap: 28px;
  --copy-geo-side-nav-space: calc(var(--copy-geo-side-nav-width) + var(--copy-geo-side-nav-gap));
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: none;
}

::selection {
  background: rgba(232, 99, 42, 0.16);
}

/* ── Page Shell ── */

.page-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 0;
  overflow-x: visible;
}

/* ── Navigation (Economist Masthead) ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 56px;
  margin-bottom: 0;
  padding: 0 28px;
  border: none;
  border-radius: 0;
  background: var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
}

.site-nav.site-nav-centered {
  display: flex;
}

.site-nav-brand,
.site-nav-link,
.site-nav-link:visited {
  color: #ffffff;
  text-decoration: none;
}

.site-nav-brand {
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-left: auto;
}

.site-nav-link {
  padding: 0;
  min-height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  transform: none;
  box-shadow: none;
  transition: color 160ms ease;
}

.site-nav-link + .site-nav-link {
  position: relative;
  padding-left: 22px;
  margin-left: 16px;
}

.site-nav-link + .site-nav-link::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 50%;
  color: rgba(255, 255, 255, 0.62);
  transform: translateY(-50%);
}

.site-nav-link:hover,
.site-nav-link-active {
  color: #ffffff;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

/* ── Typography ── */

h1,
h2,
h3,
.report-inline-label,
.report-ai-label,
.report-dimension-title,
.report-scene-title,
.report-main-section-title,
.tool-header h2,
.report-conversion-title {
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  max-width: none;
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
}

.page-title-lock {
  display: block;
  text-wrap: balance;
  min-height: 0;
}

.page-title-group {
  display: grid;
  gap: 0;
  align-content: start;
}

.page-title-group .page-title-lock {
  margin-bottom: 0;
}

.page-subtitle-lock {
  margin: 0;
  max-width: 48rem;
  min-height: 0;
  text-wrap: balance;
}

@media (min-width: 1180px) {
  .page-subtitle-lock {
    max-width: none;
    white-space: nowrap;
  }
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  font-weight: 700;
}

/* Kickers / eyebrows — Economist red labels */
.eyebrow,
.kicker,
.summary-kicker,
.summary-metric-kicker,
.question-index,
.hero-data-label,
.report-sidebar-title,
.report-copy-label,
.tool-meta-item span,
.tool-result-item span,
.summary-detail-item span,
.field-label,
.report-main-section-label,
.plan-article-kicker {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Hero Stage ── */

.hero-stage,
.copy-geo-hero,
.summary-card,
.metric-card,
.tool-card,
.tool-result,
.report-subsection,
.report-sidebar-nav,
.dialog,
.loading-overlay-card {
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-stage,
.copy-geo-hero {
  border: none;
  background: transparent;
}

.hero-stage::after,
.copy-geo-hero::after {
  content: none;
}

.hero-stage-dashboard,
.copy-geo-hero {
  padding: 0;
}

/* Hero grid layout */
.hero-grid-v2,
.copy-geo-hero-grid,
.tool-grid,
.metrics-grid.metrics-report,
.report-grid,
.report-grid-dense,
.report-grid-triple,
.report-score-grid,
.tool-result-grid,
.summary-metric-grid,
.copy-geo-example-grid,
.marketing-vector-grid,
.summary-detail-grid,
.report-payment-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.hero-grid-v2 {
  max-width: none;
  margin: 0;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-copy-editorial {
  display: grid;
  gap: 0;
  max-width: none;
  margin: 0;
  text-align: left;
  animation: none;
}

.hero-copy-editorial h1 {
  max-width: none;
  margin-bottom: 16px;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero-copy-editorial .hero-text,
.hero-pressure-copy,
.copy-geo-hero-copy p,
.summary-text,
.muted-copy,
.metric-label,
.report-card-title,
.report-main-section-copy,
.report-copy,
.tool-result-note,
.tool-guide-note,
.copy-geo-example-copy {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.8;
}

.tool-result-note,
.summary-text {
  display: block;
}

.hero-copy-editorial .hero-text {
  max-width: 42rem;
  margin: 0;
}

.hero-pressure-copy {
  max-width: 42rem;
  margin: 0 0 20px;
  color: var(--text-main);
  font-style: italic;
}

/* Hero proof list — editorial stat bar */
.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--line-strong);
  border-bottom: 1px solid var(--line-soft);
}

.hero-proof-item {
  position: relative;
  flex: 1;
  min-width: 120px;
  padding: 14px 16px 14px 0;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-proof-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 24px;
  background: var(--line-soft);
  transform: translateY(-50%);
}

.hero-proof-item:last-child {
  padding-right: 0;
}

.hero-proof-item:last-child::after {
  content: none;
}

/* Example links */
.hero-example-actions {
  display: grid;
  gap: 8px;
  justify-content: start;
  margin: 0 0 22px;
  padding-top: 0;
  border-top: none;
}

.hero-example-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-example-button,
.site-footer-link,
.metric-jump-link {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  padding: 8px 16px;
  min-height: auto;
  justify-content: flex-start;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
  cursor: pointer;
}

.hero-example-button:not(:last-child)::after {
  content: none;
}

.hero-example-button:hover {
  background: var(--accent);
  color: #ffffff;
  transform: none;
}

.site-footer-link {
  border: none;
  padding: 0;
}

.site-footer-link:hover,
.metric-jump-link:hover {
  transform: none;
  text-decoration: underline;
}

.metric-jump-link {
  border: none;
  padding: 0;
}

/* ── Search Form ── */

.hero-search-shell {
  width: 100%;
  margin: 0;
  padding-top: 0;
  border-top: none;
}

.hero-search-form {
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 14px;
  align-items: stretch;
}

.form-input,
.form-select,
.form-textarea {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(27, 42, 74, 0.16);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.hero-search-input {
  min-height: 54px;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(27, 42, 74, 0.16);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.brief-input {
  height: 100%;
}

.hero-search-input:focus-within,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: none;
  box-shadow: none;
}

.hero-search-icon,
.metric-help {
  font-family: var(--font-ui);
  color: var(--text-muted);
}

.brief-input,
.form-input,
.form-select,
.form-textarea,
.primary-button,
.secondary-button,
.ghost-button,
.feature-value,
.report-meta-pill,
.tool-pill,
.change-chip,
.chip,
.scene-rank-note,
.scene-rank-value,
.report-stat span,
.report-stat strong,
.tool-result-score,
.tool-result-title,
.plan-article,
.site-footer-copy {
  font-family: var(--font-ui);
}

.brief-input::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* ── Buttons ── */

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 54px;
  padding: 0 22px;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: none;
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.hero-submit {
  min-height: 54px;
  height: 54px;
  border-radius: 0;
  box-shadow: none;
  border-color: var(--accent);
}

.hero-submit:hover {
  opacity: 1;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.secondary-button,
.ghost-button {
  color: var(--text-main);
  background: #ffffff;
  border-color: var(--line-soft);
}

.primary-button:hover {
  transform: none;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.secondary-button:hover,
.ghost-button:hover {
  transform: none;
  background: var(--bg-soft);
}

/* ── Search Note ── */

.hero-search-note {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.6;
}

.plan-tabs-empty {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--text-secondary);
  font-family: var(--font-display);
}

/* ── Summary panels ── */

.profile-summary-slot,
.summary-stack-inline,
.summary-card-wide,
.metric-guide-shell,
#restartActionPanel {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.profile-summary-slot,
.summary-stack-inline,
.summary-card-wide,
#restartActionPanel {
  width: 100%;
}

.summary-card-wide {
  margin: 0;
}

#restartActionPanel {
  margin: 18px 0 0;
}

#restartActionPanel .summary-inline-actions {
  width: 100%;
}

.summary-card,
.metric-card,
.tool-card,
.report-subsection,
.report-stat,
.distribution-row,
.summary-detail-item,
.metric-guide-card,
.tool-guide-card,
.copy-geo-example-card,
.plan-article {
  border: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.summary-card,
.metric-card,
.tool-card {
  padding: 20px 24px;
}

.summary-card:hover,
.profile-summary-card:hover,
.plan-card:hover,
.question-card:hover,
.metric-card:hover {
  transform: none;
  box-shadow: var(--shadow-deep);
}

.summary-card strong,
.tool-result-title,
.tool-result-score,
.report-action-title,
.report-opportunity-title,
.report-semantic-term {
  color: var(--text-main);
}

/* ── Scene Education Section ── */

.scene-education,
.plan-overview {
  margin-top: 36px;
}

.section-intro,
.scene-education .section-intro {
  padding: 0;
  border-top: 4px solid var(--accent);
  padding-top: 16px;
}

.section-intro.section-intro-understanding {
  border-top: 4px solid var(--accent);
  padding-top: 24px;
  margin-top: 10px;
}

.section-intro.section-intro-metrics {
  border-top: 4px solid var(--accent);
  padding-top: 16px;
}

.section-intro.section-intro-pain {
  border-top: none;
  padding-top: 0;
}

.section-intro-title,
.report-main-section-title {
  margin: 0 0 8px;
}

.section-intro-desc,
.scene-education-body,
.scene-education-lead {
  margin: 0 0 10px;
  max-width: 48rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.82;
}

.scene-education-lead::first-letter {
  float: left;
  margin-top: 0.08em;
  margin-right: 0.4rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 0.82;
}

/* ── Plan Section — editorial article cards ── */

.plan-tabs-inline,
.plan-dialog-shell {
  display: grid;
  gap: 16px;
}

.plan-comparison-shell {
  padding: 0;
}

.plan-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.plan-compare-head,
.section-name-cell,
.metric-name-cell,
.plan-compare-cell {
  display: none;
}

.plan-article {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 24px 24px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.plan-article:hover {
  transform: none;
  border-color: var(--accent);
  background: var(--bg-soft);
}

.plan-article-active {
  border-color: var(--accent);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan-article-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-article-header > span:first-child {
  display: grid;
  gap: 4px;
}

.plan-article-title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.plan-article-price {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-article-summary {
  display: block;
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.82;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta-list-row {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.meta-list-label {
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-list-value {
  display: block;
  align-self: start;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ── Report Layout ── */

.metrics-report-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.report-sidebar-nav {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 0;
  border: none;
  background: var(--bg-soft);
}

.report-sidebar-context {
  display: grid;
  gap: 6px;
  padding: 16px 16px 14px;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line-soft);
  background: #ffffff;
}

.report-sidebar-context-subject,
.report-sidebar-context-plan {
  margin: 0;
}

.report-sidebar-context-subject {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
}

.report-sidebar-context-plan {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-sidebar-title {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--accent);
}

.report-sidebar-links,
.report-main-section,
.report-main-section-stack,
.report-action-stack,
.report-stack-list,
.tool-guide-stack {
  display: grid;
}

.report-sidebar-links,
.report-main-section-stack,
.report-action-stack,
.report-stack-list,
.tool-guide-stack {
  gap: 14px;
}

.report-sidebar-link-group,
.report-sidebar-subnav,
.report-sidebar-subgroup {
  display: grid;
}

.report-sidebar-subnav {
  gap: 10px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
}

.report-sidebar-subgroup {
  gap: 8px;
}

.report-sidebar-subgroup-button,
.report-sidebar-sublink {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
  box-shadow: none;
  transform: none;
}

.report-sidebar-subgroup-button {
  padding: 0 0 0 14px;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.report-sidebar-subgroup-button:hover,
.report-sidebar-subgroup-button:focus-visible,
.report-sidebar-subgroup-button-active {
  color: var(--accent);
  outline: none;
}

.report-sidebar-sublinks {
  display: grid;
  gap: 4px;
}

.report-sidebar-sublink {
  padding: 6px 0 6px 12px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.5;
  border-left: 2px solid transparent;
}

.report-sidebar-sublink:hover,
.report-sidebar-sublink:focus-visible,
.report-sidebar-sublink-active {
  color: var(--accent);
  border-left-color: var(--accent);
  outline: none;
}

.report-sidebar-link {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--text-main);
  box-shadow: none;
  font-family: var(--font-ui);
  transform: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.report-sidebar-link:last-child {
  border-bottom: none;
}

.report-sidebar-link strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.report-sidebar-link span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.6;
}

.report-sidebar-link:hover,
.report-sidebar-link:focus-visible,
.report-sidebar-link-active,
.report-sidebar-link[aria-current="true"] {
  color: var(--accent);
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--accent);
  transform: none;
  outline: none;
}

.report-section-block {
  scroll-margin-top: 88px;
}

.report-page[hidden],
.report-metric-group-panel[hidden],
.report-metric-page[hidden] {
  display: none !important;
}

.report-main-section {
  gap: 18px;
}

.report-section-details {
  display: grid;
  gap: 14px;
}

.report-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.report-section-toggle::-webkit-details-marker {
  display: none;
}

.report-section-toggle::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.84rem;
  line-height: 1;
  font-weight: 800;
}

.report-section-details[open] .report-section-toggle::before {
  content: "\2212";
}

.report-main-section-header {
  display: grid;
  gap: 10px;
  padding-top: 0;
  border-top: none;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 16px;
}

.report-main-section-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-main-section-heading {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.report-main-section-copy {
  margin: 0;
  max-width: 48rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.8;
}

.report-reading-guide {
  margin: 0 0 14px;
  padding: 16px 20px;
  border-top: 4px solid var(--accent);
  background: var(--bg-soft);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.96rem;
}

/* Report quick take grid */
.report-quick-take-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.report-quick-take {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 3px solid var(--accent);
}

.report-quick-take-title {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-quick-take-verdict {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
}

.report-quick-take-detail {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.7;
}

.report-section-footnote {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Report dialog */
.report-dialog-header {
  margin-bottom: 10px;
}

.report-dialog-kicker-row,
.report-dialog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pills / chips / tags */
.report-meta-pill,
.tool-pill,
.change-chip,
.chip,
.action-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Metric help tooltips */
.metric-help {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.62rem;
}

.metric-help::after {
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.84rem;
  line-height: 1.7;
  box-shadow: var(--shadow-deep);
}

.metric-help:hover::after,
.metric-help:focus-visible::after {
  transform: translateX(-50%);
}

/* Report inline heading / scores */
.report-inline-heading {
  display: grid;
  gap: 4px;
  align-items: start;
  margin-bottom: 8px;
}

.report-inline-label,
.report-ai-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.report-inline-score,
.report-ai-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--text-main);
}

.report-anchor-copy {
  margin: 0 0 12px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.8;
}

.report-ai-dimension-block {
  display: grid;
  gap: 12px;
}

.report-ai-dimension-intro {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.7;
}

.report-ai-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-ai-dimension-card {
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 12px 14px;
}

.report-ai-dimension-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-ai-dimension-score {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  font-weight: 700;
}

/* Report cards & sections */
.report-metric-group,
.report-dimension-card,
.report-metric-card-core,
.report-metric-card-support,
.report-action-card,
.report-competitor-card,
.report-scene-card,
.report-stack-item,
.report-action-track,
.report-conversion-hook,
.report-payment-panel,
.report-payment-qr-shell,
.report-subsection-emphasis {
  border-radius: 0;
}

.report-metric-group {
  padding: 20px 24px !important;
}

.report-metric-group-header {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding-top: 0;
  border-top: none;
}

.report-metric-group-summary {
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.report-metric-page-stack {
  display: grid;
}

.report-metric-group-intro {
  padding: 0 !important;
  border: none;
  background: transparent;
}

.report-metric-group-header-accent {
  margin: 0 0 18px;
  padding: 0 0 0 20px;
  border-top: none;
  position: relative;
}

.report-metric-group-header-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 6px;
  background: var(--accent);
}

.report-summary-question-list,
.report-summary-narratives {
  margin-top: 14px;
}

.report-summary-question-list {
  display: grid;
  gap: 12px;
}

.report-summary-question-item {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.75);
}

.report-summary-question-scene,
.report-summary-question-text {
  margin: 0;
}

.report-summary-question-scene {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-summary-question-text {
  margin-top: 8px;
  color: var(--text-main);
  font-family: var(--font-display);
}

.report-copy {
  display: grid;
  gap: 4px;
  margin: 0;
}

.report-copy-body {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.82;
}

.report-copy-meaning,
.report-copy-implication,
.report-copy-recommendation,
.report-payment-code,
.report-payment-link-box,
.report-payment-code-box {
  padding: 0;
  border: none;
  border-radius: 0;
}

.report-copy-label {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.metrics-report-layout .kicker,
.metrics-report-layout .report-copy-label,
.metrics-report-layout .report-inline-label,
.metrics-report-layout .report-ai-label,
.metrics-report-layout .report-sidebar-title {
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.metrics-report-layout .metric-label,
.metrics-report-layout .report-metric-group-summary,
.metrics-report-layout .report-semantic-definition {
  font-size: 1.05rem;
  line-height: 1.82;
}

.report-metric-card,
.report-subsection,
.report-stat,
.distribution-row,
.report-action-card,
.report-stack-item,
.report-action-track {
  padding: 18px 20px;
}

.report-locked-note {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-stat {
  display: grid;
  gap: 4px;
}

.report-payment-confirm-panel {
  display: grid;
  gap: 14px;
}

.report-payment-confirm-panel-plain {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.report-payment-summary-copy {
  margin: 0;
}

.report-payment-inline-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-payment-inline-meta-item {
  display: grid;
  gap: 6px;
  align-content: start;
}

.report-payment-inline-field-plain {
  margin-top: 4px;
}

.report-payment-plain-note {
  margin: 0;
}

.report-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-focus-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: start;
}

.report-focus-score {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
}

.report-card-title {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.35;
}

.report-metric-group-header .report-card-title,
.report-semantic-heading,
.report-conversion-title {
  font-size: 1.42rem;
  line-height: 1.28;
}

.report-problem-title,
.report-action-track-title,
.report-scene-title {
  font-size: 1.34rem;
}

.report-metric-card-state-good {
  background: var(--success-bg);
}

.report-metric-card-state-neutral {
  background: #ffffff;
}

.report-metric-card-state-weak {
  background: var(--warning-bg);
}

.report-metric-card-highlighted {
  border-color: rgba(232, 99, 42, 0.28);
  background: #ffffff;
  box-shadow: none;
}

.report-metric-highlight-label {
  margin: 0 0 8px;
  color: #ffffff;
  background: var(--accent);
  padding: 4px 10px;
  width: fit-content;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-payment-confirm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-payment-summary-card,
.report-payment-input-card {
  align-content: start;
}

.report-payment-credit-card {
  gap: 10px;
}

.report-payment-inline-field {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.report-payment-inline-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-payment-card-input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--line-soft);
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.98rem;
}

.report-payment-card-input:focus {
  outline: none;
  border-color: var(--accent);
}

.report-stat span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-stat strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

/* Word cloud */
.report-word-cloud-grid,
.report-support-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.word-cloud {
  margin-top: 12px;
  gap: 10px 12px;
}

.word-token {
  color: var(--text-main);
  font-family: var(--font-display);
}

.word-token small {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.72em;
}

.word-cloud.positive .word-token,
.word-cloud.negative .word-token {
  color: var(--text-main);
}

/* Distribution bars */
.distribution-row {
  padding: 14px 18px;
}

.distribution-meta strong,
.scene-rank-label {
  font-family: var(--font-ui);
  font-weight: 800;
}

.distribution-meta span,
.scene-rank-note {
  color: var(--text-secondary);
  font-family: var(--font-display);
  white-space: normal;
}

.distribution-bar,
.run-summary-bar,
.metric-visual-track,
.scene-rank-bar {
  height: 4px;
  border-radius: 0;
  background: var(--line-soft);
}

.distribution-fill,
.run-summary-fill,
.metric-visual-fill,
.scene-rank-fill {
  border-radius: 0;
  background: var(--accent);
}

.metric-visual-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--accent);
}

.scene-rank-row {
  grid-template-columns: minmax(90px, 132px) minmax(0, 1fr) auto;
  gap: 10px;
}

.scene-rank-value {
  font-family: var(--font-ui);
  font-weight: 800;
}

.scene-rank-note {
  grid-column: 1 / -1;
  margin-top: -4px;
}

/* Report actions */
.report-action-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.report-action-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 1.35;
}

.report-action-steps,
.report-action-list {
  display: grid;
  gap: 10px;
}

.report-action-step-line {
  display: block;
  align-items: start;
}

.report-action-step-text {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.82;
}

.report-action-step-prefix {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.report-opportunity-item,
.report-semantic-item {
  display: grid;
  gap: 8px;
}

.report-opportunity-category {
  margin: 0;
}

.report-opportunity-title,
.report-semantic-term {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.35;
}

.report-semantic-definition {
  margin: 0;
  color: var(--text-secondary);
}

.metric-card-frosted {
  position: relative;
  overflow: hidden;
}

.metric-card-frosted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.action-step-badge-emphasis {
  padding: 6px 12px;
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-size: 0.84rem;
}

.action-step-badge-timeframe {
  background: var(--bg-soft);
  border-color: var(--line-soft);
  color: var(--text-main);
  font-size: 0.68rem;
}

.report-word-cloud-extra {
  margin-top: 14px;
}

.report-conversion-hook {
  margin-top: 22px;
  padding: 20px 24px;
  border-top: 4px solid var(--accent);
  background: var(--bg-soft);
  overflow: hidden;
}

.report-conversion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-conversion-body {
  flex: 1 1 auto;
  min-width: 0;
}

.report-conversion-title,
.report-conversion-copy {
  margin: 0;
}

.report-conversion-copy {
  margin-top: 6px;
}

.report-conversion-actions {
  flex: 0 0 auto;
  margin-left: auto;
  background: transparent;
  padding: 0;
  min-width: 0;
}

/* ── Inline Actions & Dialogs ── */

.summary-inline-actions,
.dialog-actions,
.dialog-actions-inline,
.dialog-actions-floating,
.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.summary-inline-actions,
.tool-actions {
  justify-content: flex-start;
}

.tool-result-summary-row > .tool-result-heading-stack {
  flex: 1 1 0;
}

.tool-result-summary-row > .summary-inline-actions {
  margin-left: auto;
  justify-content: flex-end;
  align-self: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  max-width: 100%;
}

.tool-result-header-inline .summary-inline-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.copy-geo-main .tool-actions {
  justify-content: flex-end;
}

.dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 2px solid var(--line-strong);
  background: #ffffff;
}

.dialog[data-mode="version-credit-panel"] {
  border: none;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.28);
}

.dialog-inner {
  max-height: calc(100vh - 64px);
  padding: 28px;
  overflow: auto;
}

.dialog-actions {
  position: sticky;
  bottom: 0;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  z-index: 2;
}

.dialog-context-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
  overflow: hidden;
}

.dialog-context-kicker {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.dialog-context-dialog h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.45rem);
}

.dialog-scroll-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.dialog-scroll-body {
  min-height: 0;
  overflow: auto;
  padding: 4px 4px 24px 0;
}

.dialog-context-dialog .dialog-actions {
  margin-top: 0;
  padding-top: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #ffffff 40%);
}

.dialog[data-mode="version-credit-panel"] .dialog-inner {
  padding-bottom: 28px;
}

.dialog[data-mode="version-credit-panel"] .dialog-scroll-body {
  padding-right: 0;
  padding-bottom: 0;
}

.question-dialog .field-label,
.follow-up-dialog .field-label,
.profile-dialog .report-stat span {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.question-dialog-card {
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  align-content: start;
}

.question-dialog .field-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
}

.question-dialog .form-input,
.question-dialog .form-select,
.question-dialog .form-textarea,
.follow-up-dialog .form-input,
.follow-up-dialog .form-select,
.follow-up-dialog .form-textarea {
  border-color: rgba(27, 42, 74, 0.16);
  background: var(--surface-soft);
}

.question-dialog .form-textarea {
  min-height: 88px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.64;
}

.dialog-actions-floating {
  justify-content: flex-start;
}

.metrics-report-dialog {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 64px);
  padding: 0;
  overflow: hidden;
}

.metrics-report-dialog-scroll {
  min-height: 0;
  overflow: auto;
  padding: 28px;
}

.metrics-report-dialog-actions {
  position: static;
  margin: 0;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 -10px 18px rgba(27, 42, 74, 0.08);
  justify-content: flex-end;
  flex-shrink: 0;
}

.run-progress-dialog {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 64px);
  padding: 0;
  overflow: hidden;
}

.run-progress-dialog-scroll {
  min-height: 0;
  overflow: auto;
  padding: 28px;
}

.run-progress-dialog-actions {
  position: static;
  margin: 0;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 -10px 18px rgba(27, 42, 74, 0.08);
  justify-content: flex-end;
  flex-shrink: 0;
}

.copy-geo-result-actions {
  justify-content: flex-end;
}

/* ── Loading Overlay ── */

.loading-overlay-backdrop {
  background: rgba(0, 0, 0, 0.2);
}

.loading-overlay-card {
  width: min(360px, calc(100vw - 32px));
  padding: 28px;
  border: 2px solid var(--line-strong);
  background: #ffffff;
}

.loading-spinner {
  border-color: var(--line-soft);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
}

/* ── Copy GEO Page ── */

.copy-geo-shell {
  display: block;
}

.copy-geo-layout {
  display: block;
  margin-top: 32px;
  position: relative;
}

.copy-geo-main {
  min-width: 0;
}

.copy-geo-section + .copy-geo-section {
  margin-top: 44px;
}

.copy-geo-side-nav {
  position: static;
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 32px;
  padding: 18px 0 0;
}

.copy-geo-side-nav-title {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-geo-side-nav-links {
  display: grid;
  border-top: 1px solid var(--line-soft);
}

.copy-geo-side-nav-link {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.copy-geo-side-nav-link:hover,
.copy-geo-side-nav-link:focus-visible,
.copy-geo-side-nav-link-active,
.copy-geo-side-nav-link[aria-current="true"] {
  color: var(--text-main);
  padding-left: 10px;
}

@media (min-width: 981px) {
  body.page-has-side-nav {
    display: block;
  }

  .page-shell-with-side-nav {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
  }

  .copy-geo-side-nav {
    position: fixed;
    top: max(112px, calc(50vh - 120px));
    left: max(16px, calc(50vw - 540px - var(--copy-geo-side-nav-width) - 16px));
    width: var(--copy-geo-side-nav-width);
    max-height: calc(100vh - 160px);
    margin-top: 0;
    padding: 14px 16px;
    overflow: auto;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 4px;
    z-index: 50;
  }
}

.page-intro {
  padding: 48px 0 0;
}

.page-intro .section-intro {
  border-top: none;
  padding-top: 0;
}

.page-intro h1 {
  max-width: none;
}

.copy-geo-intro-block .section-intro-desc {
  max-width: 52rem;
}

.copy-geo-intro-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 54rem;
  margin: 20px 0 0;
}

.copy-geo-intro-audience .tool-pill {
  padding: 10px 16px;
  color: var(--accent);
  border-color: rgba(232, 99, 42, 0.28);
  background: rgba(232, 99, 42, 0.08);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.copy-geo-intro-note {
  max-width: 54rem;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.8;
}

.copy-geo-tool-overview {
  margin-top: 0;
}

.copy-geo-tool-overview-grid {
  display: grid;
  gap: 18px;
}

.copy-geo-tool-overview-card {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 24px 26px;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.copy-geo-tool-overview-card h2 {
  margin: 0;
}

.copy-geo-tool-overview-card .metric-label {
  margin: 0;
}

.copy-geo-tool-overview-quote {
  margin: 0;
  padding-left: 18px;
  border-left: 5px solid var(--accent);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.6;
}

.copy-geo-tool-overview-copy {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.85;
}

.copy-geo-tool-overview-output {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.7;
}

.copy-geo-tool-step-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copy-geo-tool-step-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.copy-geo-tool-step-item:first-child {
  padding-top: 0;
  border-top: none;
}

.copy-geo-tool-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
}

.copy-geo-tool-step-copy {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
}

.copy-geo-tool-overview-actions {
  display: flex;
  justify-content: flex-start;
}

.copy-geo-tool-overview-actions .primary-button,
.copy-geo-tool-overview-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.copy-geo-showcase {
  display: grid;
  gap: 18px;
}

.copy-geo-example-grid {
  align-items: stretch;
}

.tool-guide-card,
.tool-result-item {
  display: grid;
  gap: 8px;
}

.copy-geo-example-card,
.tool-guide-card {
  padding: 20px 24px;
}

.copy-geo-example-card-bad {
  border-top: 4px solid var(--accent);
  background: var(--warning-bg);
}

.copy-geo-example-card-good {
  border-top: 4px solid var(--success);
  background: var(--success-bg);
}

.copy-geo-example-card-plan {
  border-top: 4px solid var(--line-strong);
}

.copy-geo-example-card-metrics {
  border-top: 4px solid var(--accent);
}

.copy-geo-example-card-plan.copy-geo-example-card-bad {
  border-top: 4px solid var(--accent);
}

.copy-geo-example-card-metrics.copy-geo-example-card-good {
  border-top: 4px solid var(--success);
}

.marketing-example-grid {
  grid-template-columns: 1fr;
}

.marketing-example-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}

.marketing-example-result {
  margin-top: 12px;
}

.marketing-example-result-card {
  border-top: 4px solid var(--accent);
}

.marketing-example-result-copy {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.marketing-example-result-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.65;
}

.marketing-example-result-copy strong {
  color: var(--text-main);
}

.copy-geo-example-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.copy-geo-example-score {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-main);
}

.copy-geo-example-pill-list + .copy-geo-example-copy {
  margin-top: 12px;
}

.copy-geo-example-card-bad .copy-geo-example-score {
  color: var(--text-muted);
}

.copy-geo-example-card-good .copy-geo-example-score {
  color: var(--success);
}

.tool-result-header {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 4px solid var(--line-strong);
}

.tool-result-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.tool-result-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 18px;
}

.tool-result-heading-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tool-result-summary-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.tool-result-summary-inline .summary-text,
.tool-result-empty-inline {
  margin: 0;
}

.tool-result-subtext {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.5;
}

.summary-inline-actions .primary-button,
.summary-inline-actions .ghost-button {
  flex: 0 0 auto;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.tool-result-action-placeholder {
  display: block;
  width: 120px;
  height: 38px;
  opacity: 0;
}

.tool-result-launch-separated {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 4px solid var(--accent);
}

.tool-result-heading-inline,
.copy-geo-result-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.tool-result-score {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-result-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.tool-result-score-inline {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tool-result-item {
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
}

.copy-geo-example-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: auto;
}

.copy-geo-example-metrics .tool-result-item {
  align-content: start;
  height: 100%;
  gap: 6px;
  padding: 10px 12px;
}

.copy-geo-example-metrics .tool-result-item > span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.copy-geo-shell .metric-label-with-help-tight {
  justify-content: flex-start;
  gap: 2px;
  width: auto;
}

.copy-geo-example-metrics .tool-result-item strong {
  font-size: 0.98rem;
}

.copy-geo-example-metrics .tool-result-note {
  font-size: 0.84rem;
  line-height: 1.55;
}

.copy-geo-example-pill-list {
  margin-bottom: 2px;
}

.tool-result-item strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.tool-result-list,
.tool-guide-list {
  display: grid;
  gap: 10px;
  padding-left: 1.1rem;
  margin: 0;
  color: var(--text-main);
}

.tool-result-list li,
.tool-guide-list li {
  color: var(--text-main);
  font-family: var(--font-display);
  line-height: 1.75;
}

.tool-result-list-ruled {
  padding-left: 0;
  list-style: none;
}

.tool-result-rule {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.tool-result-rule:first-child {
  border-top: none;
  padding-top: 0;
}

.tool-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-pill,
.tool-pill-bad,
.tool-pill-good {
  color: var(--text-main);
  border-color: var(--line-soft);
  background: var(--bg-soft);
}

.tool-pill-bad {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-bg);
}

.tool-pill-good {
  border-color: var(--success-strong);
  color: var(--success-strong);
  background: var(--success-bg);
}

/* Tool textareas & templates */
.tool-textarea,
.tool-template,
.copy-geo-source-block,
.copy-geo-rewrite-output {
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.tool-textarea {
  min-height: 260px;
  padding: 18px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.8;
  resize: vertical;
  width: 100%;
  border: 2px solid var(--line-soft);
}

.tool-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.tool-template {
  margin: 0;
  padding: 18px;
  color: var(--text-main);
  font-family: var(--font-display);
  white-space: pre-wrap;
  background: var(--bg-soft);
}

.copy-geo-source-block,
.copy-geo-rewrite-output {
  padding: 18px;
}

.copy-geo-source-block {
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-geo-source-block p {
  margin: 0;
}

.copy-geo-highlight {
  padding: 0 0.12em;
  border-radius: 0;
  background: rgba(232, 99, 42, 0.14);
  box-shadow: none;
}

.tool-result-launch,
.copy-geo-dialog-block {
  display: grid;
  gap: 12px;
}

.copy-geo-result-heading {
  margin-bottom: 4px;
}

.copy-geo-result-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 18px 0 18px;
}

.copy-geo-result-heading-score {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

.copy-geo-result-heading-summary {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
}

.copy-geo-section-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copy-geo-action-card {
  padding: 20px 24px;
  border-top: 4px solid var(--accent);
  background: var(--bg-soft);
}

.copy-geo-interpretation-card {
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
}

.copy-geo-interpretation-card + .copy-geo-action-card {
  margin-top: 16px;
}

.copy-geo-result-dialog {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 64px);
  padding: 0;
  overflow: hidden;
}

.copy-geo-result-dialog-scroll {
  overflow: auto;
  padding: 28px;
}

.copy-geo-result-actions {
  margin: 0;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 -10px 18px rgba(27, 42, 74, 0.08);
  justify-content: flex-end;
}

.copy-geo-rewrite-result-dialog .copy-geo-rewrite-output-standalone {
  min-height: min(58vh, 560px);
  padding: 24px;
  overflow: auto;
  background: var(--bg-soft);
}

.copy-geo-rewrite-output-standalone p {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.92;
}

.copy-geo-rewrite-result-dialog .dialog-actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  margin: 18px -28px -28px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 -10px 18px rgba(27, 42, 74, 0.08);
}

.copy-geo-rewrite-result-actions {
  justify-content: flex-end;
}

.report-payment-inline-credit {
  gap: 14px;
}

.copy-geo-result-dialog h2,
.marketing-vector-dialog h2 {
  max-width: none;
}

.marketing-vector-dialog {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 64px);
  padding: 0;
  overflow: hidden;
}

.marketing-vector-dialog-scroll {
  overflow: auto;
  padding: 28px;
}

.marketing-vector-report {
  display: grid;
  gap: 18px;
}

.marketing-vector-report-head {
  display: grid;
  gap: 10px;
}

.marketing-vector-report-kicker {
  margin: 0;
}

.marketing-vector-report-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
}

.marketing-vector-report-title-row h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.marketing-vector-report-score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
}

.marketing-vector-report-score {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
}

.marketing-vector-report-score-meta {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.5;
}

.marketing-vector-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.marketing-vector-score-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
}

.marketing-vector-score-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.marketing-vector-score-value {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.05;
}

.marketing-vector-score-note {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.72;
}

.marketing-vector-section {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
}

.marketing-vector-section-accent {
  border-top: 4px solid var(--accent);
  background: var(--bg-soft);
}

.marketing-vector-section-heading {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.marketing-vector-verdict-title {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.24;
}

.marketing-vector-section-body,
.marketing-vector-empty,
.marketing-vector-list li {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.85;
}

.marketing-vector-list {
  display: grid;
  gap: 10px;
  padding-left: 1.4rem;
}

.marketing-vector-empty {
  padding-left: 0;
}

.marketing-vector-dialog-actions {
  margin: 0;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 -10px 18px rgba(27, 42, 74, 0.08);
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.copy-geo-dimension-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.copy-geo-dimension-grid .tool-result-item {
  align-content: start;
}

.copy-geo-dimension-grid + .copy-geo-dialog-block {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .tool-result-summary-row,
  .tool-result-header-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-result-summary-row .summary-inline-actions,
  .tool-result-header-inline .summary-inline-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm 10mm 12mm 10mm;
  }

  :root {
    --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
    --font-ui: var(--font-sans);
    --font-display: var(--font-serif);
  }

  html,
  body {
    background: #ffffff !important;
  }

  body::before,
  .copy-geo-side-nav,
  .site-header,
  .site-footer,
  .summary-inline-actions,
  .tool-actions,
  .dialog,
  .metric-help,
  .copy-geo-tool-overview-actions {
    display: none !important;
  }

  .page-shell,
  .copy-geo-layout,
  .copy-geo-main,
  .copy-geo-hero-grid,
  .copy-geo-example-grid,
  .tool-grid,
  .copy-geo-dimension-grid,
  .marketing-vector-score-grid {
    display: block !important;
  }

  .summary-card,
  .tool-card,
  .copy-geo-example-card,
  .tool-result-launch,
  .marketing-vector-report,
  .copy-geo-interpretation-card,
  .copy-geo-action-card,
  .marketing-vector-score-card,
  .marketing-vector-section {
    box-shadow: none !important;
    break-inside: auto;
    page-break-inside: auto;
  }

  .summary-card,
  .tool-card,
  .copy-geo-example-card,
  .marketing-vector-score-card {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .marketing-vector-report {
    display: block !important;
    gap: 0 !important;
  }

  .marketing-vector-report-head,
  .marketing-vector-section,
  .marketing-vector-score-card {
    margin-bottom: 14px;
  }

  .marketing-vector-section > h3,
  .marketing-vector-section > p,
  .marketing-vector-section li,
  .copy-geo-dialog-block > h3,
  .copy-geo-dialog-block > p,
  .copy-geo-dialog-block li {
    break-inside: avoid;
    page-break-inside: avoid;
    orphans: 3;
    widows: 3;
  }
}

.copy-geo-faq {
  margin-top: 0;
}

.copy-geo-faq-head h2 {
  margin: 0;
}

.copy-geo-faq-list {
  display: grid;
  margin-top: 22px;
}

.copy-geo-faq-item {
  display: grid;
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.copy-geo-faq-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.copy-geo-faq-item h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.95rem);
  line-height: 1.35;
}

.copy-geo-faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.82;
}

/* ── Footer ── */

.site-footer {
  margin-top: 48px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 20px calc(50vw - 50% + 0px);
  border-top: none;
  background: var(--bg-soft);
}

.site-footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ── Responsive ── */

@media (min-width: 761px) {
  .page-title-lock {
    font-size: clamp(2.2rem, 3.9vw, 3rem);
    line-height: 1.08;
    white-space: normal;
  }

  .copy-geo-tool-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .copy-geo-example-grid {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-example-grid {
    grid-template-columns: 1fr;
  }

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

  .tool-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .tool-grid > .summary-card:first-child {
    border-right: none;
  }

  .tool-grid.tool-grid-stacked {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tool-grid.tool-grid-stacked > .summary-card:first-child {
    border-right: 1px solid var(--line-soft);
  }
}

@media (max-width: 980px) {
  body.page-has-side-nav {
    display: block;
  }

  .metrics-report-layout {
    grid-template-columns: 1fr;
  }

  .report-sidebar-nav {
    position: static;
  }

  .report-sidebar-context-subject {
    font-size: 1.04rem;
  }

  .report-focus-grid {
    grid-template-columns: 1fr;
  }

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

  .report-conversion-row {
    flex-direction: column;
    align-items: stretch;
  }

  .report-conversion-actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .copy-geo-side-nav {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 0;
    padding: 0;
    overflow: visible;
    transform: none;
  }

  .page-shell-with-side-nav {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
  }

  .copy-geo-side-nav-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line-soft);
  }

  .copy-geo-side-nav-link {
    padding: 12px 10px 12px 0;
    border-top: none;
    border-bottom: none;
  }
}

@media (max-width: 760px) {
  .page-title-lock {
    white-space: normal;
  }

  .page-shell {
    width: min(var(--max-width), calc(100% - 24px));
    padding-bottom: 64px;
  }

  .site-nav {
    gap: 10px;
    padding: 0 16px;
  }

  .site-nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }

  .site-nav-link {
    font-size: 0.94rem;
  }

  .site-nav-link + .site-nav-link {
    margin-left: 12px;
    padding-left: 18px;
  }

  .report-ai-dimension-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid-v2 {
    padding: 32px 0 28px;
  }

  .hero-search-form {
    grid-template-columns: 1fr;
  }

  .hero-proof-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-proof-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .hero-proof-item::after {
    content: none;
  }

  .hero-proof-item:last-child {
    border-bottom: none;
  }

  .hero-example-link-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-example-button:not(:last-child)::after {
    content: none;
  }

  .plan-tabs-inline {
    grid-template-columns: 1fr;
  }

  .plan-comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .plan-article {
    border-right: none;
  }

  .report-quick-take-grid {
    grid-template-columns: 1fr;
  }

  .dialog {
    width: min(100vw - 16px, 1080px);
  }

  .dialog-inner {
    padding: 18px;
  }

  .scene-rank-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .copy-geo-example-metrics {
    grid-template-columns: 1fr;
  }

  .marketing-example-score-grid {
    grid-template-columns: 1fr;
  }

  .copy-geo-dimension-grid {
    grid-template-columns: 1fr;
  }

  .marketing-vector-score-grid,
  .report-payment-confirm-grid,
  .report-payment-inline-meta {
    grid-template-columns: 1fr;
  }

  .copy-geo-side-nav-links {
    grid-template-columns: 1fr;
  }
}
