/* BoldnSmart blog: /blog index cards, the click-to-play Short, the price-change loop, numbered steps with real screens,
   the closing CTA, and the private journey log. Loaded after base.css, pages.css and brand.css; reuses their tokens
   (--gold, --ink-2, --surface, --rule-soft …) and the guide layout (.ahero, .abody, .note, .prose, .shot).
   Contrast pairs used here: --ink #f4ecdf and --ink-2 #d3c6b1 on --surface #1c1611 / --bg #0e0b08 (≥ 10:1);
   --gold-hi #dcbb8a on #1c1611 (8.9:1); --on-gold #1a130b on --gold-btn-b #c9a26d (8.1:1, worst stop). */

/* ---------- Byline ---------- */
.byline { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-2); font-size: 15px; }
.byline .icon { width: 16px; height: 16px; color: var(--gold-hi); }

/* ---------- Price-change loop (hero): one product, its listed price at each set time ---------- */
.ploop { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--rule-soft); border-radius: 14px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.ploop::before, .ploop::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; opacity: .55; pointer-events: none; }
.ploop::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; }
.ploop::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; }
.ploop__img { width: 112px; height: 112px; border-radius: 10px; object-fit: cover; }
.ploop__stage { position: relative; min-height: 112px; }
.ploop__state { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; opacity: 0; }
.ploop__state:first-child { opacity: 1; }
.ploop__when { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ploop__when .icon { width: 16px; height: 16px; }
.ploop__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink); font: 500 34px/1.05 var(--serif); }
.ploop__was { color: var(--ink-2); font: 400 18px/1 var(--sans); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ploop__what { color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.ploop__track { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ploop__tick { height: 4px; border-radius: 2px; background: #3a2d20; overflow: hidden; }
.ploop__tick span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.ploop__tick:first-child span { transform: scaleX(1); }
.ploop__cap { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .js .ploop__state { animation: ploopState 12s infinite both; }
  .js .ploop__state:first-child { opacity: 0; }
  .js .ploop__state:nth-child(2) { animation-delay: 3s; }
  .js .ploop__state:nth-child(3) { animation-delay: 6s; }
  .js .ploop__state:nth-child(4) { animation-delay: 9s; }
  .js .ploop__tick span { animation: ploopTick 12s linear infinite both; }
  .js .ploop__tick:first-child span { transform: scaleX(0); }
  .js .ploop__tick:nth-child(2) span { animation-delay: 3s; }
  .js .ploop__tick:nth-child(3) span { animation-delay: 6s; }
  .js .ploop__tick:nth-child(4) span { animation-delay: 9s; }
  .ploop.is-paused .ploop__state, .ploop.is-paused .ploop__tick span, .ploop:hover .ploop__state, .ploop:hover .ploop__tick span { animation-play-state: paused; }
}
@keyframes ploopState { 0% { opacity: 0; transform: translateY(6px); } 3%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ploopTick { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); } 26%, 100% { transform: scaleX(0); } }
@media (min-width: 640px) { .ploop { grid-template-columns: 150px minmax(0, 1fr); padding: 22px; } .ploop__img { width: 150px; height: 150px; } .ploop__stage { min-height: 150px; } .ploop__price { font-size: 42px; } }

/* ---------- Click-to-play Short (no iframe until pressed) ---------- */
.yt { display: grid; gap: 14px; margin-top: 1.1em; }
.yt__frame { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(220, 187, 138, .55); }
.yt__btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.yt__poster { width: 100%; height: 100%; object-fit: cover; }
.yt__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-btn-a), var(--gold-btn-b)); color: var(--on-gold); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8); transition: transform .2s var(--ease); }
.yt__play .icon { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.yt__btn:hover .yt__play, .yt__btn:focus-visible .yt__play { transform: scale(1.08); }
.yt__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 14px; }
.yt__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__note { color: var(--ink-2); font: 400 15px/1.45 var(--sans); }
.yt__note a, .yt__note a:visited { color: var(--gold-hi); }
.yt--placeholder .yt__frame { display: grid; place-items: center; padding: 24px; background: repeating-linear-gradient(135deg, #1c1611 0 14px, #231b14 14px 28px); box-shadow: 0 0 0 2px var(--warn); }
.yt__todo { color: var(--warn); font: 700 16px/1.4 var(--sans); text-align: center; }
.tscript { border-top: 1px solid var(--rule-soft); padding-top: 10px; font-family: var(--sans); }
.tscript__sum { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gold-hi); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.tscript__sum::-webkit-details-marker { display: none; }
.tscript__sum .icon { width: 18px; height: 18px; transition: transform .2s; }
.tscript[open] .tscript__sum .fold__chev { transform: rotate(180deg); }
.tscript__body { display: grid; gap: 4px; margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (min-width: 900px) { .yt { grid-template-columns: 340px minmax(0, 1fr); align-items: start; column-gap: 28px; } .yt .tscript { border-top: 0; padding-top: 0; } }

/* ---------- Numbers row (the problem, in time) ---------- */
.tcost { display: grid; gap: 10px; margin-top: 1.1em; font-family: var(--sans); }
.tcost__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule-soft); border-radius: 10px; background: var(--surface); }
.tcost__k { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.35; }
.tcost__v { color: var(--gold-hi); font: 500 24px/1 var(--serif); white-space: nowrap; }
.tcost__d { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.tcost__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #2d2217; overflow: hidden; }
.tcost__bar span { display: block; height: 100%; width: calc(var(--w, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--gold-btn-b), var(--gold-btn-a)); }
.tcost__row--win { border-color: var(--gold); }
.tcost__fine { color: var(--ink-2); font-size: 14px; line-height: 1.45; }

/* ---------- Steps with real screens ---------- */
.bsteps { display: grid; gap: 22px; margin-top: 1.1em; counter-reset: bstep; }
.bstep { display: grid; gap: 10px; counter-increment: bstep; }
.bstep__t { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font: 500 21px/1.3 var(--serif); }
.bstep__t::before { content: counter(bstep); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2d2217; color: var(--gold-hi); font: 700 15px/1 var(--sans); transform: translateY(-2px); }
.bstep__d { color: var(--ink-2); font: 400 17px/1.5 var(--sans); }
.bstep .shot { margin-top: 2px; }
.bstep .shot__frame { max-width: 720px; }

/* ---------- Closing CTA block ---------- */
.bcta { display: grid; gap: 14px; margin-top: 1.4em; padding: 22px; border: 1px solid var(--rule-soft); border-radius: 14px; background: radial-gradient(80% 90% at 100% 0%, rgba(194, 155, 103, .14), transparent 70%), var(--surface); font-family: var(--sans); }
.bcta__t { color: var(--ink); font: 500 24px/1.2 var(--serif); }
.bcta__sub { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.bcta .btn { justify-self: start; }
.bcta .btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.bcta .btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 250, 238, .55) 50%, transparent 70%); transform: translateX(-110%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .bcta .btn--primary::after { animation: calmWave 5s cubic-bezier(.4, 0, .6, 1) 1.2s infinite; }
  .bcta .btn--primary:hover::after, .bcta .btn--primary:focus-visible::after { animation-play-state: paused; }
}
.bcta__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- /blog index ---------- */
.bindex { padding: 8px 0 56px; }
.bposts { display: grid; gap: 18px; }
.bpost { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--rule-soft); border-radius: 14px; background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.bpost:hover, .bpost:focus-within { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .9); }
.bpost__img { width: 96px; height: 170px; border-radius: 10px; object-fit: cover; }
.bpost__body { display: grid; gap: 8px; align-content: start; }
.bpost__app { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); }
.bpost__app img { width: 22px; height: 22px; border-radius: 5px; }
.bpost__title { font: 500 22px/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.bpost__link, .bpost__link:visited { color: var(--ink); text-decoration: none; }
.bpost__link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.bpost__link:hover, .bpost__link:focus-visible { color: var(--gold-hi); }
.bpost__dek { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.bpost__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ink-2); font-size: 14px; }
.bpost__meta span { display: inline-flex; align-items: center; gap: 6px; }
.bpost__meta .icon { width: 15px; height: 15px; color: var(--gold-hi); }
@media (min-width: 640px) { .bpost { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: 20px; } .bpost__img { width: 120px; height: 213px; } .bpost__title { font-size: 26px; } }

/* ---------- Private journey log ---------- */
.jflag { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--warn); border-radius: 999px; color: var(--warn); font: 700 14px/1.2 var(--sans); }
.jflag .icon { width: 16px; height: 16px; }
.jnums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 1.1em; font-family: var(--sans); }
.jnum { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--rule-soft); border-radius: 10px; background: var(--surface); }
.jnum__v { color: var(--gold-hi); font: 500 30px/1 var(--serif); }
.jnum__k { color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.jlist { display: grid; gap: 12px; margin-top: 1.1em; font-family: var(--sans); }
.jitem { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 14px; border: 1px solid var(--rule-soft); border-radius: 10px; background: var(--surface); }
.jitem .icon { width: 22px; height: 22px; margin-top: 2px; }
.jitem--good .icon { color: oklch(72% 0.15 152); }
.jitem--flaw .icon { color: var(--warn); }
.jitem--fix .icon { color: var(--gold-hi); }
.jitem__t { color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.35; }
.jitem__d { margin-top: 4px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.jitem__src { margin-top: 6px; color: var(--ink-3); font-size: 13px; line-height: 1.4; word-break: break-word; }
.jentries { display: grid; gap: 14px; }
@media (min-width: 900px) { .jnums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prose .bsteps > li { padding-left: 0; }
.prose .bsteps > li::before { content: none; }
.prose .bsteps > li { counter-increment: bstep; }
.tcost__fine { font-family: var(--sans); }

/* /blog index head: copy left, the price loop right on wide screens */
.bhead { display: grid; gap: 22px; align-items: center; }
.bhead__link, .bhead__link:visited { color: var(--gold-hi); }
.bhead__link:hover, .bhead__link:focus-visible { color: var(--ink); }
.page--blog .phero { padding-bottom: 28px; }
@media (min-width: 900px) { .bhead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } }
.page--journey .jflag { margin: 6px 0 10px; }
.prose .jlist > li { padding: 14px; }
.prose .jlist > li::before { content: none; }
.prose p.jitem__src { font-family: var(--sans); color: var(--ink-3); font-size: 13px; }
.ahero__sub { margin-top: 8px; color: var(--ink-2); font: 400 15px/1.4 var(--sans); }
.page--journey .ploop__img { object-fit: contain; padding: 18px; background: var(--surface); }
.page--journey .ploop__price { font-size: 30px; }
@media (min-width: 640px) { .page--journey .ploop__price { font-size: 36px; } }
