/* Rotomolding ROI page: the "What is over-baking?" story. Light colours only. One 16 s loop: 0-8 s today (oven on a timer), 8-16 s with RotoSight + PiatIQ. Starts when on screen. */
.ob { background: linear-gradient(180deg, #fff 0%, #fff8ee 100%); }
.ob-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 0; align-items: center; margin-bottom: 30px; }
.ob-top h2 { margin: 10px 0 0; }
.ob-lede { margin: 0; padding-left: 4px; max-width: 58ch; font-size: 16.5px; line-height: 1.7; color: var(--mute, #5a6877); }
.ob-lede a { font-weight: 700; color: #c2570a; text-decoration: underline; text-underline-offset: 3px; }

.ob-card { position: relative; border-radius: 28px; background: #fff; border: 1px solid #f0e3d2; box-shadow: 0 30px 60px -34px rgba(194, 120, 40, .35); overflow: hidden; }
.ob-bar { display: flex; align-items: center; gap: 12px; padding: 20px 26px 0; min-height: 54px; }
.ob-mode { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ob-mode i { width: 8px; height: 8px; border-radius: 50%; }
.ob-m1 { background: #fdecec; color: #b42318; } .ob-m1 i { background: #e5484d; }
.ob-m2 { position: absolute; left: 26px; top: 18px; background: #e6f7ec; color: #17803d; } .ob-m2 i { background: #22a45d; }
.ob-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 700; color: #5a6877; }
.ob-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ob-legend i { display: block; width: 18px; height: 4px; border-radius: 2px; }
.ob-legend .lg-bad i { background: #e5484d; } .ob-legend .lg-ok i { background: #22a45d; }

.ob-svg { display: block; width: 100%; height: auto; padding: 4px 18px 0 14px; }
.ob-svg text { font-family: inherit; }
.ob-ax { stroke: #d9cdbd; stroke-width: 1.6; fill: none; } .ob-gr { stroke: #f3e9db; stroke-width: 1; }
.ob-tg { stroke: #b8c4d0; stroke-width: 1.4; stroke-dasharray: 5 6; }
.ob-lbl { font-size: 13px; font-weight: 700; fill: #8a97a6; letter-spacing: .01em; }
.ob-curve { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ob-bad { stroke: #e5484d; } .ob-ok { stroke: #22a45d; }
.ob-pill rect { rx: 13; } .ob-pill text { font-size: 13.5px; font-weight: 800; text-anchor: middle; }
.ob-pill.g rect { fill: #e6f7ec; stroke: #9bd8b2; } .ob-pill.g text { fill: #17803d; }
.ob-pill.r rect { fill: #fdecec; stroke: #f3b4b4; } .ob-pill.r text { fill: #b42318; }
.ob-vl { stroke-width: 2; stroke-dasharray: 4 5; } .ob-vl.g { stroke: #22a45d; } .ob-vl.r { stroke: #e5484d; }
.ob-zone-t { font-size: 17px; font-weight: 800; text-anchor: middle; }
.ob-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: obflame 1.1s ease-in-out infinite; }
@keyframes obflame { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.14) rotate(2deg); } }

/* the 16 s story: everything is paused until the card is on screen */
.ob-card * { animation-play-state: paused; }
.ob.play .ob-card * { animation-play-state: running; }
.ob-card .ob-flame { animation-play-state: running; }
.ob-c-bad { animation: ob-bad 16s linear infinite both; }
.ob-c-ok { animation: ob-ok 16s linear infinite both; }
.ob-markA { opacity: 0; animation: ob-markA 16s linear infinite both; }
.ob-markT { opacity: 0; animation: ob-markT 16s linear infinite both; }
.ob-zoneR { opacity: 0; animation: ob-zoneR 16s linear infinite both; }
.ob-markB { opacity: 0; animation: ob-markB 16s linear infinite both; }
.ob-zoneG { opacity: 0; animation: ob-zoneG 16s linear infinite both; }
.ob-m1 { animation: ob-m1 16s linear infinite both; } .ob-m2 { opacity: 0; animation: ob-m2 16s linear infinite both; }
@keyframes ob-bad { 0%, 3% { stroke-dashoffset: 1; opacity: 0; } 3.1% { stroke-dashoffset: 1; opacity: 1; } 28% { stroke-dashoffset: 0; opacity: 1; } 49% { stroke-dashoffset: 0; opacity: 1; } 51% { stroke-dashoffset: 0; opacity: .28; } 96% { stroke-dashoffset: 0; opacity: .28; } 98% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes ob-ok { 0%, 51% { stroke-dashoffset: 1; opacity: 0; } 51.1% { stroke-dashoffset: 1; opacity: 1; } 78% { stroke-dashoffset: 0; opacity: 1; } 96% { stroke-dashoffset: 0; opacity: 1; } 98% { opacity: 0; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 1; } }
@keyframes ob-markA { 0%, 13% { opacity: 0; } 16%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ob-markT { 0%, 27% { opacity: 0; } 30%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ob-zoneR { 0%, 29% { opacity: 0; } 35%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ob-markB { 0%, 63% { opacity: 0; } 67%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes ob-zoneG { 0%, 69% { opacity: 0; } 76%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes ob-m1 { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ob-m2 { 0%, 49% { opacity: 0; } 50%, 97% { opacity: 1; } 99%, 100% { opacity: 0; } }

.ob-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.ob-chart { min-width: 0; padding: 0 0 14px; display: flex; flex-direction: column; align-items: flex-start; }
.ob-chart > * { width: 100%; max-width: 720px; }
.ob-list { list-style: none; margin: 0; padding: 24px 26px 24px 4px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ob-list li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 15px; border-radius: 16px; border: 1px solid transparent; font-size: 15px; line-height: 1.5; font-weight: 600; color: #12212f; opacity: .42; }
.ob-list li > b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f3ece1; color: #8a97a6; font-size: 13px; font-weight: 800; }
.ob-list li strong { color: #c2570a; }
.ob-list li:nth-child(1) { animation: ob-l1 16s linear infinite both; } .ob-list li:nth-child(2) { animation: ob-l2 16s linear infinite both; }
.ob-list li:nth-child(3) { animation: ob-l3 16s linear infinite both; } .ob-list li:nth-child(4) { animation: ob-l4 16s linear infinite both; }
.ob-list li:nth-child(1) > b { animation: ob-n1 16s linear infinite both; } .ob-list li:nth-child(2) > b { animation: ob-n2 16s linear infinite both; }
.ob-list li:nth-child(3) > b { animation: ob-n3 16s linear infinite both; } .ob-list li:nth-child(4) > b { animation: ob-n4 16s linear infinite both; }
@keyframes ob-l1 { 0%, 13% { opacity: 1; background: #fff7ec; border-color: #f6d8b0; } 14%, 100% { opacity: .42; background: transparent; border-color: transparent; } }
@keyframes ob-l2 { 0%, 13% { opacity: .42; background: transparent; border-color: transparent; } 14%, 29% { opacity: 1; background: #fff7ec; border-color: #f6d8b0; } 30%, 100% { opacity: .42; background: transparent; border-color: transparent; } }
@keyframes ob-l3 { 0%, 29% { opacity: .42; background: transparent; border-color: transparent; } 30%, 49% { opacity: 1; background: #fff3f3; border-color: #f3b4b4; } 50%, 100% { opacity: .42; background: transparent; border-color: transparent; } }
@keyframes ob-l4 { 0%, 49% { opacity: .42; background: transparent; border-color: transparent; } 50%, 97% { opacity: 1; background: #effaf3; border-color: #bfe6cd; } 99%, 100% { opacity: .42; background: transparent; border-color: transparent; } }
@keyframes ob-n1 { 0%, 13% { background: #f7861e; color: #fff; } 14%, 100% { background: #f3ece1; color: #8a97a6; } }
@keyframes ob-n2 { 0%, 13% { background: #f3ece1; color: #8a97a6; } 14%, 29% { background: #f7861e; color: #fff; } 30%, 100% { background: #f3ece1; color: #8a97a6; } }
@keyframes ob-n3 { 0%, 29% { background: #f3ece1; color: #8a97a6; } 30%, 49% { background: #e5484d; color: #fff; } 50%, 100% { background: #f3ece1; color: #8a97a6; } }
@keyframes ob-n4 { 0%, 49% { background: #f3ece1; color: #8a97a6; } 50%, 97% { background: #22a45d; color: #fff; } 99%, 100% { background: #f3ece1; color: #8a97a6; } }

.ob-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.ob-fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid #f0e3d2; }
.ob-fact > span { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff0dc; color: #e56f06; box-shadow: inset 0 0 0 1px #f6d8b0; }
.ob-fact strong { display: block; font-size: 15.5px; line-height: 1.3; color: #12212f; }
.ob-fact small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: #5a6877; }
.ob-calc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; padding: 20px 26px; border-radius: 22px; background: linear-gradient(120deg, #fff3e2, #ffe9cc); border: 1px solid #f6d8b0; }
.ob-calc p { margin: 0; font-size: 16.5px; line-height: 1.5; color: #12212f; }
.ob-calc p b { font-size: 1.25em; color: #c2570a; font-variant-numeric: tabular-nums; }
.ob-calc .ob-go { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px; background: #f7861e; color: #fff; font-weight: 800; box-shadow: 0 14px 30px -12px rgba(247, 134, 30, .7); }

@media (max-width: 900px) {
  .ob-top { grid-template-columns: 1fr; align-items: start; gap: 14px; margin-bottom: 24px; }
  .ob-facts { grid-template-columns: 1fr; }
  .ob-card { grid-template-columns: 1fr; } .ob-list { padding: 6px 18px 22px; }
}
@media (max-width: 560px) {
  .ob-lbl { font-size: 18px; } .ob-pill text { font-size: 17px; } .ob-zone-t { font-size: 21px; }
  .ob-bar { padding: 14px 16px 0; } .ob-m2 { left: 16px; top: 14px; } .ob-legend { display: none; }
  .ob-list li { font-size: 15.5px; padding: 12px 12px; }
  .ob-calc { padding: 18px; } .ob-calc .ob-go { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-card *, .ob-flame { animation: none !important; }
  .ob-c-bad { stroke-dashoffset: 0; opacity: .28; } .ob-c-ok { stroke-dashoffset: 0; } .ob-markB, .ob-zoneG, .ob-m2 { opacity: 1; } .ob-m1 { opacity: 0; }
  .ob-list li { opacity: .6; } .ob-list li:nth-child(4) { opacity: 1; background: #effaf3; border-color: #bfe6cd; } .ob-list li:nth-child(4) > b { background: #22a45d; color: #fff; }
}

/* centred, narrower block so the chart, the steps and the cards line up */
.ob-zoneR text, .ob-zoneG text { font-size: 12.5px; } .ob-zoneR text.ob-zone-t, .ob-zoneG text.ob-zone-t { font-size: 17px; }
.ob-card { border-radius: 26px; } .ob-card .ob-chart { padding-bottom: 20px; }
@media (max-width: 560px) {
  .ob-zoneR text, .ob-zoneG text { font-size: 15px; } .ob-zoneR text.ob-zone-t, .ob-zoneG text.ob-zone-t { font-size: 20px; }
  .ob-lbl { font-size: 17px; } .ob-pill text { font-size: 16px; }
}
@media (max-width: 900px) { .ob-top { gap: 14px; } .ob-lede { padding-left: 0; } }
