/* ==========================================================================
   FitCheck case study: "Lookbook", polished
   A fashion magazine in FitCheck's own design language: calm, photo-first,
   crisp content cards, frosted glass for the controls. Loads after poster.css.
   ========================================================================== */

:root {
  --fc-blue: #2A4FFF;   /* FitCheck accent blue, sampled from the app */
  --fc-navy: #0B1330;   /* FitCheck ink/navy */
  --fc-red: #D92D20;    /* destructive red */
  --fc-tint: #E4E9FF;   /* soft blue tint */
  --label: #FFFFFF;
  --fc-surface: #F3F4F8; /* cool panel behind screenshots */

  --radius-card: 18px;
  --shadow-card: 0 1px 2px rgba(11, 19, 48, 0.06), 0 12px 32px -12px rgba(11, 19, 48, 0.18);
}


.lb-text {
  max-width: 36em;
  font-size: 17px;
}

.lb-text a,
.hangtag__actions a:not(.btn) {
  color: #2A4FFF;
}

.lb-text p + p,
.lb-text p + ul,
.lb-text ul + p {
  margin-top: var(--s2);
}

.lb-text ul {
  padding-left: var(--s3);
}

.lb-text li + li {
  margin-top: var(--s1);
}

/* Hero: a magazine cover
   ========================================================================== */

.lb-hero {
  overflow-x: clip;
}

.lb-hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s4);
  align-items: center;
  padding-top: var(--s8);
  padding-bottom: var(--s12);
}

.cover {
  grid-column: 1 / span 8;
  grid-row: 1;
  position: relative;
  display: grid;
  align-items: end;
  gap: var(--s3);
  min-height: 600px;
  padding: var(--s5) var(--s5) 0;
  border-radius: 28px;
  background: var(--fc-blue);
  overflow: hidden;
}


/* The title lives on the cover, like a magazine masthead */
.cover__title {
  position: absolute;
  left: var(--s5);
  top: var(--s5);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 100%;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.cover__phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  align-items: end;
  padding-right: 18%;
}

.phone {
  width: 100%;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 20px 40px -16px rgba(11, 19, 48, 0.5);
}

.phone:nth-child(2) {
  margin-bottom: var(--s5);
}

/* The hang tag: FitCheck's frosted glass control layer */
.hangtag-wrap {
  grid-column: 8 / span 5;
  grid-row: 1;
  position: relative;
  z-index: 2;
}

.hangtag {
  position: relative;
  padding: var(--s6) var(--s4) var(--s4);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
          backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-card);
}

/* The tag's punched hole */
.hangtag::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 16px;
  height: 16px;
  translate: -50% 0;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--paper);
}

.hangtag h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 100%;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hangtag__summary {
  /* Clears the First Prize seal in the corner */
  margin-top: var(--s3);
  padding-right: var(--s6);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.hangtag dl {
  margin: var(--s3) 0 0;
  border-top: 1px solid var(--rule);
}

.hangtag dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.hangtag dt { color: var(--ink-soft); }
.hangtag dd { margin: 0; font-weight: 600; text-align: right; }

.hangtag__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s4);
}

.btn {
  display: block;
  padding: 13px var(--s3);
  border-radius: 14px;
  background: var(--fc-blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms ease;
}

.btn:hover {
  background: var(--fc-navy);
  color: #fff;
}

.hangtag__actions a:not(.btn) {
  font-size: 15px;
  text-align: center;
}

/* "First Prize": a crisp seal, the one hot accent */
.sticker {
  position: absolute;
  top: -20px;
  right: -16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--vermilion);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 19px;
  line-height: 0.95;
  text-align: center;
  outline: 1.5px solid rgba(255, 255, 255, 0.75);
  outline-offset: -8px;
  box-shadow: 0 10px 24px -10px rgba(11, 19, 48, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .cover { animation: print-fade 700ms var(--ease-out) both; }
  .cover__title { animation: rise 800ms var(--ease-out) 200ms both; }
  .phone { animation: rise 900ms var(--ease-out) both; }
  .phone:nth-child(1) { animation-delay: 350ms; }
  .phone:nth-child(2) { animation-delay: 450ms; }
  .phone:nth-child(3) { animation-delay: 550ms; }
  .hangtag { animation: rise 900ms var(--ease-out) 650ms both; }
  .sticker { animation: seal 500ms var(--ease-out) 1250ms both; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 32px; }
}

@keyframes seal {
  from { opacity: 0; scale: 0.6; }
}

/* Sections
   ========================================================================== */

.lb-section {
  padding: var(--s12) 0;
}

/* Woven labels: neat navy labels with a fine stitch */
.woven {
  display: inline-block;
  margin-bottom: var(--s5);
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--fc-navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  outline: 1px dashed rgba(255, 255, 255, 0.45);
  outline-offset: -6px;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
}

.step-label__no {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--fc-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.lb-step {
  margin-top: var(--s12);
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s4);
  align-items: start;
}

.split > .lb-text {
  grid-column: 1 / span 6;
}

.pullquote,
.split > .services,
.split > .personas {
  grid-column: 8 / span 5;
}

.pullquote {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.pullquote em {
  font-style: normal;
  color: var(--fc-blue);
}

/* Cards share FitCheck's crisp content surface */
.services,
.persona,
.ticket,
.decision__shot {
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

/* Context: the four services */
.services {
  padding: var(--s4);
}

.services__title {
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 34px;
  line-height: 1;
}

.services ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.services__item {
  min-height: 92px;
  padding: var(--s2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.services__item--mine {
  border-color: var(--fc-blue);
  background: var(--fc-blue);
  color: #fff;
}

.services__item span {
  display: block;
  margin-top: var(--s1);
  font-size: 13px;
  font-weight: 500;
}

/* Research: two opposite personas */
.personas {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.persona {
  position: relative;
  padding: var(--s4);
  overflow: hidden;
}

.persona::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--fc-tint);
}

.persona--sam::after {
  background: var(--fc-blue);
}

.persona h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 56px;
  line-height: 0.9;
}

.persona p {
  position: relative;
  z-index: 1;
  margin-top: var(--s2);
  font-size: 15px;
  color: var(--ink-soft);
}

/* Design system: the care label */
.care {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}

.care-label {
  position: relative;
  padding: var(--s6) var(--s4) var(--s4);
  background: #fff;
  color: var(--fc-navy);
  border-radius: 0 0 22px 22px;
  outline: 1px dashed rgba(11, 19, 48, 0.3);
  outline-offset: -8px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
}

/* Folded seam at the top of the label */
.care-label::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background: linear-gradient(#EEF0F5, #fff);
  border-bottom: 1px solid rgba(11, 19, 48, 0.12);
}

.care-label__brand {
  font-family: "Manrope", var(--font-body);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-align: center;
}

.care-label__row {
  padding: var(--s2) 0;
  border-top: 1px solid rgba(11, 19, 48, 0.12);
}

.care-label__row:first-of-type {
  margin-top: var(--s2);
}

.care-label__heading {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 0;
  list-style: none;
}

.swatches li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.swatches span[aria-hidden] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(11, 19, 48, 0.2);
}

.care-label__type {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.care-label__aa {
  font-family: "Manrope", var(--font-body);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
}

.tiers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tiers span {
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.tiers i {
  width: 10px;
  height: 1px;
  background: currentColor;
}

.care-label__foot {
  margin-top: var(--s2);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Wardrobe: design decisions as product cards */
.decisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
  padding: 0;
  list-style: none;
}

.decision__shot {
  margin-bottom: var(--s3);
  padding: var(--s3) var(--s3) 0;
  background: var(--fc-surface);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.decision__shot img {
  width: 78%;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 12px 28px -14px rgba(11, 19, 48, 0.35);
}

.decision__shot--crop img {
  width: 88%;
  margin-top: var(--s4);
  border-radius: 16px;
}

.decision h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
}

.decision blockquote {
  margin: var(--s2) 0 0;
  color: var(--fc-blue);
  font-style: italic;
  font-size: 15px;
}

.decision p {
  margin-top: var(--s2);
  font-size: 15px;
  color: var(--ink-soft);
}

/* The wardrobe rail: flick through screens like hangers */
.rail-figure {
  margin-top: var(--s12);
}

.rail {
  position: relative;
  display: flex;
  gap: var(--s5);
  padding: var(--s6) var(--s4) var(--s4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

/* The rod */
.rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: max(100%, 1500px);
  height: 6px;
  border-radius: 3px;
  background: var(--fc-navy);
}

.rail__item {
  position: relative;
  flex: 0 0 220px;
  scroll-snap-align: center;
}

/* Hanger hook */
.rail__item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -42px;
  width: 22px;
  height: 34px;
  translate: -50% 0;
  border: 2px solid var(--fc-navy);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.rail__item img {
  border-radius: 20px;
  box-shadow: 0 14px 30px -14px rgba(11, 19, 48, 0.4);
  transform-origin: 50% -40px;
  transition: rotate 500ms var(--ease-out);
}

.rail__item:hover img {
  rotate: -2.5deg;
}

.rail__item span {
  display: block;
  margin-top: var(--s1);
  font-size: 13px;
  text-align: center;
  color: var(--ink-soft);
}

.rail__caption {
  margin-top: var(--s1);
  font-size: 14px;
  color: var(--ink-soft);
}

/* Testing: four fitting-room tickets */
.tickets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s5);
  padding: 0;
  list-style: none;
}

.ticket {
  position: relative;
  padding: var(--s3) var(--s3) var(--s4);
  font-weight: 500;
  /* Punched notches on both sides */
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  box-shadow: none;
  border: 1px solid var(--rule);
}

.ticket__no {
  display: block;
  margin-bottom: var(--s2);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 44px;
  line-height: 0.9;
  color: var(--fc-blue);
}

/* Outcome */
.outcome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s8);
  align-items: center;
}

.outcome .sticker {
  position: static;
  width: 200px;
  font-size: 38px;
  outline-offset: -12px;
  animation: none;
}

.lb-callout {
  margin-top: var(--s4);
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--fc-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}

/* Next project */
.next {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
  padding: var(--s12) 0;
  border-top: 2px solid var(--ink);
}

.next__label { color: var(--ink-soft); font-size: 14px; }

.next__title {
  margin-top: var(--s1);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
}

.next__title a { color: var(--ink); text-decoration: none; }
.next__title a:hover { color: var(--fc-blue); }

/* Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .lb-hero .wrap,
  .split { grid-template-columns: minmax(0, 1fr); }
  .cover { grid-column: 1; min-height: 0; padding-top: calc(var(--s5) + 100px); }
  .cover__phones { padding-right: 0; }
  .hangtag-wrap { grid-column: 1; grid-row: 2; max-width: 520px; margin-top: calc(var(--s8) * -1); margin-left: var(--s4); }
  .split > .lb-text, .pullquote, .split > .services, .split > .personas { grid-column: 1; }
  .split { row-gap: var(--s5); }
  .care { grid-template-columns: 1fr; }
  .care-label { max-width: 360px; }
  .decisions { grid-template-columns: 1fr 1fr; }
  .tickets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .lb-hero .wrap { padding-top: var(--s4); padding-bottom: var(--s8); gap: var(--s4); }
  .cover { padding: var(--s3) var(--s3) 0; gap: var(--s2); border-radius: 22px; }
  .cover__phones { gap: 10px; }
  .phone { border-radius: 12px 12px 0 0; }
  .phone:nth-child(2) { margin-bottom: var(--s3); }
  .hangtag-wrap { margin: calc(var(--s5) * -1) var(--s2) 0; }
  .cover__title { left: var(--s3); top: var(--s3); font-size: 48px; }
  .cover { padding-top: calc(var(--s3) + 64px); }
  .hangtag__summary { padding-right: 0; margin-top: var(--s5); }
  .sticker { width: 88px; font-size: 16px; right: -6px; }
  .lb-section { padding: var(--s8) 0; }
  .woven { font-size: 22px; }
  .decisions { grid-template-columns: 1fr; }
  .tickets { grid-template-columns: 1fr; }
  .outcome { grid-template-columns: 1fr; gap: var(--s4); }
  .outcome .sticker { width: 150px; font-size: 28px; }
  .next { grid-template-columns: 1fr; }
  .rail__item { flex-basis: 180px; }
}

/* One full-width moment: the question the Virtual Wardrobe answers */
.pullquote--wide {
  margin-bottom: var(--s6);
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
}
