/* ==========================================================================
   Homepage case study: Petal & Stem (sample store, process demonstration).
   Sits on the navy section, scoped under .hp.
   ========================================================================== */

.hp .cs-honest {
  display: flex; gap: 12px; align-items: flex-start;
  background: #12294F; border: 1px solid #2A4270; border-radius: 14px;
  padding: 16px 20px; margin-bottom: 28px;
  font-size: 16px; line-height: 1.55; color: #DCE4FF; max-width: 52em;
}
.hp .cs-honest svg { flex-shrink: 0; margin-top: 2px; color: #8FA9FF; }
.hp .cs-honest strong { color: #FFFFFF; }

.hp .cs-facts { display: grid; grid-template-columns: 1fr 1.2fr 2.2fr 1.6fr; gap: 1px; background: #2A4270; border: 1px solid #2A4270; border-radius: 16px; overflow: clip; margin-bottom: 40px; }
.hp .cs-facts > div { background: #0E2246; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.hp .cs-facts dt { font-size: 14px; font-weight: 700; color: #C7D2EA; }
.hp .cs-facts dd { font-size: 17px; line-height: 1.4; font-weight: 700; color: #FFFFFF; }
.hp .cs-facts > div:first-child dd { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; font-size: 34px; line-height: 1; }

/* Before / after viewer */
.hp .cs-viewer { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.hp .cs-switch { display: none; align-self: flex-start; background: #12294F; border: 1px solid #2A4270; border-radius: 999px; padding: 4px; gap: 4px; }
.hp .cs-js .cs-switch { display: inline-flex; }
.hp .cs-btn {
  min-height: 44px; min-width: 104px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; color: #DCE4FF; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.hp .cs-btn[aria-pressed="true"] { background: #FFFFFF; color: #081B3A; }
.hp .cs-btn[data-cs-show="before"][aria-pressed="true"] { box-shadow: inset 0 -3px 0 #B3262B; }
.hp .cs-btn[data-cs-show="after"][aria-pressed="true"] { box-shadow: inset 0 -3px 0 #0B7A55; }
.hp .cs-btn:hover { color: #FFFFFF; background: #1C2F55; }
.hp .cs-btn[aria-pressed="true"]:hover { background: #FFFFFF; color: #081B3A; }
.hp .cs-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.hp .cs-shot { display: flex; flex-direction: column; gap: 12px; }
.hp .cs-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #2A4270; background: #FFFFFF; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.hp .cs-shot figcaption { font-size: 15px; font-weight: 700; color: #FFFFFF; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.hp .cs-zoom { color: #FFFFFF; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.hp .cs-zoom:hover { text-decoration-thickness: 2px; }
.hp .cs-same { font-size: 17px; line-height: 1.65; color: #C7D2EA; max-width: 50em; }

/* The four fixes */
.hp .cs-sub { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; font-size: clamp(24px, 2.2cqi, 30px); font-weight: 700; color: #FFFFFF; margin-bottom: 24px; }
.hp .cs-fixes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.hp .cs-fix { background: #FFFFFF; color: #081B3A; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.hp .cs-fix-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.hp .cs-n { width: 40px; height: 40px; border-radius: 50%; background: #E3F7EF; color: #075C40; display: grid; place-items: center; font: 700 17px/1 'Schibsted Grotesk', Arial, sans-serif; }
.hp .cs-fix h4 { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; font-size: 20px; line-height: 1.3; font-weight: 700; color: #081B3A; padding-top: 6px; }
.hp .cs-wcag { display: flex; flex-wrap: wrap; gap: 8px; }
.hp .cs-wcag .tag { background: #E9EFFF; color: #0A3ECC; }
.hp .cs-fix dl { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #DFE6F4; padding-top: 14px; }
.hp .cs-fix dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.hp .cs-fix dt { font-size: 15px; font-weight: 700; color: #4A5A78; padding-top: 1px; }
.hp .cs-fix dd { font-size: 16px; line-height: 1.55; color: #081B3A; }
.hp .cs-fix dl > div:last-child dt { color: #075C40; }

/* Why manual testing mattered */
.hp .cs-why { border-left: 0; background: #0A3ECC; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.hp .cs-why h3 { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; font-size: 24px; font-weight: 700; color: #FFFFFF; }
.hp .cs-why p { font-size: 17px; line-height: 1.65; color: #FFFFFF; max-width: 52em; }

/* Result + CTA */
.hp .cs-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; background: #12294F; border: 1px solid #2A4270; border-radius: 20px; padding: 32px; }
.hp .cs-result .cs-k { font-size: 14px; font-weight: 700; color: #7FD3B0; margin-bottom: 8px; }
.hp .cs-big { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; font-size: clamp(21px, 1.9cqi, 26px); line-height: 1.3; font-weight: 700; color: #FFFFFF; max-width: 34em; }
.hp .cs-small { font-size: 16px; line-height: 1.6; color: #C7D2EA; margin-top: 10px; max-width: 40em; }
.hp .cs-process { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; counter-reset: csp; }
.hp .cs-process li { counter-increment: csp; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #FFFFFF; background: #1C2F55; border-radius: 999px; padding: 6px 14px 6px 6px; }
.hp .cs-process li::before { content: counter(csp); width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; color: #081B3A; display: grid; place-items: center; font-size: 13px; }
.hp .cs-cta { display: flex; flex-direction: column; gap: 12px; }

@container (max-width: 960px) {
  .hp .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp .cs-result { grid-template-columns: minmax(0, 1fr); }
  .hp .cs-cta { flex-direction: row; flex-wrap: wrap; }
}
@container (max-width: 600px) {
  .hp .cs-facts { grid-template-columns: minmax(0, 1fr); }
  .hp .cs-fixes { grid-template-columns: minmax(0, 1fr); }
  .hp .cs-fix, .hp .cs-why, .hp .cs-result { padding: 22px 20px; }
  .hp .cs-fix dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hp .cs-switch { align-self: stretch; }
  .hp .cs-btn { flex: 1; min-width: 0; }
  .hp .cs-cta { flex-direction: column; }
}
