/* ==========================================================
   PayPulse v2 Design System
   2026-04-30 / Site Redesign Prototype
   Single source of truth: site_redesign/paypulse_v2.css

   重みづけ A''（自己発見 4 / ブランド 3 / メディア 1.5 / 一発訴求 1.5）
   設計言語：白 + 深緑 #15803D + Ink #0F172A + IBM Plex Sans + Noto Sans JP + IBM Plex Mono
   ========================================================== */

/* ----------------------------------------------------------
   1. Design Tokens (CSS variables)
   ---------------------------------------------------------- */
:root {
  /* Color: Brand */
  --white: #FFFFFF;
  --ink: #0F172A;            /* テキスト主・データの権威 */
  --ink-2: #334155;          /* 副テキスト */
  --ink-3: #64748B;          /* キャプション */
  --ink-4: #94A3B8;          /* プレースホルダー */

  /* Color: Lines & surfaces */
  --line: #E2E8F0;
  --line-2: #F1F5F9;
  --bg-soft: #FAFAF9;

  /* Color: Brand green (Tailwind green-700 系) */
  --green: #15803D;          /* メインアクセント */
  --green-dark: #166534;     /* CTA hover */
  --green-deep: #064E3B;     /* 「あなた」最強調（emerald-900） */
  --green-light: #DCFCE7;    /* バッジ等の薄面 */

  /* Color: Do/Don't */
  --bad-bg: #FEF2F2;
  --bad-line: rgba(185, 28, 28, 0.2);
  --bad-text: #B91C1C;
  --good-bg: #F0FDF4;
  --good-line: rgba(21, 128, 61, 0.25);

  /* Typography */
  --plex: 'IBM Plex Sans', system-ui, sans-serif;
  --jp:   'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1100px;
  --container-narrow: 720px;
  --container-prose: 760px;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--plex), var(--jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ----------------------------------------------------------
   3. Typography
   ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.h1 {
  font-family: var(--plex);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
.h2 {
  font-family: var(--plex);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
.h3 {
  font-family: var(--plex);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.lead {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.85;
  max-width: 620px;
  margin: 0;
}
.mono { font-family: var(--mono); }

/* ----------------------------------------------------------
   4. Layout: Header / Footer / Section / Container
   ---------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: var(--plex);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--ink); }
.logo .dot { color: var(--green); }
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--green); }
.nav a.is-current { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark); }

.section { padding: 64px 0; background: var(--white); }
.section.bg-soft { background: var(--line-2); }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  font-size: 12px;
  font-family: var(--mono);
}
.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ----------------------------------------------------------
   5. Components: CTA / Hero
   ---------------------------------------------------------- */
.cta {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s;
  font-family: var(--plex), var(--jp);
  border: none;
  cursor: pointer;
}
.cta:hover { background: var(--green-dark); color: var(--white); }
.cta:disabled,
.cta[aria-disabled="true"] {
  background: var(--ink-4);
  cursor: not-allowed;
  opacity: 0.6;
}
.cta-sub {
  display: inline-block;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  font-family: var(--plex), var(--jp);
  background: var(--white);
  cursor: pointer;
}
.cta-sub:hover { border-color: var(--green); color: var(--green); }
.cta-sub.is-active { border-color: var(--green); color: var(--green); }

.hero { padding: 80px 0 48px; }
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin: 24px 0 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hero-stats span { color: var(--ink); font-weight: 700; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ----------------------------------------------------------
   6. Components: Boxplot
   ---------------------------------------------------------- */
.bp-wrap { padding: 24px 8px 32px; }
.bp { position: relative; height: 60px; }
.bp-axis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.bp-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 6px;
  background: var(--ink-3);
}
.bp-tick-label {
  position: absolute;
  bottom: -22px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  transform: translateX(-50%);
}
.bp-min-max {
  position: absolute;
  top: 26px;
  height: 2px;
  background: var(--line);
}
.bp-iqr {
  position: absolute;
  top: 14px;
  height: 26px;
  background: var(--line-2);
  border: 1.5px solid var(--ink-3);
  border-radius: 4px;
}
.bp-median {
  position: absolute;
  top: 14px;
  width: 2px;
  height: 26px;
  background: var(--ink);
}
.bp-you {
  position: absolute;
  top: 21px;
  width: 14px;
  height: 14px;
  background: var(--green-deep);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 12px rgba(6, 78, 59, 0.4);
  z-index: 2;
}
.bp-you-label {
  position: absolute;
  top: -14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green-deep);
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   7. Components: Numbers card
   ---------------------------------------------------------- */
.numbers-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.numbers-headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.numbers-block .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 500;
}
.numbers-block .value {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
}
.numbers-block .value.you { color: var(--green-deep); }
.numbers-block .delta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 0;
}
.numbers-meta {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   8. Components: Structural Factor rows
   ---------------------------------------------------------- */
.factor-rows {
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.factor-rows.is-card { padding: 28px; }
.factor-row {
  display: grid;
  grid-template-columns: 160px 1fr 100px;
  gap: 16px;
  align-items: center;
}
.factor-row .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.factor-row .name.you {
  color: var(--green-deep);
  font-weight: 700;
}
.factor-row .bar {
  position: relative;
  height: 28px;
  background: var(--line-2);
  border-radius: 4px;
  overflow: hidden;
}
.factor-row .fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--ink-3);
  border-radius: 4px;
  opacity: 0.5;
}
.factor-row .fill.you {
  background: var(--green-deep);
  opacity: 1;
}
.factor-row .fill.is-backfilled {
  background-image: repeating-linear-gradient(
    45deg,
    var(--ink-3),
    var(--ink-3) 4px,
    var(--ink-4) 4px,
    var(--ink-4) 8px
  );
  opacity: 0.35;
}
.factor-row .value {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}
.factor-source-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin: 16px 0 0;
}

/* ----------------------------------------------------------
   9. Components: Source cards (4 sources)
   ---------------------------------------------------------- */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.source-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.source-card:hover { border-color: var(--green); }
.source-num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -1px;
}
.source-title {
  font-family: var(--plex);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.source-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------
   10. Components: Article cards
   ---------------------------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.article-card:hover { border-color: var(--green); color: var(--ink); }
.article-card[hidden] { display: none; }
.article-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--plex);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.article-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.articles-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

/* ----------------------------------------------------------
   11. Components: Form (progress / step / choice grid)
   ---------------------------------------------------------- */
.form-progress {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.form-progress-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  width: 25%;
  transition: width 0.3s ease;
}
.progress-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.form-section { padding: 64px 0; background: var(--bg-soft); }
.form-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.form-step { display: none; }
.form-step.is-current { display: block; }
.form-step-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-h1 {
  font-family: var(--plex);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.form-help {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 32px;
}
.form-field {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-label-sub {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--plex), var(--jp);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-input.is-invalid,
.form-select.is-invalid {
  border-color: var(--bad-text);
}
.form-error {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bad-text);
  margin-top: 6px;
  display: none;
}
.form-field.is-invalid .form-error { display: block; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.choice {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.choice:hover { border-color: var(--green); }
.choice.is-selected {
  border-color: var(--green);
  background: var(--green-light);
}
.choice-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink-4);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.choice.is-selected .choice-radio {
  border-color: var(--green);
  background: var(--white);
}
.choice.is-selected .choice-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}
.choice-body { flex: 1; }
.choice-title {
  font-family: var(--plex);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
}
.choice-desc {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.form-back {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  padding: 12px 0;
}
.form-back:hover { color: var(--ink); }
.form-back[hidden] { display: none; }

/* ----------------------------------------------------------
   12. Components: Result page sections
   ---------------------------------------------------------- */
.result-hero { padding: 56px 0; background: var(--white); }
.result-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.result-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.result-h1 {
  font-family: var(--plex);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.6px;
}
.result-numbers {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 1000px;
  margin: 32px auto 0;
}
.result-numbers-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.rn-block .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 500;
}
.rn-block .value {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
}
.rn-block .value.you { color: var(--green-deep); }
.rn-block .delta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 0;
}
.rn-meta {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 20px;
  flex-wrap: wrap;
}

.src-row { padding: 56px 0; background: var(--white); }
.src-row:nth-child(even) { background: var(--line-2); }
.src-row-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.src-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}
.src-tag .num {
  background: var(--green);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.src-h2 {
  font-family: var(--plex);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.src-lead {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.85;
  margin: 0 0 28px;
  max-width: 680px;
}

.placeholder {
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-3);
}
.placeholder-icon {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--ink-4);
  margin-bottom: 8px;
  font-weight: 500;
}
.placeholder-text {
  font-size: 14px;
  font-family: var(--plex), var(--jp);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.case-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.case-headline {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.case-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  background: var(--line-2);
  color: var(--ink-2);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* TOP page mini strip */
.mini-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 880px;
  margin: 56px auto 0;
}
.mini-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.mini-strip-title {
  font-family: var(--plex);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.mini-strip-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.mini-strip-foot {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* TOP: Sample preview frame */
.preview-wrap { max-width: 1000px; margin: 64px auto 0; }
.preview-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}
.preview-bar {
  background: var(--line-2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-4);
  opacity: 0.5;
}
.preview-url {
  flex: 1;
  background: var(--white);
  border-radius: 4px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 8px;
}
.preview-tag {
  background: var(--green);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
}
.preview-content { padding: 36px; }
.preview-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.preview-headline {
  font-family: var(--plex);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}
.preview-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.pn-block .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 500;
}
.pn-block .value {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
}
.pn-block .value.you { color: var(--green-deep); }
.pn-block .delta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin: 4px 0 0;
}
.preview-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.preview-section-h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-section-h .num {
  background: var(--green);
  color: var(--white);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.preview-section-title {
  font-family: var(--plex);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}

.factor-rows-mini { display: grid; gap: 8px; }
.factor-row-mini {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 12px;
  align-items: center;
}
.factor-row-mini .name { font-size: 12px; color: var(--ink-2); }
.factor-row-mini .name.you { color: var(--green-deep); font-weight: 700; }
.factor-row-mini .bar {
  position: relative;
  height: 18px;
  background: var(--line-2);
  border-radius: 3px;
  overflow: hidden;
}
.factor-row-mini .fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--ink-3);
  border-radius: 3px;
  opacity: 0.5;
}
.factor-row-mini .fill.you {
  background: var(--green-deep);
  opacity: 1;
}
.factor-row-mini .value {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.cases-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.case-mini {
  background: var(--line-2);
  border-radius: 8px;
  padding: 16px;
}
.case-mini .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.case-mini .num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.case-mini .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.case-mini .tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  background: var(--white);
  color: var(--ink-2);
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.preview-foot {
  text-align: center;
  padding: 20px 36px 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ----------------------------------------------------------
   13. Components: About page
   ---------------------------------------------------------- */
.about-hero { padding: 80px 0 48px; }
.about-mission {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.85;
  max-width: 720px;
  margin: 0;
  font-weight: 500;
}
.about-story { padding: 56px 0; background: var(--line-2); }
.about-story-inner {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: 0 24px;
}
.about-story p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 2.0;
  margin: 0 0 16px;
}
.about-show { padding: 56px 0; }

.author-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
}
.author-photo {
  width: 80px;
  height: 80px;
  background: var(--line-2);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 28px;
  color: var(--ink-3);
  font-weight: 500;
}
.author-body { flex: 1; min-width: 240px; }
.author-name {
  font-family: var(--plex);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}
.author-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.author-bio {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.85;
  margin: 0;
}

.methodology-link {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.methodology-link:hover { border-color: var(--green); color: inherit; }
.methodology-link .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  margin: 0 0 4px;
  font-weight: 500;
}
.methodology-link .text {
  font-family: var(--plex);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.methodology-link .arrow {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 18px;
}

/* ----------------------------------------------------------
   14. Brand bar
   ---------------------------------------------------------- */
.brand-bar {
  background: var(--ink);
  color: var(--white);
  padding: 20px 28px;
  border-radius: 10px;
  font-family: var(--plex), var(--jp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
}
.brand-bar-sub {
  font-family: var(--plex), var(--jp);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

/* ----------------------------------------------------------
   15. Utility
   ---------------------------------------------------------- */
.text-center { text-align: center; }
.is-hidden { display: none !important; }
.mt-32 { margin-top: 32px; }

/* ----------------------------------------------------------
   16. Responsive
   ---------------------------------------------------------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-mobile-open { display: flex; }
  .result-numbers-head { grid-template-columns: 1fr; }
  .preview-numbers { grid-template-columns: 1fr; }
  .factor-row { grid-template-columns: 110px 1fr 80px; gap: 8px; }
  .factor-row .name { font-size: 12px; }
  .factor-row-mini { grid-template-columns: 90px 1fr 60px; gap: 8px; }
  .factor-row-mini .name { font-size: 11px; }
  .preview-content { padding: 24px; }
  .cases-mini { grid-template-columns: 1fr; }
  .numbers-headline { grid-template-columns: 1fr; }
  .form-progress-inner { gap: 8px; flex-wrap: wrap; }
  .progress-text { font-size: 11px; }
  .author-card { padding: 24px; gap: 16px; }
}
