/* Cafler case study — page-specific styles (Figma node 1:11455) */
.cf {
  --cf-blue: #145cfc;
  --cf-vs: #2d62fc;
  --cf-tint: #f8faff;
  --cf-line: #dce0ed;
  --cf-line-soft: #e5e7f1;
  --cf-grey: #808080;
  --cf-body: #3b4666;
  font-family: "Geist", system-ui, sans-serif;
  color: #000;
}
.cf h1, .cf h2, .cf h3 { font-weight: 600; }

/* Icons: Iconify SVGs (sources in assets/cafler/icon-*.svg) inlined as masks so they take any colour and work over file:// */
.cf-ico { display: inline-block; flex-shrink: 0; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-flash { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22currentColor%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%221.5%22 d=%22M13 10V3L5 14h6v7l8-11z%22/%3E%3C/svg%3E"); }
.i-smile { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%220.97em%22 height=%221em%22 viewBox=%220 0 496 512%22%3E%3Cpath fill=%22currentColor%22 d=%22M248 8C111 8 0 119 0 256s111 248 248 248s248-111 248-248S385 8 248 8m0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200s-89.7 200-200 200m-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32m160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32m4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1c-10.2 8.5-11.5 23.6-3.1 33.8c30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8c-10.1-8.4-25.3-7.1-33.8 3.1%22/%3E%3C/svg%3E"); }
.i-check-circle { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22currentColor%22 d=%22m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22%22/%3E%3C/svg%3E"); }
.i-arrow-right { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 15 15%22%3E%3Cpath fill=%22currentColor%22 d=%22M8.293 2.293a1 1 0 0 1 1.414 0l4.5 4.5a1 1 0 0 1 0 1.414l-4.5 4.5a1 1 0 0 1-1.414-1.414L11 8.5H1.5a1 1 0 0 1 0-2H11L8.293 3.707a1 1 0 0 1 0-1.414%22/%3E%3C/svg%3E"); }
.i-reload { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22currentColor%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22%3E%3Cpath d=%22M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747%22/%3E%3Cpath d=%22M20 4v5h-5%22/%3E%3C/g%3E%3C/svg%3E"); }
.i-shield-tick { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 15 15%22%3E%3Cpath fill=%22none%22 stroke=%22currentColor%22 stroke-linejoin=%22round%22 d=%22M4 7.5L7 10l4-5M7.5.5l-7 4v.72a9.65 9.65 0 0 0 7 9.28a9.65 9.65 0 0 0 7-9.28V4.5z%22/%3E%3C/svg%3E"); }
.i-layers { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22currentColor%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22%3E%3Cpath d=%22M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z%22/%3E%3Cpath d=%22M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12%22/%3E%3Cpath d=%22M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17%22/%3E%3C/g%3E%3C/svg%3E"); }
.i-chevron-down { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22currentColor%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22 d=%22m4 9l8 8l8-8%22/%3E%3C/svg%3E"); }

/* Shared */
.cf-tint { background: var(--cf-tint); }
.cf-section { padding: 64px 0; }
.cf-h2 { font-family: "Geist", sans-serif; font-weight: 600; font-size: 36px; line-height: 46px; color: #000; }
.cf-head { display: flex; flex-direction: column; gap: 13px; margin-bottom: 24px; }
.cf-head-tight { gap: 8px; }
.cf-sub { font-family: "Poppins", sans-serif; font-size: 14px; line-height: 24px; color: #000; }
.cf-card { background: #fff; border: 1px solid var(--cf-line); border-radius: 8px; }
.cf-stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Hero ---------- */
.cf-hero {
  background-image: linear-gradient(-68.68deg, #fff 2.77%, #e0f3ee 67.333%, #d4eaff 85.552%);
  overflow: hidden;
}
.cf-hero-row { max-width: 1440px; margin: 0 auto; display: flex; align-items: flex-end; gap: 64px; padding-top: 64px; }
.cf-hero-text { flex: 1 1 0; min-width: 0; padding: 0 0 64px 64px; display: flex; flex-direction: column; gap: 34px; }
.cf-hero-top { display: flex; flex-direction: column; gap: 44px; }
.cf-logo { width: 129px; height: 48px; object-fit: cover; }
.cf-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.cf-hero h1 { font-family: "Geist", sans-serif; font-weight: 700; font-size: 42px; line-height: 46px; color: #000; }
.cf-hero-copy p { font-family: "Poppins", sans-serif; font-size: 16px; line-height: 24px; color: #000; }
.cf-meta { display: grid; grid-template-columns: 1fr 1fr; row-gap: 16px; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 16px; line-height: 32px; }
.cf-meta dt { color: var(--cf-grey); }
.cf-meta dd { color: #000; }
.cf-hero-img { width: 456px; height: 460px; flex-shrink: 0; object-fit: contain; }

/* ---------- Challenge ---------- */
.cf-challenge { padding: 64px 0; background: #fff; }
.cf-challenge-row { max-width: 1440px; margin: 0 auto; padding: 0 189px 0 120px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cf-challenge-text { width: 435px; display: flex; flex-direction: column; gap: 13px; }
.cf-light { font-family: "Poppins", sans-serif; font-weight: 300; font-size: 14px; line-height: 24px; color: #000; }
.cf-light p + p { margin-top: 24px; }
.cf-criteria { background: #fff; border: 1px solid var(--cf-line); border-radius: 12px; padding: 25px; min-width: 399px; flex-shrink: 0; }
.cf-criteria h3 { font-family: "Geist", sans-serif; font-weight: 600; font-size: 17px; line-height: 21px; color: #000; margin-bottom: 8px; }
.cf-criteria ul { list-style: none; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cf-criteria li { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-size: 13px; line-height: 19.5px; color: var(--cf-body); }
.cf-criteria li img { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Research / opportunity ---------- */
.cf-research { padding: 64px 0; }
.cf-research-row { max-width: 1440px; margin: 0 auto; padding: 0 120px; display: flex; align-items: stretch; justify-content: space-between; gap: 33px; }
.cf-panel { background: #fff; border: 1px solid var(--cf-line-soft); border-radius: 10px; padding: 24px; }
.cf-panel-research { width: 490px; flex-shrink: 0; }
.cf-panel-opp { width: 677px; flex-shrink: 1; min-width: 0; display: flex; flex-direction: column; gap: 59px; }
.cf-insight { padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.cf-insight img { width: 40px; height: 40px; }
.cf-insight h3 { font-family: "Geist", sans-serif; font-weight: 600; font-size: 15px; line-height: 20px; color: #000; }
.cf-insight h3.cf-inter { font-family: "Inter", sans-serif; font-weight: 700; line-height: 19.5px; color: #101828; }
.cf-insight p { font-size: 14px; line-height: 20px; color: #000; }
.cf-problem { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cf-problem h3, .cf-constraints h3 { font-family: "Geist", sans-serif; font-weight: 600; font-size: 20px; line-height: 20px; color: #000; }
.cf-problem > p { font-size: 14px; line-height: 20px; margin-top: 10px; }
.cf-behaviours { display: flex; gap: 10px; }
.cf-behaviour { flex: 1 1 0; min-width: 0; background: #f9f9f9; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cf-pill { background: #ebf3fc; border-radius: 4px; padding: 4px 8px; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--cf-blue); }
.cf-behaviour div { font-size: 14px; line-height: 20px; color: #000; display: flex; flex-direction: column; gap: 6px; }
.cf-behaviour strong { font-weight: 600; }
.cf-constraints { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.cf-constraints dl { display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 20px; }
.cf-constraints dl div { display: flex; flex-direction: column; gap: 4px; }
.cf-constraints dt { font-weight: 600; color: #000; }
.cf-constraints dd { color: var(--cf-grey); }

/* ---------- Purchase flow ---------- */
.cf-flows { display: grid; grid-template-columns: 1fr 51px 1fr; gap: 16px; align-items: center; }
.cf-flow { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cf-flow-new { border-color: var(--cf-line-soft); align-self: center; }
.cf-flow h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px; line-height: 20px; text-align: center; color: #000; }
.cf-flow ol { list-style: none; display: flex; flex-direction: column; }
.cf-flow li {
  height: 52px; display: flex; align-items: center; justify-content: center;
  background: #f5f5f3; border: 1px solid #dcdcdc; border-radius: 4px;
  font-family: "Inter", sans-serif; font-size: 14px; line-height: 20px; color: #000;
}
.cf-flow li + li { margin-top: 26px; position: relative; }
.cf-flow li + li::before {
  content: ""; position: absolute; left: 50%; top: -23px; width: 18px; height: 18px; margin-left: -9px;
  background: #666; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22currentColor%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22 d=%22m4 9l8 8l8-8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221em%22 height=%221em%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22currentColor%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22 d=%22m4 9l8 8l8-8%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.cf-flow-new li { background: #eff3ff; border-color: #c4d1f7; color: var(--cf-blue); }
.cf-flow-new li + li::before { background: var(--cf-blue); }
.cf-vs { width: 51px; height: 52px; border-radius: 50%; background: var(--cf-vs); color: #fff; display: grid; place-items: center; font-family: "Inter", sans-serif; font-weight: 500; font-size: 14px; }
.cf-gains { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.cf-gain { background: #eff3ff; border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-family: "Inter", sans-serif; }
.cf-gain .cf-ico { color: var(--cf-blue); }
.cf-gain strong { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--cf-blue); }
.cf-gain span { font-size: 12px; line-height: 20px; color: var(--cf-grey); margin-top: -4px; }

/* ---------- Design decisions ---------- */
.cf-decisions { display: flex; flex-direction: column; gap: 16px; }
.cf-decision {
  background: #fff; border: 1px solid var(--cf-line); border-radius: 8px;
  min-height: 562px; padding: 36px 120px; display: flex; align-items: center; justify-content: space-between; gap: 64px;
}
.cf-dtext { flex: 1 1 0; min-width: 0; }
.cf-dnum { font-weight: 600; font-size: 20px; line-height: 20px; color: var(--cf-blue); }
.cf-dtext h3 { margin-top: 16px; font-weight: 600; font-size: 15px; line-height: 20px; color: #000; }
.cf-dsub { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--cf-grey); }
.cf-dbody { margin-top: 16px; font-size: 14px; line-height: 20px; color: #000; text-align: justify; }
.cf-dbody-loose { line-height: 26px; }
.cf-check { margin-top: 16px; display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 20px; color: var(--cf-grey); }
.cf-check .cf-ico { color: #02a562; }
.cf-shot { flex-shrink: 1; min-width: 0; height: auto; border-radius: 6px; }
.cf-decision .cf-shot[width="436"] { width: 436px; }
.cf-decision .cf-shot[width="433"] { width: 433px; }
.cf-decision .cf-shot[width="455"] { width: 455px; }
.cf-decision-4 { min-height: 467px; gap: 36px; padding-right: 102px; }
.cf-dbody + .cf-dbody { margin-top: 20px; }
.cf-dtext-narrow { flex: 0 0 262px; max-width: 262px; }
.cf-steps { display: flex; align-items: center; gap: 16px; flex-shrink: 1; min-width: 0; }
.cf-steps figure { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cf-steps figcaption { font-family: "Inter", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .3px; text-align: center; color: var(--cf-grey); }
.cf-steps img { width: 303px; height: auto; }
.cf-steps figure:last-child img { width: 298px; }
.cf-arrow { width: 47px; height: 47px; flex-shrink: 0; border-radius: 50%; background: var(--cf-vs); color: #fff; display: grid; place-items: center; margin-top: 44px; }
.cf-arrow .cf-ico { width: 15px; height: 15px; }

/* ---------- Cart & order journey ---------- */
.cf-head + .cf-journey { margin-top: 36px; }
.cf-journey { display: flex; flex-direction: column; gap: 64px; }
.cf-jrow { display: flex; justify-content: space-between; gap: 64px; align-items: flex-start; }
.cf-jitem h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 20px; line-height: 20px; color: var(--cf-blue); padding-left: 6px; }
.cf-jitem p { margin-top: 16px; font-family: "Geist", sans-serif; font-size: 13px; line-height: 20px; color: var(--text); }
.cf-jitem img { margin-top: 24px; height: auto; }
.cf-j-cart { width: 596px; }
.cf-j-track { width: 540px; }
.cf-j-track img { margin-top: 42px; }
.cf-jrow-past { align-items: center; }
.cf-j-past { width: 336px; flex-shrink: 0; }
.cf-jrow-past > img { width: 800px; min-width: 0; flex-shrink: 1; height: auto; }

/* ---------- Outcomes ---------- */
.cf-outcomes { padding: 64px 0; }
.cf-outcomes-inner { max-width: 766px; margin: 0 auto; }
.cf-out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-out { min-height: 200px; padding: 24px 20px; display: flex; flex-direction: column; font-family: "Inter", sans-serif; }
.cf-out .cf-ico { width: 36px; height: 36px; color: var(--cf-blue); margin-bottom: 16px; }
.cf-out h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 24px; line-height: 26px; color: #000; min-height: 52px; max-width: 335px; }
.cf-out p { margin-top: 8px; font-size: 14px; line-height: 20px; color: #000; max-width: 335px; }
.cf-out-narrow h3, .cf-out-narrow p { max-width: 245px; }
.cf-out:first-child p { max-width: 273px; }

/* ---------- Back to top ---------- */
.cf-totop { height: 130px; display: grid; place-items: center; background: #fff; }
.cf-totop a { width: 61px; height: 61px; border-radius: 50%; background: #000; display: grid; place-items: center; transition: transform .2s; }
.cf-totop a:hover { transform: translateY(-3px); }

/* ---------- Responsive ----------
   Desktop (>=1440) is the reference design and is untouched; everything below only applies under 1440px. */

/* Small laptops: ease the 120px inner padding of decision cards so text columns don't get squeezed (= 120px at 1440) */
@media (max-width: 1439px) {
  .cf-decision { padding-left: clamp(48px, 20vw - 168px, 120px); padding-right: clamp(48px, 20vw - 168px, 120px); }
  .cf-decision-4 { padding-right: clamp(48px, 20vw - 186px, 102px); }
}

/* iPad landscape and below */
@media (max-width: 1180px) {
  /* Research next to opportunity: share the row instead of a fixed 490px column */
  .cf-panel-research { width: auto; flex: 10 1 0; min-width: 0; }
  .cf-panel-opp { width: auto; flex: 12 1 0; gap: 32px; }
  /* Justified text in narrow columns creates rivers */
  .cf-dbody { text-align: left; }
  /* Decision 4: screenshots need the full card width */
  .cf-decision-4 { flex-direction: column; align-items: stretch; padding-right: clamp(48px, 20vw - 168px, 120px); }
  .cf-dtext-narrow { flex: none; max-width: 640px; }
  .cf-steps { justify-content: center; }
  /* Forced line break only works at desktop widths (keeps the space before it) */
  .cf-jitem br { display: none; }
  .cf-insight h3 { text-wrap: pretty; }
  .cf-jitem h3 { line-height: 26px; }
}

@media (max-width: 1100px) {
  .cf-hero-text { padding-left: 48px; }
  .cf-hero-img { width: 340px; height: auto; }
  .cf-challenge-row, .cf-research-row { padding: 0 48px; }
  .cf-research-row { flex-direction: column; gap: 24px; }
  .cf-panel-research, .cf-panel-opp { width: 100%; flex: none; }
  .cf-panel-opp { gap: 24px; }
  /* Stacked panels are wide: lay insights and constraints out in columns */
  .cf-panel-research .cf-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .cf-constraints dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .cf-decision, .cf-decision-4 { padding: 36px 48px; }
  /* Cart journey: text beside each screenshot, like the past-orders row on desktop */
  .cf-jitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 48px; }
  .cf-jitem h3 { grid-column: 1; grid-row: 1; }
  .cf-jitem p { grid-column: 1; grid-row: 2; }
  .cf-jitem img, .cf-j-track img { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
  .cf-jrow { flex-direction: column; }
  .cf-j-cart, .cf-j-track { width: 100%; }
  .cf-jrow-past { flex-direction: row; align-items: center; gap: 48px; }
  .cf-j-past { width: auto; flex: 1 1 0; min-width: 240px; }
  .cf-jrow-past > img { width: 596px; }
  .cf-outcomes-inner { padding: 0 48px; max-width: 862px; }
}

/* iPad portrait */
@media (max-width: 900px) {
  .cf-hero-row { gap: 32px; }
  .cf-hero h1 { font-size: 38px; line-height: 42px; }
  .cf-hero-img { width: 300px; }
  .cf-challenge-row { flex-direction: column; align-items: flex-start; }
  .cf-challenge-text { width: 100%; max-width: 640px; }
  .cf-decision, .cf-decision-rev { flex-direction: column; align-items: flex-start; min-height: 0; gap: 32px; }
  .cf-decision-rev .cf-shot { order: 2; }
  .cf-decision .cf-shot { align-self: center; }
  .cf-dtext { max-width: none !important; }
  /* Journey: back to one column, screenshots at their natural size */
  .cf-jitem { display: block; }
  .cf-jitem img { margin-top: 24px; }
  .cf-j-track img { margin-top: 24px; }
  .cf-jrow { gap: 64px; }
  .cf-jrow-past { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cf-j-past { width: 100%; max-width: 640px; flex: none; min-width: 0; }
  .cf-jrow-past > img { width: 800px; }
  .cf-jitem p { max-width: 640px; }
  /* Narrow flow cards: top-align them; VS stays centred */
  .cf-flows { align-items: start; }
  .cf-flow-new { align-self: start; }
  .cf-vs { align-self: center; }
}

/* Purchase flows sit side by side until there is no room for both columns */
@media (max-width: 700px) {
  .cf-flows { grid-template-columns: 1fr; justify-items: center; }
  .cf-flows .cf-flow { width: 100%; }
}
.cf-gains { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

@media (max-width: 760px) {
  .cf-hero-row { flex-direction: column; align-items: stretch; gap: 0; padding-top: 40px; }
  .cf-hero-text { padding: 0 20px 24px; }
  .cf-hero h1 { font-size: 32px; line-height: 36px; }
  .cf-hero-img { width: 100%; max-width: 380px; align-self: flex-end; }
  .cf-meta { grid-template-columns: 1fr 1fr; column-gap: 16px; font-size: 15px; line-height: 26px; }
  .cf-challenge, .cf-research, .cf-section, .cf-outcomes { padding: 48px 0; }
  .cf-challenge-row, .cf-research-row { padding: 0 20px; }
  .cf-challenge-text, .cf-criteria { width: 100%; }
  .cf-criteria { min-width: 0; }
  .cf-criteria li { align-items: flex-start; white-space: normal; }
  .cf-h2 { font-size: 30px; line-height: 38px; }
  .cf-panel { padding: 16px; }
  .cf-flow { padding: 16px; }
  .cf-decision, .cf-decision-4 { padding: 24px 16px; }
  .cf-steps { flex-direction: column; align-items: stretch; width: 100%; }
  .cf-steps img, .cf-steps figure:last-child img { width: 100%; max-width: 303px; margin: 0 auto; }
  .cf-arrow { margin: 0 auto; transform: rotate(90deg); }
  .cf-jitem img { width: 100%; }
  .cf-jrow-past > img { width: 100%; }
  .cf-outcomes-inner { padding: 0 20px; }
  .cf-out-grid { grid-template-columns: 1fr; }
  .cf-out h3 { font-size: 22px; min-height: 0; }
  .cf-out h3, .cf-out p { max-width: none !important; }
}

/* Phones */
@media (max-width: 600px) {
  .cf-h2 { font-size: 28px; line-height: 34px; }
  .cf-head { gap: 8px; }
  .cf-behaviours { flex-direction: column; }
  .cf-constraints dl { grid-template-columns: 1fr; }
  /* Cards nested in panels: trim the inner padding so text keeps a readable measure */
  .cf-insight, .cf-problem, .cf-constraints { padding: 16px; }
  .cf-insight { gap: 12px; }
  .cf-behaviour { padding: 12px; gap: 12px; }
  .cf-flow li { height: 44px; }
  .cf-flow li + li { margin-top: 22px; }
  .cf-flow li + li::before { top: -20px; }
  .cf-decision, .cf-decision-4 { padding: 24px 12px; gap: 24px; }
  .cf-dtext { padding: 0 4px; }
  /* Screenshots use the full card width on phones */
  .cf-decision .cf-shot { width: 100% !important; }
  .cf-steps img, .cf-steps figure:last-child img { max-width: 100%; }
  .cf-steps figure { gap: 16px; }
  .cf-journey { gap: 48px; }
  .cf-jrow { gap: 48px; }
  .cf-out { min-height: 0; }
  .cf-out .cf-ico { width: 32px; height: 32px; margin-bottom: 12px; }
  .cf-totop { height: 110px; }
}

/* Decision header with behaviour tag */
.cf-dhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cf-dhead .cf-pill { font-size: 11px; }
.cf-meta { grid-template-columns: 1fr 1fr; }
