/* Work / case-study pages — builds on the tokens and components in ../style.css */

/* Hero extras */

.work-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.work-tag {
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--neutral-700);
  border: 1px solid var(--divider);
}

.work-outcome {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--pink-dark);
  line-height: 1.4;
  max-width: 46ch;
  margin: -8px 0 32px;
}

.work-back {
  font-size: 14px;
}

/* Problem / build copy */

.work-copy {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--neutral-700);
}

.work-copy + .work-copy {
  margin-top: 20px;
}

/* Sheet mockup */

.sheet-mockup {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  overflow: hidden;
  margin-top: 28px;
}

.sheet-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}

.sheet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutral-300);
}

.sheet-filename {
  margin-left: 7px;
  font-size: 12.5px;
  color: var(--neutral-600);
}

.sheet-body {
  overflow-x: auto;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.sheet-table th,
.sheet-table td {
  padding: 9px 12px;
  border: 1px solid var(--neutral-300);
  text-align: left;
  white-space: nowrap;
  color: var(--text);
}

.sheet-table thead th {
  background: var(--surface);
  font-family: var(--font-heading);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-600);
  font-weight: 400;
}

.sheet-table td.num {
  font-variant-numeric: tabular-nums;
}

.sheet-table td.muted {
  color: var(--neutral-600);
}

.sheet-table td.flag {
  background: rgba(242, 150, 189, 0.35);
  color: var(--pink-dark);
  font-weight: 600;
}

.sheet-table td.ok {
  color: var(--neutral-600);
}

.sheet-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  overflow-x: auto;
}

.sheet-tab {
  padding: 7px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 12px;
  color: var(--neutral-600);
  white-space: nowrap;
}

.sheet-tab.active {
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 -2px 0 var(--pink) inset;
}

.sheet-caption {
  font-size: 12.5px;
  color: var(--neutral-600);
  margin-top: 10px;
}

/* Before / after pair */

.sheet-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .sheet-pair {
    grid-template-columns: 1fr;
  }
}

.sheet-pair-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-600);
  margin-bottom: 10px;
}

.sheet-pair > div .sheet-mockup {
  margin-top: 0;
}

/* Flow steps */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 13px;
}

.flow-step {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 13px;
  margin-bottom: 16px;
}

.flow-step h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13.5px;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* Results */

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

@media (max-width: 760px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.stat-tile {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 27px);
  color: var(--pink);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  color: var(--neutral-300);
  line-height: 1.5;
}

/* Work index */

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

@media (max-width: 760px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.work-card:hover {
  transform: translateY(-2px);
}

.work-card h3 {
  font-size: 22px;
}

.work-card p {
  font-size: 14.5px;
  color: var(--neutral-700);
  line-height: 1.62;
}

.work-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.work-card-tags span {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--neutral-600);
}
