/* ==========================================================================
   D05 Customer Story — page styles (demo/customer-story.html)
   ========================================================================== */

/* Story header ----------------------------------------------------------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.breadcrumb a {
  color: var(--ink-3);
}

.story-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.story-title {
  max-width: 18ch;
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* Outcome deltas: cells separated by 1px hairlines (gap over line color) */
.deltas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
}

.deltas__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
}

.deltas__badge {
  align-self: flex-start;
}

.deltas__value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}

.deltas__label {
  font-size: 15px;
}

.deltas__source {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Story layout ----------------------------------------------------------- */
.story {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

/* Sticky customer card */
.story-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  font-size: 14px;
}

/* Photo placeholder — fixed stripe colors, intentionally not themed */
.story-aside__photo {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, #E2ECE6 0 10px, #EFF4F1 10px 20px);
}

.story-aside__photo-label {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.story-aside__role {
  margin-top: -10px;
  color: var(--ink-2);
}

.story-aside__facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.story-aside__cta {
  margin-top: 8px;
  padding: 12px;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.story-aside__cta:hover {
  background: var(--action-hover);
  color: var(--on-action);
}

/* Article text */
.story-body {
  display: flex;
  flex: 999 1 480px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
}

.story-body p {
  margin: 0;
}

.story-body__h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.story-body__h2--next {
  margin-top: 16px;
}

.story-body .story-body__caveat {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}

.story-quote {
  margin: 8px 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.story-quote__by {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink-2);
}

/* Before / after workflow ------------------------------------------------ */
.workflow {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 15px;
}

.workflow__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.workflow__toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.workflow__option {
  min-height: 32px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.workflow__option[aria-pressed="true"] {
  background: var(--ink);
  color: var(--canvas);
}

.workflow__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  animation: pop .24s ease-out;
}

.workflow__task {
  display: flex;
  gap: 10px;
}

.workflow__n {
  flex: none;
  width: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.workflow__time {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

.workflow__total {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface-2);
  font-weight: 700;
}

/* Live UI moment card */
.ui-moment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.ui-moment__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.ui-moment__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.ui-moment__title {
  font-size: 16px;
}

.ui-moment__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pos-bg);
  color: var(--pos);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ui-moment__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

/* More stories ----------------------------------------------------------- */
.story-h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -.02em;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.related__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
}

.related__card:hover {
  border-color: var(--ink);
}

.related__badge {
  align-self: flex-start;
}

.related__title {
  font-size: 18px;
  line-height: 1.25;
}

.related__meta {
  font-size: 13px;
  color: var(--ink-3);
}

/* CTA band --------------------------------------------------------------- */
.story-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--r-lg);
  background: var(--inverse);
  color: var(--on-inverse);
}

.story-cta__title {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: .95;
  letter-spacing: -.04em;
}

.story-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.story-cta__actions .btn {
  line-height: 1.55;
  white-space: normal;
}

/* Filled primary has no border in the original */
.story-cta__actions .btn--primary {
  border: 0;
}

.story-cta__alt {
  padding-left: 22px;
  padding-right: 22px;
}
