/* HOME v78: the product cards, white, with colour doing the work (Stripe's craft, not its layout).
   Order: the journey (full width), Replay + Industry (unchanged), the three principles.
   - The three principles (v79): a two-tone heading and one picture each (the autonomy track, the button Trace
     didn't press, the evidence chain), drawn on the card; one string river runs along the foot of the row
     (js/riverlines.js, box mode, data-light).
   - The journey: white; on the left a stepper whose rail fills in the River gradient and a strip with the result of
     the one ticket; on the right the original colour panel with the SAP window. Nothing loops. */
.bento-sec .bento > .card.tq-card, .bento-sec .bento > .card.jr-dk {
  --n-hi: #0a2540; --n-tx: #3c4a66; --n-mu: #6b7a99; --n-line: rgba(10, 37, 64, .07); --n-line2: rgba(10, 37, 64, .12); color: var(--n-tx); }
.bento .tq-card code, .bento .jr-dk code { font-family: var(--mono); }

/* the three principles (v79): a two-tone heading and one picture drawn straight onto the card; the string river
   runs along the foot of the row and off the cards' bottom edges (HY in riverlines.js) */
.bento-sec .c-third.tq-card { display: flex; flex-direction: column; min-height: 620px; padding: 32px 32px 140px; }
.bento .tq-card h3 { max-width: none; padding-right: 48px; font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.bento .tq-card h3 span { color: #6b7a99; }
.tq-river { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.tq-river.no-gl { background: linear-gradient(176deg, transparent 80%, rgba(46, 230, 214, .3) 88%, rgba(47, 107, 255, .26) 94%, rgba(123, 92, 255, .2)); }
.tv { margin: auto 0; padding-top: 28px; color: var(--n-tx); }
.tv code { font-size: 12.5px; }

/* 1. the autonomy track: one task's record, then the three levels with the knob on the one it earned */
.lad-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.lad-t b { font-size: 17px; font-weight: 600; color: var(--n-hi); } .lad-t code { color: var(--n-mu); }
.lad-m { height: 10px; margin: 16px 0 0; border-radius: 3px; background: linear-gradient(90deg, #2ee6d6, #22b8ff 40%, #2f6bff 75%, #7b5cff); }
.lad-m i { display: block; height: 100%; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 30 - 2px), #fff calc(100% / 30 - 2px) calc(100% / 30)); }
.lad-n { display: flex; gap: 5px; margin: 10px 0 0; font-size: 14px; color: var(--n-mu); } .lad-n b { font-weight: 600; color: var(--n-hi); } .lad-n span { margin-left: auto; }
.lad-k { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; padding: 22px 0 0; list-style: none; font-size: 13.5px; color: var(--n-mu); }
.lad-k::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #d5ddeb, #2f6bff 60%, #7b5cff); }
.lad-k li { position: relative; } .lad-k li:nth-child(2) { text-align: center; } .lad-k li:nth-child(3) { text-align: right; }
.lad-k li::before { content: ""; position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #c3cde0; }
.lad-k li:nth-child(1)::before { left: 2px; } .lad-k li:nth-child(2)::before { left: calc(50% - 5px); } .lad-k li:nth-child(3)::before { right: 2px; }
.lad-k li.on { font-weight: 600; color: var(--n-hi); }
.lad-k li.on::before { top: -24px; right: -2px; width: 18px; height: 18px; background: #2f6bff; box-shadow: 0 0 0 4px #e3ebff, 0 4px 10px rgba(47, 107, 255, .35); }

/* 2. the button Trace didn't press */
.st-k { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 14px; color: var(--n-mu); } .st-k code { font-weight: 600; color: var(--n-hi); }
.st-big { display: flex; align-items: flex-end; gap: 12px; margin: 14px 0 0; }
.st-big b { font-size: 56px; line-height: .9; font-weight: 500; letter-spacing: -.04em; color: var(--n-hi); } .st-big span { font-size: 14px; line-height: 1.35; color: var(--n-mu); }
.st-bar { height: 6px; margin: 16px 0 0; border-radius: 3px; background: #edf0f5; } .st-bar i { display: block; width: 45.8%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7b5cff, #ff5fa2); }
.st-no, .st-yes { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 11px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; }
.st-no { margin-top: 24px; color: #8a96ad; background: #f5f7fa; } .st-no s { text-decoration-color: #ff5fa2; text-decoration-thickness: 1.5px; }
.st-no em { font-size: 12.5px; font-style: normal; font-weight: 500; color: #d63b78; }
.st-yes { justify-content: flex-start; margin-top: 8px; color: #fff; background: #0a2540; }
.st-yes::before { content: ""; width: 9px; height: 5px; margin: -3px 2px 0 1px; border: solid #5fe8d6; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* 3. the evidence chain: two findings joined by a hairline to what they mean */
.wy { position: relative; display: grid; gap: 16px; margin: 0; padding: 0 0 0 22px; list-style: none; font-size: 14.5px; line-height: 1.4; color: var(--n-tx); }
.wy::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: -34px; width: 2px; border-radius: 1px; background: linear-gradient(#22b8ff, #7b5cff); }
.wy li { position: relative; } .wy li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 2px #22b8ff; }
.wy li + li::before { box-shadow: inset 0 0 0 2px #5a7cff; }
.wy li > code:first-child { display: block; margin-bottom: 2px; font-weight: 600; color: #1f55e6; } .wy li code:not(:first-child) { font-size: 13px; color: var(--n-hi); }
.wy-c { position: relative; margin: 24px 0 0; padding-left: 22px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--n-hi); }
.wy-c::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #2f6bff, #7b5cff); }
.wy-n { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 14px 0 0 22px; font-size: 13.5px; font-weight: 600; color: #1f55e6; } .wy-n span { font-weight: 400; color: var(--n-mu); }

/* the journey, left side: a stepper on a rail that fills in the River gradient, then the result of the one ticket */
.bento .jr-dk .jr-steps { position: relative; gap: 0; margin-top: 30px; }
.bento .jr-dk .jr-steps::before { content: ""; position: absolute; left: 15px; top: 22px; bottom: 22px; width: 2px; border-radius: 1px; background: #e6ebf3; }
.bento .jr-dk .jr-steps li { position: relative; }
.bento .jr-dk .jr-steps button { grid-template-columns: 32px 1fr; column-gap: 16px; align-items: start; margin: 0 -12px; padding: 10px 12px; border-radius: 10px; transition: background .25s; }
.bento .jr-dk .jr-steps [aria-selected="true"] { background: #f4f7ff; }
.bento .jr-dk .jr-n2 { position: relative; z-index: 1; width: 32px; height: 32px; font: 600 12px/1 var(--mono); color: var(--n-mu); background: #fff; box-shadow: inset 0 0 0 1.5px #d5ddeb; }
.bento .jr-dk .jr-n2::before { content: "0" counter(jr); }
.bento .jr-dk .jr-steps b { padding-top: 6px; font-size: 17px; font-weight: 600; color: var(--n-hi); opacity: .5; }
.bento .jr-dk .jr-steps [aria-selected="true"] b, .bento .jr-dk .jr-steps button:hover b { opacity: 1; }
.bento .jr-dk .jr-steps [aria-selected="true"] span { color: var(--n-tx); font-size: 15px; }
.bento .jr-dk .jr-steps [aria-selected="true"] .jr-n2 { background: #2f6bff; box-shadow: 0 0 0 4px #dfe8ff; color: #fff; }
.bento .jr-dk .jr-steps li.done .jr-n2 { background: linear-gradient(135deg, #2ee6d6, #22b8ff 45%, #2f6bff); box-shadow: none; color: transparent; }
.bento .jr-dk .jr-steps li.done .jr-n2::before { content: ""; }
.bento .jr-dk .jr-steps li.done .jr-n2::after { content: ""; position: absolute; left: 11px; top: 11px; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.bento .jr-dk .jr-steps li.done::after { content: ""; position: absolute; left: 15px; top: 42px; height: calc(100% - 20px); width: 2px; border-radius: 1px; background: linear-gradient(#22b8ff, #2f6bff); }
.bento .jr-dk .jr-steps li:last-child::after { display: none; }
.bento .jr-dk .jr-p { display: none; grid-column: 2; height: 3px; margin: 12px 0 2px; max-width: 280px; background: #e6ebf3; }
.bento .jr-dk.run .jr-steps [aria-selected="true"] .jr-p { display: block; order: 9; }
.jr-res { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 26px 40px 0 0; padding: 0; border-radius: 12px; background: #f6f8fc; box-shadow: inset 0 0 0 1px var(--n-line); }
.jr-res > div { padding: 12px 18px; } .jr-res > div + div { border-left: 1px solid var(--n-line2); }
.jr-res dt { font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--n-mu); }
.jr-res dd { display: flex; align-items: center; gap: 6px; margin: 7px 0 0; font-size: 14.5px; font-weight: 600; color: var(--n-hi); white-space: nowrap; }
.jr-res code { padding: 2px 6px; border-radius: 5px; font-size: 13px; font-weight: 600; color: #b26a00; background: #fff3dc; } .jr-res code.ok { color: #0a7d6e; background: #dcfaf5; }
.jr-res dd span { color: var(--n-mu); font-weight: 400; }

@media (max-width: 960px) {
  .bento-sec .c-third.tq-card { min-height: 0; padding: 26px 22px 120px; }
  .jr-res { margin-right: 0; grid-template-columns: 1fr 1fr; } .jr-res > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--n-line2); }
}
