.page-hero {
  padding: 78px 0 56px;
  color: white;
  background:
    radial-gradient(circle at 80% 18%, rgba(233, 69, 96, 0.32), transparent 26%),
    linear-gradient(135deg, var(--navy), #14203a 62%, #250b19);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  gap: 44px;
  align-items: end;
}

.page-hero p {
  margin: 20px 0 0;
  color: #d7e1ee;
  font-size: 19px;
}

.page-meta {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.page-meta div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.page-meta strong {
  display: block;
  color: white;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.page-meta span {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.sidebar-title {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar a {
  display: block;
  padding: 9px 10px;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.sidebar a:hover,
.sidebar a.active {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(233, 69, 96, 0.06);
}

.article {
  min-width: 0;
}

.article-section {
  scroll-margin-top: 108px;
  margin-bottom: 76px;
}

.article-section > p,
.article-section .lead {
  max-width: 780px;
  font-size: 18px;
}

.lead {
  color: #42516a;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.case-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--red);
}

.case-card .amount {
  display: inline-block;
  margin: 14px 0 8px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.case-card ul,
.checklist,
.plain-list {
  padding-left: 20px;
  margin: 14px 0 0;
}

.case-card li,
.checklist li,
.plain-list li {
  margin: 8px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(233, 69, 96, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.insight-box,
.warning-box,
.pro-tip {
  margin: 24px 0;
  padding: 24px;
  border-left: 5px solid var(--red);
}

.insight-box {
  background: #f6fbfd;
}

.warning-box {
  border-left-color: var(--gold);
  background: #fff8eb;
}

.pro-tip {
  border-left-color: var(--green);
  background: #f0fbf6;
}

.box-label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 18px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.timeline-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.timeline-card h3 {
  font-family: var(--sans);
  font-size: 18px;
}

.timeline-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.compare-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.compare-card.wrong {
  border-top: 5px solid var(--red);
}

.compare-card.right {
  border-top: 5px solid var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  color: var(--red);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.roi-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.roi-table th,
.roi-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.roi-table th {
  color: var(--navy);
  background: var(--soft-2);
  font-size: 13px;
  text-transform: uppercase;
}

.roi-table tr:last-child td {
  border-bottom: 0;
}

.tier-diagram {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.tier-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.tier-number {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: white;
  border-radius: 50%;
  background: var(--navy);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 800;
}

.tier-card:nth-child(1) .tier-number {
  background: var(--red);
}

.tier-card:nth-child(2) .tier-number {
  background: var(--blue);
}

.tier-card:nth-child(3) .tier-number {
  background: var(--muted);
}

.tier-stat {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.flowchart {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.flow-node {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.flow-arrow {
  color: var(--red);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.pnl-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 26px 0;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.pnl-col {
  padding: 24px;
  background: white;
}

.pnl-col h3 {
  font-family: var(--sans);
  font-size: 18px;
}

.pnl-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pnl-row:last-child {
  border-bottom: 0;
}

.pnl-total {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.energy-cycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.energy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.energy-meter {
  position: relative;
  height: 12px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-2);
}

.energy-meter span {
  display: block;
  height: 100%;
  width: var(--energy);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.phase-label {
  color: var(--red);
  font-weight: 900;
}

.checklist-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.check-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.week-plan {
  display: grid;
  gap: 18px;
}

.day-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.day-label {
  color: var(--red);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
}

.spreadsheet-template {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.spreadsheet-template span {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.spreadsheet-template span:nth-child(4n) {
  border-right: 0;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.milestone {
  padding: 24px;
  color: white;
  border-radius: 8px;
  background: var(--navy);
}

.milestone strong {
  display: block;
  color: var(--red);
  font-family: var(--serif);
  font-size: 34px;
}

@media (max-width: 980px) {
  .page-hero .container,
  .content-shell,
  .two-col,
  .three-col,
  .four-col,
  .compare-grid,
  .pnl-box,
  .checklist-panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: auto;
  }

  .metric-grid,
  .energy-cycle,
  .milestone-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-card,
  .day-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 54px 0 42px;
  }

  .metric-grid,
  .energy-cycle,
  .milestone-grid,
  .spreadsheet-template {
    grid-template-columns: 1fr;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .roi-table {
    display: block;
    overflow-x: auto;
  }
}
